summaryrefslogtreecommitdiff
path: root/recipes/gnome/gdm_2.28.2.bb
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2010-01-13 15:44:52 +0100
committerKoen Kooi <koen@openembedded.org>2010-01-13 16:19:35 +0100
commita267182e1235bb1fc4d437a3b8131b1e9de15732 (patch)
tree3684a3798ae2a8d947652b8487c4b2609d5c28b4 /recipes/gnome/gdm_2.28.2.bb
parent507d23ac850f9094c1f006f8de093dd09b248ac3 (diff)
gdm: move to 2.28.2, fix conflict with libpam-base-files
Diffstat (limited to 'recipes/gnome/gdm_2.28.2.bb')
-rw-r--r--recipes/gnome/gdm_2.28.2.bb75
1 files changed, 75 insertions, 0 deletions
diff --git a/recipes/gnome/gdm_2.28.2.bb b/recipes/gnome/gdm_2.28.2.bb
new file mode 100644
index 0000000000..a0a916b59f
--- /dev/null
+++ b/recipes/gnome/gdm_2.28.2.bb
@@ -0,0 +1,75 @@
+DESCRIPTION = "Graphical login manager"
+LICENSE = "GPL"
+
+DEPENDS = "xinput gnome-panel tcp-wrappers libcanberra libxklavier grep consolekit libpam gnome-doc-utils gtk+ libglade libgnomecanvas librsvg libxml2 libart-lgpl xrdb"
+
+inherit gnome update-rc.d
+
+RDEPENDS_${PN} += "grep dbus-x11 shadow libpam-base-files"
+
+SRC_URI += " \
+ file://cross-xdetection.diff;patch=1 \
+ file://%gconf-tree.xml \
+ file://gdm \
+ file://gdm.conf \
+ file://gdm-pam \
+ "
+
+EXTRA_OECONF = " --enable-authentication-scheme=shadow \
+ --enable-debug=yes \
+ --with-console-kit \
+ --disable-scrollkeeper "
+
+do_install_prepend() {
+ mkdir -p ${D}/var/lib/gdm/.gconf.mandatory
+ cp ${WORKDIR}/%gconf-tree.xml ${D}/var/lib/gdm/.gconf.mandatory/
+}
+
+do_install_append() {
+ install -d ${D}/${sysconfdir}/init.d
+ install -m 0755 ${WORKDIR}/gdm ${D}/${sysconfdir}/init.d/
+
+ install -d ${D}/${sysconfdir}/gdm
+ install -m 0644 ${WORKDIR}/gdm.conf ${D}/${sysconfdir}/gdm/
+
+ install -d ${D}/${sysconfdir}/pam.d
+ install -m 0755 ${WORKDIR}/gdm-pam ${D}/${sysconfdir}/pam.d/gdm
+}
+
+FILES_${PN} += "${datadir}/icon* \
+ ${datadir}/xsession* \
+ "
+
+CONFFILES_${PN} += "${sysconfdir}/gdm/gdm.conf ${sysconfdir}/init.d/gdm"
+
+INITSCRIPT_NAME = "gdm"
+INITSCRIPT_PARAMS = "start 99 5 2 . stop 20 0 1 6 ."
+
+pkg_postinst_${PN} () {
+ # can't do this offline
+ if [ "x$D" != "x" ]; then
+ exit 1
+ fi
+ grep "^gdm:" /etc/group > /dev/null || addgroup gdm
+ grep "^gdm:" /etc/passwd > /dev/null || adduser --disabled-password --system --home /var/lib/gdm gdm --ingroup gdm -g gdm
+
+if [ -d /var/lib/gdm ]; then
+ chown -R gdm:gdm /var/lib/gdm
+ chmod 0750 /var/lib/gdm
+fi
+
+# Register up as default dm
+mkdir -p ${sysconfdir}/X11/
+echo "${bindir}/gdm" > ${sysconfdir}/X11/default-display-manager
+
+}
+
+pkg_postrm_${PN} () {
+ deluser gdm || true
+ delgroup gdm || true
+ sed -i /gdm/d ${sysconfdir}/X11/default-display-manager || true
+}
+
+
+
+