summaryrefslogtreecommitdiffstats
path: root/package/tinyhttpd
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-11-30 15:18:13 +0100
committerPeter Korsgaard <peter@korsgaard.com>2014-12-01 23:06:22 +0100
commit577a1b2072ce4cc00c7bf7b8b966bb61fd98293a (patch)
tree7fb99805b188a5b8e40e2b2c96602aa869f86f58 /package/tinyhttpd
parent2b7b3f50a7273a4e5e819d3bdb123e16e1cea710 (diff)
tinyhttpd: use <pkg>_INSTALL_INIT_SYSV mechanism
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>
Diffstat (limited to 'package/tinyhttpd')
-rw-r--r--package/tinyhttpd/tinyhttpd.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/package/tinyhttpd/tinyhttpd.mk b/package/tinyhttpd/tinyhttpd.mk
index ec47fd97f..0934b7103 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))