aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/gnome/gdm_2.30.0.bb
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2010-04-01 13:30:57 +0200
committerKoen Kooi <koen@openembedded.org>2010-04-01 14:04:13 +0200
commite683cbe87e7d0c7485702bd439bd6daffd0a7361 (patch)
treeff57894843eb936518d1fa7b7eb4200d93c22354 /recipes/gnome/gdm_2.30.0.bb
parent1ce0a404ade654e634e9032908b9269ba61a4c80 (diff)
downloadopenembedded-e683cbe87e7d0c7485702bd439bd6daffd0a7361.tar.gz
openembedded-e683cbe87e7d0c7485702bd439bd6daffd0a7361.tar.bz2
openembedded-e683cbe87e7d0c7485702bd439bd6daffd0a7361.zip
gdm: add 2.30.0
Diffstat (limited to 'recipes/gnome/gdm_2.30.0.bb')
-rw-r--r--recipes/gnome/gdm_2.30.0.bb78
1 files changed, 78 insertions, 0 deletions
diff --git a/recipes/gnome/gdm_2.30.0.bb b/recipes/gnome/gdm_2.30.0.bb
new file mode 100644
index 0000000000..c461d86cde
--- /dev/null
+++ b/recipes/gnome/gdm_2.30.0.bb
@@ -0,0 +1,78 @@
+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 \
+ "
+
+SRC_URI[archive.md5sum] = "0da84637abbcbf1666529d6192a81e6b"
+SRC_URI[archive.sha256sum] = "ac2c367766b8fa20ebeb41033931fc4d91482ad3d377823f1c7ad84eee12dc15"
+
+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
+}
+
+
+
+