summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-core/udev/eudev_3.1.5.bb25
1 files changed, 22 insertions, 3 deletions
diff --git a/meta/recipes-core/udev/eudev_3.1.5.bb b/meta/recipes-core/udev/eudev_3.1.5.bb
index e94e0dc33d..ea19ec4138 100644
--- a/meta/recipes-core/udev/eudev_3.1.5.bb
+++ b/meta/recipes-core/udev/eudev_3.1.5.bb
@@ -23,7 +23,7 @@ UPSTREAM_CHECK_URI = "https://github.com/gentoo/eudev/releases"
23SRC_URI[md5sum] = "e130f892d8744e292cb855db79935f68" 23SRC_URI[md5sum] = "e130f892d8744e292cb855db79935f68"
24SRC_URI[sha256sum] = "ce9d5fa91e3a42c7eb95512ca0fa2a631e89833053066bb6cdf42046b2a88553" 24SRC_URI[sha256sum] = "ce9d5fa91e3a42c7eb95512ca0fa2a631e89833053066bb6cdf42046b2a88553"
25 25
26inherit autotools update-rc.d 26inherit autotools update-rc.d qemu
27 27
28EXTRA_OECONF = " \ 28EXTRA_OECONF = " \
29 --sbindir=${base_sbindir} \ 29 --sbindir=${base_sbindir} \
@@ -69,6 +69,8 @@ INITSCRIPT_PARAMS_udev-cache = "start 36 S ."
69 69
70PACKAGES =+ "libudev" 70PACKAGES =+ "libudev"
71PACKAGES =+ "udev-cache" 71PACKAGES =+ "udev-cache"
72PACKAGES =+ "eudev-hwdb"
73
72 74
73FILES_${PN} += "${libexecdir} ${nonarch_base_libdir}/udev ${bindir}/udevadm" 75FILES_${PN} += "${libexecdir} ${nonarch_base_libdir}/udev ${bindir}/udevadm"
74FILES_${PN}-dev = "${datadir}/pkgconfig/udev.pc \ 76FILES_${PN}-dev = "${datadir}/pkgconfig/udev.pc \
@@ -77,12 +79,29 @@ FILES_${PN}-dev = "${datadir}/pkgconfig/udev.pc \
77 ${libdir}/libudev.a ${libdir}/pkgconfig/libudev.pc" 79 ${libdir}/libudev.a ${libdir}/pkgconfig/libudev.pc"
78FILES_libudev = "${base_libdir}/libudev.so.*" 80FILES_libudev = "${base_libdir}/libudev.so.*"
79FILES_udev-cache = "${sysconfdir}/init.d/udev-cache ${sysconfdir}/default/udev-cache" 81FILES_udev-cache = "${sysconfdir}/init.d/udev-cache ${sysconfdir}/default/udev-cache"
82FILES_eudev-hwdb = "${sysconfdir}/udev/hwdb.d"
83
84RDEPENDS_eudev-hwdb += "eudev"
85
86RRECOMMENDS_${PN} += "udev-cache eudev-hwdb"
87
88RPROVIDES_${PN} = "hotplug udev"
80 89
81python () { 90python () {
82 if bb.utils.contains ('DISTRO_FEATURES', 'systemd', True, False, d): 91 if bb.utils.contains ('DISTRO_FEATURES', 'systemd', True, False, d):
83 raise bb.parse.SkipPackage("'systemd' in DISTRO_FEATURES") 92 raise bb.parse.SkipPackage("'systemd' in DISTRO_FEATURES")
84} 93}
85 94
86RRECOMMENDS_${PN} += "udev-cache" 95pkg_postinst_eudev-hwdb () {
96 if test -n "$D"; then
97 ${@qemu_run_binary(d, '$D', '${bindir}/udevadm')} hwdb --update --root $D
98 chown root:root $D${sysconfdir}/udev/hwdb.bin
99 else
100 udevadm hwdb --update
101 fi
102}
103
104pkg_prerm_eudev-hwdb () {
105 rm -f $D${sysconfdir}/udev/hwdb.bin
106}
87 107
88RPROVIDES_${PN} = "hotplug udev"