summaryrefslogtreecommitdiff
path: root/meta/packages/hal
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/hal')
-rw-r--r--meta/packages/hal/hal_0.5.8.1.bb13
1 files changed, 11 insertions, 2 deletions
diff --git a/meta/packages/hal/hal_0.5.8.1.bb b/meta/packages/hal/hal_0.5.8.1.bb
index 0ac92bfed..dc07d6284 100644
--- a/meta/packages/hal/hal_0.5.8.1.bb
+++ b/meta/packages/hal/hal_0.5.8.1.bb
@@ -8,9 +8,10 @@ RDEPENDS += "udev"
#RDEPENDS_hal-device-manager = "python hal python-pygnome"
RRECOMMENDS = "udev-utils"
-PR = "r1"
+PR = "r2"
-SRC_URI = "http://freedesktop.org/~david/dist/hal-${PV}.tar.gz"
+SRC_URI = "http://freedesktop.org/~david/dist/hal-${PV}.tar.gz \
+ file://99_hal"
S = "${WORKDIR}/hal-${PV}"
@@ -24,6 +25,11 @@ EXTRA_OECONF = "--with-hwdata=${datadir}/hwdata \
--disable-policy-kit \
"
+do_install_append() {
+ install -d ${D}/etc/default/volatiles
+ install -m 0644 ${WORKDIR}/99_hal ${D}/etc/default/volatiles
+}
+
do_stage() {
autotools_stage_all
install -d ${STAGING_LIBDIR}
@@ -37,6 +43,9 @@ pkg_postinst_hal () {
if [ "x$D" != "x" ]; then
exit 1
fi
+
+ /etc/init.d/populate-volatile.sh update
+
grep haldaemon /etc/group || addgroup haldaemon
grep haldaemon /etc/passwd || adduser --disabled-password --system --home /var/run/hald --no-create-home haldaemon --ingroup haldaemon -g HAL