gdm 2.32.2: add systemd support

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
Koen Kooi
2011-06-09 20:31:31 +02:00
parent 5edc0def9d
commit 9d16b96d3d
2 changed files with 39 additions and 0 deletions
@@ -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" 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 inherit gnome update-rc.d
SRC_URI += " \ SRC_URI += " \
@@ -13,6 +15,7 @@ SRC_URI += " \
file://gdm.conf \ file://gdm.conf \
file://gdm-pam \ file://gdm-pam \
file://Default \ file://Default \
file://gdm.service \
" "
@@ -38,6 +41,31 @@ do_install_append() {
install -d ${D}/${sysconfdir}/gdm/Init install -d ${D}/${sysconfdir}/gdm/Init
install -m 0755 ${WORKDIR}/Default ${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* \ FILES_${PN} += "${datadir}/icon* \