summaryrefslogtreecommitdiffstats
path: root/gdm/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'gdm/Pkgfile')
-rwxr-xr-xgdm/Pkgfile65
1 files changed, 65 insertions, 0 deletions
diff --git a/gdm/Pkgfile b/gdm/Pkgfile
new file mode 100755
index 0000000..885eda3
--- /dev/null
+++ b/gdm/Pkgfile
@@ -0,0 +1,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/
+}
+