summaryrefslogtreecommitdiffstats
path: root/network/pptp/pptp.SlackBuild
diff options
context:
space:
mode:
author AbortRetryFail <abortretryfail@gmail.com>2010-05-13 00:37:58 +0200
committer Robby Workman <rworkman@slackbuilds.org>2010-05-13 00:37:58 +0200
commit96ab0ba0df6ef31dc0ccbe490bfa9fe2e203d163 (patch)
tree92a4c71c4bac0138fa8503124f43048b97bda375 /network/pptp/pptp.SlackBuild
parent8cacc7adde23a605039e52ee8c3bee28ede59913 (diff)
downloadslackbuilds-96ab0ba0df6ef31dc0ccbe490bfa9fe2e203d163.tar.gz
slackbuilds-96ab0ba0df6ef31dc0ccbe490bfa9fe2e203d163.tar.xz
network/pptp: Updated for version 1.7.2
Diffstat (limited to 'network/pptp/pptp.SlackBuild')
-rw-r--r--network/pptp/pptp.SlackBuild22
1 files changed, 10 insertions, 12 deletions
diff --git a/network/pptp/pptp.SlackBuild b/network/pptp/pptp.SlackBuild
index 46fc7212ad..d7d156b2c0 100644
--- a/network/pptp/pptp.SlackBuild
+++ b/network/pptp/pptp.SlackBuild
@@ -3,7 +3,7 @@
# Slackware build script for pptp
# Copyright 2007 AbortRetryFail <abortretryfail@gmail.com>
-# Copyright 2007,2008 Robby Workman, Northport, Alabama, USA
+# Copyright 2007-2009 Robby Workman, Northport, Alabama, USA
# All rights reserved.
#
@@ -35,16 +35,15 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-# The Makefile uses -O0 by default. It should be a simple sed
-# to remedy this, but I figured if the upstream guys don't trust
-# their code to be optimized, maybe we shouldn't either :-)
-
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
set -e
@@ -62,14 +61,12 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-make
-make install DESTDIR=$PKG
+make OPTIMIZE="$SLKCFLAGS"
+make install MANDIR=$PKG/usr/man DESTDIR=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-mv $PKG/usr/share/man $PKG/usr
-rmdir $PKG/usr/share
( 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
@@ -80,12 +77,13 @@ 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 ChangeLog DEVELOPERS INSTALL NEWS PROTOCOL-SECURITY \
- README TODO USING Documentation/* $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ AUTHORS COPYING DEVELOPERS NEWS PROTOCOL-SECURITY README TODO USING Documentation/* \
+ $PKG/usr/doc/$PRGNAM-$VERSION
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}