auto-import squid-2.5.STABLE5-1 from squid-2.5.STABLE5-1.src.rpm
This commit is contained in:
parent
3a42f57015
commit
9f3948d4bc
@ -1 +1 @@
|
|||||||
squid-2.5.STABLE3.tar.bz2
|
squid-2.5.STABLE5.tar.bz2
|
||||||
|
3
perl-requires-squid.sh
Executable file
3
perl-requires-squid.sh
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
/usr/lib/rpm/perl.req $* | grep -v "Authen::Smb"
|
2
sources
2
sources
@ -1 +1 @@
|
|||||||
ed5eb7835d00fdecc7dd7c1837542df2 squid-2.5.STABLE3.tar.bz2
|
45ed1b1cd492e3f529085d09c3ffc1b8 squid-2.5.STABLE5.tar.bz2
|
||||||
|
35
squid-2.5.STABLE4-location.patch
Normal file
35
squid-2.5.STABLE4-location.patch
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
--- squid-2.5.STABLE4/QUICKSTART.location 2003-07-18 04:53:27.000000000 -0400
|
||||||
|
+++ squid-2.5.STABLE4/QUICKSTART 2003-09-23 15:52:16.000000000 -0400
|
||||||
|
@@ -12,10 +12,9 @@
|
||||||
|
INSTALL in the same directory), you have to configure the squid.conf
|
||||||
|
file. This is the list of the values you *need* to change, because no
|
||||||
|
sensible defaults could be defined. Do not touch the other variables
|
||||||
|
-for now. We assume you have installed Squid in the default location:
|
||||||
|
-/usr/local/squid
|
||||||
|
+for now.
|
||||||
|
|
||||||
|
-Uncomment and edit the following lines in /usr/local/squid/etc/squid.conf:
|
||||||
|
+Uncomment and edit the following lines in /etc/squid/squid.conf:
|
||||||
|
|
||||||
|
==============================================================================
|
||||||
|
|
||||||
|
@@ -26,7 +25,7 @@
|
||||||
|
always ask permission before adding a parent cache. See also the
|
||||||
|
never_direct/always_direct directives.
|
||||||
|
|
||||||
|
-cache_dir /usr/local/squid/var/cache 100 16 256
|
||||||
|
+cache_dir /var/spool/squid 100 16 256
|
||||||
|
|
||||||
|
Add here (first number, here 100) the amount of hard disk space
|
||||||
|
(in megabytes) to devote to caching.
|
||||||
|
@@ -69,8 +68,8 @@
|
||||||
|
After editing squid.conf to your liking, run Squid from the command
|
||||||
|
line TWICE:
|
||||||
|
|
||||||
|
- % /usr/local/squid/sbin/squid -z
|
||||||
|
- % /usr/local/squid/sbin/squid
|
||||||
|
+ % /usr/sbin/squid -z
|
||||||
|
+ % /usr/sbin/squid
|
||||||
|
|
||||||
|
Check in the cache.log (/usr/local/squid/var/logs/cache.log) that
|
||||||
|
everything is all right.
|
8
squid-2.5.STABLE4-perlpath.patch
Normal file
8
squid-2.5.STABLE4-perlpath.patch
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
--- squid-2.5.STABLE4/contrib/#url-normalizer.pl~ 2004-02-06 14:08:29.000000000 -0500
|
||||||
|
+++ squid-2.5.STABLE4/contrib/url-normalizer.pl 2004-02-06 14:08:29.000000000 -0500
|
||||||
|
@@ -1,4 +1,4 @@
|
||||||
|
-#!/usr/local/bin/perl -Tw
|
||||||
|
+#!/usr/bin/perl -Tw
|
||||||
|
|
||||||
|
# From: Markus Gyger <mgyger@itr.ch>
|
||||||
|
#
|
137
squid.spec
137
squid.spec
@ -1,33 +1,31 @@
|
|||||||
|
## % define _use_internal_dependency_generator 0
|
||||||
|
%define __perl_requires %{SOURCE98}
|
||||||
|
## % define __find_requires %{SOURCE99}
|
||||||
|
|
||||||
Summary: The Squid proxy caching server.
|
Summary: The Squid proxy caching server.
|
||||||
Name: squid
|
Name: squid
|
||||||
Version: 2.5.STABLE3
|
Version: 2.5.STABLE5
|
||||||
Release: 0
|
Release: 1
|
||||||
Serial: 7
|
Epoch: 7
|
||||||
License: GPL
|
License: GPL
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
Source: http://www.squid-cache.org/Squid/v2/squid-%{version}.tar.bz2
|
Source: http://www.squid-cache.org/Squid/Versions/v2/2.5/squid-%{version}.tar.bz2
|
||||||
Source1: http://www.squid-cache.org/Squid/FAQ/FAQ.sgml
|
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
|
||||||
|
Source98: perl-requires-squid.sh
|
||||||
|
## Source99: filter-requires-squid.sh
|
||||||
Patch1: squid-2.5.STABLE3-config.patch
|
Patch1: squid-2.5.STABLE3-config.patch
|
||||||
Patch2: squid-perlpath.patch
|
#Patch2: squid-perlpath.patch
|
||||||
Patch3: squid-location.patch
|
Patch3: squid-2.5.STABLE4-location.patch
|
||||||
Patch4: squid-2.5.STABLE3-build.patch
|
Patch4: squid-2.5.STABLE3-build.patch
|
||||||
#Patch5: squid-2.4.STABLE7-fdoverride.patch
|
Patch5: squid-2.5.STABLE4-perlpath.patch
|
||||||
|
|
||||||
# Official upstream patches
|
|
||||||
Patch100: squid-2.5.STABLE3-Lithuanian.patch
|
|
||||||
Patch101: squid-2.5.STABLE3-deny_info.patch
|
|
||||||
Patch102: squid-2.5.STABLE3-HttpHeaderTools.patch
|
|
||||||
Patch103: squid-2.5.STABLE3-external_acl_ident.patch
|
|
||||||
Patch104: squid-2.5.STABLE3-aufs-openingfds.patch
|
|
||||||
Patch105: squid-2.5.STABLE3-gcc-3_3.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
|
||||||
BuildPrereq: openjade linuxdoc-tools openldap-devel pam-devel
|
BuildPrereq: openjade linuxdoc-tools openldap-devel pam-devel openssl-devel
|
||||||
Obsoletes: squid-novm
|
Obsoletes: squid-novm
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -48,22 +46,14 @@ lookup program (dnsserver), a program for retrieving FTP data
|
|||||||
#%patch2 -p1 -b .perlpath
|
#%patch2 -p1 -b .perlpath
|
||||||
%patch3 -p1 -b .location
|
%patch3 -p1 -b .location
|
||||||
%patch4 -p1 -b .build
|
%patch4 -p1 -b .build
|
||||||
#%patch5 -p1 -b .prefdoverride
|
%patch5 -p1 -b .perlpath
|
||||||
|
|
||||||
%patch100 -p1
|
|
||||||
%patch101 -p1
|
|
||||||
%patch102 -p1
|
|
||||||
%patch103 -p1
|
|
||||||
%patch104 -p1
|
|
||||||
%patch105 -p1
|
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# export CFLAGS=-fpie ; export LDFLAGS=-pie ;
|
export CFLAGS="-fPIE -Os -g -pipe -fsigned-char" ; export LDFLAGS=-pie ;
|
||||||
%configure \
|
%configure \
|
||||||
--exec_prefix=/usr \
|
--exec_prefix=/usr \
|
||||||
--bindir=/usr/sbin \
|
--bindir=%{_sbindir} \
|
||||||
--libexecdir=/usr/lib/squid \
|
--libexecdir=%{_libdir}/squid \
|
||||||
--localstatedir=/var \
|
--localstatedir=/var \
|
||||||
--sysconfdir=/etc/squid \
|
--sysconfdir=/etc/squid \
|
||||||
--enable-poll \
|
--enable-poll \
|
||||||
@ -75,20 +65,25 @@ lookup program (dnsserver), a program for retrieving FTP data
|
|||||||
--enable-delay-pools \
|
--enable-delay-pools \
|
||||||
--enable-linux-netfilter \
|
--enable-linux-netfilter \
|
||||||
--with-pthreads \
|
--with-pthreads \
|
||||||
--enable-basic-auth-helpers="LDAP,NCSA,PAM,SMB,SASL,MSNT" \
|
|
||||||
--enable-ntlm-auth-helpers="SMB,winbind" \
|
--enable-ntlm-auth-helpers="SMB,winbind" \
|
||||||
--enable-external-acl-helpers="ip_user,ldap_group,unix_group,wbinfo_group,winbind_group" \
|
--enable-external-acl-helpers="ip_user,ldap_group,unix_group,wbinfo_group,winbind_group" \
|
||||||
--enable-auth="basic,ntlm" \
|
--enable-auth="basic,ntlm" \
|
||||||
--with-winbind-auth-challenge \
|
--with-winbind-auth-challenge \
|
||||||
--enable-useragent-log \
|
--enable-useragent-log \
|
||||||
--enable-referer-log \
|
--enable-referer-log \
|
||||||
# --enable-icmp \
|
--disable-dependency-tracking \
|
||||||
|
--enable-cachemgr-hostname=localhost \
|
||||||
|
--disable-ident-lookups \
|
||||||
|
--enable-truncate \
|
||||||
|
--enable-underscores \
|
||||||
|
--datadir=%{_datadir} \
|
||||||
|
--enable-basic-auth-helpers="LDAP,MSNT,NCSA,PAM,SMB,YP,getpwnam,multi-domain-NTLM,SASL,winbind" \
|
||||||
|
|
||||||
#export CFLAGS=-fpie ; export LDFLAGS=-pie ;
|
export CFLAGS="-fPIE -Os -g -pipe -fsigned-char" ; export LDFLAGS=-pie ;
|
||||||
make
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
mkdir faq
|
mkdir faq
|
||||||
cp $RPM_SOURCE_DIR/FAQ.sgml faq
|
cp %{SOURCE1} faq
|
||||||
cd faq
|
cd faq
|
||||||
sgml2html FAQ.sgml
|
sgml2html FAQ.sgml
|
||||||
|
|
||||||
@ -99,17 +94,18 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%makeinstall \
|
%makeinstall \
|
||||||
sysconfdir=$RPM_BUILD_ROOT/etc/squid \
|
sysconfdir=$RPM_BUILD_ROOT/etc/squid \
|
||||||
localstatedir=$RPM_BUILD_ROOT/var \
|
localstatedir=$RPM_BUILD_ROOT/var \
|
||||||
bindir=$RPM_BUILD_ROOT/usr/sbin \
|
bindir=$RPM_BUILD_ROOT/%{_sbindir} \
|
||||||
libexecdir=$RPM_BUILD_ROOT/usr/lib/squid
|
libexecdir=$RPM_BUILD_ROOT/%{_libdir}/squid
|
||||||
|
|
||||||
ln -s %{_datadir}/squid/errors/English $RPM_BUILD_ROOT/etc/squid/errors
|
ln -s %{_datadir}/squid/errors/English $RPM_BUILD_ROOT/etc/squid/errors
|
||||||
|
ln -s %{_datadir}/squid/icons $RPM_BUILD_ROOT/etc/squid/icons
|
||||||
|
|
||||||
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
|
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
|
||||||
mkdir -p $RPM_BUILD_ROOT/etc/logrotate.d
|
mkdir -p $RPM_BUILD_ROOT/etc/logrotate.d
|
||||||
mkdir -p $RPM_BUILD_ROOT/etc/sysconfig
|
mkdir -p $RPM_BUILD_ROOT/etc/sysconfig
|
||||||
install -m 755 $RPM_SOURCE_DIR/squid.init $RPM_BUILD_ROOT/etc/rc.d/init.d/squid
|
install -m 755 %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/squid
|
||||||
install -m 644 $RPM_SOURCE_DIR/squid.logrotate $RPM_BUILD_ROOT/etc/logrotate.d/squid
|
install -m 644 %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/squid
|
||||||
install -m 644 $RPM_SOURCE_DIR/squid.sysconfig $RPM_BUILD_ROOT/etc/sysconfig/squid
|
install -m 644 %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/squid
|
||||||
|
|
||||||
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
|
||||||
@ -122,28 +118,33 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%dir /etc/squid
|
%doc faq/* README ChangeLog QUICKSTART doc/*
|
||||||
|
%doc contrib/url-normalizer.pl contrib/rredir.* contrib/user-agents.pl
|
||||||
|
|
||||||
|
%attr(755,root,root) %dir /etc/squid
|
||||||
|
%attr(755,root,root) %dir %{_libdir}/squid
|
||||||
|
%attr(750,squid,squid) %dir /var/log/squid
|
||||||
|
%attr(750,squid,squid) %dir /var/spool/squid
|
||||||
%config(noreplace) /etc/squid/squid.conf
|
%config(noreplace) /etc/squid/squid.conf
|
||||||
%config(noreplace) /etc/squid/mime.conf
|
%config(noreplace) /etc/squid/mime.conf
|
||||||
%config(noreplace) /etc/sysconfig/squid
|
%config(noreplace) /etc/sysconfig/squid
|
||||||
%config(noreplace) /etc/squid/msntauth.conf
|
%config(noreplace) /etc/squid/msntauth.conf
|
||||||
%config /etc/squid/mib.txt
|
%config(noreplace) /etc/squid/mib.txt
|
||||||
/etc/squid/msntauth.conf.default
|
/etc/squid/msntauth.conf.default
|
||||||
/etc/squid/squid.conf.default
|
/etc/squid/squid.conf.default
|
||||||
/etc/squid/mime.conf.default
|
/etc/squid/mime.conf.default
|
||||||
%config(noreplace) /etc/squid/errors
|
%config(noreplace) /etc/squid/errors
|
||||||
/usr/lib/squid
|
|
||||||
%{_datadir}/squid
|
%{_datadir}/squid
|
||||||
/usr/sbin/squid
|
%{_sbindir}/squid
|
||||||
/usr/sbin/squidclient
|
%{_sbindir}/squidclient
|
||||||
%config /etc/rc.d/init.d/squid
|
%config(noreplace) /etc/squid/icons
|
||||||
%config /etc/logrotate.d/squid
|
%config(noreplace) /etc/rc.d/init.d/squid
|
||||||
|
%config(noreplace) /etc/logrotate.d/squid
|
||||||
%doc faq/* README ChangeLog QUICKSTART doc/*
|
%doc faq/* README ChangeLog QUICKSTART doc/*
|
||||||
#%doc contrib/url-normalizer.pl contrib/rredir.* contrib/user-agents.pl
|
#%doc contrib/url-normalizer.pl contrib/rredir.* contrib/user-agents.pl
|
||||||
%attr(750,squid,squid) %dir /var/log/squid
|
|
||||||
%attr(750,squid,squid) %dir /var/spool/squid
|
|
||||||
%{_mandir}/man8/*
|
%{_mandir}/man8/*
|
||||||
|
%{_libdir}/squid/*
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
/usr/sbin/useradd -u 23 -d /var/spool/squid -r -s /sbin/nologin squid >/dev/null 2>&1
|
/usr/sbin/useradd -u 23 -d /var/spool/squid -r -s /sbin/nologin squid >/dev/null 2>&1
|
||||||
@ -151,7 +152,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
for i in /var/log/squid /var/spool/squid ; do
|
for i in /var/log/squid /var/spool/squid ; do
|
||||||
if [ -d $i ] ; then
|
if [ -d $i ] ; then
|
||||||
for adir in `find $i -maxdepth 0 \! -user squid`; do
|
for adir in `find $i -maxdepth 0 \! -user squid`; do
|
||||||
chown -R squid.squid $adir
|
chown -R squid:squid $adir
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
@ -247,12 +248,6 @@ if [ $1 = 0 ]; then
|
|||||||
ln -snf %{_datadir}/squid/errors/$DIR /etc/squid/errors
|
ln -snf %{_datadir}/squid/errors/$DIR /etc/squid/errors
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%triggerpostun -- squid < 2.5.STABLE1-1
|
|
||||||
errordir=`ls -ld /etc/squid/errors | awk '{ print $NF }'`
|
|
||||||
errordir=${errordir##*/}
|
|
||||||
ln -snf %{_datadir}/squid/errors/$DIR /etc/squid/errors
|
|
||||||
|
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ $1 = 0 ] ; then
|
if [ $1 = 0 ] ; then
|
||||||
service squid stop >/dev/null 2>&1
|
service squid stop >/dev/null 2>&1
|
||||||
@ -266,6 +261,38 @@ if [ "$1" -ge "1" ] ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Mar 2 2004 Jay Fenlason <fenlason@redhat.com> 7:2.5.STABLE5-1
|
||||||
|
- New upstream version, obsoletes many patches.
|
||||||
|
- Fix --datadir passed to configure. Configure automatically adds /squid
|
||||||
|
so we shouldn't.
|
||||||
|
- Remove the problematic triggerpostun trigger, since is's broken, and FC2
|
||||||
|
never shipped with that old version.
|
||||||
|
- add %{?_smp_mflags} to make line.
|
||||||
|
|
||||||
|
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
|
||||||
|
- rebuilt
|
||||||
|
|
||||||
|
* Mon Feb 23 2004 Tim Waugh <twaugh@redhat.com>
|
||||||
|
- Use ':' instead of '.' as separator for chown.
|
||||||
|
|
||||||
|
* Fri Feb 20 2004 Jay Fenlason <fenlason@redhat.com> 7:2.5.STABLE4-3
|
||||||
|
- Clean up the spec file to work on 64-bit platforms (use %{_libdir}
|
||||||
|
instead of /usr/lib, etc)
|
||||||
|
- Make the release number in the changelog section agree with reality.
|
||||||
|
- use -fPIE rather than -fpie. s390 fails with just -fpie
|
||||||
|
|
||||||
|
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
|
||||||
|
- rebuilt
|
||||||
|
|
||||||
|
* Thu Feb 5 2004 Jay Fenlason <fenlason@redhat.com>
|
||||||
|
- Incorporate many upstream patches
|
||||||
|
- Include many spec file changes from D.Johnson <dj@www.uk.linux.org>
|
||||||
|
|
||||||
|
* Tue Sep 23 2003 Jay Fenlason <fenlason@redhat.com> 7:2.5.STABLE4-1
|
||||||
|
- New upstream version.
|
||||||
|
- Fix the Source: line in this spec file to point to the correct URL.
|
||||||
|
- redo the -location patch to work with the new upstream version.
|
||||||
|
|
||||||
* Mon Jun 30 2003 Jay Fenlason <fenlason@redhat.com> 7:2.5.STABLE3-0
|
* Mon Jun 30 2003 Jay Fenlason <fenlason@redhat.com> 7:2.5.STABLE3-0
|
||||||
- Spec file change to enable the nul storage module. bugzilla #74654
|
- Spec file change to enable the nul storage module. bugzilla #74654
|
||||||
- Upgrade to 2.5STABLE3 with current official patches.
|
- Upgrade to 2.5STABLE3 with current official patches.
|
||||||
|
Loading…
Reference in New Issue
Block a user