package/openrc: install sysv-rcs file
authorAdam Duskett <aduskett@greenlots.com>
Thu, 19 Dec 2019 19:01:35 +0000 (11:01 -0800)
committerYann E. MORIN <yann.morin.1998@free.fr>
Thu, 19 Dec 2019 21:21:49 +0000 (22:21 +0100)
package/openrc has the file sysv-rcs which starts sysvinit services
not written for openrc. However, currently it is not installed to
the target.

Install this file to $(TARGET_DIR)/etc/init.d during the
target_install step.

Signed-off-by: Adam Duskett <aduskett@greenlots.com>
[yann.morin.1998@free.fr: use full-path for destination, not just dir]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/openrc/openrc.mk

index 387962d4d58d3d88d1a01d900092e6382577ba0a..3f6453cef5de9a63cc38e1d6010cb0c528b18890 100644 (file)
@@ -35,6 +35,8 @@ endef
 
 define OPENRC_INSTALL_TARGET_CMDS
        $(MAKE) $(OPENRC_MAKE_OPTS) DESTDIR=$(TARGET_DIR) -C $(@D) install
+       $(INSTALL) -D -m 0755 $(OPENRC_PKGDIR)/sysv-rcs \
+               $(TARGET_DIR)/etc/init.d/sysv-rcs
 endef
 
 ifeq ($(BR2_PACKAGE_NETIFRC),y)