summaryrefslogtreecommitdiffstats
path: root/extra/gdm/Pkgfile
blob: 16edde88fd4e50cbbe1b98cd18c97b89c2d8b22a (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
# Description: Gestionnaire de session GNOME
# URL: http://www.5z.com/jirka/gdm.html
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: intltool, gnome-doc-utils, gtk, librsvg, libgnomecanvas, desktop-file-utils, linux-pam
# Run on: librsvg,libgnomecanvas,desktop-file-utils,linux-pam

name=gdm
version=2.20.11
release=2
source=(http://ftp.gnome.org/pub/gnome/sources/$name/${version%.*}/$name-$version.tar.bz2 \
	http://nutyx.meticul.eu/files/patchs/$name/nutyx-attapu-gdm-2.tar.bz2 \
	http://nutyx.meticul.eu/files/patchs/$name/{NuTyXlogo.png,defaults.conf})

build() {
        cd $name-$version
        mv po/fr.po .
        rm po/*.po
        mv fr.po po/
        sed -i -e 's/USE_NLS=yes/USE_NLS=no/' \
                -e 's/ENABLE_NLS 1/ENABLE_NLS 0/' configure
        ./configure --prefix=/usr \
                --localstatedir=/var/lib \
		--with-dmconfdir=/etc/X11/dm \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --enable-console-helper=no \
                --enable-ipv6=yes \
                --with-xdmcp=yes \
                --with-tcp-wrappers=no \
                --disable-scrollkeeper \
                --with-xevie=yes \
                --with-pam-prefix=/etc
        make
        make DESTDIR=$PKG install
        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/
	rm $PKG/usr/share/xsessions/gnome.desktop
	chown -R root:root $PKG/usr/share/gdm/themes/
}