summaryrefslogtreecommitdiff
path: root/network/squid/squid.SlackBuild
diff options
context:
space:
mode:
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 83b4597579..5c69c1e71c 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