From: Thomas Petazzoni Date: Sun, 30 Nov 2014 14:18:07 +0000 (+0100) Subject: gpsd: use _INSTALL_INIT_SYSV mechanism X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cbacf1cf2af80960484aead4ae6b012301be6a6e;p=buildroot.git gpsd: use _INSTALL_INIT_SYSV mechanism Also makes the installation of the init script unconditional. Signed-off-by: Thomas Petazzoni Acked-by: "Yann E. MORIN" Signed-off-by: Peter Korsgaard --- 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