summaryrefslogtreecommitdiffstats
path: root/gdm/Pkgfile
blob: 885eda3e1b0dfdaace98f8c956f4c51c75662452 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Description: Gestionnaire de session GNOME
# URL: http://www.5z.com/jirka/gdm.html
# Maintainer: NuTyX GNOME team
# Packager: thierryn1 at hispeed dot ch
# Depends on: gnome-session, intltool, gnome-doc-utils, gtk, librsvg, libgnomecanvas, desktop-file-utils, linux-pam, upower, accountsservice, xorg-xrdb, xorg
# Run on: gnome-session,librsvg,libgnomecanvas,desktop-file-utils,linux-pam,upower,accountsservice,xorg-xrdb,xorg

name=gdm
version=3.1.2
release=1
source=(http://download.gnome.org/sources/$name/${version%.*}/$name-$version.tar.xz \
	http://nutyx.meticul.eu/files/patchs/$name/nutyx-attapu-gdm-2.tar.bz2 \
	http://nutyx.meticul.eu/files/patchs/$name/{NuTyXlogo.png,defaults.conf}
	2.91_fix_external_program_directories.patch
	gdm-vt-allocation-hack.patch)

build() {
        cd $name-$version
	patch -Np1 -i ../2.91_fix_external_program_directories.patch
	patch -Np1 -i ../gdm-vt-allocation-hack.patch
	./configure --prefix=/usr \
                --localstatedir=/var\
		--with-dmconfdir=/etc/X11/dm \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
		--with-at-spi-registryd-directory=/usr/lib/at-spi \
                --enable-console-helper=no \
                --enable-ipv6=yes \
                --with-xdmcp=yes \
                --disable-scrollkeeper \
                --with-xevie=yes \
                --with-pam-prefix=/etc
        make

	make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR=$PKG install
	install -m755 -d $PKG/usr/share/gconf/schemas
	gconf-merge-schema $PKG/usr/share/gconf/schemas/$name.schemas --domain gdm $PKG/etc/gconf/schemas/*.schemas
	rm -r $PKG/etc/gconf/schemas/

        install -v -m755 -d $PKG/var/log/gdm
        sed -i.orig "/\[daemon\]/ a LogDir=/var/log/gdm" \
        $PKG/etc/gdm/custom.conf
cat > $PKG/etc/pam.d/gdm << "EOF"
auth        required    pam_unix.so
auth        requisite   pam_nologin.so
account     required    pam_unix.so
password    required    pam_unix.so
session     required    pam_unix.so

EOF
cat > $PKG/etc/pam.d/gdm-autologin << "EOF"
auth        required    pam_env.so
auth        requisite   pam_nologin.so
auth        required    pam_permit.so
account     required    pam_unix.so
password    required    pam_unix.so
session     required    pam_unix.so

EOF
	install -D -m644 ../NuTyXlogo.png $PKG/usr/share/pixmaps/gdm-foot-logo.png
	install -D -m444 ../defaults.conf $PKG/usr/share/gdm/defaults.conf
	cp -a $SRC/nutyx-attapu $PKG/usr/share/gdm/themes/
	chown -R root:root $PKG/usr/share/gdm/themes/
}