mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-07 05:10:20 +00:00
gdm 2.32.2: add systemd support
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Gnome Display Manager
|
||||
Requires=dev-tty7.device
|
||||
After=dev-tty7.device systemd-user-sessions.service
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/sbin/gdm -nodaemon
|
||||
StandardOutput=syslog
|
||||
|
||||
[Install]
|
||||
WantedBy=graphical.target
|
||||
@@ -4,6 +4,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
|
||||
|
||||
DEPENDS = "xinput gnome-panel tcp-wrappers libcanberra libxklavier grep consolekit libpam gnome-doc-utils gtk+ libglade libgnomecanvas librsvg libxml2 libart-lgpl xrdb"
|
||||
|
||||
PR = "r1"
|
||||
|
||||
inherit gnome update-rc.d
|
||||
|
||||
SRC_URI += " \
|
||||
@@ -13,6 +15,7 @@ SRC_URI += " \
|
||||
file://gdm.conf \
|
||||
file://gdm-pam \
|
||||
file://Default \
|
||||
file://gdm.service \
|
||||
"
|
||||
|
||||
|
||||
@@ -38,6 +41,31 @@ do_install_append() {
|
||||
|
||||
install -d ${D}/${sysconfdir}/gdm/Init
|
||||
install -m 0755 ${WORKDIR}/Default ${D}/${sysconfdir}/gdm/Init
|
||||
|
||||
install -d ${D}${base_libdir}/systemd/system
|
||||
install -m 0644 ${WORKDIR}/gdm.service ${D}${base_libdir}/systemd/system/
|
||||
}
|
||||
|
||||
PACKAGES =+ "gdm-systemd"
|
||||
FILES_gdm-systemd = "${base_libdir}/systemd"
|
||||
RDEPENDS_gdm-systemd = "gdm"
|
||||
|
||||
pkg_postinst_gdm-systemd() {
|
||||
# can't do this offline
|
||||
if [ "x$D" != "x" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
systemctl enable gdm.service
|
||||
}
|
||||
|
||||
pkg_postrm_gdm-systemd() {
|
||||
# can't do this offline
|
||||
if [ "x$D" != "x" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
systemctl disable gdm.service
|
||||
}
|
||||
|
||||
FILES_${PN} += "${datadir}/icon* \
|
||||
|
||||
Reference in New Issue
Block a user