1 DESCRIPTION
= "Graphical login manager"
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
10 RDEPENDS_$
{PN
} += "grep dbus-x11 shadow libpam-base-files"
13 file://cross-xdetection.diff \
14 file://%gconf-tree.xml \
21 SRC_URI
[archive.md5sum
] = "0da84637abbcbf1666529d6192a81e6b"
22 SRC_URI
[archive.sha256sum
] = "ac2c367766b8fa20ebeb41033931fc4d91482ad3d377823f1c7ad84eee12dc15"
24 EXTRA_OECONF
= " --enable-authentication-scheme=shadow \
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
/
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
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
79 sed
-i
/gdm
/d $
{sysconfdir
}/X11
/default-display
-manager ||
true