nfs-utils: use <pkg>_INSTALL_INIT_SYSV mechanism
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 30 Nov 2014 14:18:04 +0000 (15:18 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 1 Dec 2014 21:53:34 +0000 (22:53 +0100)
Also move back the NFS_UTILS_INSTALL_FIXUP hook registration right
after the hook definition.

[Peter: use install -D as noted by Yann]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/nfs-utils/nfs-utils.mk

index 8b56edf020dbc7db08a5dc6d83dcc61c16c54de2..91a1bafc8354a727671646dc3817c108173fdcdb 100644 (file)
@@ -35,17 +35,20 @@ NFS_UTILS_CONF_OPTS += --disable-tirpc
 endif
 
 define NFS_UTILS_INSTALL_FIXUP
-       $(INSTALL) -m 0755 package/nfs-utils/S60nfs \
-               $(TARGET_DIR)/etc/init.d/S60nfs
        rm -f $(NFS_UTILS_TARGETS_)
 endef
 
+NFS_UTILS_POST_INSTALL_TARGET_HOOKS += NFS_UTILS_INSTALL_FIXUP
+
+define NFS_UTILS_INSTALL_INIT_SYSV
+       $(INSTALL) -D -m 0755 package/nfs-utils/S60nfs \
+               $(TARGET_DIR)/etc/init.d/S60nfs
+endef
+
 define NFS_UTILS_REMOVE_NFSIOSTAT
        rm -f $(TARGET_DIR)/usr/sbin/nfsiostat
 endef
 
-NFS_UTILS_POST_INSTALL_TARGET_HOOKS += NFS_UTILS_INSTALL_FIXUP
-
 # nfsiostat is interpreted python, so remove it unless it's in the target
 NFS_UTILS_POST_INSTALL_TARGET_HOOKS += $(if $(BR2_PACKAGE_PYTHON),,NFS_UTILS_REMOVE_NFSIOSTAT)