auto-import squid-2.4.STABLE7-2 from squid-2.4.STABLE7-2.src.rpm

This commit is contained in:
cvsdist 2004-09-09 12:41:01 +00:00
parent 9ea12eb339
commit 13d1585137
4 changed files with 27 additions and 25 deletions

View File

@ -1,2 +1 @@
msntauth-v2.0.3-squid.1.tar.gz squid-2.4.STABLE7-src.tar.gz
squid-2.4.STABLE6-src.tar.gz

View File

@ -1,2 +1 @@
0067e2732930853b0d6011589ac0aed8 msntauth-v2.0.3-squid.1.tar.gz 3b91136b8ddcc37196716fa6e85a14b2 squid-2.4.STABLE7-src.tar.gz
103fe9d03aca06f89218740f29730527 squid-2.4.STABLE6-src.tar.gz

View File

@ -31,6 +31,7 @@ if [ -f /etc/sysconfig/squid ]; then
. /etc/sysconfig/squid . /etc/sysconfig/squid
else else
SQUID_OPTS="-D" SQUID_OPTS="-D"
SQUID_PIDFILE_TIMEOUT=20
SQUID_SHUTDOWN_TIMEOUT=100 SQUID_SHUTDOWN_TIMEOUT=100
fi fi
@ -55,8 +56,20 @@ start() {
fi fi
done done
echo -n $"Starting $prog: " echo -n $"Starting $prog: "
$SQUID $SQUID_OPTS 2> /dev/null & $SQUID $SQUID_OPTS 2> /dev/null
RETVAL=$? RETVAL=$?
if [ $RETVAL -eq 0 ]; then
timeout=0;
while : ; do
[ ! -f /var/run/squid.pid ] || break
if [ $timeout -ge $SQUID_PIDFILE_TIMEOUT ]; then
RETVAL=1
break
fi
sleep 1 && echo -n "."
timeout=$((timeout+1))
done
fi
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$SQUID [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$SQUID
[ $RETVAL -eq 0 ] && echo_success [ $RETVAL -eq 0 ] && echo_success
[ $RETVAL -ne 0 ] && echo_failure [ $RETVAL -ne 0 ] && echo_failure

View File

@ -1,7 +1,7 @@
Summary: The Squid proxy caching server. Summary: The Squid proxy caching server.
Name: squid Name: squid
Version: 2.4.STABLE6 Version: 2.4.STABLE7
Release: 6.7.3 Release: 2
Serial: 7 Serial: 7
License: GPL License: GPL
Group: System Environment/Daemons Group: System Environment/Daemons
@ -10,16 +10,11 @@ Source1: http://www.squid-cache.org/Squid/FAQ/FAQ.sgml
Source2: squid.init Source2: squid.init
Source3: squid.logrotate Source3: squid.logrotate
Source4: squid.sysconfig Source4: squid.sysconfig
Source10: msntauth-v2.0.3-squid.1.tar.gz
Patch0: squid-2.1-make.patch Patch0: squid-2.1-make.patch
Patch1: squid-2.4-config.patch Patch1: squid-2.4-config.patch
Patch2: squid-perlpath.patch Patch2: squid-perlpath.patch
Patch3: squid-location.patch Patch3: squid-location.patch
Patch10: squid-2.4.STABLE6-deny_transfer_encoding.patch Patch10: squid-2.4.STABLE7-msntauth.patch
Patch11: squid-2.4.STABLE6-ftp_directories.patch
Patch12: squid-2.4.STABLE6-ftp_sanitycheck.patch
Patch13: squid-2.4.STABLE6-gopher.patch
Patch14: squid-2.4.STABLE6-proxy_auth.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRoot: %{_tmppath}/%{name}-%{version}-root
Prereq: /sbin/chkconfig logrotate shadow-utils Prereq: /sbin/chkconfig logrotate shadow-utils
Requires: bash >= 2.0 Requires: bash >= 2.0
@ -39,20 +34,12 @@ lookup program (dnsserver), a program for retrieving FTP data
(ftpget), and some management and client tools. (ftpget), and some management and client tools.
%prep %prep
%setup -q -a 10 %setup -q
%patch0 -p1 -b .make %patch0 -p1 -b .make
%patch1 -p1 -b .config %patch1 -p1 -b .config
%patch2 -p1 -b .perlpath %patch2 -p1 -b .perlpath
%patch3 -p1 %patch3 -p1
%patch10 -p1 %patch10 -p1
%patch12 -p1
%patch11 -p1
%patch13 -p1
%patch14 -p1
rm -rf auth_moudles/MSNT/*
mv msntauth-v2.0.3-squid.1/* auth_modules/MSNT/
rm -rf msntauth-v2.0.3-squid.1
%build %build
%configure \ %configure \
@ -129,9 +116,6 @@ install -m 644 $RPM_SOURCE_DIR/squid.sysconfig $RPM_BUILD_ROOT/etc/sysconfig/squ
mkdir -p $RPM_BUILD_ROOT/var/log/squid mkdir -p $RPM_BUILD_ROOT/var/log/squid
mkdir -p $RPM_BUILD_ROOT/var/spool/squid mkdir -p $RPM_BUILD_ROOT/var/spool/squid
strip $RPM_BUILD_ROOT/usr/bin/* $RPM_BUILD_ROOT/usr/sbin/* \
$RPM_BUILD_ROOT/usr/lib/squid/* || :
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
@ -258,6 +242,13 @@ if [ "$1" -ge "1" ] ; then
fi fi
%changelog %changelog
* Thu Jul 18 2002 Bill Nottingham <notting@redhat.com> 2.4.STABLE7-2
- don't strip binaries
* Mon Jul 8 2002 Bill Nottingham <notting@redhat.com>
- update to 2.4.STABLE7
- fix restart (#53761)
* Tue Jun 25 2002 Bill Nottingham <notting@redhat.com> * Tue Jun 25 2002 Bill Nottingham <notting@redhat.com>
- add various upstream bugfix patches - add various upstream bugfix patches