1 DESCRIPTION = "Hardware Abstraction Layer"
2 HOMEPAGE = "http://freedesktop.org/Software/hal"
4 LICENSE = "GPL LGPL AFL"
6 DEFAULT_PREFERENCE = "-1"
8 DEPENDS = "virtual/kernel dbus-glib udev intltool-native expat virtual/libusb0"
9 RDEPENDS_${PN} += "udev-utils hal-info"
11 SRC_URI = "git://anongit.freedesktop.org/hal/;protocol=git \
15 PV = "0.5.9.1+git${SRCDATE}"
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't do this offline
51 if [ "x$D" != "x" ]; then
55 grep haldaemon /etc/group || addgroup haldaemon
56 grep haldaemon /etc/passwd || adduser --disabled-password --system --home /var/run/hald --no-create-home haldaemon --ingroup haldaemon -g HAL
58 /etc/init.d/populate-volatile.sh update
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 FILES_${PN} = "${sysconfdir} \
74 ${bindir}/hal-find-by-capability \
75 ${bindir}/hal-find-by-property \
76 ${bindir}/hal-device \
77 ${bindir}/hal-get-property \
78 ${bindir}/hal-set-property \
80 ${bindir}/hal-is-caller-locked-out \
81 ${bindir}/hal-disable-polling \
83 ${libdir}/libhal.so.* \
84 ${libdir}/libhal-storage.so.* \
88 ${datadir}/hal/scripts"