aboutsummaryrefslogtreecommitdiff
path: root/package/portmap/portmap.mk
diff options
context:
space:
mode:
authorGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-11-30 15:17:55 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2014-12-01 22:43:28 +0100
commit9d67d8436fb7fa4dfc31be568dc7ca3d236469a5 (patch)
treec0645d0e2031cfb560dcb88c1abfec0ee4e888f8 /package/portmap/portmap.mk
parent828509fcbe15e26d1d89744c3d38f076a6067bad (diff)
downloadbuildroot-9d67d8436fb7fa4dfc31be568dc7ca3d236469a5.tar.gz
buildroot-9d67d8436fb7fa4dfc31be568dc7ca3d236469a5.tar.bz2
portmap: use <pkg>_INSTALL_INIT_SYSV mechanism
We also switch to using a full destination path as the second argument of $(INSTALL). [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>
Diffstat (limited to 'package/portmap/portmap.mk')
-rw-r--r--package/portmap/portmap.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/package/portmap/portmap.mk b/package/portmap/portmap.mk
index 01895976a6..2bffb9e3c0 100644
--- a/package/portmap/portmap.mk
+++ b/package/portmap/portmap.mk
@@ -30,8 +30,10 @@ define PORTMAP_INSTALL_TARGET_CMDS
$(TARGET_DIR)/usr/share/man/man8/pmap_dump.8
$(INSTALL) -D $(@D)/pmap_set.8 \
$(TARGET_DIR)/usr/share/man/man8/pmap_set.8
- $(INSTALL) -m 0755 package/portmap/S13portmap \
- $(TARGET_DIR)/etc/init.d
+endef
+
+define PORTMAP_INSTALL_INIT_SYSV
+ $(INSTALL) -D -m 0755 package/portmap/S13portmap $(TARGET_DIR)/etc/init.d/S13portmap
endef
$(eval $(generic-package))