summaryrefslogtreecommitdiffstats
path: root/system/gdm/gdm.SlackBuild
diff options
context:
space:
mode:
author Frank Caraballo <fecaraballo{at}gmail{dot}com>2010-05-11 19:46:27 +0200
committer David Somero <xgizzmo@slackbuilds.org>2010-05-11 19:46:27 +0200
commita3efc5eb37a545f428ac5182e47482ab2644cb15 (patch)
tree98cefc5b9671f3e0e74f8aa2d930bea8033caf52 /system/gdm/gdm.SlackBuild
parentc3d9f0f6f5498fb174f6592f14344ab9350f55d7 (diff)
downloadslackbuilds-a3efc5eb37a545f428ac5182e47482ab2644cb15.tar.gz
slackbuilds-a3efc5eb37a545f428ac5182e47482ab2644cb15.tar.xz
system/gdm: Updated for version 2.20.4
Diffstat (limited to 'system/gdm/gdm.SlackBuild')
-rw-r--r--system/gdm/gdm.SlackBuild45
1 files changed, 26 insertions, 19 deletions
diff --git a/system/gdm/gdm.SlackBuild b/system/gdm/gdm.SlackBuild
index bb9e45b773..4c25daafed 100644
--- a/system/gdm/gdm.SlackBuild
+++ b/system/gdm/gdm.SlackBuild
@@ -1,12 +1,15 @@
#!/bin/sh
+
+# Slackbuild Script for gdm
#
# Written by James Rich james@chowhouse.com
-
+#
# Assumed to be in public domain per our submission guidelines
# Modified by the SlackBuilds.org project
+# Script maintained by Frank Caraballo <fecaraballo{at}gmail{dot}com>
PRGNAM=gdm
-VERSION=2.16.1
+VERSION=2.20.4
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -24,24 +27,17 @@ fi
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
-
cd $TMP || exit 1
rm -rf $PRGNAM-$VERSION
-tar xzvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
+tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 || exit 1
cd $PRGNAM-$VERSION || exit 1
chown -R root:root .
-find . -perm 666 -exec chmod 644 {} \;
-find . -perm 664 -exec chmod 644 {} \;
-find . -perm 600 -exec chmod 644 {} \;
-find . -perm 444 -exec chmod 644 {} \;
-find . -perm 400 -exec chmod 644 {} \;
-find . -perm 440 -exec chmod 644 {} \;
-find . -perm 777 -exec chmod 755 {} \;
-find . -perm 775 -exec chmod 755 {} \;
-find . -perm 511 -exec chmod 755 {} \;
-find . -perm 711 -exec chmod 755 {} \;
-find . -perm 555 -exec chmod 755 {} \;
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -49,24 +45,35 @@ CXXFLAGS="$SLKCFLAGS" \
--prefix=/usr \
--sysconfdir=/etc/X11 \
--localstatedir=/var/lib/gdm \
- --docdir=/usr/doc \
- --with-dmconfdir=/etc/X11/gdm \
+ --mandir=/usr/man \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --program-prefix="" \
+ --program-suffix="" \
--disable-scrollkeeper \
--enable-console-helper=no \
+ --enable-shared=yes \
--enable-static=no \
+ --enable-ipv6=yes \
+ --with-dmconfdir=/etc/X11/gdm \
|| exit 1
make || exit 1
make install DESTDIR=$PKG
( cd $PKG
- find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
)
+( cd $PKG/usr/man
+ find . -type f -exec gzip -9 {} \;
+ for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+)
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a README COPYING AUTHORS TODO docs/C/* \
+cp -a AUTHORS ChangeLog COPYING INSTALL MAINTAINERS NEWS README* TODO docs/C/* \
$PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
# Simple session files designed to work with Slackware:
mkdir -p $PKG/etc/X11/gdm/Sessions