Commit 9d67d843 authored by Thomas Petazzoni's avatar Thomas Petazzoni Committed by Peter Korsgaard
Browse files

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: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: default avatarPeter Korsgaard <peter@korsgaard.com>
parent 828509fc
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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))