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
8 RDEPENDS_$
{PN
} += "grep dbus-x11 shadow libpam-base-files"
11 file://cross-xdetection.diff \
12 file://%gconf-tree.xml \
18 EXTRA_OECONF
= " --enable-authentication-scheme=shadow \
21 --disable-scrollkeeper "
23 do_install_prepend
() {
24 mkdir
-p $
{D
}/var
/lib
/gdm
/.gconf.mandatory
25 cp $
{WORKDIR
}/%gconf
-tree.xml $
{D
}/var
/lib
/gdm
/.gconf.mandatory
/
29 install
-d $
{D
}/$
{sysconfdir
}/init.d
30 install
-m
0755 $
{WORKDIR
}/gdm $
{D
}/$
{sysconfdir
}/init.d
/
32 install
-d $
{D
}/$
{sysconfdir
}/gdm
33 install
-m
0644 $
{WORKDIR
}/gdm.conf $
{D
}/$
{sysconfdir
}/gdm
/
35 install
-d $
{D
}/$
{sysconfdir
}/pam.d
36 install
-m
0755 $
{WORKDIR
}/gdm
-pam $
{D
}/$
{sysconfdir
}/pam.d
/gdm
39 FILES_$
{PN
} += "${datadir}/icon* \
40 ${datadir}/xsession* \
43 CONFFILES_$
{PN
} += "${sysconfdir}/gdm/gdm.conf ${sysconfdir}/init.d/gdm"
45 INITSCRIPT_NAME
= "gdm"
46 INITSCRIPT_PARAMS
= "start 99 5 2 . stop 20 0 1 6 ."
48 pkg_postinst_$
{PN
} () {
49 # can't do this offline
50 if [ "x$D" != "x" ]; then
53 grep
"^gdm:" /etc
/group
> /dev
/null || addgroup gdm
54 grep
"^gdm:" /etc
/passwd
> /dev
/null || adduser
--disabled
-password
--system
--home
/var
/lib
/gdm gdm
--ingroup gdm
-g gdm
56 if [ -d
/var
/lib
/gdm
]; then
57 chown
-R gdm
:gdm
/var
/lib
/gdm
58 chmod
0750 /var
/lib
/gdm
61 # Register up as
default dm
62 mkdir
-p $
{sysconfdir
}/X11
/
63 echo
"${bindir}/gdm" > $
{sysconfdir
}/X11
/default-display
-manager
70 sed
-i
/gdm
/d $
{sysconfdir
}/X11
/default-display
-manager ||
true
77 SRC_URI
[archive.md5sum
] = "9607c6bac31c9d8bd3446e66a4576c2e"
78 SRC_URI
[archive.sha256sum
] = "0165b4bf70e4a6d41d9e42877840805890c438bd655805b961e51adccbd9602a"