[Buildroot] [PATCHv2 25/74] tinyhttpd: use <pkg>_INSTALL_INIT_SYSV mechanism
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Thu Nov 27 21:56:43 UTC 2014
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
---
package/tinyhttpd/tinyhttpd.mk | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/package/tinyhttpd/tinyhttpd.mk b/package/tinyhttpd/tinyhttpd.mk
index ec47fd9..0934b71 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))
--
2.1.0
More information about the buildroot
mailing list