mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-09 17:59:26 +00:00
systemd: use PKGV and create 'lock' group in postinst
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
@@ -14,15 +14,12 @@ SECTION = "base/shell"
|
|||||||
inherit gitpkgv
|
inherit gitpkgv
|
||||||
PKGV = "v${GITPKGVTAG}"
|
PKGV = "v${GITPKGVTAG}"
|
||||||
|
|
||||||
# This gets reset to the proper version with PKGV above
|
PV = "git"
|
||||||
# Except that PKGV doesn't work in OE-core :(
|
|
||||||
# PV = "git"
|
|
||||||
PV = "v28"
|
|
||||||
PR = "r1"
|
PR = "r1"
|
||||||
|
|
||||||
inherit autotools vala update-alternatives
|
inherit autotools vala update-alternatives
|
||||||
|
|
||||||
SRCREV = "0e8eb2d2e2446a3f6ba1eee1940fc96167ae332a"
|
SRCREV = "9a66640832d103f906c2ef609a1d19d43fc542f6"
|
||||||
|
|
||||||
SRC_URI = "git://anongit.freedesktop.org/systemd;protocol=git \
|
SRC_URI = "git://anongit.freedesktop.org/systemd;protocol=git \
|
||||||
file://execute.patch \
|
file://execute.patch \
|
||||||
@@ -93,3 +90,11 @@ RDEPENDS_${PN} += "dbus-systemd udev-systemd"
|
|||||||
# kbd -> loadkeys,setfont
|
# kbd -> loadkeys,setfont
|
||||||
RRECOMMENDS_${PN} += "kbd kbd-consolefonts ${PN}-serialgetty"
|
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
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user