[Buildroot] [git commit] stunnel: use the <pkg>_INSTALL_INIT_SYSV mechanism
Peter Korsgaard
peter at korsgaard.com
Mon Dec 1 21:46:13 UTC 2014
commit: http://git.buildroot.net/buildroot/commit/?id=cbe34dd655f456393979588aeb8372d417164022
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master
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 at free-electrons.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998 at free.fr>
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
package/stunnel/stunnel.mk | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/package/stunnel/stunnel.mk b/package/stunnel/stunnel.mk
index dc56261..ac2963e 100644
--- a/package/stunnel/stunnel.mk
+++ b/package/stunnel/stunnel.mk
@@ -18,14 +18,17 @@ else
STUNNEL_CONF_OPTS += --disable-systemd
endif
-define STUNNEL_INSTALL_CONF_SCRIPT
- $(INSTALL) -m 0755 -D package/stunnel/S50stunnel $(TARGET_DIR)/etc/init.d/S50stunnel
+define STUNNEL_INSTALL_CONF
[ -f $(TARGET_DIR)/etc/stunnel/stunnel.conf ] || \
$(INSTALL) -m 0644 -D $(@D)/tools/stunnel.conf \
$(TARGET_DIR)/etc/stunnel/stunnel.conf
rm -f $(TARGET_DIR)/etc/stunnel/stunnel.conf-sample
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))
More information about the buildroot
mailing list