aboutsummaryrefslogtreecommitdiff
path: root/package/gpsd
diff options
context:
space:
mode:
authorGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-11-30 15:18:07 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2014-12-01 22:56:11 +0100
commitcbacf1cf2af80960484aead4ae6b012301be6a6e (patch)
tree9f314bc555996895fc1b9691c1f54e192810d493 /package/gpsd
parentd77936d446057c9e83040a573f2c3dea59170400 (diff)
downloadbuildroot-cbacf1cf2af80960484aead4ae6b012301be6a6e.tar.gz
buildroot-cbacf1cf2af80960484aead4ae6b012301be6a6e.tar.bz2
gpsd: use <pkg>_INSTALL_INIT_SYSV mechanism
Also makes the installation of the init script unconditional. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/gpsd')
-rw-r--r--package/gpsd/gpsd.mk9
1 files changed, 5 insertions, 4 deletions
diff --git a/package/gpsd/gpsd.mk b/package/gpsd/gpsd.mk
index 7dc27e8b26..5092b38a49 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