1 DESCRIPTION = "Hardware Abstraction Layer"
2 HOMEPAGE = "http://freedesktop.org/Software/hal"
4 LICENSE = "GPL LGPL AFL"
6 DEPENDS = "virtual/kernel dbus-glib udev intltool-native expat libusb"
7 RDEPENDS_${PN} += "udev hal-info"
8 RRECOMMENDS_${PN} += "udev-utils"
12 SRC_URI = "http://freedesktop.org/~david/dist/hal-${PV}.tar.gz \
13 file://configure_fix.patch;patch=1 \
14 file://sg-inhibit.patch;patch=1 \
18 S = "${WORKDIR}/hal-${PV}"
20 inherit autotools pkgconfig
22 EXTRA_OECONF = "--with-hwdata=${datadir}/hwdata \
23 --with-expat=${STAGING_DIR_HOST}${layout_prefix} \
24 --with-dbus-sys=${sysconfdir}/dbus-1/system.d \
25 --with-hotplug=${sysconfdir}/hotplug.d \
26 --disable-docbook-docs \
27 --disable-policy-kit \
28 --disable-acpi --disable-acpi-acpid --disable-acpi-proc \
30 --disable-pmu --disable-pci \
31 --disable-pci-ids --disable-pnp-ids \
35 install -d ${D}/etc/default/volatiles
36 install -m 0644 ${WORKDIR}/99_hal ${D}/etc/default/volatiles
37 install -d ${D}/etc/dbus-1/event.d
38 install -m 0755 ${WORKDIR}/20hal ${D}/etc/dbus-1/event.d
43 install -d ${STAGING_LIBDIR}
44 install -m 755 libhal/.libs/libhal.so.1.0.0 ${STAGING_LIBDIR}/libhal.so
45 install -m 755 libhal-storage/.libs/libhal-storage.so.1.0.0 ${STAGING_LIBDIR}/libhal-storage.so
48 # At the time the postinst runs, dbus might not be setup so only restart if running
50 # can not do this offline
51 if [ "x$D" != "x" ]; then
55 /etc/init.d/populate-volatile.sh update
57 grep haldaemon /etc/group || addgroup haldaemon
58 grep haldaemon /etc/passwd || adduser --disabled-password --system --home /var/run/hald --no-create-home haldaemon --ingroup haldaemon -g HAL
60 DBUSPID=`pidof dbus-daemon`
62 if [ "x$DBUSPID" != "x" ]; then
63 /etc/init.d/dbus-1 reload
68 deluser haldaemon || true
69 delgroup haldaemon || true
72 PACKAGES =+ "libhal libhal-storage"
74 FILES_libhal = "${libdir}/libhal.so.*"
75 FILES_libhal-storage = "${libdir}/libhal-storage.so.*"
77 FILES_${PN} = "${sysconfdir} \
79 ${bindir}/hal-find-by-capability \
80 ${bindir}/hal-find-by-property \
81 ${bindir}/hal-device \
82 ${bindir}/hal-get-property \
83 ${bindir}/hal-set-property \
85 ${bindir}/hal-is-caller-locked-out \
86 ${bindir}/hal-disable-polling \
88 ${libdir}/libhal.so.* \
89 ${libdir}/libhal-storage.so.* \
93 ${datadir}/hal/scripts"