cornucopia: bump SRCREV
[openembedded.git] / recipes / gnome / gdm_2.30.0.bb
blobb12dbf8f67314fbbd32c66f4b65a47d87cb5e90a
1 DESCRIPTION = "Graphical login manager"
2 LICENSE = "GPL"
4 DEPENDS = "xinput gnome-panel tcp-wrappers libcanberra libxklavier grep consolekit libpam gnome-doc-utils gtk+ libglade libgnomecanvas librsvg libxml2 libart-lgpl xrdb"
6 inherit gnome update-rc.d
8 PR = "r1"
10 RDEPENDS_${PN} += "grep dbus-x11 shadow libpam-base-files"
12 SRC_URI += " \
13 file://cross-xdetection.diff \
14 file://%gconf-tree.xml \
15 file://gdm \
16 file://gdm.conf \
17 file://gdm-pam \
18 file://Default \
21 SRC_URI[archive.md5sum] = "0da84637abbcbf1666529d6192a81e6b"
22 SRC_URI[archive.sha256sum] = "ac2c367766b8fa20ebeb41033931fc4d91482ad3d377823f1c7ad84eee12dc15"
24 EXTRA_OECONF = " --enable-authentication-scheme=shadow \
25 --enable-debug=yes \
26 --with-console-kit \
27 --disable-scrollkeeper "
29 do_install_prepend() {
30 mkdir -p ${D}/var/lib/gdm/.gconf.mandatory
31 cp ${WORKDIR}/%gconf-tree.xml ${D}/var/lib/gdm/.gconf.mandatory/
34 do_install_append() {
35 install -d ${D}/${sysconfdir}/init.d
36 install -m 0755 ${WORKDIR}/gdm ${D}/${sysconfdir}/init.d/
38 install -d ${D}/${sysconfdir}/gdm
39 install -m 0644 ${WORKDIR}/gdm.conf ${D}/${sysconfdir}/gdm/
41 install -d ${D}/${sysconfdir}/pam.d
42 install -m 0755 ${WORKDIR}/gdm-pam ${D}/${sysconfdir}/pam.d/gdm
44 install -d ${D}/${sysconfdir}/gdm/Init
45 install -m 0755 ${WORKDIR}/Default ${D}/${sysconfdir}/gdm/Init
48 FILES_${PN} += "${datadir}/icon* \
49 ${datadir}/xsession* \
52 CONFFILES_${PN} += "${sysconfdir}/gdm/gdm.conf ${sysconfdir}/init.d/gdm"
54 INITSCRIPT_NAME = "gdm"
55 INITSCRIPT_PARAMS = "start 99 5 2 . stop 20 0 1 6 ."
57 pkg_postinst_${PN} () {
58 # can't do this offline
59 if [ "x$D" != "x" ]; then
60 exit 1
62 grep "^gdm:" /etc/group > /dev/null || addgroup gdm
63 grep "^gdm:" /etc/passwd > /dev/null || adduser --disabled-password --system --home /var/lib/gdm gdm --ingroup gdm -g gdm
65 if [ -d /var/lib/gdm ]; then
66 chown -R gdm:gdm /var/lib/gdm
67 chmod 0750 /var/lib/gdm
70 # Register up as default dm
71 mkdir -p ${sysconfdir}/X11/
72 echo "${bindir}/gdm" > ${sysconfdir}/X11/default-display-manager
76 pkg_postrm_${PN} () {
77 deluser gdm || true
78 delgroup gdm || true
79 sed -i /gdm/d ${sysconfdir}/X11/default-display-manager || true