From e3435563f57f19ed7515368b170ed41037905114 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Fri, 19 Jan 2007 20:12:23 +0000 Subject: 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 --- meta/packages/hal/hal_0.5.8.1.bb | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'meta/packages/hal') 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 -- cgit v1.2.3