network/squid: Updated for version 3.0.STABLE14

This commit is contained in:
David Somero 2010-05-12 17:44:14 +02:00 committed by Robby Workman
parent 67c26eccbf
commit 633d26a36c
5 changed files with 25 additions and 24 deletions

View File

@ -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 By using the lightweight Internet Cache Protocol, squid caches can be
arranged in a hierarchy or mesh for additional bandwidth savings. arranged in a hierarchy or mesh for additional bandwidth savings.
*** NOTE: default paths have changed from prior version *** See /usr/doc/squid-3.0.STABLE13/README.SBo for configuration help.
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.

View File

@ -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: Uncomment and edit the following lines in /etc/squid.conf:
http_port <port> <option> http_port <port> <option>

View File

@ -1,12 +1,11 @@
#!/bin/sh
config() { config() {
NEW="$1" NEW="$1"
OLD="$(dirname $NEW)/$(basename $NEW .new)" OLD="$(dirname $NEW)/$(basename $NEW .new)"
# If there's no config file by that name, mv it over: # If there's no config file by that name, mv it over:
if [ ! -r $OLD ]; then if [ ! -r $OLD ]; then
mv $NEW $OLD mv $NEW $OLD
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then # toss the redundant copy elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
rm $NEW rm $NEW # toss the redundant copy
fi fi
# Otherwise, we leave the .new copy for the admin to consider... # 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/squid.conf.new
config etc/squid/cachemgr.conf.new config etc/squid/cachemgr.conf.new
config etc/logrotate.d/squid.new config etc/logrotate.d/squid.new

View File

@ -3,7 +3,7 @@
# Slackware build script for squid # Slackware build script for squid
# http://www.squid-cache.org/ # 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. # All rights reserved.
# #
# Redistribution and use of this script, with or without modification, is # Redistribution and use of this script, with or without modification, is
@ -24,9 +24,9 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=squid PRGNAM=squid
VERSION=3.0.STABLE10 VERSION=3.0.STABLE14
ARCH=${ARCH:-i486} ARCH=${ARCH:-i486}
BUILD=${BUILD:-2} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
CWD=$(pwd) CWD=$(pwd)
@ -78,8 +78,10 @@ make all
make install DESTDIR=$PKG make install DESTDIR=$PKG
( cd $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 "executable" | grep ELF | cut -f 1 -d : | \
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
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
xargs strip --strip-unneeded 2> /dev/null
) )
( cd $PKG/usr/man ( cd $PKG/usr/man
@ -88,9 +90,10 @@ make install DESTDIR=$PKG
) )
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION 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 \ 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 cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
chown root:root $PKG/usr/doc/$PRGNAM-$VERSION/* chown root:root $PKG/usr/doc/$PRGNAM-$VERSION/*

View File

@ -1,8 +1,8 @@
PRGNAM="squid" PRGNAM="squid"
VERSION="3.0.STABLE10" VERSION="3.0.STABLE14"
HOMEPAGE="http://www.squid-cache.org/" HOMEPAGE="http://www.squid-cache.org/"
DOWNLOAD="http://www.squid-cache.org/Versions/v3/3.0/squid-3.0.STABLE10.tar.bz2" DOWNLOAD="http://www.squid-cache.org/Versions/v3/3.0/squid-3.0.STABLE14.tar.bz2"
MD5SUM="cfd37717230220a9f47177594e235f18" MD5SUM="7aaff2319d2263404d788a82a10c8633"
MAINTAINER="David Somero" MAINTAINER="David Somero"
EMAIL="dsomero@hotmail.com" EMAIL="dsomero@hotmail.com"
APPROVED="rworkman" APPROVED="rworkman"