tinyhttpd: use <pkg>_INSTALL_INIT_SYSV mechanism
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 30 Nov 2014 14:18:13 +0000 (15:18 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 1 Dec 2014 22:06:22 +0000 (23:06 +0100)
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>
package/tinyhttpd/tinyhttpd.mk

index ec47fd97f930875874d7e4d3a7f9a855cad2c86c..0934b71034003912115ea0529a963957900af39f 100644 (file)
@@ -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))