summaryrefslogtreecommitdiffstats
path: root/gdm/Pkgfile
blob: 8fa5c47ea9ea7dd3dc7e1730ab5779bb061db6ab (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
# Description: Le gestionnaire d'affichage de GNOME
# URL: http://projects.gnome.org/gdm/
# Maintainer: NuTyX GNOME team
# Packager: piernov <piernov@piernov.org>
# Depends on: gnome-session, intltool, gnome-doc-utils, gtk, librsvg, libgnomecanvas, desktop-file-utils, linux-pam, upower, accountsservice, xorg-xrdb, xorg, consolekit
# Run on: gnome-session,librsvg,libgnomecanvas,desktop-file-utils,linux-pam,upower,accountsservice,xorg-xrdb,xorg,consolekit

name=gdm
version=3.1.90
release=3
source=(http://download.gnome.org/sources/$name/${version%.*}/$name-$version.tar.xz \
	patch/fix_external_program_paths.patch
	patch/vt-allocation-hack.patch
	patch/default_session.patch
	patch/switch_user.patch
	patch/time_display_on_greeter.patch 
	gdm.pam
	gdm-autologin.pam)

build() {
	cd $name-$version
	patch -p1 -i ../fix_external_program_paths.patch
	patch -p1 -i ../vt-allocation-hack.patch
	patch -p1 -i ../default_session.patch
	patch -p1 -i ../switch_user.patch
	patch -p1 -i ../time_display_on_greeter.patch
	autoreconf -if
	./configure --prefix=/usr \
		--libexecdir=/usr/lib \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--with-sysconfsubdir=X11/gdm \
		--with-pam-prefix=/etc \
		--with-dmconfdir=/etc/X11/dm \
		--with-at-spi-registryd-directory=/usr/lib/at-spi \
		--enable-ipv6=yes \
		--disable-scrollkeeper \
		--with-console-kit=yes \
		--with-xdmcp=yes \
		--with-xevie=yes
	make

	make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 PAM_PREFIX=/etc 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/

	rm -f $PKG/etc/X11/PreSession/Default
	rm -f $PKG/etc/X11/PostSession/Default

	mkdir -p $PKG/etc/X11/dm/Sessions
	install -v -m755 -d $PKG/var/log/gdm

	cp -f ../gdm-autologin.pam $PKG/etc/pam.d/gdm-autologin
	cp -f ../gdm.pam $PKG/etc/pam.d/gdm
	rm -f $PKG/etc/pam.d/gdm-password
	ln -s gdm $PKG/etc/pam.d/gdm-password
}