[Buildroot] [PATCH 19/51] gpsd: use <pkg>_INSTALL_INIT_SYSV mechanism

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sun Nov 23 20:38:51 UTC 2014


Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
---
 package/gpsd/gpsd.mk | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/package/gpsd/gpsd.mk b/package/gpsd/gpsd.mk
index 7dc27e8..f0045e0 100644
--- a/package/gpsd/gpsd.mk
+++ b/package/gpsd/gpsd.mk
@@ -206,6 +206,9 @@ define GPSD_INSTALL_TARGET_CMDS
 		$(SCONS) \
 		$(GPSD_SCONS_OPTS) \
 		install)
+endef
+
+define GPSD_INSTALL_INIT_SYSV
 	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; \
-- 
2.1.0



More information about the buildroot mailing list