From 171fc468dc0dc2a2011d105357c91fdaf4af463a Mon Sep 17 00:00:00 2001 From: Samuel Martin Date: Sat, 18 Jan 2014 20:23:40 +0100 Subject: [PATCH] transmission: use _INSTALL_INIT_SYSV infra instead of custom hook [Peter: only install if _DAEMON is enabled] Signed-off-by: Samuel Martin Reviewed-by: "Yann E. MORIN" Signed-off-by: Peter Korsgaard --- package/transmission/transmission.mk | 14 +++++++------- 1 file 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 -- 2.30.2