From: Thomas Petazzoni Date: Sun, 30 Nov 2014 14:18:13 +0000 (+0100) Subject: tinyhttpd: use _INSTALL_INIT_SYSV mechanism X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=577a1b2072ce4cc00c7bf7b8b966bb61fd98293a;p=buildroot.git tinyhttpd: use _INSTALL_INIT_SYSV mechanism Signed-off-by: Thomas Petazzoni Acked-by: "Yann E. MORIN" Signed-off-by: Peter Korsgaard --- diff --git a/package/tinyhttpd/tinyhttpd.mk b/package/tinyhttpd/tinyhttpd.mk index ec47fd97f9..0934b71034 100644 --- a/package/tinyhttpd/tinyhttpd.mk +++ b/package/tinyhttpd/tinyhttpd.mk @@ -16,9 +16,12 @@ endef define TINYHTTPD_INSTALL_TARGET_CMDS $(INSTALL) -m 0755 -D $(@D)/httpd $(TARGET_DIR)/usr/sbin/tinyhttpd + mkdir -p $(TARGET_DIR)/var/www +endef + +define TINYHTTPD_INSTALL_INIT_SYSV $(INSTALL) -m 0755 -D package/tinyhttpd/S85tinyhttpd \ $(TARGET_DIR)/etc/init.d/S85tinyhttpd - mkdir -p $(TARGET_DIR)/var/www endef $(eval $(generic-package))