diff options
author | David Somero <dsomero@hotmail.com> | 2010-05-13 00:38:21 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-13 00:38:21 +0200 |
commit | 7f829d9a90c85e05bf6d93a9fbc4ace0fe99297d (patch) | |
tree | 5d4037b2af781951c3911c96074020abcbafd1a0 /network/squid/squid.SlackBuild | |
parent | 0b3f8d9c4c0a336b1834b7cbd22af0b350fe5e59 (diff) |
network/squid: Updated for version 3.0.STABLE21
Diffstat (limited to 'network/squid/squid.SlackBuild')
-rw-r--r-- | network/squid/squid.SlackBuild | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/network/squid/squid.SlackBuild b/network/squid/squid.SlackBuild index 599567307786c..f06620a899940 100644 --- a/network/squid/squid.SlackBuild +++ b/network/squid/squid.SlackBuild @@ -3,7 +3,7 @@ # Slackware build script for squid # http://www.squid-cache.org/ -# Copyright 2006-2008 David Somero (dsomero@hotmail.com) Athens,TN USA +# Copyright 2006-2009 David Somero (dsomero@hotmail.com) Athens,TN USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,7 +24,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=squid -VERSION=3.0.STABLE14 +VERSION=3.0.STABLE21 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -39,10 +39,13 @@ SQUIDGROUP=${SQUIDGROUP:-nobody} 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 @@ -64,15 +67,17 @@ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc/squid \ --localstatedir=/var/log/squid \ --datadir=/usr/share/squid \ --mandir=/usr/man \ --enable-snmp \ + --enable-auth="basic" \ + --enable-basic-auth-helpers="NCSA" \ --enable-linux-netfilter \ --enable-async-io \ - --build=$ARCH-slackware-linux \ - --host=$ARCH-slackware-linux + --build=$ARCH-slackware-linux make all make install DESTDIR=$PKG @@ -81,7 +86,7 @@ make install DESTDIR=$PKG 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 + xargs strip --strip-unneeded 2> /dev/null || true ) ( cd $PKG/usr/man @@ -125,4 +130,4 @@ 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} |