summaryrefslogtreecommitdiff
path: root/meta/packages
diff options
context:
space:
mode:
authorRoss Burton <ross@openedhand.com>2007-01-19 20:12:23 +0000
committerRoss Burton <ross@openedhand.com>2007-01-19 20:12:23 +0000
commite3435563f57f19ed7515368b170ed41037905114 (patch)
tree67fe30c76e6b17dfc4ab3bfc53b9cd45b6eeffd4 /meta/packages
parentb4fcc5f86a36d87b76ebe4f26680f4e9c896ab17 (diff)
downloadopenembedded-core-e3435563f57f19ed7515368b170ed41037905114.tar.gz
openembedded-core-e3435563f57f19ed7515368b170ed41037905114.tar.bz2
openembedded-core-e3435563f57f19ed7515368b170ed41037905114.tar.xz
openembedded-core-e3435563f57f19ed7515368b170ed41037905114.zip
Add a volatile file so /var/run/hald is created
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1172 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages')
-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