From: Ross Burton Date: Fri, 19 Jan 2007 20:12:23 +0000 (+0000) Subject: Add a volatile file so /var/run/hald is created X-Git-Tag: rev_ivi_2015_02_04~32706 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b0e18fffa09f02e22e0a161392f255a5d55182e1;p=scm%2Fbb%2Ftizen-distro.git 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 --- diff --git a/meta/packages/hal/hal_0.5.8.1.bb b/meta/packages/hal/hal_0.5.8.1.bb index 0ac92bf..dc07d62 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