summaryrefslogtreecommitdiffstats
path: root/meta-gnome/recipes-gnome/gdm
diff options
context:
space:
mode:
Diffstat (limited to 'meta-gnome/recipes-gnome/gdm')
-rw-r--r--meta-gnome/recipes-gnome/gdm/gdm/gdm.service11
-rw-r--r--meta-gnome/recipes-gnome/gdm/gdm_2.32.2.bb28
2 files changed, 39 insertions, 0 deletions
diff --git a/meta-gnome/recipes-gnome/gdm/gdm/gdm.service b/meta-gnome/recipes-gnome/gdm/gdm/gdm.service
new file mode 100644
index 000000000..72a56f954
--- /dev/null
+++ b/meta-gnome/recipes-gnome/gdm/gdm/gdm.service
@@ -0,0 +1,11 @@
1[Unit]
2Description=Gnome Display Manager
3Requires=dev-tty7.device
4After=dev-tty7.device systemd-user-sessions.service
5
6[Service]
7ExecStart=/usr/sbin/gdm -nodaemon
8StandardOutput=syslog
9
10[Install]
11WantedBy=graphical.target
diff --git a/meta-gnome/recipes-gnome/gdm/gdm_2.32.2.bb b/meta-gnome/recipes-gnome/gdm/gdm_2.32.2.bb
index d24659aee..e7c88630d 100644
--- a/meta-gnome/recipes-gnome/gdm/gdm_2.32.2.bb
+++ b/meta-gnome/recipes-gnome/gdm/gdm_2.32.2.bb
@@ -4,6 +4,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
4 4
5DEPENDS = "xinput gnome-panel tcp-wrappers libcanberra libxklavier grep consolekit libpam gnome-doc-utils gtk+ libglade libgnomecanvas librsvg libxml2 libart-lgpl xrdb" 5DEPENDS = "xinput gnome-panel tcp-wrappers libcanberra libxklavier grep consolekit libpam gnome-doc-utils gtk+ libglade libgnomecanvas librsvg libxml2 libart-lgpl xrdb"
6 6
7PR = "r1"
8
7inherit gnome update-rc.d 9inherit gnome update-rc.d
8 10
9SRC_URI += " \ 11SRC_URI += " \
@@ -13,6 +15,7 @@ SRC_URI += " \
13 file://gdm.conf \ 15 file://gdm.conf \
14 file://gdm-pam \ 16 file://gdm-pam \
15 file://Default \ 17 file://Default \
18 file://gdm.service \
16 " 19 "
17 20
18 21
@@ -38,6 +41,31 @@ do_install_append() {
38 41
39 install -d ${D}/${sysconfdir}/gdm/Init 42 install -d ${D}/${sysconfdir}/gdm/Init
40 install -m 0755 ${WORKDIR}/Default ${D}/${sysconfdir}/gdm/Init 43 install -m 0755 ${WORKDIR}/Default ${D}/${sysconfdir}/gdm/Init
44
45 install -d ${D}${base_libdir}/systemd/system
46 install -m 0644 ${WORKDIR}/gdm.service ${D}${base_libdir}/systemd/system/
47}
48
49PACKAGES =+ "gdm-systemd"
50FILES_gdm-systemd = "${base_libdir}/systemd"
51RDEPENDS_gdm-systemd = "gdm"
52
53pkg_postinst_gdm-systemd() {
54 # can't do this offline
55 if [ "x$D" != "x" ]; then
56 exit 1
57 fi
58
59 systemctl enable gdm.service
60}
61
62pkg_postrm_gdm-systemd() {
63 # can't do this offline
64 if [ "x$D" != "x" ]; then
65 exit 1
66 fi
67
68 systemctl disable gdm.service
41} 69}
42 70
43FILES_${PN} += "${datadir}/icon* \ 71FILES_${PN} += "${datadir}/icon* \