package/eudev: support openrc init
authorCarlos Santos <unixmania@gmail.com>
Thu, 27 Feb 2020 14:51:23 +0000 (11:51 -0300)
committerYann E. MORIN <yann.morin.1998@free.fr>
Thu, 27 Feb 2020 20:14:22 +0000 (21:14 +0100)
Select udev-gentoo-scripts and avoid installing the sysv init script.

Signed-off-by: Carlos Santos <unixmania@gmail.com>
[yann.morin.1998@free.fr: use a fake openrc init hook]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/eudev/Config.in
package/eudev/eudev.mk

index b1d2f37a728af31631c9ce65f75b01e2918c2058..b0ce76171afb22d5667623b6b45219847cfdd6f1 100644 (file)
@@ -5,6 +5,7 @@ config BR2_PACKAGE_EUDEV
        depends on BR2_USE_WCHAR # needs C99 compiler
        depends on !BR2_STATIC_LIBS # kmod
        select BR2_PACKAGE_HAS_UDEV
+       select BR2_PACKAGE_UDEV_GENTOO_SCRIPTS if BR2_INIT_OPENRC
        select BR2_PACKAGE_UTIL_LINUX
        select BR2_PACKAGE_UTIL_LINUX_LIBBLKID
        select BR2_PACKAGE_KMOD
index 99b5befd09c27a7dc19764fd59f14588d31b4005..8b677e76b6efc1fb1dbe68de63b7083c24ec8b10 100644 (file)
@@ -48,6 +48,12 @@ define EUDEV_INSTALL_INIT_SYSV
        $(INSTALL) -D -m 0755 package/eudev/S10udev $(TARGET_DIR)/etc/init.d/S10udev
 endef
 
+# Avoid installing S10udev with openrc, as the service is started by a unit
+# from the udev-gentoo-scripts package.
+define EUDEV_INSTALL_INIT_OPENRC
+       @:
+endef
+
 # Required by default rules for input devices
 define EUDEV_USERS
        - - input -1 * - - - Input device group