From: Koen Kooi Date: Sat, 28 May 2011 09:19:10 +0000 (+0200) Subject: systemd: use PKGV and create 'lock' group in postinst X-Git-Tag: rev_ivi_2015_02_04~6064 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=56b4891068a8c3aaacb09fe96ff7a5498901cd78;p=scm%2Fbb%2Ftizen-distro.git systemd: use PKGV and create 'lock' group in postinst (From meta-openembedded rev: 086a042fb75d79902c84d81dc1e3caa5dd995c16) Signed-off-by: Koen Kooi Signed-off-by: Patrick Ohly --- diff --git a/meta-openembedded/meta-oe/recipes-core/systemd/systemd_git.bb b/meta-openembedded/meta-oe/recipes-core/systemd/systemd_git.bb index 6c34f75..9f92f8a 100644 --- a/meta-openembedded/meta-oe/recipes-core/systemd/systemd_git.bb +++ b/meta-openembedded/meta-oe/recipes-core/systemd/systemd_git.bb @@ -14,15 +14,12 @@ SECTION = "base/shell" inherit gitpkgv PKGV = "v${GITPKGVTAG}" -# This gets reset to the proper version with PKGV above -# Except that PKGV doesn't work in OE-core :( -# PV = "git" -PV = "v28" +PV = "git" PR = "r1" inherit autotools vala update-alternatives -SRCREV = "0e8eb2d2e2446a3f6ba1eee1940fc96167ae332a" +SRCREV = "9a66640832d103f906c2ef609a1d19d43fc542f6" SRC_URI = "git://anongit.freedesktop.org/systemd;protocol=git \ file://execute.patch \ @@ -93,3 +90,11 @@ RDEPENDS_${PN} += "dbus-systemd udev-systemd" # kbd -> loadkeys,setfont RRECOMMENDS_${PN} += "kbd kbd-consolefonts ${PN}-serialgetty" +pkg_postinst_${PN} () { + # can't do this offline + if [ "x$D" != "x" ]; then + exit 1 + fi + grep "^lock:" /etc/group > /dev/null || addgroup lock +} +