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>
This commit is contained in:
parent
8234e6e7fa
commit
171fc468dc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user