diff options
author | Steve Sakoman <steve@sakoman.com> | 2009-10-01 10:52:22 -0700 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2009-10-02 10:07:26 +0200 |
commit | 10a30eb1980c68bfa9a95b61e99ec2bd901f11f6 (patch) | |
tree | 3a96a2375bac041b7074362741f5616aefe9467a /recipes/gnome/gdm_2.28.0.bb | |
parent | 38db27a2d693c0399b1af53e54c128b60b370258 (diff) |
gdm: add 2.28.0
Diffstat (limited to 'recipes/gnome/gdm_2.28.0.bb')
-rw-r--r-- | recipes/gnome/gdm_2.28.0.bb | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/recipes/gnome/gdm_2.28.0.bb b/recipes/gnome/gdm_2.28.0.bb new file mode 100644 index 0000000000..3f5c69ec24 --- /dev/null +++ b/recipes/gnome/gdm_2.28.0.bb @@ -0,0 +1,73 @@ +DESCRIPTION = "Graphical login manager" +LICENSE = "GPL" + +DEPENDS = "libxklavier grep consolekit libpam gnome-doc-utils gtk+ libglade libgnomecanvas librsvg libxml2 libart-lgpl xrdb" + +inherit gnome update-rc.d + +SRC_URI += " \ + file://cross-xdetection.diff;patch=1 \ + file://%gconf-tree.xml \ + file://gdm \ + file://gdm.conf \ + file://gdm-pam \ + file://other \ + " + +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/ + + 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 + install -m 0755 ${WORKDIR}/other ${D}/${sysconfdir}/pam.d/ +} + +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 +} + + + + |