* [Buildroot] [PATCHv2 01/74] vsftpd: use <pkg>_INSTALL_INIT_SYSV and rename init script
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
@ 2014-11-27 21:56 ` Thomas Petazzoni
2014-11-27 21:56 ` [Buildroot] [PATCHv2 02/74] vsftpd: don't install manpages Thomas Petazzoni
` (72 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:56 UTC (permalink / raw)
To: buildroot
This commit changes the vsftpd package to use the
<pkg>_INSTALL_INIT_SYSV mechanism to install its init script, and
renames the init script in the Buildroot source tree to match how it's
named on the target.
Also, the init script is now installed unconditionally, as is done in
most packages.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/vsftpd/{vsftpd-init => S70vsftpd} | 0
package/vsftpd/vsftpd.mk | 7 ++++---
2 files changed, 4 insertions(+), 3 deletions(-)
rename package/vsftpd/{vsftpd-init => S70vsftpd} (100%)
diff --git a/package/vsftpd/vsftpd-init b/package/vsftpd/S70vsftpd
similarity index 100%
rename from package/vsftpd/vsftpd-init
rename to package/vsftpd/S70vsftpd
diff --git a/package/vsftpd/vsftpd.mk b/package/vsftpd/vsftpd.mk
index cab5afb..1c468ed 100644
--- a/package/vsftpd/vsftpd.mk
+++ b/package/vsftpd/vsftpd.mk
@@ -43,15 +43,16 @@ define VSFTPD_BUILD_CMDS
LDFLAGS="$(TARGET_LDFLAGS)" LIBS="$(VSFTPD_LIBS)" -C $(@D)
endef
+define VSFTPD_INSTALL_INIT_SYSV
+ $(INSTALL) -D -m 755 package/vsftpd/S70vsftpd $(TARGET_DIR)/etc/init.d/S70vsftpd
+endef
+
define VSFTPD_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 755 $(@D)/vsftpd $(TARGET_DIR)/usr/sbin/vsftpd
$(INSTALL) -D -m 644 $(@D)/vsftpd.8 \
$(TARGET_DIR)/usr/share/man/man8/vsftpd.8
$(INSTALL) -D -m 644 $(@D)/vsftpd.conf.5 \
$(TARGET_DIR)/usr/share/man/man5/vsftpd.conf.5
- test -f $(TARGET_DIR)/etc/init.d/S70vsftpd || \
- $(INSTALL) -D -m 755 package/vsftpd/vsftpd-init \
- $(TARGET_DIR)/etc/init.d/S70vsftpd
test -f $(TARGET_DIR)/etc/vsftpd.conf || \
$(INSTALL) -D -m 644 $(@D)/vsftpd.conf \
$(TARGET_DIR)/etc/vsftpd.conf
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 02/74] vsftpd: don't install manpages
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
2014-11-27 21:56 ` [Buildroot] [PATCHv2 01/74] vsftpd: use <pkg>_INSTALL_INIT_SYSV and rename init script Thomas Petazzoni
@ 2014-11-27 21:56 ` Thomas Petazzoni
2014-11-27 21:56 ` [Buildroot] [PATCHv2 03/74] vsftpd: rename patches to the new naming convention Thomas Petazzoni
` (71 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:56 UTC (permalink / raw)
To: buildroot
Installing manpages to the target is quite useless, since we don't
support installing documentation on the target.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/vsftpd/vsftpd.mk | 4 ----
1 file changed, 4 deletions(-)
diff --git a/package/vsftpd/vsftpd.mk b/package/vsftpd/vsftpd.mk
index 1c468ed..b94328d 100644
--- a/package/vsftpd/vsftpd.mk
+++ b/package/vsftpd/vsftpd.mk
@@ -49,10 +49,6 @@ endef
define VSFTPD_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 755 $(@D)/vsftpd $(TARGET_DIR)/usr/sbin/vsftpd
- $(INSTALL) -D -m 644 $(@D)/vsftpd.8 \
- $(TARGET_DIR)/usr/share/man/man8/vsftpd.8
- $(INSTALL) -D -m 644 $(@D)/vsftpd.conf.5 \
- $(TARGET_DIR)/usr/share/man/man5/vsftpd.conf.5
test -f $(TARGET_DIR)/etc/vsftpd.conf || \
$(INSTALL) -D -m 644 $(@D)/vsftpd.conf \
$(TARGET_DIR)/etc/vsftpd.conf
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 03/74] vsftpd: rename patches to the new naming convention
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
2014-11-27 21:56 ` [Buildroot] [PATCHv2 01/74] vsftpd: use <pkg>_INSTALL_INIT_SYSV and rename init script Thomas Petazzoni
2014-11-27 21:56 ` [Buildroot] [PATCHv2 02/74] vsftpd: don't install manpages Thomas Petazzoni
@ 2014-11-27 21:56 ` Thomas Petazzoni
2014-11-27 21:56 ` [Buildroot] [PATCHv2 04/74] radvd: use <pkg>_INSTALL_INIT_SYSV Thomas Petazzoni
` (70 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:56 UTC (permalink / raw)
To: buildroot
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
.../{vsftpd-0001-utmpx-builddef.patch => 0001-utmpx-builddef.patch} | 0
...{vsftpd-dont-force-largefile.patch => 0002-dont-force-largefile.patch} | 0
2 files changed, 0 insertions(+), 0 deletions(-)
rename package/vsftpd/{vsftpd-0001-utmpx-builddef.patch => 0001-utmpx-builddef.patch} (100%)
rename package/vsftpd/{vsftpd-dont-force-largefile.patch => 0002-dont-force-largefile.patch} (100%)
diff --git a/package/vsftpd/vsftpd-0001-utmpx-builddef.patch b/package/vsftpd/0001-utmpx-builddef.patch
similarity index 100%
rename from package/vsftpd/vsftpd-0001-utmpx-builddef.patch
rename to package/vsftpd/0001-utmpx-builddef.patch
diff --git a/package/vsftpd/vsftpd-dont-force-largefile.patch b/package/vsftpd/0002-dont-force-largefile.patch
similarity index 100%
rename from package/vsftpd/vsftpd-dont-force-largefile.patch
rename to package/vsftpd/0002-dont-force-largefile.patch
--
2.1.0
^ permalink raw reply [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 04/74] radvd: use <pkg>_INSTALL_INIT_SYSV
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (2 preceding siblings ...)
2014-11-27 21:56 ` [Buildroot] [PATCHv2 03/74] vsftpd: rename patches to the new naming convention Thomas Petazzoni
@ 2014-11-27 21:56 ` Thomas Petazzoni
2014-11-27 21:56 ` [Buildroot] [PATCHv2 05/74] thttpd: use the <pkg>_INSTALL_INIT_SYSV mechanism Thomas Petazzoni
` (69 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:56 UTC (permalink / raw)
To: buildroot
This commit changes the radvd to use the <pkg>_INSTALL_INIT_SYSV
mechanism instead of using a post install target hook. We also use a
full destination path when calling $(INSTALL).
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/radvd/radvd.mk | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/package/radvd/radvd.mk b/package/radvd/radvd.mk
index e0d4f69..e65d74a 100644
--- a/package/radvd/radvd.mk
+++ b/package/radvd/radvd.mk
@@ -12,10 +12,8 @@ RADVD_CONF_ENV = ac_cv_prog_cc_c99='-std=gnu99'
# For radvd-01-drop-check.patch & radvd-02-drop-stack-protector.patch
RADVD_AUTORECONF = YES
-define RADVD_INSTALL_INITSCRIPT
- $(INSTALL) -m 0755 package/radvd/S50radvd $(TARGET_DIR)/etc/init.d
+define RADVD_INSTALL_INIT_SYSV
+ $(INSTALL) -D -m 0755 package/radvd/S50radvd $(TARGET_DIR)/etc/init.d/S50radvd
endef
-RADVD_POST_INSTALL_TARGET_HOOKS += RADVD_INSTALL_INITSCRIPT
-
$(eval $(autotools-package))
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 05/74] thttpd: use the <pkg>_INSTALL_INIT_SYSV mechanism
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (3 preceding siblings ...)
2014-11-27 21:56 ` [Buildroot] [PATCHv2 04/74] radvd: use <pkg>_INSTALL_INIT_SYSV Thomas Petazzoni
@ 2014-11-27 21:56 ` Thomas Petazzoni
2014-11-27 21:56 ` [Buildroot] [PATCHv2 06/74] busybox: use " Thomas Petazzoni
` (68 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:56 UTC (permalink / raw)
To: buildroot
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/thttpd/thttpd.mk | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/package/thttpd/thttpd.mk b/package/thttpd/thttpd.mk
index 70a90fd..1a028c8 100644
--- a/package/thttpd/thttpd.mk
+++ b/package/thttpd/thttpd.mk
@@ -31,8 +31,6 @@ define THTTPD_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 0755 $(@D)/scripts/thttpd_wrapper $(TARGET_DIR)/usr/sbin/thttpd_wrapper
$(SED) 's:/usr/local/sbin:/usr/sbin:g' -e \
's:/usr/local/www:/var/www:g' $(TARGET_DIR)/usr/sbin/thttpd_wrapper
- $(INSTALL) -D -m 0755 $(@D)/scripts/thttpd.sh $(TARGET_DIR)/etc/init.d/S90thttpd
- $(SED) 's:/usr/local/sbin:/usr/sbin:g' $(TARGET_DIR)/etc/init.d/S90thttpd
$(INSTALL) -d $(TARGET_DIR)/var/www/data
$(INSTALL) -d $(TARGET_DIR)/var/www/logs
echo "dir=/var/www/data" > $(TARGET_DIR)/var/www/thttpd_config
@@ -41,4 +39,9 @@ define THTTPD_INSTALL_TARGET_CMDS
echo "pidfile=/var/run/thttpd.pid" >> $(TARGET_DIR)/var/www/thttpd_config
endef
+define THTTPD_INSTALL_INIT_SYSV
+ $(INSTALL) -D -m 0755 $(@D)/scripts/thttpd.sh $(TARGET_DIR)/etc/init.d/S90thttpd
+ $(SED) 's:/usr/local/sbin:/usr/sbin:g' $(TARGET_DIR)/etc/init.d/S90thttpd
+endef
+
$(eval $(autotools-package))
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 06/74] busybox: use <pkg>_INSTALL_INIT_SYSV mechanism
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (4 preceding siblings ...)
2014-11-27 21:56 ` [Buildroot] [PATCHv2 05/74] thttpd: use the <pkg>_INSTALL_INIT_SYSV mechanism Thomas Petazzoni
@ 2014-11-27 21:56 ` Thomas Petazzoni
2014-11-27 21:56 ` [Buildroot] [PATCHv2 07/74] portmap: " Thomas Petazzoni
` (67 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:56 UTC (permalink / raw)
To: buildroot
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/busybox/busybox.mk | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/package/busybox/busybox.mk b/package/busybox/busybox.mk
index f0fa851..eb2f3f1 100644
--- a/package/busybox/busybox.mk
+++ b/package/busybox/busybox.mk
@@ -218,8 +218,11 @@ define BUSYBOX_INSTALL_TARGET_CMDS
$(INSTALL) -m 0755 -D package/busybox/udhcpc.script \
$(TARGET_DIR)/usr/share/udhcpc/default.script; \
fi
- $(BUSYBOX_INSTALL_MDEV_SCRIPT)
$(BUSYBOX_INSTALL_MDEV_CONF)
+endef
+
+define BUSYBOX_INSTALL_INIT_SYSV
+ $(BUSYBOX_INSTALL_MDEV_SCRIPT)
$(BUSYBOX_INSTALL_LOGGING_SCRIPT)
$(BUSYBOX_INSTALL_WATCHDOG_SCRIPT)
endef
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 07/74] portmap: use <pkg>_INSTALL_INIT_SYSV mechanism
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (5 preceding siblings ...)
2014-11-27 21:56 ` [Buildroot] [PATCHv2 06/74] busybox: use " Thomas Petazzoni
@ 2014-11-27 21:56 ` Thomas Petazzoni
2014-11-27 21:56 ` [Buildroot] [PATCHv2 08/74] portmap: don't install manpages Thomas Petazzoni
` (66 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:56 UTC (permalink / raw)
To: buildroot
We also switch to using a full destination path as the second argument
of $(INSTALL).
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/portmap/portmap.mk | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/package/portmap/portmap.mk b/package/portmap/portmap.mk
index 0189597..dd60809 100644
--- a/package/portmap/portmap.mk
+++ b/package/portmap/portmap.mk
@@ -30,8 +30,10 @@ define PORTMAP_INSTALL_TARGET_CMDS
$(TARGET_DIR)/usr/share/man/man8/pmap_dump.8
$(INSTALL) -D $(@D)/pmap_set.8 \
$(TARGET_DIR)/usr/share/man/man8/pmap_set.8
- $(INSTALL) -m 0755 package/portmap/S13portmap \
- $(TARGET_DIR)/etc/init.d
+endef
+
+define PORTMAP_INSTALL_INIT_SYSV
+ $(INSTALL) -m 0755 package/portmap/S13portmap $(TARGET_DIR)/etc/init.d/S13portmap
endef
$(eval $(generic-package))
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 08/74] portmap: don't install manpages
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (6 preceding siblings ...)
2014-11-27 21:56 ` [Buildroot] [PATCHv2 07/74] portmap: " Thomas Petazzoni
@ 2014-11-27 21:56 ` Thomas Petazzoni
2014-11-27 21:56 ` [Buildroot] [PATCHv2 09/74] portmap: improve installation of binaries Thomas Petazzoni
` (65 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:56 UTC (permalink / raw)
To: buildroot
We no longer support having documentation on the target, so there's no
point in carrying code to install man pages.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/portmap/portmap.mk | 6 ------
1 file changed, 6 deletions(-)
diff --git a/package/portmap/portmap.mk b/package/portmap/portmap.mk
index dd60809..d5d43bf 100644
--- a/package/portmap/portmap.mk
+++ b/package/portmap/portmap.mk
@@ -24,12 +24,6 @@ define PORTMAP_INSTALL_TARGET_CMDS
for sbin in $(PORTMAP_SBINS); do \
$(INSTALL) -D $(@D)/$$sbin $(TARGET_DIR)/sbin/$$sbin; \
done
- $(INSTALL) -D $(@D)/portmap.man \
- $(TARGET_DIR)/usr/share/man/man8/portmap.8
- $(INSTALL) -D $(@D)/pmap_dump.8 \
- $(TARGET_DIR)/usr/share/man/man8/pmap_dump.8
- $(INSTALL) -D $(@D)/pmap_set.8 \
- $(TARGET_DIR)/usr/share/man/man8/pmap_set.8
endef
define PORTMAP_INSTALL_INIT_SYSV
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 09/74] portmap: improve installation of binaries
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (7 preceding siblings ...)
2014-11-27 21:56 ` [Buildroot] [PATCHv2 08/74] portmap: don't install manpages Thomas Petazzoni
@ 2014-11-27 21:56 ` Thomas Petazzoni
2014-11-27 21:56 ` [Buildroot] [PATCHv2 10/74] stunnel: use the <pkg>_INSTALL_INIT_SYSV mechanism Thomas Petazzoni
` (64 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:56 UTC (permalink / raw)
To: buildroot
This commit explicits the permissions with which executables are
installed, and also makes sure that the build is aborted is one of the
binary cannot be installed, instead of silently ignoring the error.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/portmap/portmap.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/portmap/portmap.mk b/package/portmap/portmap.mk
index d5d43bf..65ee551 100644
--- a/package/portmap/portmap.mk
+++ b/package/portmap/portmap.mk
@@ -22,7 +22,7 @@ endef
define PORTMAP_INSTALL_TARGET_CMDS
for sbin in $(PORTMAP_SBINS); do \
- $(INSTALL) -D $(@D)/$$sbin $(TARGET_DIR)/sbin/$$sbin; \
+ $(INSTALL) -D -m 0755 $(@D)/$$sbin $(TARGET_DIR)/sbin/$$sbin || exit 1; \
done
endef
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 10/74] stunnel: use the <pkg>_INSTALL_INIT_SYSV mechanism
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (8 preceding siblings ...)
2014-11-27 21:56 ` [Buildroot] [PATCHv2 09/74] portmap: improve installation of binaries Thomas Petazzoni
@ 2014-11-27 21:56 ` Thomas Petazzoni
2014-11-27 21:56 ` [Buildroot] [PATCHv2 11/74] gdk-pixbuf: use " Thomas Petazzoni
` (63 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:56 UTC (permalink / raw)
To: buildroot
Since the existing STUNNEL_INSTALL_CONF_SCRIPT hook no longer installs
the init script, we rename it to STUNNEL_INSTALL_CONF.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/stunnel/stunnel.mk | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/package/stunnel/stunnel.mk b/package/stunnel/stunnel.mk
index dc56261..ac2963e 100644
--- a/package/stunnel/stunnel.mk
+++ b/package/stunnel/stunnel.mk
@@ -18,14 +18,17 @@ else
STUNNEL_CONF_OPTS += --disable-systemd
endif
-define STUNNEL_INSTALL_CONF_SCRIPT
- $(INSTALL) -m 0755 -D package/stunnel/S50stunnel $(TARGET_DIR)/etc/init.d/S50stunnel
+define STUNNEL_INSTALL_CONF
[ -f $(TARGET_DIR)/etc/stunnel/stunnel.conf ] || \
$(INSTALL) -m 0644 -D $(@D)/tools/stunnel.conf \
$(TARGET_DIR)/etc/stunnel/stunnel.conf
rm -f $(TARGET_DIR)/etc/stunnel/stunnel.conf-sample
endef
-STUNNEL_POST_INSTALL_TARGET_HOOKS += STUNNEL_INSTALL_CONF_SCRIPT
+STUNNEL_POST_INSTALL_TARGET_HOOKS += STUNNEL_INSTALL_CONF
+
+define STUNNEL_INSTALL_INIT_SYSV
+ $(INSTALL) -m 0755 -D package/stunnel/S50stunnel $(TARGET_DIR)/etc/init.d/S50stunnel
+endef
$(eval $(autotools-package))
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 11/74] gdk-pixbuf: use <pkg>_INSTALL_INIT_SYSV mechanism
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (9 preceding siblings ...)
2014-11-27 21:56 ` [Buildroot] [PATCHv2 10/74] stunnel: use the <pkg>_INSTALL_INIT_SYSV mechanism Thomas Petazzoni
@ 2014-11-27 21:56 ` Thomas Petazzoni
2014-11-27 21:56 ` [Buildroot] [PATCHv2 12/74] proftpd: " Thomas Petazzoni
` (62 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:56 UTC (permalink / raw)
To: buildroot
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/gdk-pixbuf/gdk-pixbuf.mk | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/package/gdk-pixbuf/gdk-pixbuf.mk b/package/gdk-pixbuf/gdk-pixbuf.mk
index 61e7ae9..0977d92 100644
--- a/package/gdk-pixbuf/gdk-pixbuf.mk
+++ b/package/gdk-pixbuf/gdk-pixbuf.mk
@@ -45,13 +45,11 @@ GDK_PIXBUF_DEPENDENCIES += \
$(if $(BR2_ENABLE_LOCALE),,libiconv) \
host-pkgconf libglib2
-define GDK_PIXBUF_POST_INSTALL_TWEAKS
+define GDK_PIXBUF_INSTALL_INIT_SYSV
$(INSTALL) -m 755 -D package/gdk-pixbuf/S26gdk-pixbuf \
$(TARGET_DIR)/etc/init.d/S26gdk-pixbuf
endef
-GDK_PIXBUF_POST_INSTALL_TARGET_HOOKS += GDK_PIXBUF_POST_INSTALL_TWEAKS
-
$(eval $(autotools-package))
HOST_GDK_PIXBUF_CONF_OPTS = \
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 12/74] proftpd: use <pkg>_INSTALL_INIT_SYSV mechanism
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (10 preceding siblings ...)
2014-11-27 21:56 ` [Buildroot] [PATCHv2 11/74] gdk-pixbuf: use " Thomas Petazzoni
@ 2014-11-27 21:56 ` Thomas Petazzoni
2014-11-27 21:56 ` [Buildroot] [PATCHv2 13/74] samba: " Thomas Petazzoni
` (61 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:56 UTC (permalink / raw)
To: buildroot
Also use a complete destination path for the $(INSTALL) command.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/proftpd/proftpd.mk | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/package/proftpd/proftpd.mk b/package/proftpd/proftpd.mk
index ce735bd..65dd84e 100644
--- a/package/proftpd/proftpd.mk
+++ b/package/proftpd/proftpd.mk
@@ -52,7 +52,10 @@ define PROFTPD_INSTALL_TARGET_CMDS
$(INSTALL) -m 0644 -D $(@D)/sample-configurations/basic.conf $(TARGET_DIR)/etc/proftpd.conf; \
$(if $(BR2_INET_IPV6),,$(SED) 's/^UseIPv6/# UseIPv6/' $(TARGET_DIR)/etc/proftpd.conf;) \
fi
- $(INSTALL) -m 0755 package/proftpd/S50proftpd $(TARGET_DIR)/etc/init.d
+endef
+
+define PROFTPD_INSTALL_INIT_SYSV
+ $(INSTALL) -m 0755 package/proftpd/S50proftpd $(TARGET_DIR)/etc/init.d/S50proftpd
endef
$(eval $(autotools-package))
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 13/74] samba: use <pkg>_INSTALL_INIT_SYSV mechanism
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (11 preceding siblings ...)
2014-11-27 21:56 ` [Buildroot] [PATCHv2 12/74] proftpd: " Thomas Petazzoni
@ 2014-11-27 21:56 ` Thomas Petazzoni
2014-11-27 21:56 ` [Buildroot] [PATCHv2 14/74] input-event-daemon: " Thomas Petazzoni
` (60 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:56 UTC (permalink / raw)
To: buildroot
Also makes the installation init script unconditional.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/samba/samba.mk | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/package/samba/samba.mk b/package/samba/samba.mk
index ec8e6ec..92bbe4e 100644
--- a/package/samba/samba.mk
+++ b/package/samba/samba.mk
@@ -176,17 +176,17 @@ ifeq ($(BR2_PACKAGE_SAMBA_SWAT),y)
SAMBA_POST_INSTALL_TARGET_HOOKS += SAMBA_REMOVE_SWAT_DOCUMENTATION
endif
-define SAMBA_INSTALL_INITSCRIPTS_CONFIG
- # install start/stop script
- @if [ ! -f $(TARGET_DIR)/etc/init.d/S91smb ]; then \
- $(INSTALL) -m 0755 -D package/samba/S91smb $(TARGET_DIR)/etc/init.d/S91smb; \
- fi
+define SAMBA_INSTALL_CONFIG
# install config
@if [ ! -f $(TARGET_DIR)/etc/samba/smb.conf ]; then \
$(INSTALL) -m 0644 -D package/samba/simple.conf $(TARGET_DIR)/etc/samba/smb.conf; \
fi
endef
-SAMBA_POST_INSTALL_TARGET_HOOKS += SAMBA_INSTALL_INITSCRIPTS_CONFIG
+SAMBA_POST_INSTALL_TARGET_HOOKS += SAMBA_INSTALL_CONFIG
+
+define SAMBA_INSTALL_INIT_SYSV
+ $(INSTALL) -m 0755 -D package/samba/S91smb $(TARGET_DIR)/etc/init.d/S91smb
+endef
$(eval $(autotools-package))
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 14/74] input-event-daemon: use <pkg>_INSTALL_INIT_SYSV mechanism
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (12 preceding siblings ...)
2014-11-27 21:56 ` [Buildroot] [PATCHv2 13/74] samba: " Thomas Petazzoni
@ 2014-11-27 21:56 ` Thomas Petazzoni
2014-11-27 21:56 ` [Buildroot] [PATCHv2 15/74] ifplugd: " Thomas Petazzoni
` (59 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:56 UTC (permalink / raw)
To: buildroot
Also makes the installation init script unconditional.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/input-event-daemon/input-event-daemon.mk | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/package/input-event-daemon/input-event-daemon.mk b/package/input-event-daemon/input-event-daemon.mk
index 534fe90..0bafdc4 100644
--- a/package/input-event-daemon/input-event-daemon.mk
+++ b/package/input-event-daemon/input-event-daemon.mk
@@ -21,9 +21,11 @@ define INPUT_EVENT_DAEMON_INSTALL_TARGET_CMDS
[ -f $(TARGET_DIR)/etc/input-event-daemon.conf ] || \
$(INSTALL) -m 644 -D $(@D)/docs/sample.conf \
$(TARGET_DIR)/etc/input-event-daemon.conf
- [ -f $(TARGET_DIR)/etc/init.d/S99input-event-daemon ] || \
- $(INSTALL) -m 0755 -D package/input-event-daemon/S99input-event-daemon \
- $(TARGET_DIR)/etc/init.d/S99input-event-daemon
+endef
+
+define INPUT_EVENT_DAEMON_INSTALL_INIT_SYSV
+ $(INSTALL) -m 0755 -D package/input-event-daemon/S99input-event-daemon \
+ $(TARGET_DIR)/etc/init.d/S99input-event-daemon
endef
$(eval $(generic-package))
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 15/74] ifplugd: use <pkg>_INSTALL_INIT_SYSV mechanism
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (13 preceding siblings ...)
2014-11-27 21:56 ` [Buildroot] [PATCHv2 14/74] input-event-daemon: " Thomas Petazzoni
@ 2014-11-27 21:56 ` Thomas Petazzoni
2014-11-27 21:56 ` [Buildroot] [PATCHv2 16/74] nfs-utils: " Thomas Petazzoni
` (58 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:56 UTC (permalink / raw)
To: buildroot
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/ifplugd/ifplugd.mk | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/package/ifplugd/ifplugd.mk b/package/ifplugd/ifplugd.mk
index 398cff4..3d0736a 100644
--- a/package/ifplugd/ifplugd.mk
+++ b/package/ifplugd/ifplugd.mk
@@ -29,12 +29,15 @@ define IFPLUGD_INSTALL_FIXUP
$(INSTALL) -D -m 0755 $(@D)/conf/ifplugd.action \
$(TARGET_DIR)/etc/ifplugd/ifplugd.action ; \
fi
+endef
+
+IFPLUGD_POST_INSTALL_TARGET_HOOKS += IFPLUGD_INSTALL_FIXUP
+
+define IFPLUGD_INSTALL_INIT_SYSV
$(INSTALL) -D -m 0755 $(@D)/conf/ifplugd.init \
$(TARGET_DIR)/etc/init.d/S45ifplugd
# don't use bash for init script
$(SED) 's^/bin/bash^/bin/sh^g' $(TARGET_DIR)/etc/init.d/S45ifplugd
endef
-IFPLUGD_POST_INSTALL_TARGET_HOOKS += IFPLUGD_INSTALL_FIXUP
-
$(eval $(autotools-package))
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 16/74] nfs-utils: use <pkg>_INSTALL_INIT_SYSV mechanism
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (14 preceding siblings ...)
2014-11-27 21:56 ` [Buildroot] [PATCHv2 15/74] ifplugd: " Thomas Petazzoni
@ 2014-11-27 21:56 ` Thomas Petazzoni
2014-11-27 21:56 ` [Buildroot] [PATCHv2 17/74] netatalk: " Thomas Petazzoni
` (57 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:56 UTC (permalink / raw)
To: buildroot
Also move back the NFS_UTILS_INSTALL_FIXUP hook registration right
after the hook definition.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/nfs-utils/nfs-utils.mk | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/package/nfs-utils/nfs-utils.mk b/package/nfs-utils/nfs-utils.mk
index 522e790..aef051c 100644
--- a/package/nfs-utils/nfs-utils.mk
+++ b/package/nfs-utils/nfs-utils.mk
@@ -35,17 +35,20 @@ NFS_UTILS_CONF_OPTS += --disable-tirpc
endif
define NFS_UTILS_INSTALL_FIXUP
+ rm -f $(NFS_UTILS_TARGETS_)
+endef
+
+NFS_UTILS_POST_INSTALL_TARGET_HOOKS += NFS_UTILS_INSTALL_FIXUP
+
+define NFS_UTILS_INSTALL_INIT_SYSV
$(INSTALL) -m 0755 package/nfs-utils/S60nfs \
$(TARGET_DIR)/etc/init.d/S60nfs
- rm -f $(NFS_UTILS_TARGETS_)
endef
define NFS_UTILS_REMOVE_NFSIOSTAT
rm -f $(TARGET_DIR)/usr/sbin/nfsiostat
endef
-NFS_UTILS_POST_INSTALL_TARGET_HOOKS += NFS_UTILS_INSTALL_FIXUP
-
# nfsiostat is interpreted python, so remove it unless it's in the target
NFS_UTILS_POST_INSTALL_TARGET_HOOKS += $(if $(BR2_PACKAGE_PYTHON),,NFS_UTILS_REMOVE_NFSIOSTAT)
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 17/74] netatalk: use <pkg>_INSTALL_INIT_SYSV mechanism
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (15 preceding siblings ...)
2014-11-27 21:56 ` [Buildroot] [PATCHv2 16/74] nfs-utils: " Thomas Petazzoni
@ 2014-11-27 21:56 ` Thomas Petazzoni
2014-11-28 5:20 ` Baruch Siach
2014-11-27 21:56 ` [Buildroot] [PATCHv2 18/74] mongoose: " Thomas Petazzoni
` (56 subsequent siblings)
73 siblings, 1 reply; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:56 UTC (permalink / raw)
To: buildroot
Also makes the installation init script unconditional.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/netatalk/netatalk.mk | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/package/netatalk/netatalk.mk b/package/netatalk/netatalk.mk
index 5ea55c2..6c1b640 100644
--- a/package/netatalk/netatalk.mk
+++ b/package/netatalk/netatalk.mk
@@ -50,12 +50,9 @@ else
NETATALK_CONF_OPTS += --disable-cups
endif
-define NETATALK_INSTALL_EXTRA_FILES
- [ -f $(TARGET_DIR)/etc/init.d/S50netatalk ] || \
- $(INSTALL) -m 0755 -D package/netatalk/S50netatalk \
- $(TARGET_DIR)/etc/init.d/S50netatalk
+define NETATALK_INSTALL_INIT_SYSV
+ $(INSTALL) -m 0755 -D package/netatalk/S50netatalk \
+ $(TARGET_DIR)/etc/init.d/S50netatalk
endef
-NETATALK_POST_INSTALL_TARGET_HOOKS += NETATALK_INSTALL_EXTRA_FILES
-
$(eval $(autotools-package))
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 17/74] netatalk: use <pkg>_INSTALL_INIT_SYSV mechanism
2014-11-27 21:56 ` [Buildroot] [PATCHv2 17/74] netatalk: " Thomas Petazzoni
@ 2014-11-28 5:20 ` Baruch Siach
0 siblings, 0 replies; 78+ messages in thread
From: Baruch Siach @ 2014-11-28 5:20 UTC (permalink / raw)
To: buildroot
Hi Thomas,
On Thu, Nov 27, 2014 at 10:56:35PM +0100, Thomas Petazzoni wrote:
> Also makes the installation init script unconditional.
Maybe "... makes the init script installation unconditional".
baruch
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> ---
> package/netatalk/netatalk.mk | 9 +++------
> 1 file changed, 3 insertions(+), 6 deletions(-)
>
> diff --git a/package/netatalk/netatalk.mk b/package/netatalk/netatalk.mk
> index 5ea55c2..6c1b640 100644
> --- a/package/netatalk/netatalk.mk
> +++ b/package/netatalk/netatalk.mk
> @@ -50,12 +50,9 @@ else
> NETATALK_CONF_OPTS += --disable-cups
> endif
>
> -define NETATALK_INSTALL_EXTRA_FILES
> - [ -f $(TARGET_DIR)/etc/init.d/S50netatalk ] || \
> - $(INSTALL) -m 0755 -D package/netatalk/S50netatalk \
> - $(TARGET_DIR)/etc/init.d/S50netatalk
> +define NETATALK_INSTALL_INIT_SYSV
> + $(INSTALL) -m 0755 -D package/netatalk/S50netatalk \
> + $(TARGET_DIR)/etc/init.d/S50netatalk
> endef
>
> -NETATALK_POST_INSTALL_TARGET_HOOKS += NETATALK_INSTALL_EXTRA_FILES
> -
> $(eval $(autotools-package))
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
^ permalink raw reply [flat|nested] 78+ messages in thread
* [Buildroot] [PATCHv2 18/74] mongoose: use <pkg>_INSTALL_INIT_SYSV mechanism
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (16 preceding siblings ...)
2014-11-27 21:56 ` [Buildroot] [PATCHv2 17/74] netatalk: " Thomas Petazzoni
@ 2014-11-27 21:56 ` Thomas Petazzoni
2014-11-27 21:56 ` [Buildroot] [PATCHv2 19/74] gpsd: " Thomas Petazzoni
` (55 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:56 UTC (permalink / raw)
To: buildroot
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/mongoose/mongoose.mk | 3 +++
1 file changed, 3 insertions(+)
diff --git a/package/mongoose/mongoose.mk b/package/mongoose/mongoose.mk
index 35e4b43..7a5d356 100644
--- a/package/mongoose/mongoose.mk
+++ b/package/mongoose/mongoose.mk
@@ -29,6 +29,9 @@ endef
define MONGOOSE_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 755 $(@D)/examples/web_server/web_server \
$(TARGET_DIR)/usr/sbin/mongoose
+endef
+
+define MONGOOSE_INSTALL_INIT_SYSV
$(INSTALL) -D -m 755 package/mongoose/S85mongoose \
$(TARGET_DIR)/etc/init.d/S85mongoose
endef
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 19/74] gpsd: use <pkg>_INSTALL_INIT_SYSV mechanism
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (17 preceding siblings ...)
2014-11-27 21:56 ` [Buildroot] [PATCHv2 18/74] mongoose: " Thomas Petazzoni
@ 2014-11-27 21:56 ` Thomas Petazzoni
2014-11-28 5:35 ` Baruch Siach
2014-11-27 21:56 ` [Buildroot] [PATCHv2 20/74] olsr: " Thomas Petazzoni
` (54 subsequent siblings)
73 siblings, 1 reply; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:56 UTC (permalink / raw)
To: buildroot
Also makes the installation init script unconditional.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/gpsd/gpsd.mk | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/package/gpsd/gpsd.mk b/package/gpsd/gpsd.mk
index 7dc27e8..5092b38 100644
--- a/package/gpsd/gpsd.mk
+++ b/package/gpsd/gpsd.mk
@@ -206,10 +206,11 @@ define GPSD_INSTALL_TARGET_CMDS
$(SCONS) \
$(GPSD_SCONS_OPTS) \
install)
- if [ ! -f $(TARGET_DIR)/etc/init.d/S50gpsd ]; then \
- $(INSTALL) -m 0755 -D package/gpsd/S50gpsd $(TARGET_DIR)/etc/init.d/S50gpsd; \
- $(SED) 's,^DEVICES=.*,DEVICES=$(BR2_PACKAGE_GPSD_DEVICES),' $(TARGET_DIR)/etc/init.d/S50gpsd; \
- fi
+endef
+
+define GPSD_INSTALL_INIT_SYSV
+ $(INSTALL) -m 0755 -D package/gpsd/S50gpsd $(TARGET_DIR)/etc/init.d/S50gpsd
+ $(SED) 's,^DEVICES=.*,DEVICES=$(BR2_PACKAGE_GPSD_DEVICES),' $(TARGET_DIR)/etc/init.d/S50gpsd
endef
define GPSD_INSTALL_STAGING_CMDS
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 19/74] gpsd: use <pkg>_INSTALL_INIT_SYSV mechanism
2014-11-27 21:56 ` [Buildroot] [PATCHv2 19/74] gpsd: " Thomas Petazzoni
@ 2014-11-28 5:35 ` Baruch Siach
0 siblings, 0 replies; 78+ messages in thread
From: Baruch Siach @ 2014-11-28 5:35 UTC (permalink / raw)
To: buildroot
Hi Thomas,
On Thu, Nov 27, 2014 at 10:56:37PM +0100, Thomas Petazzoni wrote:
> Also makes the installation init script unconditional.
Same here.
baruch
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> ---
> package/gpsd/gpsd.mk | 9 +++++----
> 1 file changed, 5 insertions(+), 4 deletions(-)
>
> diff --git a/package/gpsd/gpsd.mk b/package/gpsd/gpsd.mk
> index 7dc27e8..5092b38 100644
> --- a/package/gpsd/gpsd.mk
> +++ b/package/gpsd/gpsd.mk
> @@ -206,10 +206,11 @@ define GPSD_INSTALL_TARGET_CMDS
> $(SCONS) \
> $(GPSD_SCONS_OPTS) \
> install)
> - if [ ! -f $(TARGET_DIR)/etc/init.d/S50gpsd ]; then \
> - $(INSTALL) -m 0755 -D package/gpsd/S50gpsd $(TARGET_DIR)/etc/init.d/S50gpsd; \
> - $(SED) 's,^DEVICES=.*,DEVICES=$(BR2_PACKAGE_GPSD_DEVICES),' $(TARGET_DIR)/etc/init.d/S50gpsd; \
> - fi
> +endef
> +
> +define GPSD_INSTALL_INIT_SYSV
> + $(INSTALL) -m 0755 -D package/gpsd/S50gpsd $(TARGET_DIR)/etc/init.d/S50gpsd
> + $(SED) 's,^DEVICES=.*,DEVICES=$(BR2_PACKAGE_GPSD_DEVICES),' $(TARGET_DIR)/etc/init.d/S50gpsd
> endef
>
> define GPSD_INSTALL_STAGING_CMDS
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
^ permalink raw reply [flat|nested] 78+ messages in thread
* [Buildroot] [PATCHv2 20/74] olsr: use <pkg>_INSTALL_INIT_SYSV mechanism
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (18 preceding siblings ...)
2014-11-27 21:56 ` [Buildroot] [PATCHv2 19/74] gpsd: " Thomas Petazzoni
@ 2014-11-27 21:56 ` Thomas Petazzoni
2014-11-27 21:56 ` [Buildroot] [PATCHv2 21/74] pango: " Thomas Petazzoni
` (53 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:56 UTC (permalink / raw)
To: buildroot
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/olsr/olsr.mk | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/package/olsr/olsr.mk b/package/olsr/olsr.mk
index 1051d18..539386d 100644
--- a/package/olsr/olsr.mk
+++ b/package/olsr/olsr.mk
@@ -31,9 +31,12 @@ define OLSR_INSTALL_TARGET_CMDS
LDCONFIG=/bin/true DESTDIR=$(TARGET_DIR) \
prefix="/usr" install ; \
done
- $(INSTALL) -D -m 0755 package/olsr/S50olsr $(TARGET_DIR)/etc/init.d/S50olsr
test -r $(TARGET_DIR)/etc/olsrd.conf || \
$(INSTALL) -D -m 0644 $(@D)/files/olsrd.conf.default.lq $(TARGET_DIR)/etc/olsrd.conf
endef
+define OLSR_INSTALL_INIT_SYSV
+ $(INSTALL) -D -m 0755 package/olsr/S50olsr $(TARGET_DIR)/etc/init.d/S50olsr
+endef
+
$(eval $(generic-package))
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 21/74] pango: use <pkg>_INSTALL_INIT_SYSV mechanism
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (19 preceding siblings ...)
2014-11-27 21:56 ` [Buildroot] [PATCHv2 20/74] olsr: " Thomas Petazzoni
@ 2014-11-27 21:56 ` Thomas Petazzoni
2014-11-27 21:56 ` [Buildroot] [PATCHv2 22/74] xapp_xdm: " Thomas Petazzoni
` (52 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:56 UTC (permalink / raw)
To: buildroot
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/pango/pango.mk | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/package/pango/pango.mk b/package/pango/pango.mk
index 6e340f4..63cfae3 100644
--- a/package/pango/pango.mk
+++ b/package/pango/pango.mk
@@ -61,11 +61,9 @@ ifeq ($(BR2_PACKAGE_XLIB_LIBXFT)$(BR2_PACKAGE_XLIB_LIBXRENDER),yy)
PANGO_CONF_OPTS += --with-xft
endif
-define PANGO_INSTALL_INITSCRIPT
+define PANGO_INSTALL_INIT_SYSV
$(INSTALL) -m 755 -D package/pango/S25pango \
$(TARGET_DIR)/etc/init.d/S25pango
endef
-PANGO_POST_INSTALL_TARGET_HOOKS += PANGO_INSTALL_INITSCRIPT
-
$(eval $(autotools-package))
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 22/74] xapp_xdm: use <pkg>_INSTALL_INIT_SYSV mechanism
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (20 preceding siblings ...)
2014-11-27 21:56 ` [Buildroot] [PATCHv2 21/74] pango: " Thomas Petazzoni
@ 2014-11-27 21:56 ` Thomas Petazzoni
2014-11-27 21:56 ` [Buildroot] [PATCHv2 23/74] tftpd: " Thomas Petazzoni
` (51 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:56 UTC (permalink / raw)
To: buildroot
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/x11r7/xapp_xdm/xapp_xdm.mk | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/package/x11r7/xapp_xdm/xapp_xdm.mk b/package/x11r7/xapp_xdm/xapp_xdm.mk
index 428f473..955dc1c 100644
--- a/package/x11r7/xapp_xdm/xapp_xdm.mk
+++ b/package/x11r7/xapp_xdm/xapp_xdm.mk
@@ -14,11 +14,9 @@ XAPP_XDM_DEPENDENCIES = xapp_sessreg xapp_xrdb xlib_libX11 xlib_libXaw xlib_libX
XAPP_XDM_CONF_OPTS = --with-utmp-file=/var/adm/utmpx \
--with-wtmp-file=/var/adm/wtmpx
-define XAPP_XDM_INSTALL_STARTUP_SCRIPT
+define XAPP_XDM_INSTALL_INIT_SYSV
$(INSTALL) -m 0755 -D package/x11r7/xapp_xdm/S99xdm \
$(TARGET_DIR)/etc/init.d/S99xdm
endef
-XAPP_XDM_POST_INSTALL_TARGET_HOOKS += XAPP_XDM_INSTALL_STARTUP_SCRIPT
-
$(eval $(autotools-package))
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 23/74] tftpd: use <pkg>_INSTALL_INIT_SYSV mechanism
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (21 preceding siblings ...)
2014-11-27 21:56 ` [Buildroot] [PATCHv2 22/74] xapp_xdm: " Thomas Petazzoni
@ 2014-11-27 21:56 ` Thomas Petazzoni
2014-11-27 21:56 ` [Buildroot] [PATCHv2 24/74] openvpn: " Thomas Petazzoni
` (50 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:56 UTC (permalink / raw)
To: buildroot
Also make sure we use a full path for the destination of the
$(INSTALL) command.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/tftpd/tftpd.mk | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/package/tftpd/tftpd.mk b/package/tftpd/tftpd.mk
index 816a25e..2f746d0 100644
--- a/package/tftpd/tftpd.mk
+++ b/package/tftpd/tftpd.mk
@@ -21,7 +21,10 @@ endif
define TFTPD_INSTALL_TARGET_CMDS
$(INSTALL) -D $(@D)/tftp/tftp $(TARGET_DIR)/usr/bin/tftp
$(INSTALL) -D $(@D)/tftpd/tftpd $(TARGET_DIR)/usr/sbin/tftpd
- $(INSTALL) -D package/tftpd/S80tftpd-hpa $(TARGET_DIR)/etc/init.d/
+endef
+
+define TFTPD_INSTALL_INIT_SYSV
+ $(INSTALL) -D package/tftpd/S80tftpd-hpa $(TARGET_DIR)/etc/init.d/S80tftpd-hpa
endef
$(eval $(autotools-package))
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 24/74] openvpn: use <pkg>_INSTALL_INIT_SYSV mechanism
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (22 preceding siblings ...)
2014-11-27 21:56 ` [Buildroot] [PATCHv2 23/74] tftpd: " Thomas Petazzoni
@ 2014-11-27 21:56 ` Thomas Petazzoni
2014-11-27 21:56 ` [Buildroot] [PATCHv2 25/74] tinyhttpd: " Thomas Petazzoni
` (49 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:56 UTC (permalink / raw)
To: buildroot
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/openvpn/openvpn.mk | 3 +++
1 file changed, 3 insertions(+)
diff --git a/package/openvpn/openvpn.mk b/package/openvpn/openvpn.mk
index e0dba35..68f7d97 100644
--- a/package/openvpn/openvpn.mk
+++ b/package/openvpn/openvpn.mk
@@ -50,6 +50,9 @@ endif
define OPENVPN_INSTALL_TARGET_CMDS
$(INSTALL) -m 755 $(@D)/src/openvpn/openvpn \
$(TARGET_DIR)/usr/sbin/openvpn
+endef
+
+define OPENVPN_INSTALL_INIT_SYSV
$(INSTALL) -m 755 -D package/openvpn/S60openvpn \
$(TARGET_DIR)/etc/init.d/S60openvpn
endef
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 25/74] tinyhttpd: use <pkg>_INSTALL_INIT_SYSV mechanism
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (23 preceding siblings ...)
2014-11-27 21:56 ` [Buildroot] [PATCHv2 24/74] openvpn: " Thomas Petazzoni
@ 2014-11-27 21:56 ` Thomas Petazzoni
2014-11-27 21:56 ` [Buildroot] [PATCHv2 26/74] at: " Thomas Petazzoni
` (48 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:56 UTC (permalink / raw)
To: buildroot
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/tinyhttpd/tinyhttpd.mk | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/package/tinyhttpd/tinyhttpd.mk b/package/tinyhttpd/tinyhttpd.mk
index ec47fd9..0934b71 100644
--- a/package/tinyhttpd/tinyhttpd.mk
+++ b/package/tinyhttpd/tinyhttpd.mk
@@ -16,9 +16,12 @@ endef
define TINYHTTPD_INSTALL_TARGET_CMDS
$(INSTALL) -m 0755 -D $(@D)/httpd $(TARGET_DIR)/usr/sbin/tinyhttpd
+ mkdir -p $(TARGET_DIR)/var/www
+endef
+
+define TINYHTTPD_INSTALL_INIT_SYSV
$(INSTALL) -m 0755 -D package/tinyhttpd/S85tinyhttpd \
$(TARGET_DIR)/etc/init.d/S85tinyhttpd
- mkdir -p $(TARGET_DIR)/var/www
endef
$(eval $(generic-package))
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 26/74] at: use <pkg>_INSTALL_INIT_SYSV mechanism
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (24 preceding siblings ...)
2014-11-27 21:56 ` [Buildroot] [PATCHv2 25/74] tinyhttpd: " Thomas Petazzoni
@ 2014-11-27 21:56 ` Thomas Petazzoni
2014-11-27 21:56 ` [Buildroot] [PATCHv2 27/74] mpd: " Thomas Petazzoni
` (47 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:56 UTC (permalink / raw)
To: buildroot
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/at/at.mk | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/package/at/at.mk b/package/at/at.mk
index 851a05b..1504e32 100644
--- a/package/at/at.mk
+++ b/package/at/at.mk
@@ -21,10 +21,8 @@ AT_CONF_OPTS = \
--with-daemon_groupname=root \
SENDMAIL=/usr/sbin/sendmail
-define AT_INSTALL_INITSCRIPT
+define AT_INSTALL_INIT_SYSV
$(INSTALL) -m 0755 -D package/at/S99at $(TARGET_DIR)/etc/init.d/S99at
endef
-AT_POST_INSTALL_TARGET_HOOKS += AT_INSTALL_INITSCRIPT
-
$(eval $(autotools-package))
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 27/74] mpd: use <pkg>_INSTALL_INIT_SYSV mechanism
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (25 preceding siblings ...)
2014-11-27 21:56 ` [Buildroot] [PATCHv2 26/74] at: " Thomas Petazzoni
@ 2014-11-27 21:56 ` Thomas Petazzoni
2014-11-27 21:56 ` [Buildroot] [PATCHv2 28/74] snowball-init: " Thomas Petazzoni
` (46 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:56 UTC (permalink / raw)
To: buildroot
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/mpd/mpd.mk | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/package/mpd/mpd.mk b/package/mpd/mpd.mk
index 1369847..b44285b 100644
--- a/package/mpd/mpd.mk
+++ b/package/mpd/mpd.mk
@@ -232,10 +232,13 @@ define MPD_INSTALL_EXTRA_FILES
$(INSTALL) -D package/mpd/mpd.conf \
$(TARGET_DIR)/etc/mpd.conf; \
fi
- $(INSTALL) -m 0755 -D package/mpd/S95mpd \
- $(TARGET_DIR)/etc/init.d/S95mpd
endef
MPD_POST_INSTALL_TARGET_HOOKS += MPD_INSTALL_EXTRA_FILES
+define MPD_INSTALL_INIT_SYSV
+ $(INSTALL) -m 0755 -D package/mpd/S95mpd \
+ $(TARGET_DIR)/etc/init.d/S95mpd
+endef
+
$(eval $(autotools-package))
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 28/74] snowball-init: use <pkg>_INSTALL_INIT_SYSV mechanism
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (26 preceding siblings ...)
2014-11-27 21:56 ` [Buildroot] [PATCHv2 27/74] mpd: " Thomas Petazzoni
@ 2014-11-27 21:56 ` Thomas Petazzoni
2014-11-27 21:56 ` [Buildroot] [PATCHv2 29/74] wipe: don't install man pages Thomas Petazzoni
` (45 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:56 UTC (permalink / raw)
To: buildroot
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/snowball-init/snowball-init.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/snowball-init/snowball-init.mk b/package/snowball-init/snowball-init.mk
index d71f347..40acdd6 100644
--- a/package/snowball-init/snowball-init.mk
+++ b/package/snowball-init/snowball-init.mk
@@ -9,7 +9,7 @@ SNOWBALL_INIT_SITE = https://github.com/igloocommunity/snowball-init
SNOWBALL_INIT_LICENSE = BSD-4c
SNOWBALL_INIT_LICENSE_FILES = debian/copyright
-define SNOWBALL_INIT_INSTALL_TARGET_CMDS
+define SNOWBALL_INIT_INSTALL_INIT_SYSV
$(INSTALL) -D -m 0755 $(@D)/snowball $(TARGET_DIR)/etc/init.d/S50snowball
endef
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 29/74] wipe: don't install man pages
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (27 preceding siblings ...)
2014-11-27 21:56 ` [Buildroot] [PATCHv2 28/74] snowball-init: " Thomas Petazzoni
@ 2014-11-27 21:56 ` Thomas Petazzoni
2014-11-27 21:56 ` [Buildroot] [PATCHv2 30/74] ndisc6: remove man page related code Thomas Petazzoni
` (44 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:56 UTC (permalink / raw)
To: buildroot
We don't support installing documentation on the target, so there's no
point in having explicit code to do so.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/wipe/wipe.mk | 1 -
1 file changed, 1 deletion(-)
diff --git a/package/wipe/wipe.mk b/package/wipe/wipe.mk
index 4deabab..ee4682c 100644
--- a/package/wipe/wipe.mk
+++ b/package/wipe/wipe.mk
@@ -13,7 +13,6 @@ WIPE_LICENSE_FILES = LICENSE
define WIPE_INSTALL_TARGET_CMDS
$(INSTALL) -D $(@D)/wipe $(TARGET_DIR)/usr/bin/wipe
- $(INSTALL) -D $(@D)/wipe.1 $(TARGET_DIR)/usr/share/man/man1/wipe.1
endef
$(eval $(autotools-package))
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 30/74] ndisc6: remove man page related code
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (28 preceding siblings ...)
2014-11-27 21:56 ` [Buildroot] [PATCHv2 29/74] wipe: don't install man pages Thomas Petazzoni
@ 2014-11-27 21:56 ` Thomas Petazzoni
2014-11-27 21:56 ` [Buildroot] [PATCHv2 31/74] tree: don't install man page Thomas Petazzoni
` (43 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:56 UTC (permalink / raw)
To: buildroot
The target-finalize target takes care of removing
$(TARGET_DIR)/usr/share/man, so there's no point in having package
specific code doing this.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/ndisc6/ndisc6.mk | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/package/ndisc6/ndisc6.mk b/package/ndisc6/ndisc6.mk
index b0e4caf..7235ebb 100644
--- a/package/ndisc6/ndisc6.mk
+++ b/package/ndisc6/ndisc6.mk
@@ -27,14 +27,9 @@ NDISC6_SBIN_$(BR2_PACKAGE_NDISC6_RDNSSD) += rdnssd
NDISC6_SBIN_$(BR2_PACKAGE_NDISC6_RLTRACEROUTE6) += rltraceroute6 tracert6
NDISC6_SBIN_$(BR2_PACKAGE_NDISC6_TCPTRACEROUTE6) += tcptraceroute6
-NDISC6_MAN1_ = $(addsuffix .1,$(NDISC6_BIN_))
-NDISC6_MAN8_ = $(addsuffix .8,$(NDISC6_SBIN_))
-
define NDISC6_REMOVE_UNNEEDED
rm -rf $(addprefix $(TARGET_DIR)/usr/bin/,$(NDISC6_BIN_)) \
- $(addprefix $(TARGET_DIR)/usr/sbin/,$(NDISC6_SBIN_)) \
- $(addprefix $(TARGET_DIR)/usr/share/man/man1/,$(NDISC6_MAN1_)) \
- $(addprefix $(TARGET_DIR)/usr/share/man/man8/,$(NDISC6_MAN8_))
+ $(addprefix $(TARGET_DIR)/usr/sbin/,$(NDISC6_SBIN_))
$(if $(BR2_PACKAGE_NDISC6_RDNSSD),,\
rm -rf $(TARGET_DIR)/etc/rdnssd $(TARGET_DIR)/var/run/rdnssd)
endef
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 31/74] tree: don't install man page
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (29 preceding siblings ...)
2014-11-27 21:56 ` [Buildroot] [PATCHv2 30/74] ndisc6: remove man page related code Thomas Petazzoni
@ 2014-11-27 21:56 ` Thomas Petazzoni
2014-11-27 21:56 ` [Buildroot] [PATCHv2 32/74] iostat: " Thomas Petazzoni
` (42 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:56 UTC (permalink / raw)
To: buildroot
We don't support installing documentation on the target, so there's no
point in having explicit code to do so.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/tree/tree.mk | 2 --
1 file changed, 2 deletions(-)
diff --git a/package/tree/tree.mk b/package/tree/tree.mk
index 922deb8..83ea472 100644
--- a/package/tree/tree.mk
+++ b/package/tree/tree.mk
@@ -16,8 +16,6 @@ endef
define TREE_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 0755 $(@D)/tree $(TARGET_DIR)/usr/bin/tree
- $(INSTALL) -D -m 0644 $(@D)/doc/tree.1 \
- $(TARGET_DIR)/usr/share/man/man1/tree.1
endef
$(eval $(generic-package))
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 32/74] iostat: don't install man page
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (30 preceding siblings ...)
2014-11-27 21:56 ` [Buildroot] [PATCHv2 31/74] tree: don't install man page Thomas Petazzoni
@ 2014-11-27 21:56 ` Thomas Petazzoni
2014-11-27 21:56 ` [Buildroot] [PATCHv2 33/74] iostat: remove legacy code Thomas Petazzoni
` (41 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:56 UTC (permalink / raw)
To: buildroot
We don't support installing documentation on the target, so there's no
point in having explicit code to do so.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/iostat/iostat.mk | 2 --
1 file changed, 2 deletions(-)
diff --git a/package/iostat/iostat.mk b/package/iostat/iostat.mk
index 8610f8f..2080e56 100644
--- a/package/iostat/iostat.mk
+++ b/package/iostat/iostat.mk
@@ -17,8 +17,6 @@ endef
define IOSTAT_INSTALL_TARGET_CMDS
$(INSTALL) -D $(IOSTAT_DIR)/iostat $(TARGET_DIR)/usr/bin/iostat
- $(INSTALL) -D $(IOSTAT_DIR)/iostat.8 \
- $(TARGET_DIR)/usr/share/man/man8/iostat.8
endef
$(eval $(generic-package))
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 33/74] iostat: remove legacy code
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (31 preceding siblings ...)
2014-11-27 21:56 ` [Buildroot] [PATCHv2 32/74] iostat: " Thomas Petazzoni
@ 2014-11-27 21:56 ` Thomas Petazzoni
2014-11-27 21:56 ` [Buildroot] [PATCHv2 34/74] pptp-linux: don't install man page Thomas Petazzoni
` (40 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:56 UTC (permalink / raw)
To: buildroot
Some custom iostat-source target was mistakenly left in place when the
iostat package was migrated to gentargets in commit
ee77963588b09babfd71befb0b5eb9fd1e776bbc, back 4 years ago. This
commit removes this unnecessary custom target.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/iostat/iostat.mk | 2 --
1 file changed, 2 deletions(-)
diff --git a/package/iostat/iostat.mk b/package/iostat/iostat.mk
index 2080e56..dd2a579 100644
--- a/package/iostat/iostat.mk
+++ b/package/iostat/iostat.mk
@@ -9,8 +9,6 @@ IOSTAT_SITE = http://www.linuxinsight.com/files
IOSTAT_LICENSE = GPL
IOSTAT_LICENSE_FILES = LICENSE
-iostat-source: $(DL_DIR)/$(IOSTAT_SOURCE)
-
define IOSTAT_BUILD_CMDS
$(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS)
endef
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 34/74] pptp-linux: don't install man page
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (32 preceding siblings ...)
2014-11-27 21:56 ` [Buildroot] [PATCHv2 33/74] iostat: remove legacy code Thomas Petazzoni
@ 2014-11-27 21:56 ` Thomas Petazzoni
2014-11-27 21:56 ` [Buildroot] [PATCHv2 35/74] gnupg: don't both removing a " Thomas Petazzoni
` (39 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:56 UTC (permalink / raw)
To: buildroot
We don't support installing documentation on the target, so there's no
point in having explicit code to do so.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/pptp-linux/pptp-linux.mk | 1 -
1 file changed, 1 deletion(-)
diff --git a/package/pptp-linux/pptp-linux.mk b/package/pptp-linux/pptp-linux.mk
index dc624eb..d7edf6c 100644
--- a/package/pptp-linux/pptp-linux.mk
+++ b/package/pptp-linux/pptp-linux.mk
@@ -21,7 +21,6 @@ endef
define PPTP_LINUX_INSTALL_TARGET_CMDS
$(INSTALL) -m 0755 -D $(@D)/pptp $(TARGET_DIR)/usr/sbin/pptp
- $(INSTALL) -m 0644 -D $(@D)/pptp.8 $(TARGET_DIR)/usr/share/man/man8/pptp.8
endef
$(eval $(generic-package))
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 35/74] gnupg: don't both removing a man page
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (33 preceding siblings ...)
2014-11-27 21:56 ` [Buildroot] [PATCHv2 34/74] pptp-linux: don't install man page Thomas Petazzoni
@ 2014-11-27 21:56 ` Thomas Petazzoni
2014-11-27 21:56 ` [Buildroot] [PATCHv2 36/74] rp-pppoe: don't install man pages Thomas Petazzoni
` (38 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:56 UTC (permalink / raw)
To: buildroot
The target-finalize target in the main Makefile removes
$(TARGET_DIR)/usr/share/man entirely, so there's no point in having
some package specific logic to remove man pages.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/gnupg/gnupg.mk | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/package/gnupg/gnupg.mk b/package/gnupg/gnupg.mk
index e7c403a..c0bf88c 100644
--- a/package/gnupg/gnupg.mk
+++ b/package/gnupg/gnupg.mk
@@ -39,8 +39,7 @@ endif
ifneq ($(BR2_PACKAGE_GNUPG_GPGV),y)
define GNUPG_REMOVE_GPGV
- rm -f $(TARGET_DIR)/usr/bin/gpgv \
- $(TARGET_DIR)/usr/share/man/man1/gpgv.1
+ rm -f $(TARGET_DIR)/usr/bin/gpgv
endef
GNUPG_POST_INSTALL_TARGET_HOOKS += GNUPG_REMOVE_GPGV
endif
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 36/74] rp-pppoe: don't install man pages
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (34 preceding siblings ...)
2014-11-27 21:56 ` [Buildroot] [PATCHv2 35/74] gnupg: don't both removing a " Thomas Petazzoni
@ 2014-11-27 21:56 ` Thomas Petazzoni
2014-11-27 21:56 ` [Buildroot] [PATCHv2 37/74] rp-pppoe: bail out of installation fails Thomas Petazzoni
` (37 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:56 UTC (permalink / raw)
To: buildroot
We don't support installing documentation on the target, so there's no
point in having explicit code to do so.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/rp-pppoe/rp-pppoe.mk | 3 ---
1 file changed, 3 deletions(-)
diff --git a/package/rp-pppoe/rp-pppoe.mk b/package/rp-pppoe/rp-pppoe.mk
index b17086b..6827628 100644
--- a/package/rp-pppoe/rp-pppoe.mk
+++ b/package/rp-pppoe/rp-pppoe.mk
@@ -21,9 +21,6 @@ define RP_PPPOE_INSTALL_TARGET_CMDS
for ff in $(RP_PPPOE_TARGET_FILES); do \
$(INSTALL) -m 0755 $(@D)/src/$$ff $(TARGET_DIR)/usr/sbin/$$ff; \
done
- for ff in $(RP_PPPOE_TARGET_FILES); do \
- $(INSTALL) -m 644 -D $(RP_PPPOE_DIR)/man/$$ff.8 $(TARGET_DIR)/usr/share/man/man8/$$ff.8; \
- done
endef
$(eval $(autotools-package))
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 37/74] rp-pppoe: bail out of installation fails
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (35 preceding siblings ...)
2014-11-27 21:56 ` [Buildroot] [PATCHv2 36/74] rp-pppoe: don't install man pages Thomas Petazzoni
@ 2014-11-27 21:56 ` Thomas Petazzoni
2014-11-27 21:56 ` [Buildroot] [PATCHv2 38/74] alsa-utils: add error handling to for loop Thomas Petazzoni
` (36 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:56 UTC (permalink / raw)
To: buildroot
Add an "|| exit 1" in the installation loop, otherwise if one of the
file fails to install, the build doesn't abort.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/rp-pppoe/rp-pppoe.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/rp-pppoe/rp-pppoe.mk b/package/rp-pppoe/rp-pppoe.mk
index 6827628..4e17f2d 100644
--- a/package/rp-pppoe/rp-pppoe.mk
+++ b/package/rp-pppoe/rp-pppoe.mk
@@ -19,7 +19,7 @@ RP_PPPOE_CONF_ENV = \
define RP_PPPOE_INSTALL_TARGET_CMDS
for ff in $(RP_PPPOE_TARGET_FILES); do \
- $(INSTALL) -m 0755 $(@D)/src/$$ff $(TARGET_DIR)/usr/sbin/$$ff; \
+ $(INSTALL) -m 0755 $(@D)/src/$$ff $(TARGET_DIR)/usr/sbin/$$ff || exit 1; \
done
endef
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 38/74] alsa-utils: add error handling to for loop
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (36 preceding siblings ...)
2014-11-27 21:56 ` [Buildroot] [PATCHv2 37/74] rp-pppoe: bail out of installation fails Thomas Petazzoni
@ 2014-11-27 21:56 ` Thomas Petazzoni
2014-11-27 21:56 ` [Buildroot] [PATCHv2 39/74] coreutils: " Thomas Petazzoni
` (35 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:56 UTC (permalink / raw)
To: buildroot
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/alsa-utils/alsa-utils.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/alsa-utils/alsa-utils.mk b/package/alsa-utils/alsa-utils.mk
index 17895c3..a599af8 100644
--- a/package/alsa-utils/alsa-utils.mk
+++ b/package/alsa-utils/alsa-utils.mk
@@ -46,7 +46,7 @@ ALSA_UTILS_TARGETS_$(BR2_PACKAGE_ALSA_UTILS_SPEAKER_TEST) += usr/bin/speaker-tes
define ALSA_UTILS_INSTALL_TARGET_CMDS
mkdir -p $(TARGET_DIR)/var/lib/alsa
for i in $(ALSA_UTILS_TARGETS_y); do \
- $(INSTALL) -D -m 755 $(STAGING_DIR)/$$i $(TARGET_DIR)/$$i; \
+ $(INSTALL) -D -m 755 $(STAGING_DIR)/$$i $(TARGET_DIR)/$$i || exit 1; \
done
if [ -x "$(TARGET_DIR)/usr/bin/speaker-test" ]; then \
mkdir -p $(TARGET_DIR)/usr/share/alsa/speaker-test; \
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 39/74] coreutils: add error handling to for loop
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (37 preceding siblings ...)
2014-11-27 21:56 ` [Buildroot] [PATCHv2 38/74] alsa-utils: add error handling to for loop Thomas Petazzoni
@ 2014-11-27 21:56 ` Thomas Petazzoni
2014-11-27 21:56 ` [Buildroot] [PATCHv2 40/74] ebtables: " Thomas Petazzoni
` (34 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:56 UTC (permalink / raw)
To: buildroot
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/coreutils/coreutils.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/coreutils/coreutils.mk b/package/coreutils/coreutils.mk
index 391d2cd..fa2db04 100644
--- a/package/coreutils/coreutils.mk
+++ b/package/coreutils/coreutils.mk
@@ -101,7 +101,7 @@ endif
define COREUTILS_POST_INSTALL
# some things go in root rather than usr
for f in $(COREUTILS_BIN_PROGS); do \
- mv $(TARGET_DIR)/usr/bin/$$f $(TARGET_DIR)/bin/$$f; \
+ mv $(TARGET_DIR)/usr/bin/$$f $(TARGET_DIR)/bin/$$f || exit 1; \
done
# link for archaic shells
ln -fs test $(TARGET_DIR)/usr/bin/[
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 40/74] ebtables: add error handling to for loop
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (38 preceding siblings ...)
2014-11-27 21:56 ` [Buildroot] [PATCHv2 39/74] coreutils: " Thomas Petazzoni
@ 2014-11-27 21:56 ` Thomas Petazzoni
2014-11-27 21:56 ` [Buildroot] [PATCHv2 41/74] flot: " Thomas Petazzoni
` (33 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:56 UTC (permalink / raw)
To: buildroot
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/ebtables/ebtables.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/ebtables/ebtables.mk b/package/ebtables/ebtables.mk
index 578c3ae..23c4628 100644
--- a/package/ebtables/ebtables.mk
+++ b/package/ebtables/ebtables.mk
@@ -28,7 +28,7 @@ define EBTABLES_INSTALL_TARGET_CMDS
$(@D)/$(EBTABLES_SUBDIR)/extensions/*.so; \
do \
$(INSTALL) -m 0755 -D $${so} \
- $(TARGET_DIR)/lib/ebtables/`basename $${so}`; \
+ $(TARGET_DIR)/lib/ebtables/`basename $${so}` || exit 1; \
done
$(INSTALL) -m 0755 -D $(@D)/$(EBTABLES_SUBDIR)/ebtables \
$(TARGET_DIR)/sbin/ebtables
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 41/74] flot: add error handling to for loop
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (39 preceding siblings ...)
2014-11-27 21:56 ` [Buildroot] [PATCHv2 40/74] ebtables: " Thomas Petazzoni
@ 2014-11-27 21:56 ` Thomas Petazzoni
2014-11-27 21:57 ` [Buildroot] [PATCHv2 42/74] googlefontdirectory: " Thomas Petazzoni
` (32 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:56 UTC (permalink / raw)
To: buildroot
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/flot/flot.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/flot/flot.mk b/package/flot/flot.mk
index 79bdf1f..58e3ff1 100644
--- a/package/flot/flot.mk
+++ b/package/flot/flot.mk
@@ -27,7 +27,7 @@ FLOT_FILES = jquery.flot $(addprefix jquery.flot.,\
define FLOT_INSTALL_TARGET_CMDS
for i in $(FLOT_FILES); do \
- $(INSTALL) -m 0644 -D $(@D)/$$i.min.js $(TARGET_DIR)/var/www/$$i.js; \
+ $(INSTALL) -m 0644 -D $(@D)/$$i.min.js $(TARGET_DIR)/var/www/$$i.js || exit 1; \
done
endef
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 42/74] googlefontdirectory: add error handling to for loop
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (40 preceding siblings ...)
2014-11-27 21:56 ` [Buildroot] [PATCHv2 41/74] flot: " Thomas Petazzoni
@ 2014-11-27 21:57 ` Thomas Petazzoni
2014-11-27 21:57 ` [Buildroot] [PATCHv2 43/74] gptfdisk: " Thomas Petazzoni
` (31 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:57 UTC (permalink / raw)
To: buildroot
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/googlefontdirectory/googlefontdirectory.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/googlefontdirectory/googlefontdirectory.mk b/package/googlefontdirectory/googlefontdirectory.mk
index 076e654..0e60892 100644
--- a/package/googlefontdirectory/googlefontdirectory.mk
+++ b/package/googlefontdirectory/googlefontdirectory.mk
@@ -16,7 +16,7 @@ define GOOGLEFONTDIRECTORY_INSTALL_TARGET_CMDS
for i in $(GOOGLEFONTDIRECTORY_FONTS); \
do \
$(INSTALL) -d $(TARGET_DIR)/usr/share/fonts/$$i && \
- $(INSTALL) -m 0644 -t $(TARGET_DIR)/usr/share/fonts/$$i $(@D)/$$i/*.ttf; \
+ $(INSTALL) -m 0644 -t $(TARGET_DIR)/usr/share/fonts/$$i $(@D)/$$i/*.ttf || exit 1; \
done
endef
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 43/74] gptfdisk: add error handling to for loop
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (41 preceding siblings ...)
2014-11-27 21:57 ` [Buildroot] [PATCHv2 42/74] googlefontdirectory: " Thomas Petazzoni
@ 2014-11-27 21:57 ` Thomas Petazzoni
2014-11-27 21:57 ` [Buildroot] [PATCHv2 44/74] irda-utils: " Thomas Petazzoni
` (30 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:57 UTC (permalink / raw)
To: buildroot
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/gptfdisk/gptfdisk.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/gptfdisk/gptfdisk.mk b/package/gptfdisk/gptfdisk.mk
index 9828d4c..4c6af56 100644
--- a/package/gptfdisk/gptfdisk.mk
+++ b/package/gptfdisk/gptfdisk.mk
@@ -33,7 +33,7 @@ endef
define GPTFDISK_INSTALL_TARGET_CMDS
for i in $(GPTFDISK_TARGETS_y); do \
- $(INSTALL) -D -m 0755 $(@D)/$$i $(TARGET_DIR)/usr/sbin/$$i; \
+ $(INSTALL) -D -m 0755 $(@D)/$$i $(TARGET_DIR)/usr/sbin/$$i || exit 1; \
done
endef
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 44/74] irda-utils: add error handling to for loop
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (42 preceding siblings ...)
2014-11-27 21:57 ` [Buildroot] [PATCHv2 43/74] gptfdisk: " Thomas Petazzoni
@ 2014-11-27 21:57 ` Thomas Petazzoni
2014-11-27 21:57 ` [Buildroot] [PATCHv2 45/74] jimtcl: " Thomas Petazzoni
` (29 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:57 UTC (permalink / raw)
To: buildroot
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/irda-utils/irda-utils.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/irda-utils/irda-utils.mk b/package/irda-utils/irda-utils.mk
index e4958e5..2c35dff 100644
--- a/package/irda-utils/irda-utils.mk
+++ b/package/irda-utils/irda-utils.mk
@@ -32,7 +32,7 @@ IRDA_UTILS_SBINS- += $(IRDA_UTILS_SBINS-y)
define IRDA_UTILS_INSTALL_TARGET_CMDS
for i in $(IRDA_UTILS_SBINS-y); do \
- $(INSTALL) -m 0755 -D $(@D)/$$i/$$i $(TARGET_DIR)/usr/sbin/$$i; \
+ $(INSTALL) -m 0755 -D $(@D)/$$i/$$i $(TARGET_DIR)/usr/sbin/$$i || exit 1; \
done
endef
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 45/74] jimtcl: add error handling to for loop
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (43 preceding siblings ...)
2014-11-27 21:57 ` [Buildroot] [PATCHv2 44/74] irda-utils: " Thomas Petazzoni
@ 2014-11-27 21:57 ` Thomas Petazzoni
2014-11-27 21:57 ` [Buildroot] [PATCHv2 46/74] live555: " Thomas Petazzoni
` (28 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:57 UTC (permalink / raw)
To: buildroot
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/jimtcl/jimtcl.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/jimtcl/jimtcl.mk b/package/jimtcl/jimtcl.mk
index 27f43f0..add61d6 100644
--- a/package/jimtcl/jimtcl.mk
+++ b/package/jimtcl/jimtcl.mk
@@ -51,7 +51,7 @@ endef
define JIMTCL_INSTALL_STAGING_CMDS
for i in $(JIMTCL_HEADERS_TO_INSTALL); do \
- cp -a $(@D)/$$i $(STAGING_DIR)/usr/include/ ; \
+ cp -a $(@D)/$$i $(STAGING_DIR)/usr/include/ || exit 1 ; \
done; \
$(INSTALL) -D $(@D)/libjim.$(JIMTCL_LIB) $(STAGING_DIR)/usr/lib/libjim.$(JIMTCL_LIB);
ln -s libjim.$(JIMTCL_LIB) $(STAGING_DIR)/usr/lib/libjim.so
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 46/74] live555: add error handling to for loop
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (44 preceding siblings ...)
2014-11-27 21:57 ` [Buildroot] [PATCHv2 45/74] jimtcl: " Thomas Petazzoni
@ 2014-11-27 21:57 ` Thomas Petazzoni
2014-11-27 21:57 ` [Buildroot] [PATCHv2 47/74] lockfile-progs: " Thomas Petazzoni
` (27 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:57 UTC (permalink / raw)
To: buildroot
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/live555/live555.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/live555/live555.mk b/package/live555/live555.mk
index b923388..7dbded3 100644
--- a/package/live555/live555.mk
+++ b/package/live555/live555.mk
@@ -54,7 +54,7 @@ endef
define LIVE555_INSTALL_TARGET_CMDS
for i in $(LIVE555_FILES_TO_INSTALL-y); do \
- $(INSTALL) -D -m 0755 $(@D)/$$i $(TARGET_DIR)/usr/bin/`basename $$i`; \
+ $(INSTALL) -D -m 0755 $(@D)/$$i $(TARGET_DIR)/usr/bin/`basename $$i` || exit 1 \
done
endef
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 47/74] lockfile-progs: add error handling to for loop
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (45 preceding siblings ...)
2014-11-27 21:57 ` [Buildroot] [PATCHv2 46/74] live555: " Thomas Petazzoni
@ 2014-11-27 21:57 ` Thomas Petazzoni
2014-11-27 21:57 ` [Buildroot] [PATCHv2 48/74] qt5base: " Thomas Petazzoni
` (26 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:57 UTC (permalink / raw)
To: buildroot
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/lockfile-progs/lockfile-progs.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/lockfile-progs/lockfile-progs.mk b/package/lockfile-progs/lockfile-progs.mk
index e2e0a44..deb9f90 100644
--- a/package/lockfile-progs/lockfile-progs.mk
+++ b/package/lockfile-progs/lockfile-progs.mk
@@ -21,7 +21,7 @@ endef
define LOCKFILE_PROGS_INSTALL_TARGET_CMDS
for i in $(LOCKFILE_BINS); do \
- $(INSTALL) -D -m 755 $(@D)/bin/$$i $(TARGET_DIR)/usr/bin/$$i; \
+ $(INSTALL) -D -m 755 $(@D)/bin/$$i $(TARGET_DIR)/usr/bin/$$i || exit 1; \
done
endef
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 48/74] qt5base: add error handling to for loop
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (46 preceding siblings ...)
2014-11-27 21:57 ` [Buildroot] [PATCHv2 47/74] lockfile-progs: " Thomas Petazzoni
@ 2014-11-27 21:57 ` Thomas Petazzoni
2014-11-27 21:57 ` [Buildroot] [PATCHv2 49/74] qtuio: " Thomas Petazzoni
` (25 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:57 UTC (permalink / raw)
To: buildroot
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/qt5/qt5base/qt5base.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/qt5/qt5base/qt5base.mk b/package/qt5/qt5base/qt5base.mk
index 57ea1c8..788b2d7 100644
--- a/package/qt5/qt5base/qt5base.mk
+++ b/package/qt5/qt5base/qt5base.mk
@@ -211,7 +211,7 @@ endef
define QT5BASE_INSTALL_TARGET_LIBS
for lib in $(QT5BASE_INSTALL_LIBS_y); do \
- cp -dpf $(STAGING_DIR)/usr/lib/lib$${lib}.so.* $(TARGET_DIR)/usr/lib ; \
+ cp -dpf $(STAGING_DIR)/usr/lib/lib$${lib}.so.* $(TARGET_DIR)/usr/lib || exit 1 ; \
done
endef
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 49/74] qtuio: add error handling to for loop
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (47 preceding siblings ...)
2014-11-27 21:57 ` [Buildroot] [PATCHv2 48/74] qt5base: " Thomas Petazzoni
@ 2014-11-27 21:57 ` Thomas Petazzoni
2014-11-27 21:57 ` [Buildroot] [PATCHv2 50/74] sound-theme-borealis: " Thomas Petazzoni
` (24 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:57 UTC (permalink / raw)
To: buildroot
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/qtuio/qtuio.mk | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/package/qtuio/qtuio.mk b/package/qtuio/qtuio.mk
index 9925f84..9af0136 100644
--- a/package/qtuio/qtuio.mk
+++ b/package/qtuio/qtuio.mk
@@ -19,7 +19,7 @@ QTUIO_EXAMPLES = dials fingerpaint knobs pinchzoom
ifeq ($(BR2_QTUIO_EXAMPLES),y)
define QTUIO_CONFIGURE_EXAMPLES
for example in $(QTUIO_EXAMPLES) ; do \
- (cd $(@D)/examples/$${example} && $(TARGET_MAKE_ENV) $(QT_QMAKE)) ; \
+ (cd $(@D)/examples/$${example} && $(TARGET_MAKE_ENV) $(QT_QMAKE)) || exit 1; \
done
endef
endif
@@ -32,7 +32,7 @@ endef
ifeq ($(BR2_QTUIO_EXAMPLES),y)
define QTUIO_BUILD_EXAMPLES
for example in $(QTUIO_EXAMPLES) ; do \
- ($(MAKE) -C $(@D)/examples/$${example}) ; \
+ ($(MAKE) -C $(@D)/examples/$${example}) || exit 1; \
done
endef
endif
@@ -46,7 +46,7 @@ endef
ifeq ($(BR2_QTUIO_EXAMPLES),y)
define QTUIO_INSTALL_EXAMPLES
for example in $(QTUIO_EXAMPLES) ; do \
- ($(INSTALL) -D -m 0755 $(@D)/examples/$${example}/$${example} $(TARGET_DIR)/usr/share/qtuio/$${example}) ; \
+ ($(INSTALL) -D -m 0755 $(@D)/examples/$${example}/$${example} $(TARGET_DIR)/usr/share/qtuio/$${example} || exit 1) ; \
done
endef
endif
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 50/74] sound-theme-borealis: add error handling to for loop
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (48 preceding siblings ...)
2014-11-27 21:57 ` [Buildroot] [PATCHv2 49/74] qtuio: " Thomas Petazzoni
@ 2014-11-27 21:57 ` Thomas Petazzoni
2014-11-27 21:57 ` [Buildroot] [PATCHv2 51/74] xenomai: " Thomas Petazzoni
` (23 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:57 UTC (permalink / raw)
To: buildroot
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/sound-theme-borealis/sound-theme-borealis.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/sound-theme-borealis/sound-theme-borealis.mk b/package/sound-theme-borealis/sound-theme-borealis.mk
index a2f29a9..9242837 100644
--- a/package/sound-theme-borealis/sound-theme-borealis.mk
+++ b/package/sound-theme-borealis/sound-theme-borealis.mk
@@ -11,7 +11,7 @@ SOUND_THEME_BOREALIS_SOURCE = \
define SOUND_THEME_BOREALIS_INSTALL_TARGET_CMDS
for f in $(@D)/*.ogg ; do \
- $(INSTALL) -D -m 0644 $$f $(TARGET_DIR)/usr/share/sounds/borealis/stereo/`basename $$f` ; \
+ $(INSTALL) -D -m 0644 $$f $(TARGET_DIR)/usr/share/sounds/borealis/stereo/`basename $$f` || exit 1; \
done
endef
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 51/74] xenomai: add error handling to for loop
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (49 preceding siblings ...)
2014-11-27 21:57 ` [Buildroot] [PATCHv2 50/74] sound-theme-borealis: " Thomas Petazzoni
@ 2014-11-27 21:57 ` Thomas Petazzoni
2014-11-27 21:57 ` [Buildroot] [PATCHv2 52/74] aiccu: install init script and config file unconditionally Thomas Petazzoni
` (22 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:57 UTC (permalink / raw)
To: buildroot
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/xenomai/xenomai.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/xenomai/xenomai.mk b/package/xenomai/xenomai.mk
index 740a40b..ccbae35 100644
--- a/package/xenomai/xenomai.mk
+++ b/package/xenomai/xenomai.mk
@@ -99,7 +99,7 @@ XENOMAI_DEPENDENCIES += udev
define XENOMAI_INSTALL_UDEV_RULES
if test -d $(TARGET_DIR)/etc/udev/rules.d ; then \
for f in $(@D)/ksrc/nucleus/udev/*.rules ; do \
- cp $$f $(TARGET_DIR)/etc/udev/rules.d/ ; \
+ cp $$f $(TARGET_DIR)/etc/udev/rules.d/ || exit 1 ; \
done ; \
fi;
endef
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 52/74] aiccu: install init script and config file unconditionally
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (50 preceding siblings ...)
2014-11-27 21:57 ` [Buildroot] [PATCHv2 51/74] xenomai: " Thomas Petazzoni
@ 2014-11-27 21:57 ` Thomas Petazzoni
2014-11-27 21:57 ` [Buildroot] [PATCHv2 53/74] busybox: " Thomas Petazzoni
` (21 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:57 UTC (permalink / raw)
To: buildroot
As discussed, users should use a rootfs overlay or a post-build script
instead of a custom skeleton to override files installed by Buildroot,
so there is no point in having conditions when installing init scripts
or configuration files.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/aiccu/aiccu.mk | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/package/aiccu/aiccu.mk b/package/aiccu/aiccu.mk
index 4413f86..faa861c 100644
--- a/package/aiccu/aiccu.mk
+++ b/package/aiccu/aiccu.mk
@@ -28,14 +28,12 @@ endef
define AICCU_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 0755 $(@D)/unix-console/aiccu \
$(TARGET_DIR)/usr/sbin/aiccu
- [ -f $(TARGET_DIR)/etc/aiccu.conf ] || \
- $(INSTALL) -D -m 0644 $(@D)/doc/aiccu.conf \
+ $(INSTALL) -D -m 0644 $(@D)/doc/aiccu.conf \
$(TARGET_DIR)/etc/aiccu.conf
endef
define AICCU_INSTALL_INIT_SYSV
- [ -f $(TARGET_DIR)/etc/init.d/S50aiccu ] || \
- $(INSTALL) -D -m 0755 $(@D)/doc/aiccu.init \
+ $(INSTALL) -D -m 0755 $(@D)/doc/aiccu.init \
$(TARGET_DIR)/etc/init.d/S50aiccu
endef
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 53/74] busybox: install init script and config file unconditionally
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (51 preceding siblings ...)
2014-11-27 21:57 ` [Buildroot] [PATCHv2 52/74] aiccu: install init script and config file unconditionally Thomas Petazzoni
@ 2014-11-27 21:57 ` Thomas Petazzoni
2014-11-27 21:57 ` [Buildroot] [PATCHv2 54/74] busybox: install init script unconditionally Thomas Petazzoni
` (20 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:57 UTC (permalink / raw)
To: buildroot
As discussed, users should use a rootfs overlay or a post-build script
instead of a custom skeleton to override files installed by Buildroot,
so there is no point in having conditions when installing init scripts
or configuration files.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/busybox/busybox.mk | 30 ++++++++++++------------------
1 file changed, 12 insertions(+), 18 deletions(-)
diff --git a/package/busybox/busybox.mk b/package/busybox/busybox.mk
index eb2f3f1..ae60ac1 100644
--- a/package/busybox/busybox.mk
+++ b/package/busybox/busybox.mk
@@ -57,14 +57,12 @@ endef
# If mdev will be used for device creation enable it and copy S10mdev to /etc/init.d
ifeq ($(BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV),y)
define BUSYBOX_INSTALL_MDEV_SCRIPT
- [ -f $(TARGET_DIR)/etc/init.d/S10mdev ] || \
- $(INSTALL) -D -m 0755 package/busybox/S10mdev \
- $(TARGET_DIR)/etc/init.d/S10mdev
+ $(INSTALL) -D -m 0755 package/busybox/S10mdev \
+ $(TARGET_DIR)/etc/init.d/S10mdev
endef
define BUSYBOX_INSTALL_MDEV_CONF
- [ -f $(TARGET_DIR)/etc/mdev.conf ] || \
- $(INSTALL) -D -m 0644 package/busybox/mdev.conf \
- $(TARGET_DIR)/etc/mdev.conf
+ $(INSTALL) -D -m 0644 package/busybox/mdev.conf \
+ $(TARGET_DIR)/etc/mdev.conf
endef
define BUSYBOX_SET_MDEV
$(call KCONFIG_ENABLE_OPT,CONFIG_MDEV,$(BUSYBOX_BUILD_CONFIG))
@@ -165,9 +163,8 @@ endif
define BUSYBOX_INSTALL_LOGGING_SCRIPT
if grep -q CONFIG_SYSLOGD=y $(@D)/.config; then \
- [ -f $(TARGET_DIR)/etc/init.d/S01logging ] || \
- $(INSTALL) -m 0755 -D package/busybox/S01logging \
- $(TARGET_DIR)/etc/init.d/S01logging; \
+ $(INSTALL) -m 0755 -D package/busybox/S01logging \
+ $(TARGET_DIR)/etc/init.d/S01logging; \
else rm -f $(TARGET_DIR)/etc/init.d/S01logging; fi
endef
@@ -176,11 +173,10 @@ define BUSYBOX_SET_WATCHDOG
$(call KCONFIG_ENABLE_OPT,CONFIG_WATCHDOG,$(BUSYBOX_BUILD_CONFIG))
endef
define BUSYBOX_INSTALL_WATCHDOG_SCRIPT
- [ -f $(TARGET_DIR)/etc/init.d/S15watchdog ] || \
- $(INSTALL) -D -m 0755 package/busybox/S15watchdog \
- $(TARGET_DIR)/etc/init.d/S15watchdog && \
- $(SED) s/PERIOD/$(call qstrip,$(BR2_PACKAGE_BUSYBOX_WATCHDOG_PERIOD))/ \
- $(TARGET_DIR)/etc/init.d/S15watchdog
+ $(INSTALL) -D -m 0755 package/busybox/S15watchdog \
+ $(TARGET_DIR)/etc/init.d/S15watchdog && \
+ $(SED) s/PERIOD/$(call qstrip,$(BR2_PACKAGE_BUSYBOX_WATCHDOG_PERIOD))/ \
+ $(TARGET_DIR)/etc/init.d/S15watchdog
endef
endif
@@ -214,10 +210,8 @@ endef
define BUSYBOX_INSTALL_TARGET_CMDS
$(BUSYBOX_MAKE_ENV) $(MAKE) $(BUSYBOX_MAKE_OPTS) -C $(@D) install
- if [ ! -f $(TARGET_DIR)/usr/share/udhcpc/default.script ]; then \
- $(INSTALL) -m 0755 -D package/busybox/udhcpc.script \
- $(TARGET_DIR)/usr/share/udhcpc/default.script; \
- fi
+ $(INSTALL) -m 0755 -D package/busybox/udhcpc.script \
+ $(TARGET_DIR)/usr/share/udhcpc/default.script
$(BUSYBOX_INSTALL_MDEV_CONF)
endef
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 54/74] busybox: install init script unconditionally
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (52 preceding siblings ...)
2014-11-27 21:57 ` [Buildroot] [PATCHv2 53/74] busybox: " Thomas Petazzoni
@ 2014-11-27 21:57 ` Thomas Petazzoni
2014-11-27 23:13 ` Danomi Manchego
2014-11-27 21:57 ` [Buildroot] [PATCHv2 55/74] iucode-tool: " Thomas Petazzoni
` (19 subsequent siblings)
73 siblings, 1 reply; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:57 UTC (permalink / raw)
To: buildroot
As discussed, users should use a rootfs overlay or a post-build script
instead of a custom skeleton to override files installed by Buildroot,
so there is no point in having conditions when installing init scripts
or configuration files.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/dmraid/dmraid.mk | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/package/dmraid/dmraid.mk b/package/dmraid/dmraid.mk
index 024b9b5..a6ed57f 100644
--- a/package/dmraid/dmraid.mk
+++ b/package/dmraid/dmraid.mk
@@ -18,9 +18,8 @@ DMRAID_LICENSE_FILES = $(DMRAID_SUBDIR)/LICENSE_GPL $(DMRAID_SUBDIR)/LICENSE
DMRAID_DEPENDENCIES = lvm2
define DMRAID_INSTALL_INIT_SYSV
- [ -f $(TARGET_DIR)/etc/init.d/S20dmraid ] || \
- $(INSTALL) -D -m 0755 package/dmraid/S20dmraid \
- $(TARGET_DIR)/etc/init.d/S20dmraid
+ $(INSTALL) -D -m 0755 package/dmraid/S20dmraid \
+ $(TARGET_DIR)/etc/init.d/S20dmraid
endef
$(eval $(autotools-package))
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 54/74] busybox: install init script unconditionally
2014-11-27 21:57 ` [Buildroot] [PATCHv2 54/74] busybox: install init script unconditionally Thomas Petazzoni
@ 2014-11-27 23:13 ` Danomi Manchego
0 siblings, 0 replies; 78+ messages in thread
From: Danomi Manchego @ 2014-11-27 23:13 UTC (permalink / raw)
To: buildroot
Thomas,
On Thu, Nov 27, 2014 at 4:57 PM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> As discussed, users should use a rootfs overlay or a post-build script
> instead of a custom skeleton to override files installed by Buildroot,
> so there is no point in having conditions when installing init scripts
> or configuration files.
>
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> ---
> package/dmraid/dmraid.mk | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/package/dmraid/dmraid.mk b/package/dmraid/dmraid.mk
> index 024b9b5..a6ed57f 100644
> --- a/package/dmraid/dmraid.mk
> +++ b/package/dmraid/dmraid.mk
Subject says "busybox", but should be "dmraid"?
Danomi -
^ permalink raw reply [flat|nested] 78+ messages in thread
* [Buildroot] [PATCHv2 55/74] iucode-tool: install init script unconditionally
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (53 preceding siblings ...)
2014-11-27 21:57 ` [Buildroot] [PATCHv2 54/74] busybox: install init script unconditionally Thomas Petazzoni
@ 2014-11-27 21:57 ` Thomas Petazzoni
2014-11-27 21:57 ` [Buildroot] [PATCHv2 56/74] lighttpd: install init script and config file unconditionally Thomas Petazzoni
` (18 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:57 UTC (permalink / raw)
To: buildroot
As discussed, users should use a rootfs overlay or a post-build script
instead of a custom skeleton to override files installed by Buildroot,
so there is no point in having conditions when installing init scripts
or configuration files.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/iucode-tool/iucode-tool.mk | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/package/iucode-tool/iucode-tool.mk b/package/iucode-tool/iucode-tool.mk
index 3124c73..081b086 100644
--- a/package/iucode-tool/iucode-tool.mk
+++ b/package/iucode-tool/iucode-tool.mk
@@ -15,9 +15,8 @@ IUCODE_TOOL_LICENSE = GPLv2+
IUCODE_TOOL_LICENSE_FILES = COPYING
define IUCODE_TOOL_INSTALL_INIT_SYSV
- [ -f $(TARGET_DIR)/etc/init.d/S00iucode-tool ] || \
- $(INSTALL) -D -m 0755 package/iucode-tool/S00iucode-tool \
- $(TARGET_DIR)/etc/init.d/S00iucode-tool
+ $(INSTALL) -D -m 0755 package/iucode-tool/S00iucode-tool \
+ $(TARGET_DIR)/etc/init.d/S00iucode-tool
endef
$(eval $(autotools-package))
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 56/74] lighttpd: install init script and config file unconditionally
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (54 preceding siblings ...)
2014-11-27 21:57 ` [Buildroot] [PATCHv2 55/74] iucode-tool: " Thomas Petazzoni
@ 2014-11-27 21:57 ` Thomas Petazzoni
2014-11-27 21:57 ` [Buildroot] [PATCHv2 57/74] rpcbind: install init script unconditionally Thomas Petazzoni
` (17 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:57 UTC (permalink / raw)
To: buildroot
As discussed, users should use a rootfs overlay or a post-build script
instead of a custom skeleton to override files installed by Buildroot,
so there is no point in having conditions when installing init scripts
or configuration files.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/lighttpd/lighttpd.mk | 46 +++++++++++++++-----------------------------
1 file changed, 16 insertions(+), 30 deletions(-)
diff --git a/package/lighttpd/lighttpd.mk b/package/lighttpd/lighttpd.mk
index ef98298..804bdd4 100644
--- a/package/lighttpd/lighttpd.mk
+++ b/package/lighttpd/lighttpd.mk
@@ -62,44 +62,30 @@ endif
define LIGHTTPD_INSTALL_CONFIG
$(INSTALL) -d -m 0755 $(TARGET_DIR)/etc/lighttpd/conf.d
$(INSTALL) -d -m 0755 $(TARGET_DIR)/var/www
-
- [ -f $(TARGET_DIR)/etc/lighttpd/lighttpd.conf ] || \
- $(INSTALL) -D -m 755 $(@D)/doc/config/lighttpd.conf \
- $(TARGET_DIR)/etc/lighttpd/lighttpd.conf
-
- [ -f $(TARGET_DIR)/etc/lighttpd/modules.conf ] || \
- $(INSTALL) -D -m 755 $(@D)/doc/config/modules.conf \
- $(TARGET_DIR)/etc/lighttpd/modules.conf
-
- [ -f $(TARGET_DIR)/etc/lighttpd/conf.d/access_log.conf ] || \
- $(INSTALL) -D -m 755 $(@D)/doc/config/conf.d/access_log.conf \
- $(TARGET_DIR)/etc/lighttpd/conf.d/access_log.conf
-
- [ -f $(TARGET_DIR)/etc/lighttpd/conf.d/debug.conf ] || \
- $(INSTALL) -D -m 755 $(@D)/doc/config/conf.d/debug.conf \
- $(TARGET_DIR)/etc/lighttpd/conf.d/debug.conf
-
- [ -f $(TARGET_DIR)/etc/lighttpd/conf.d/dirlisting.conf ] || \
- $(INSTALL) -D -m 755 $(@D)/doc/config/conf.d/dirlisting.conf \
- $(TARGET_DIR)/etc/lighttpd/conf.d/dirlisting.conf
-
- [ -f $(TARGET_DIR)/etc/lighttpd/conf.d/mime.conf ] || \
- $(INSTALL) -D -m 755 $(@D)/doc/config/conf.d/mime.conf \
- $(TARGET_DIR)/etc/lighttpd/conf.d/mime.conf
+ $(INSTALL) -D -m 755 $(@D)/doc/config/lighttpd.conf \
+ $(TARGET_DIR)/etc/lighttpd/lighttpd.conf
+ $(INSTALL) -D -m 755 $(@D)/doc/config/modules.conf \
+ $(TARGET_DIR)/etc/lighttpd/modules.conf
+ $(INSTALL) -D -m 755 $(@D)/doc/config/conf.d/access_log.conf \
+ $(TARGET_DIR)/etc/lighttpd/conf.d/access_log.conf
+ $(INSTALL) -D -m 755 $(@D)/doc/config/conf.d/debug.conf \
+ $(TARGET_DIR)/etc/lighttpd/conf.d/debug.conf
+ $(INSTALL) -D -m 755 $(@D)/doc/config/conf.d/dirlisting.conf \
+ $(TARGET_DIR)/etc/lighttpd/conf.d/dirlisting.conf
+ $(INSTALL) -D -m 755 $(@D)/doc/config/conf.d/mime.conf \
+ $(TARGET_DIR)/etc/lighttpd/conf.d/mime.conf
endef
LIGHTTPD_POST_INSTALL_TARGET_HOOKS += LIGHTTPD_INSTALL_CONFIG
define LIGHTTPD_INSTALL_INIT_SYSV
- [ -f $(TARGET_DIR)/etc/init.d/S50lighttpd ] || \
- $(INSTALL) -D -m 755 package/lighttpd/S50lighttpd \
- $(TARGET_DIR)/etc/init.d/S50lighttpd
+ $(INSTALL) -D -m 755 package/lighttpd/S50lighttpd \
+ $(TARGET_DIR)/etc/init.d/S50lighttpd
endef
define LIGHTTPD_INSTALL_INIT_SYSTEMD
- [ -f $(TARGET_DIR)/etc/systemd/system/lighttpd.service ] || \
- $(INSTALL) -D -m 644 package/lighttpd/lighttpd.service \
- $(TARGET_DIR)/etc/systemd/system/lighttpd.service
+ $(INSTALL) -D -m 644 package/lighttpd/lighttpd.service \
+ $(TARGET_DIR)/etc/systemd/system/lighttpd.service
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 57/74] rpcbind: install init script unconditionally
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (55 preceding siblings ...)
2014-11-27 21:57 ` [Buildroot] [PATCHv2 56/74] lighttpd: install init script and config file unconditionally Thomas Petazzoni
@ 2014-11-27 21:57 ` Thomas Petazzoni
2014-11-27 21:57 ` [Buildroot] [PATCHv2 58/74] rsyslog: install init script and config file unconditionally Thomas Petazzoni
` (16 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:57 UTC (permalink / raw)
To: buildroot
As discussed, users should use a rootfs overlay or a post-build script
instead of a custom skeleton to override files installed by Buildroot,
so there is no point in having conditions when installing init scripts
or configuration files.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/rpcbind/rpcbind.mk | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/package/rpcbind/rpcbind.mk b/package/rpcbind/rpcbind.mk
index b7c2261..55de3fc 100644
--- a/package/rpcbind/rpcbind.mk
+++ b/package/rpcbind/rpcbind.mk
@@ -17,9 +17,8 @@ RPCBIND_DEPENDENCIES += libtirpc
RPCBIND_CONF_OPTS += --with-rpcuser=root
define RPCBIND_INSTALL_INIT_SYSV
- [ -f $(TARGET_DIR)/etc/init.d/S30rpcbind ] || \
- $(INSTALL) -m 0755 -D package/rpcbind/S30rpcbind \
- $(TARGET_DIR)/etc/init.d/S30rpcbind
+ $(INSTALL) -m 0755 -D package/rpcbind/S30rpcbind \
+ $(TARGET_DIR)/etc/init.d/S30rpcbind
endef
$(eval $(autotools-package))
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 58/74] rsyslog: install init script and config file unconditionally
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (56 preceding siblings ...)
2014-11-27 21:57 ` [Buildroot] [PATCHv2 57/74] rpcbind: install init script unconditionally Thomas Petazzoni
@ 2014-11-27 21:57 ` Thomas Petazzoni
2014-11-27 21:57 ` [Buildroot] [PATCHv2 59/74] transmission: install init script unconditionally Thomas Petazzoni
` (15 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:57 UTC (permalink / raw)
To: buildroot
As discussed, users should use a rootfs overlay or a post-build script
instead of a custom skeleton to override files installed by Buildroot,
so there is no point in having conditions when installing init scripts
or configuration files.
Also, we take this opportunity to rename RSYSLOG_INSTALL_CONF_SCRIPT
to RSYSLOG_INSTALL_CONF because it is no longer installing an init
script.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/rsyslog/rsyslog.mk | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/package/rsyslog/rsyslog.mk b/package/rsyslog/rsyslog.mk
index d7dc930..6b72bb5 100644
--- a/package/rsyslog/rsyslog.mk
+++ b/package/rsyslog/rsyslog.mk
@@ -39,18 +39,16 @@ else
endif
define RSYSLOG_INSTALL_INIT_SYSV
- [ -f $(TARGET_DIR)/etc/init.d/S01rsyslog ] || \
- $(INSTALL) -m 0755 -D package/rsyslog/S01rsyslog \
- $(TARGET_DIR)/etc/init.d/S01rsyslog
+ $(INSTALL) -m 0755 -D package/rsyslog/S01rsyslog \
+ $(TARGET_DIR)/etc/init.d/S01rsyslog
endef
-define RSYSLOG_INSTALL_CONF_SCRIPT
- [ -f $(TARGET_DIR)/etc/rsyslog.conf ] || \
- $(INSTALL) -m 0644 -D $(@D)/platform/redhat/rsyslog.conf \
- $(TARGET_DIR)/etc/rsyslog.conf
+define RSYSLOG_INSTALL_CONF
+ $(INSTALL) -m 0644 -D $(@D)/platform/redhat/rsyslog.conf \
+ $(TARGET_DIR)/etc/rsyslog.conf
mkdir -p $(TARGET_DIR)/etc/rsyslog.d
endef
-RSYSLOG_POST_INSTALL_TARGET_HOOKS += RSYSLOG_INSTALL_CONF_SCRIPT
+RSYSLOG_POST_INSTALL_TARGET_HOOKS += RSYSLOG_INSTALL_CONF
$(eval $(autotools-package))
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 59/74] transmission: install init script unconditionally
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (57 preceding siblings ...)
2014-11-27 21:57 ` [Buildroot] [PATCHv2 58/74] rsyslog: install init script and config file unconditionally Thomas Petazzoni
@ 2014-11-27 21:57 ` Thomas Petazzoni
2014-11-27 21:57 ` [Buildroot] [PATCHv2 60/74] stunnel: install configuration file unconditionally Thomas Petazzoni
` (14 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:57 UTC (permalink / raw)
To: buildroot
As discussed, users should use a rootfs overlay or a post-build script
instead of a custom skeleton to override files installed by Buildroot,
so there is no point in having conditions when installing init scripts
or configuration files.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/transmission/transmission.mk | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/package/transmission/transmission.mk b/package/transmission/transmission.mk
index 27ad9d9..b8a5c42 100644
--- a/package/transmission/transmission.mk
+++ b/package/transmission/transmission.mk
@@ -37,9 +37,8 @@ ifeq ($(BR2_PACKAGE_TRANSMISSION_DAEMON),y)
TRANSMISSION_CONF_OPTS += --enable-daemon
define TRANSMISSION_INSTALL_INIT_SYSV
- [ -f $(TARGET_DIR)/etc/init.d/S92transmission ] || \
- $(INSTALL) -m 0755 -D package/transmission/S92transmission \
- $(TARGET_DIR)/etc/init.d/S92transmission
+ $(INSTALL) -m 0755 -D package/transmission/S92transmission \
+ $(TARGET_DIR)/etc/init.d/S92transmission
endef
else
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 60/74] stunnel: install configuration file unconditionally
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (58 preceding siblings ...)
2014-11-27 21:57 ` [Buildroot] [PATCHv2 59/74] transmission: install init script unconditionally Thomas Petazzoni
@ 2014-11-27 21:57 ` Thomas Petazzoni
2014-11-27 21:57 ` [Buildroot] [PATCHv2 61/74] input-event-daemon: " Thomas Petazzoni
` (13 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:57 UTC (permalink / raw)
To: buildroot
As discussed, users should use a rootfs overlay or a post-build script
instead of a custom skeleton to override files installed by Buildroot,
so there is no point in having conditions when installing init scripts
or configuration files.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/stunnel/stunnel.mk | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/package/stunnel/stunnel.mk b/package/stunnel/stunnel.mk
index ac2963e..3d0596d 100644
--- a/package/stunnel/stunnel.mk
+++ b/package/stunnel/stunnel.mk
@@ -19,9 +19,8 @@ STUNNEL_CONF_OPTS += --disable-systemd
endif
define STUNNEL_INSTALL_CONF
- [ -f $(TARGET_DIR)/etc/stunnel/stunnel.conf ] || \
- $(INSTALL) -m 0644 -D $(@D)/tools/stunnel.conf \
- $(TARGET_DIR)/etc/stunnel/stunnel.conf
+ $(INSTALL) -m 0644 -D $(@D)/tools/stunnel.conf \
+ $(TARGET_DIR)/etc/stunnel/stunnel.conf
rm -f $(TARGET_DIR)/etc/stunnel/stunnel.conf-sample
endef
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 61/74] input-event-daemon: install configuration file unconditionally
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (59 preceding siblings ...)
2014-11-27 21:57 ` [Buildroot] [PATCHv2 60/74] stunnel: install configuration file unconditionally Thomas Petazzoni
@ 2014-11-27 21:57 ` Thomas Petazzoni
2014-11-27 21:57 ` [Buildroot] [PATCHv2 62/74] fluxbox: install session " Thomas Petazzoni
` (12 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:57 UTC (permalink / raw)
To: buildroot
As discussed, users should use a rootfs overlay or a post-build script
instead of a custom skeleton to override files installed by Buildroot,
so there is no point in having conditions when installing init scripts
or configuration files.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/input-event-daemon/input-event-daemon.mk | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/package/input-event-daemon/input-event-daemon.mk b/package/input-event-daemon/input-event-daemon.mk
index 0bafdc4..67b8cc4 100644
--- a/package/input-event-daemon/input-event-daemon.mk
+++ b/package/input-event-daemon/input-event-daemon.mk
@@ -18,9 +18,8 @@ endef
define INPUT_EVENT_DAEMON_INSTALL_TARGET_CMDS
$(INSTALL) -m 755 -D $(@D)/input-event-daemon \
$(TARGET_DIR)/usr/bin/input-event-daemon
- [ -f $(TARGET_DIR)/etc/input-event-daemon.conf ] || \
- $(INSTALL) -m 644 -D $(@D)/docs/sample.conf \
- $(TARGET_DIR)/etc/input-event-daemon.conf
+ $(INSTALL) -m 644 -D $(@D)/docs/sample.conf \
+ $(TARGET_DIR)/etc/input-event-daemon.conf
endef
define INPUT_EVENT_DAEMON_INSTALL_INIT_SYSV
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 62/74] fluxbox: install session file unconditionally
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (60 preceding siblings ...)
2014-11-27 21:57 ` [Buildroot] [PATCHv2 61/74] input-event-daemon: " Thomas Petazzoni
@ 2014-11-27 21:57 ` Thomas Petazzoni
2014-11-27 21:57 ` [Buildroot] [PATCHv2 63/74] proftpd: install configuration " Thomas Petazzoni
` (11 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:57 UTC (permalink / raw)
To: buildroot
As discussed, users should use a rootfs overlay or a post-build script
instead of a custom skeleton to override files installed by Buildroot,
so there is no point in having conditions when installing init scripts
or configuration files.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/fluxbox/fluxbox.mk | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/package/fluxbox/fluxbox.mk b/package/fluxbox/fluxbox.mk
index 21901d6..a0f9367 100644
--- a/package/fluxbox/fluxbox.mk
+++ b/package/fluxbox/fluxbox.mk
@@ -24,8 +24,8 @@ FLUXBOX_CONF_OPTS += --disable-imlib2
endif
define FLUXBOX_INSTALL_XSESSION_FILE
- [ -f $(TARGET_DIR)/root/.xsession ] || $(INSTALL) -m 0755 -D \
- package/fluxbox/xsession $(TARGET_DIR)/root/.xsession
+ $(INSTALL) -m 0755 -D package/fluxbox/xsession \
+ $(TARGET_DIR)/root/.xsession
endef
FLUXBOX_POST_INSTALL_TARGET_HOOKS += FLUXBOX_INSTALL_XSESSION_FILE
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 63/74] proftpd: install configuration file unconditionally
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (61 preceding siblings ...)
2014-11-27 21:57 ` [Buildroot] [PATCHv2 62/74] fluxbox: install session " Thomas Petazzoni
@ 2014-11-27 21:57 ` Thomas Petazzoni
2014-11-27 21:57 ` [Buildroot] [PATCHv2 64/74] samba: " Thomas Petazzoni
` (10 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:57 UTC (permalink / raw)
To: buildroot
As discussed, users should use a rootfs overlay or a post-build script
instead of a custom skeleton to override files installed by Buildroot,
so there is no point in having conditions when installing init scripts
or configuration files.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/proftpd/proftpd.mk | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/package/proftpd/proftpd.mk b/package/proftpd/proftpd.mk
index 65dd84e..ce31276 100644
--- a/package/proftpd/proftpd.mk
+++ b/package/proftpd/proftpd.mk
@@ -48,10 +48,8 @@ PROFTPD_MAKE = $(MAKE1)
define PROFTPD_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 0755 $(@D)/proftpd $(TARGET_DIR)/usr/sbin/proftpd
- @if [ ! -f $(TARGET_DIR)/etc/proftpd.conf ]; then \
- $(INSTALL) -m 0644 -D $(@D)/sample-configurations/basic.conf $(TARGET_DIR)/etc/proftpd.conf; \
- $(if $(BR2_INET_IPV6),,$(SED) 's/^UseIPv6/# UseIPv6/' $(TARGET_DIR)/etc/proftpd.conf;) \
- fi
+ $(INSTALL) -m 0644 -D $(@D)/sample-configurations/basic.conf $(TARGET_DIR)/etc/proftpd.conf; \
+ $(if $(BR2_INET_IPV6),,$(SED) 's/^UseIPv6/# UseIPv6/' $(TARGET_DIR)/etc/proftpd.conf;) \
endef
define PROFTPD_INSTALL_INIT_SYSV
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 64/74] samba: install configuration file unconditionally
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (62 preceding siblings ...)
2014-11-27 21:57 ` [Buildroot] [PATCHv2 63/74] proftpd: install configuration " Thomas Petazzoni
@ 2014-11-27 21:57 ` Thomas Petazzoni
2014-11-27 21:57 ` [Buildroot] [PATCHv2 65/74] logrotate: " Thomas Petazzoni
` (9 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:57 UTC (permalink / raw)
To: buildroot
As discussed, users should use a rootfs overlay or a post-build script
instead of a custom skeleton to override files installed by Buildroot,
so there is no point in having conditions when installing init scripts
or configuration files.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/samba/samba.mk | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/package/samba/samba.mk b/package/samba/samba.mk
index 92bbe4e..0e4db95 100644
--- a/package/samba/samba.mk
+++ b/package/samba/samba.mk
@@ -177,10 +177,7 @@ SAMBA_POST_INSTALL_TARGET_HOOKS += SAMBA_REMOVE_SWAT_DOCUMENTATION
endif
define SAMBA_INSTALL_CONFIG
- # install config
- @if [ ! -f $(TARGET_DIR)/etc/samba/smb.conf ]; then \
- $(INSTALL) -m 0644 -D package/samba/simple.conf $(TARGET_DIR)/etc/samba/smb.conf; \
- fi
+ $(INSTALL) -m 0644 -D package/samba/simple.conf $(TARGET_DIR)/etc/samba/smb.conf
endef
SAMBA_POST_INSTALL_TARGET_HOOKS += SAMBA_INSTALL_CONFIG
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 65/74] logrotate: install configuration file unconditionally
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (63 preceding siblings ...)
2014-11-27 21:57 ` [Buildroot] [PATCHv2 64/74] samba: " Thomas Petazzoni
@ 2014-11-27 21:57 ` Thomas Petazzoni
2014-11-27 21:57 ` [Buildroot] [PATCHv2 66/74] nss-mdns: " Thomas Petazzoni
` (8 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:57 UTC (permalink / raw)
To: buildroot
As discussed, users should use a rootfs overlay or a post-build script
instead of a custom skeleton to override files installed by Buildroot,
so there is no point in having conditions when installing init scripts
or configuration files.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/logrotate/logrotate.mk | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/package/logrotate/logrotate.mk b/package/logrotate/logrotate.mk
index 2e49feb..dc26d85 100644
--- a/package/logrotate/logrotate.mk
+++ b/package/logrotate/logrotate.mk
@@ -17,9 +17,7 @@ endef
define LOGROTATE_INSTALL_TARGET_CMDS
$(MAKE) PREFIX=$(TARGET_DIR) -C $(@D) install
- if [ ! -f $(TARGET_DIR)/etc/logrotate.conf ]; then \
- $(INSTALL) -m 0644 package/logrotate/logrotate.conf $(TARGET_DIR)/etc/logrotate.conf; \
- fi
+ $(INSTALL) -m 0644 package/logrotate/logrotate.conf $(TARGET_DIR)/etc/logrotate.conf
$(INSTALL) -d -m 0755 $(TARGET_DIR)/etc/logrotate.d
endef
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 66/74] nss-mdns: install configuration file unconditionally
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (64 preceding siblings ...)
2014-11-27 21:57 ` [Buildroot] [PATCHv2 65/74] logrotate: " Thomas Petazzoni
@ 2014-11-27 21:57 ` Thomas Petazzoni
2014-11-27 21:57 ` [Buildroot] [PATCHv2 67/74] ifplugd: install configuration files unconditionally Thomas Petazzoni
` (7 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:57 UTC (permalink / raw)
To: buildroot
As discussed, users should use a rootfs overlay or a post-build script
instead of a custom skeleton to override files installed by Buildroot,
so there is no point in having conditions when installing init scripts
or configuration files.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/nss-mdns/nss-mdns.mk | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/package/nss-mdns/nss-mdns.mk b/package/nss-mdns/nss-mdns.mk
index 9ec9c1a..9a6c5a1 100644
--- a/package/nss-mdns/nss-mdns.mk
+++ b/package/nss-mdns/nss-mdns.mk
@@ -10,9 +10,7 @@ NSS_MDNS_LICENSE = LGPLv2.1+
NSS_MDNS_LICENSE_FILES = LICENSE
define NSS_MDNS_INSTALL_CONFIG
- if [ ! -f "$(TARGET_DIR)/etc/nsswitch.conf" ]; then \
- $(INSTALL) -D -m 0644 package/glibc/nsswitch.conf $(TARGET_DIR)/etc/nsswitch.conf ; \
- fi
+ $(INSTALL) -D -m 0644 package/glibc/nsswitch.conf $(TARGET_DIR)/etc/nsswitch.conf
sed -r -i -e 's/^(hosts:[[:space:]]+).*/\1files mdns4_minimal [NOTFOUND=return] dns mdns4/' \
$(TARGET_DIR)/etc/nsswitch.conf
endef
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 67/74] ifplugd: install configuration files unconditionally
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (65 preceding siblings ...)
2014-11-27 21:57 ` [Buildroot] [PATCHv2 66/74] nss-mdns: " Thomas Petazzoni
@ 2014-11-27 21:57 ` Thomas Petazzoni
2014-11-27 21:57 ` [Buildroot] [PATCHv2 68/74] sysklogd: install configuration file unconditionally Thomas Petazzoni
` (6 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:57 UTC (permalink / raw)
To: buildroot
As discussed, users should use a rootfs overlay or a post-build script
instead of a custom skeleton to override files installed by Buildroot,
so there is no point in having conditions when installing init scripts
or configuration files.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/ifplugd/ifplugd.mk | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git a/package/ifplugd/ifplugd.mk b/package/ifplugd/ifplugd.mk
index 3d0736a..b24c79d 100644
--- a/package/ifplugd/ifplugd.mk
+++ b/package/ifplugd/ifplugd.mk
@@ -21,14 +21,10 @@ ifeq ($(BR2_PACKAGE_BUSYBOX),y)
endif
define IFPLUGD_INSTALL_FIXUP
- if [ ! -f $(TARGET_DIR)/etc/ifplugd/ifplugd.conf ]; then \
- $(INSTALL) -D $(@D)/conf/ifplugd.conf $(TARGET_DIR)/etc/ifplugd/ifplugd.conf; \
- $(SED) 's^\(ARGS=.*\)w^\1^' $(TARGET_DIR)/etc/ifplugd/ifplugd.conf; \
- fi
- if [ ! -f $(TARGET_DIR)/etc/ifplugd/ifplugd.action ]; then \
- $(INSTALL) -D -m 0755 $(@D)/conf/ifplugd.action \
- $(TARGET_DIR)/etc/ifplugd/ifplugd.action ; \
- fi
+ $(INSTALL) -D $(@D)/conf/ifplugd.conf $(TARGET_DIR)/etc/ifplugd/ifplugd.conf; \
+ $(SED) 's^\(ARGS=.*\)w^\1^' $(TARGET_DIR)/etc/ifplugd/ifplugd.conf; \
+ $(INSTALL) -D -m 0755 $(@D)/conf/ifplugd.action \
+ $(TARGET_DIR)/etc/ifplugd/ifplugd.action ; \
endef
IFPLUGD_POST_INSTALL_TARGET_HOOKS += IFPLUGD_INSTALL_FIXUP
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 68/74] sysklogd: install configuration file unconditionally
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (66 preceding siblings ...)
2014-11-27 21:57 ` [Buildroot] [PATCHv2 67/74] ifplugd: install configuration files unconditionally Thomas Petazzoni
@ 2014-11-27 21:57 ` Thomas Petazzoni
2014-11-27 21:57 ` [Buildroot] [PATCHv2 69/74] screen: " Thomas Petazzoni
` (5 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:57 UTC (permalink / raw)
To: buildroot
As discussed, users should use a rootfs overlay or a post-build script
instead of a custom skeleton to override files installed by Buildroot,
so there is no point in having conditions when installing init scripts
or configuration files.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/sysklogd/sysklogd.mk | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/package/sysklogd/sysklogd.mk b/package/sysklogd/sysklogd.mk
index 2b60b45..1e8652d 100644
--- a/package/sysklogd/sysklogd.mk
+++ b/package/sysklogd/sysklogd.mk
@@ -21,10 +21,8 @@ endef
define SYSKLOGD_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 0500 $(@D)/syslogd $(TARGET_DIR)/sbin/syslogd
$(INSTALL) -D -m 0500 $(@D)/klogd $(TARGET_DIR)/sbin/klogd
- if [ ! -f $(TARGET_DIR)/etc/syslog.conf ]; then \
- $(INSTALL) -D -m 0644 package/sysklogd/syslog.conf \
- $(TARGET_DIR)/etc/syslog.conf; \
- fi
+ $(INSTALL) -D -m 0644 package/sysklogd/syslog.conf \
+ $(TARGET_DIR)/etc/syslog.conf; \
endef
define SYSKLOGD_INSTALL_INIT_SYSV
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 69/74] screen: install configuration file unconditionally
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (67 preceding siblings ...)
2014-11-27 21:57 ` [Buildroot] [PATCHv2 68/74] sysklogd: install configuration file unconditionally Thomas Petazzoni
@ 2014-11-27 21:57 ` Thomas Petazzoni
2014-11-27 21:57 ` [Buildroot] [PATCHv2 70/74] usbmount: " Thomas Petazzoni
` (4 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:57 UTC (permalink / raw)
To: buildroot
As discussed, users should use a rootfs overlay or a post-build script
instead of a custom skeleton to override files installed by Buildroot,
so there is no point in having conditions when installing init scripts
or configuration files.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/screen/screen.mk | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/package/screen/screen.mk b/package/screen/screen.mk
index 461bce2..827e776 100644
--- a/package/screen/screen.mk
+++ b/package/screen/screen.mk
@@ -15,9 +15,7 @@ SCREEN_MAKE = $(MAKE1)
SCREEN_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) SCREEN=screen install_bin
define SCREEN_INSTALL_SCREENRC
- if [ ! -f $(TARGET_DIR)/etc/screenrc ]; then \
- $(INSTALL) -m 0755 -D $(@D)/etc/screenrc $(TARGET_DIR)/etc/screenrc; \
- fi
+ $(INSTALL) -m 0755 -D $(@D)/etc/screenrc $(TARGET_DIR)/etc/screenrc
endef
SCREEN_POST_INSTALL_TARGET_HOOKS += SCREEN_INSTALL_SCREENRC
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 70/74] usbmount: install configuration file unconditionally
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (68 preceding siblings ...)
2014-11-27 21:57 ` [Buildroot] [PATCHv2 69/74] screen: " Thomas Petazzoni
@ 2014-11-27 21:57 ` Thomas Petazzoni
2014-11-27 21:57 ` [Buildroot] [PATCHv2 71/74] php: " Thomas Petazzoni
` (3 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:57 UTC (permalink / raw)
To: buildroot
As discussed, users should use a rootfs overlay or a post-build script
instead of a custom skeleton to override files installed by Buildroot,
so there is no point in having conditions when installing init scripts
or configuration files.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/usbmount/usbmount.mk | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/package/usbmount/usbmount.mk b/package/usbmount/usbmount.mk
index cc25e4b..76c027f 100644
--- a/package/usbmount/usbmount.mk
+++ b/package/usbmount/usbmount.mk
@@ -20,9 +20,7 @@ define USBMOUNT_INSTALL_TARGET_CMDS
$(TARGET_DIR)/etc/usbmount/usbmount.d/00_remove_model_symlink
$(INSTALL) -m 0644 -D $(@D)/usbmount.rules $(TARGET_DIR)/lib/udev/rules.d/usbmount.rules
- @if [ ! -f $(TARGET_DIR)/etc/usbmount/usbmount.conf ]; then \
- $(INSTALL) -m 0644 -D $(@D)/usbmount.conf $(TARGET_DIR)/etc/usbmount/usbmount.conf; \
- fi
+ $(INSTALL) -m 0644 -D $(@D)/usbmount.conf $(TARGET_DIR)/etc/usbmount/usbmount.conf
mkdir -p $(addprefix $(TARGET_DIR)/media/usb,0 1 2 3 4 5 6 7)
endef
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 71/74] php: install configuration file unconditionally
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (69 preceding siblings ...)
2014-11-27 21:57 ` [Buildroot] [PATCHv2 70/74] usbmount: " Thomas Petazzoni
@ 2014-11-27 21:57 ` Thomas Petazzoni
2014-11-27 21:57 ` [Buildroot] [PATCHv2 72/74] inadyn: " Thomas Petazzoni
` (2 subsequent siblings)
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:57 UTC (permalink / raw)
To: buildroot
As discussed, users should use a rootfs overlay or a post-build script
instead of a custom skeleton to override files installed by Buildroot,
so there is no point in having conditions when installing init scripts
or configuration files.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/php/php.mk | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/package/php/php.mk b/package/php/php.mk
index 9456f1c..caaf548 100644
--- a/package/php/php.mk
+++ b/package/php/php.mk
@@ -238,10 +238,8 @@ PHP_POST_INSTALL_TARGET_HOOKS += PHP_EXTENSIONS_FIXUP
define PHP_INSTALL_FIXUP
rm -rf $(TARGET_DIR)/usr/lib/php
rm -f $(TARGET_DIR)/usr/bin/phpize
- if [ ! -f $(TARGET_DIR)/etc/php.ini ]; then \
- $(INSTALL) -m 0755 $(PHP_DIR)/php.ini-production \
- $(TARGET_DIR)/etc/php.ini; \
- fi
+ $(INSTALL) -m 0755 $(PHP_DIR)/php.ini-production \
+ $(TARGET_DIR)/etc/php.ini
endef
PHP_POST_INSTALL_TARGET_HOOKS += PHP_INSTALL_FIXUP
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 72/74] inadyn: install configuration file unconditionally
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (70 preceding siblings ...)
2014-11-27 21:57 ` [Buildroot] [PATCHv2 71/74] php: " Thomas Petazzoni
@ 2014-11-27 21:57 ` Thomas Petazzoni
2014-11-27 21:57 ` [Buildroot] [PATCHv2 73/74] mpd: " Thomas Petazzoni
2014-11-27 21:57 ` [Buildroot] [PATCHv2 74/74] toolchain: install nssswitch.conf " Thomas Petazzoni
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:57 UTC (permalink / raw)
To: buildroot
As discussed, users should use a rootfs overlay or a post-build script
instead of a custom skeleton to override files installed by Buildroot,
so there is no point in having conditions when installing init scripts
or configuration files.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/inadyn/inadyn.mk | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/package/inadyn/inadyn.mk b/package/inadyn/inadyn.mk
index 73d95db..b002f94 100644
--- a/package/inadyn/inadyn.mk
+++ b/package/inadyn/inadyn.mk
@@ -20,10 +20,8 @@ INADYN_CONF_OPTS += --disable-ssl
endif
define INADYN_INSTALL_SAMPLE_CONFIG
- @if [ ! -f $(TARGET_DIR)/etc/inadyn.conf ]; then \
- $(INSTALL) -D -m 0600 package/inadyn/inadyn.conf \
- $(TARGET_DIR)/etc/inadyn.conf; \
- fi
+ $(INSTALL) -D -m 0600 package/inadyn/inadyn.conf \
+ $(TARGET_DIR)/etc/inadyn.conf
endef
INADYN_POST_INSTALL_TARGET_HOOKS += INADYN_INSTALL_SAMPLE_CONFIG
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 73/74] mpd: install configuration file unconditionally
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (71 preceding siblings ...)
2014-11-27 21:57 ` [Buildroot] [PATCHv2 72/74] inadyn: " Thomas Petazzoni
@ 2014-11-27 21:57 ` Thomas Petazzoni
2014-11-27 21:57 ` [Buildroot] [PATCHv2 74/74] toolchain: install nssswitch.conf " Thomas Petazzoni
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:57 UTC (permalink / raw)
To: buildroot
As discussed, users should use a rootfs overlay or a post-build script
instead of a custom skeleton to override files installed by Buildroot,
so there is no point in having conditions when installing init scripts
or configuration files.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/mpd/mpd.mk | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/package/mpd/mpd.mk b/package/mpd/mpd.mk
index b44285b..5176dc4 100644
--- a/package/mpd/mpd.mk
+++ b/package/mpd/mpd.mk
@@ -228,10 +228,7 @@ MPD_CONF_OPTS += --disable-wavpack
endif
define MPD_INSTALL_EXTRA_FILES
- @if [ ! -f $(TARGET_DIR)/etc/mpd.conf ]; then \
- $(INSTALL) -D package/mpd/mpd.conf \
- $(TARGET_DIR)/etc/mpd.conf; \
- fi
+ $(INSTALL) -D package/mpd/mpd.conf $(TARGET_DIR)/etc/mpd.conf
endef
MPD_POST_INSTALL_TARGET_HOOKS += MPD_INSTALL_EXTRA_FILES
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread* [Buildroot] [PATCHv2 74/74] toolchain: install nssswitch.conf configuration file unconditionally
2014-11-27 21:56 [Buildroot] [PATCHv2 00/74] Misc trivial improvements Thomas Petazzoni
` (72 preceding siblings ...)
2014-11-27 21:57 ` [Buildroot] [PATCHv2 73/74] mpd: " Thomas Petazzoni
@ 2014-11-27 21:57 ` Thomas Petazzoni
73 siblings, 0 replies; 78+ messages in thread
From: Thomas Petazzoni @ 2014-11-27 21:57 UTC (permalink / raw)
To: buildroot
As discussed, users should use a rootfs overlay or a post-build script
instead of a custom skeleton to override files installed by Buildroot,
so there is no point in having conditions when installing init scripts
or configuration files.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
toolchain/toolchain.mk | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/toolchain/toolchain.mk b/toolchain/toolchain.mk
index 3f9900b..0fb115b 100644
--- a/toolchain/toolchain.mk
+++ b/toolchain/toolchain.mk
@@ -3,12 +3,10 @@
# TARGET_FINALIZE_HOOKS, to be applied just after all packages
# have been built.
-# Install default nsswitch.conf file if the skeleton doesn't provide it
+# Install default nsswitch.conf file
ifeq ($(BR2_TOOLCHAIN_USES_GLIBC),y)
define GLIBC_COPY_NSSWITCH_FILE
- $(Q)if [ ! -f "$(TARGET_DIR)/etc/nsswitch.conf" ]; then \
- $(INSTALL) -D -m 0644 package/glibc/nsswitch.conf $(TARGET_DIR)/etc/nsswitch.conf ; \
- fi
+ $(INSTALL) -D -m 0644 package/glibc/nsswitch.conf $(TARGET_DIR)/etc/nsswitch.conf
endef
TARGET_FINALIZE_HOOKS += GLIBC_COPY_NSSWITCH_FILE
endif
--
2.1.0
^ permalink raw reply related [flat|nested] 78+ messages in thread