diff options
Diffstat (limited to 'meta-gnome/recipes-gnome/gdm')
-rw-r--r-- | meta-gnome/recipes-gnome/gdm/gdm/gdm.service | 11 | ||||
-rw-r--r-- | meta-gnome/recipes-gnome/gdm/gdm_2.32.2.bb | 28 |
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] | ||
2 | Description=Gnome Display Manager | ||
3 | Requires=dev-tty7.device | ||
4 | After=dev-tty7.device systemd-user-sessions.service | ||
5 | |||
6 | [Service] | ||
7 | ExecStart=/usr/sbin/gdm -nodaemon | ||
8 | StandardOutput=syslog | ||
9 | |||
10 | [Install] | ||
11 | WantedBy=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 | ||
5 | DEPENDS = "xinput gnome-panel tcp-wrappers libcanberra libxklavier grep consolekit libpam gnome-doc-utils gtk+ libglade libgnomecanvas librsvg libxml2 libart-lgpl xrdb" | 5 | DEPENDS = "xinput gnome-panel tcp-wrappers libcanberra libxklavier grep consolekit libpam gnome-doc-utils gtk+ libglade libgnomecanvas librsvg libxml2 libart-lgpl xrdb" |
6 | 6 | ||
7 | PR = "r1" | ||
8 | |||
7 | inherit gnome update-rc.d | 9 | inherit gnome update-rc.d |
8 | 10 | ||
9 | SRC_URI += " \ | 11 | SRC_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 | |||
49 | PACKAGES =+ "gdm-systemd" | ||
50 | FILES_gdm-systemd = "${base_libdir}/systemd" | ||
51 | RDEPENDS_gdm-systemd = "gdm" | ||
52 | |||
53 | pkg_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 | |||
62 | pkg_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 | ||
43 | FILES_${PN} += "${datadir}/icon* \ | 71 | FILES_${PN} += "${datadir}/icon* \ |