stunnel: use the <pkg>_INSTALL_INIT_SYSV mechanism
Since the existing STUNNEL_INSTALL_CONF_SCRIPT hook no longer installs the init script, we rename it to STUNNEL_INSTALL_CONF. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
f763f74422
commit
cbe34dd655
|
@ -18,14 +18,17 @@ else
|
||||||
STUNNEL_CONF_OPTS += --disable-systemd
|
STUNNEL_CONF_OPTS += --disable-systemd
|
||||||
endif
|
endif
|
||||||
|
|
||||||
define STUNNEL_INSTALL_CONF_SCRIPT
|
define STUNNEL_INSTALL_CONF
|
||||||
$(INSTALL) -m 0755 -D package/stunnel/S50stunnel $(TARGET_DIR)/etc/init.d/S50stunnel
|
|
||||||
[ -f $(TARGET_DIR)/etc/stunnel/stunnel.conf ] || \
|
[ -f $(TARGET_DIR)/etc/stunnel/stunnel.conf ] || \
|
||||||
$(INSTALL) -m 0644 -D $(@D)/tools/stunnel.conf \
|
$(INSTALL) -m 0644 -D $(@D)/tools/stunnel.conf \
|
||||||
$(TARGET_DIR)/etc/stunnel/stunnel.conf
|
$(TARGET_DIR)/etc/stunnel/stunnel.conf
|
||||||
rm -f $(TARGET_DIR)/etc/stunnel/stunnel.conf-sample
|
rm -f $(TARGET_DIR)/etc/stunnel/stunnel.conf-sample
|
||||||
endef
|
endef
|
||||||
|
|
||||||
STUNNEL_POST_INSTALL_TARGET_HOOKS += STUNNEL_INSTALL_CONF_SCRIPT
|
STUNNEL_POST_INSTALL_TARGET_HOOKS += STUNNEL_INSTALL_CONF
|
||||||
|
|
||||||
|
define STUNNEL_INSTALL_INIT_SYSV
|
||||||
|
$(INSTALL) -m 0755 -D package/stunnel/S50stunnel $(TARGET_DIR)/etc/init.d/S50stunnel
|
||||||
|
endef
|
||||||
|
|
||||||
$(eval $(autotools-package))
|
$(eval $(autotools-package))
|
||||||
|
|
Loading…
Reference in New Issue