aboutsummaryrefslogtreecommitdiff
path: root/network/squid/squid.SlackBuild
diff options
context:
space:
mode:
authorDavid Somero <dsomero@hotmail.com>2010-08-10 01:34:37 +0100
committerMichiel van Wessem <michiel@slackbuilds.org>2010-08-10 01:34:37 +0100
commitebd1d1551aae67862e9453784a3dff37f427d208 (patch)
tree84d1dab1a67dba1e0c432351e8e1af3c4d3f63ca /network/squid/squid.SlackBuild
parent177eba38941f90aa627d26206b70abb5ffb1740d (diff)
network/squid: Updated for version 3.1.6.
Signed-off-by: Michiel van Wessem <michiel@slackbuilds.org>
Diffstat (limited to 'network/squid/squid.SlackBuild')
-rw-r--r--network/squid/squid.SlackBuild11
1 files changed, 5 insertions, 6 deletions
diff --git a/network/squid/squid.SlackBuild b/network/squid/squid.SlackBuild
index 83b4597579fbc..5c69c1e71caf8 100644
--- a/network/squid/squid.SlackBuild
+++ b/network/squid/squid.SlackBuild
@@ -24,7 +24,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=squid
-VERSION=3.0.STABLE24
+VERSION=3.1.6
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -83,7 +83,9 @@ CXXFLAGS="$SLKCFLAGS" \
--sysconfdir=/etc/squid \
--localstatedir=/var/log/squid \
--datadir=/usr/share/squid \
+ --with-pidfile=/var/run/squid \
--mandir=/usr/man \
+ --with-logdir=/var/log/squid \
--enable-snmp \
--enable-auth="basic" \
--enable-basic-auth-helpers="NCSA" \
@@ -97,10 +99,8 @@ make install 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
-( 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
-)
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $(find $PKG/usr/man -type l); do ln -s $(readlink $i).gz $i.gz; rm $i; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
@@ -124,7 +124,6 @@ rm $PKG/etc/squid/squid.conf
cat $CWD/squid.conf > $PKG/etc/squid/squid.conf.new
mkdir -p $PKG/var/{cache,run}/squid
-rmdir $PKG/var/log/squid/logs
chown $SQUIDUSER:$SQUIDGROUP $PKG/var/{cache,log,run}/squid
## Edit the config file to set the user and group to run as