network/squid: Updated for version 6.2.

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Matteo Bernardini 2023-09-03 18:25:55 +02:00 committed by Willy Sudiarto Raharjo
parent 2eeff64238
commit 7a3eefc122
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
5 changed files with 36 additions and 21 deletions

View File

@ -9,10 +9,5 @@ caches can be arranged in a hierarchy or mesh for additional bandwidth
savings.
See /usr/doc/squid-*/README.SBo for configuration help.
Note that the default squid.conf and /etc/logrotate.d/squid files have
changed in this release, so be sure to merge the changes into place.
To build squid with ICAP client support, specify the option "ICAP=yes",
for example:
ICAP=yes ./squid.SlackBuild
Note that the default files in /etc/squid and /etc/logrotate.d may
change between releases, so be sure to merge the changes into place.

View File

@ -10,7 +10,7 @@ executable and add the following to /etc/rc.d/rc.local:
==============================================================================
Uncomment and edit the following lines in /etc/squid.conf:
Uncomment and edit the following lines in /etc/squid/squid.conf:
http_port <port> <option>

View File

@ -26,5 +26,6 @@ preserve_perms etc/rc.d/rc.squid.new
preserve_perms etc/squid/mime.conf.new
preserve_perms etc/squid/squid.conf.new
preserve_perms etc/squid/cachemgr.conf.new
preserve_perms etc/squid/errorpage.css.new
preserve_perms etc/logrotate.d/squid.new

View File

@ -26,7 +26,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=squid
VERSION=${VERSION:-4.16}
VERSION=${VERSION:-6.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -83,11 +83,6 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
OPT_ICAP=""
if [ "${ICAP:-no}" = "yes" ]; then
OPT_ICAP="--enable-icap-client"
fi
# last option is needed on current
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@ -103,11 +98,34 @@ CXXFLAGS="$SLKCFLAGS" \
--enable-snmp \
--enable-auth \
--enable-auth-basic \
--enable-auth-ntlm \
--enable-auth-digest \
--enable-auth-negotiate \
--enable-removal-policies="lru,heap" \
--enable-storeio="aufs,ufs,diskd,rock" \
--enable-delay-pools \
--enable-arp-acl \
--with-openssl \
--enable-snmp \
--enable-linux-netfilter \
--enable-ident-lookups \
--enable-useragent-log \
--enable-cache-digests \
--enable-referer-log \
--enable-arp-acl \
--enable-htcp \
--enable-carp \
--enable-epoll \
--with-large-files \
--enable-arp-acl \
--with-default-user=$SQUIDUSER \
--enable-async-io \
$OPT_ICAP \
--build=$ARCH-slackware-linux \
--disable-strict-error-checking
--enable-truncate \
--enable-icap-client \
--enable-ssl-crtd \
--disable-arch-native \
--disable-strict-error-checking \
--enable-wccpv2
make all
make install DESTDIR=$PKG
@ -135,7 +153,8 @@ sed -e "s,@SQUIDUSER@,$SQUIDUSER," -e "s,@SQUIDGROUP@,$SQUIDGROUP," $CWD/squid.l
> $PKG/etc/logrotate.d/squid.new
( cd $PKG/etc/squid
for i in mime cachemgr squid ; do mv $i.conf $i.conf.new ; done )
for i in mime cachemgr squid ; do mv $i.conf $i.conf.new ; done
mv errorpage.css errorpage.css.new )
cp src/squid.conf.documented $PKG/etc/squid/squid.conf.documented
mkdir -p $PKG/var/{cache,lib,run}/squid

View File

@ -1,8 +1,8 @@
PRGNAM="squid"
VERSION="4.16"
VERSION="6.2"
HOMEPAGE="http://www.squid-cache.org/"
DOWNLOAD="http://www.squid-cache.org/Versions/v4/squid-4.16.tar.xz"
MD5SUM="d200064f7050969680f628d26b8c704d"
DOWNLOAD="http://www.squid-cache.org/Versions/v6/squid-6.2.tar.xz"
MD5SUM="ad01b7d82b6a00ffd8cd39b97113d05a"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""