From e52463bb8f893ce29c8be18c1e5360dacbb331a5 Mon Sep 17 00:00:00 2001 From: AbortRetryFail Date: Tue, 11 May 2010 22:25:39 +0200 Subject: network/pptp: Updated for version 1.7.2 --- network/pptp/pptp.SlackBuild | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'network/pptp/pptp.SlackBuild') diff --git a/network/pptp/pptp.SlackBuild b/network/pptp/pptp.SlackBuild index 7f8f6bc690..46fc7212ad 100644 --- a/network/pptp/pptp.SlackBuild +++ b/network/pptp/pptp.SlackBuild @@ -3,7 +3,7 @@ # Slackware build script for pptp # Copyright 2007 AbortRetryFail -# Copyright 2007 Robby Workman +# Copyright 2007,2008 Robby Workman, Northport, Alabama, USA # All rights reserved. # @@ -25,10 +25,11 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=pptp -VERSION=1.7.1 +VERSION=1.7.2 ARCH=${ARCH:-i486} -BUILD=${BUILD:-2} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -42,16 +43,18 @@ if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" fi +set -e + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT -cd $TMP || exit 1 +cd $TMP rm -rf $PRGNAM-$VERSION -tar xzvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1 -cd $PRGNAM-$VERSION || exit 1 - -# Make sure ownerships and permissions are sane: +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION chown -R root:root . find . \ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ @@ -59,15 +62,12 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -make || exit 1 -make install DESTDIR=$PKG || exit 1 +make +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 "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null -) +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -# Move and compress man pages mv $PKG/usr/share/man $PKG/usr rmdir $PKG/usr/share ( cd $PKG/usr/man @@ -80,8 +80,8 @@ mv $PKG/etc/ppp/options.pptp $PKG/etc/ppp/options.pptp.new # Reference docs, in this case, might be handy to have around mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS COPYING NEWS PROTOCOL-SECURITY README TODO USING \ - Documentation/DESIGN* Reference $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS COPYING ChangeLog DEVELOPERS INSTALL NEWS PROTOCOL-SECURITY \ + README TODO USING Documentation/* $PKG/usr/doc/$PRGNAM-$VERSION mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc -- cgit v1.2.3