kernel-module-autofs4 kernel-module-unix kernel-module-ipv6 \
"
-PACKAGES =+ "udev-dbg udev udev-consolekit udev-utils"
+PACKAGES =+ "udev-dbg udev udev-consolekit udev-utils udev-hwdb"
FILES_udev-dbg += "/lib/udev/.debug"
RDEPENDS_udev += "udev-utils"
RPROVIDES_udev = "hotplug"
-RRECOMMENDS_udev += "udev-extraconf"
+RRECOMMENDS_udev += "udev-extraconf udev-hwdb"
FILES_udev += "${base_sbindir}/udevd \
${base_libdir}/systemd/systemd-udevd \
/lib/udev/rules.d/78*.rules \
/lib/udev/rules.d/8*.rules \
/lib/udev/rules.d/95*.rules \
- ${base_libdir}/udev/hwdb.d \
${sysconfdir}/udev \
${systemd_unitdir}/system/*udev* \
${systemd_unitdir}/system/*.wants/*udev* \
FILES_udev-utils = "${bindir}/udevadm"
+FILES_udev-hwdb = "${base_libdir}/udev/hwdb.d"
+
# TODO:
# u-a for runlevel and telinit
update-alternatives --remove poweroff ${base_bindir}/systemctl
}
+pkg_postinst_udev-hwdb () {
+ if test -n "$D"; then
+ exit 1
+ fi
+
+ udevadm hwdb --update
+}
+
+pkg_prerm_udev-hwdb () {
+ if test -n "$D"; then
+ exit 1
+ fi
+
+ rm -f ${sysconfdir}/udev/hwdb.bin
+}
# As this recipe builds udev, respect the systemd DISTRO_FEATURE so we don't try
# building udev and systemd in world builds.