netatalk: use <pkg>_INSTALL_INIT_SYSV mechanism
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 30 Nov 2014 14:18:05 +0000 (15:18 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 1 Dec 2014 21:54:13 +0000 (22:54 +0100)
Also makes the installation of the init script unconditional.

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/netatalk/netatalk.mk

index 5ea55c25c9a38367f598544512a253658f1be0c7..6c1b64094dc861d5e40a6bd01f498748da18b9cc 100644 (file)
@@ -50,12 +50,9 @@ else
        NETATALK_CONF_OPTS += --disable-cups
 endif
 
-define NETATALK_INSTALL_EXTRA_FILES
-       [ -f $(TARGET_DIR)/etc/init.d/S50netatalk ] || \
-               $(INSTALL) -m 0755 -D package/netatalk/S50netatalk \
-                       $(TARGET_DIR)/etc/init.d/S50netatalk
+define NETATALK_INSTALL_INIT_SYSV
+       $(INSTALL) -m 0755 -D package/netatalk/S50netatalk \
+               $(TARGET_DIR)/etc/init.d/S50netatalk
 endef
 
-NETATALK_POST_INSTALL_TARGET_HOOKS += NETATALK_INSTALL_EXTRA_FILES
-
 $(eval $(autotools-package))