network/squid: Updated for version 3.0.STABLE14
This commit is contained in:
parent
67c26eccbf
commit
633d26a36c
|
@ -7,14 +7,4 @@ Squid supports SSL, extensive access controls, and full request logging.
|
|||
By using the lightweight Internet Cache Protocol, squid caches can be
|
||||
arranged in a hierarchy or mesh for additional bandwidth savings.
|
||||
|
||||
*** NOTE: default paths have changed from prior version ***
|
||||
If you need the old paths, edit /etc/squid/squid.conf, /etc/rc.d/rc.squid,
|
||||
and /etc/logrotate.d/squid as needed.
|
||||
|
||||
If you need to start squid at boot, make sure /etc/rc.d/rc.squid is
|
||||
executable and add the following to /etc/rc.d/rc.local:
|
||||
if [ -x /etc/rc.d/rc.squid ]; then
|
||||
/etc/rc.d/rc.squid start
|
||||
fi
|
||||
|
||||
See /usr/doc/squid-3.0.STABLE10/README.SBo for configuration help.
|
||||
See /usr/doc/squid-3.0.STABLE13/README.SBo for configuration help.
|
||||
|
|
|
@ -2,6 +2,14 @@ README.SBo - configuration help for squid from SlackBuilds.org
|
|||
|
||||
==============================================================================
|
||||
|
||||
If you need to start squid at boot, make sure /etc/rc.d/rc.squid is
|
||||
executable and add the following to /etc/rc.d/rc.local:
|
||||
if [ -x /etc/rc.d/rc.squid ]; then
|
||||
/etc/rc.d/rc.squid start
|
||||
fi
|
||||
|
||||
==============================================================================
|
||||
|
||||
Uncomment and edit the following lines in /etc/squid.conf:
|
||||
|
||||
http_port <port> <option>
|
||||
|
|
|
@ -1,12 +1,11 @@
|
|||
#!/bin/sh
|
||||
config() {
|
||||
NEW="$1"
|
||||
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
||||
# If there's no config file by that name, mv it over:
|
||||
if [ ! -r $OLD ]; then
|
||||
mv $NEW $OLD
|
||||
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then # toss the redundant copy
|
||||
rm $NEW
|
||||
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
|
||||
rm $NEW # toss the redundant copy
|
||||
fi
|
||||
# Otherwise, we leave the .new copy for the admin to consider...
|
||||
}
|
||||
|
@ -26,3 +25,4 @@ config etc/squid/mime.conf.new
|
|||
config etc/squid/squid.conf.new
|
||||
config etc/squid/cachemgr.conf.new
|
||||
config etc/logrotate.d/squid.new
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# Slackware build script for squid
|
||||
# http://www.squid-cache.org/
|
||||
|
||||
# Copyright 2006-2008 David Somero (dsomero@hotmail.com)
|
||||
# Copyright 2006-2008 David Somero (dsomero@hotmail.com) Athens,TN USA
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
|
@ -24,9 +24,9 @@
|
|||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
PRGNAM=squid
|
||||
VERSION=3.0.STABLE10
|
||||
VERSION=3.0.STABLE14
|
||||
ARCH=${ARCH:-i486}
|
||||
BUILD=${BUILD:-2}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
CWD=$(pwd)
|
||||
|
@ -78,8 +78,10 @@ make all
|
|||
make install DESTDIR=$PKG
|
||||
|
||||
( cd $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
|
||||
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
|
||||
)
|
||||
|
||||
( cd $PKG/usr/man
|
||||
|
@ -88,9 +90,10 @@ make install DESTDIR=$PKG
|
|||
)
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a CONTRIBUTORS COPYING COPYRIGHT CREDITS ChangeLog INSTALL \
|
||||
cp -a \
|
||||
CONTRIBUTORS COPYING COPYRIGHT CREDITS ChangeLog INSTALL \
|
||||
QUICKSTART README RELEASENOTES.html SPONSORS $CWD/README.SBo \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
chown root:root $PKG/usr/doc/$PRGNAM-$VERSION/*
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="squid"
|
||||
VERSION="3.0.STABLE10"
|
||||
VERSION="3.0.STABLE14"
|
||||
HOMEPAGE="http://www.squid-cache.org/"
|
||||
DOWNLOAD="http://www.squid-cache.org/Versions/v3/3.0/squid-3.0.STABLE10.tar.bz2"
|
||||
MD5SUM="cfd37717230220a9f47177594e235f18"
|
||||
DOWNLOAD="http://www.squid-cache.org/Versions/v3/3.0/squid-3.0.STABLE14.tar.bz2"
|
||||
MD5SUM="7aaff2319d2263404d788a82a10c8633"
|
||||
MAINTAINER="David Somero"
|
||||
EMAIL="dsomero@hotmail.com"
|
||||
APPROVED="rworkman"
|
||||
|
|
Loading…
Reference in New Issue