aboutsummaryrefslogtreecommitdiff
path: root/package/transmission/transmission.mk
diff options
context:
space:
mode:
authorGravatar Samuel Martin <s.martin49@gmail.com>2014-01-18 20:23:40 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2014-01-19 21:20:29 +0100
commit171fc468dc0dc2a2011d105357c91fdaf4af463a (patch)
tree68df11ba0b4b060892da888b605d183e4de4b5bc /package/transmission/transmission.mk
parent8234e6e7fab77c8ca9dbb5d383aa23cf90264c58 (diff)
downloadbuildroot-171fc468dc0dc2a2011d105357c91fdaf4af463a.tar.gz
buildroot-171fc468dc0dc2a2011d105357c91fdaf4af463a.tar.bz2
transmission: use <PKG>_INSTALL_INIT_SYSV infra instead of custom hook
[Peter: only install if _DAEMON is enabled] Signed-off-by: Samuel Martin <s.martin49@gmail.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/transmission/transmission.mk')
-rw-r--r--package/transmission/transmission.mk14
1 files changed, 7 insertions, 7 deletions
diff --git a/package/transmission/transmission.mk b/package/transmission/transmission.mk
index 3ced558e2e..a08e7ef38b 100644
--- a/package/transmission/transmission.mk
+++ b/package/transmission/transmission.mk
@@ -19,12 +19,6 @@ TRANSMISSION_CONF_OPT = \
--disable-libnotify \
--enable-lightweight
-define TRANSMISSION_INIT_SCRIPT_INSTALL
- [ -f $(TARGET_DIR)/etc/init.d/S92transmission ] || \
- $(INSTALL) -m 0755 -D package/transmission/S92transmission \
- $(TARGET_DIR)/etc/init.d/S92transmission
-endef
-
ifeq ($(BR2_PACKAGE_TRANSMISSION_UTP),y)
TRANSMISSION_CONF_OPT += --enable-utp
else
@@ -39,7 +33,13 @@ endif
ifeq ($(BR2_PACKAGE_TRANSMISSION_DAEMON),y)
TRANSMISSION_CONF_OPT += --enable-daemon
- TRANSMISSION_POST_INSTALL_TARGET_HOOKS += TRANSMISSION_INIT_SCRIPT_INSTALL
+
+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
+endef
+
else
TRANSMISSION_CONF_OPT += --disable-daemon
endif