gdm: do not hardcode /usr/sbin

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
Andreas Müller
2012-09-17 08:15:43 +00:00
committed by Koen Kooi
parent 4ac49b2ac2
commit fb0b27dd63
2 changed files with 9 additions and 4 deletions

View File

@@ -3,7 +3,7 @@ Description=Gnome Display Manager
After=systemd-user-sessions.service
[Service]
ExecStart=/usr/sbin/gdm -nodaemon
ExecStart=%sbindir%/gdm -nodaemon
StandardOutput=syslog
[Install]

View File

@@ -5,9 +5,14 @@ PRINC := "${@int(PRINC) + 3}"
inherit systemd
SRC_URI += " \
file://gdm.service \
"
SRC_URI += "file://gdm.service.in"
do_install_append() {
install -d ${D}${systemd_unitdir}/system
sed -e 's,%sbindir%,${sbindir},g' \
< ${WORKDIR}/gdm.service.in \
> ${D}${systemd_unitdir}/system/gdm.service
}
SYSTEMD_PACKAGES = "${PN}-systemd"
SYSTEMD_SERVICE = "gdm.service"