Resolved: #854356 - squid.service use PIDFile
Resolved: #859393 - Improve cache_swap script Resolved: #791129 - disk space warning Resolved: #862252 - reload on VPN or network up/down Resolved: #867531 - run test suite during build Resolved: #832684 - missing after dependency nss-lookup.target Removed obsolete configure options
This commit is contained in:
parent
fa1b14c3dc
commit
9ed7cc7ee0
@ -11,6 +11,6 @@ CACHE_SWAP=`sed -e 's/#.*//g' $SQUID_CONF | \
|
|||||||
for adir in $CACHE_SWAP; do
|
for adir in $CACHE_SWAP; do
|
||||||
if [ ! -d $adir/00 ]; then
|
if [ ! -d $adir/00 ]; then
|
||||||
echo -n "init_cache_dir $adir... "
|
echo -n "init_cache_dir $adir... "
|
||||||
squid -z -F -f $SQUID_CONF >> /var/log/squid/squid.out 2>&1
|
squid -N -z -F -f $SQUID_CONF >> /var/log/squid/squid.out 2>&1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
8
squid.nm
8
squid.nm
@ -1,5 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
if [ "$2" = "up" ]; then
|
case "$2" in
|
||||||
/sbin/service squid reload || :
|
up|down|vpn-up|vpn-down)
|
||||||
fi
|
/bin/systemctl reload squid.service || :
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Squid caching proxy
|
Description=Squid caching proxy
|
||||||
After=syslog.target network.target named.service
|
After=syslog.target network.target nss-lookup.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=forking
|
||||||
@ -10,6 +10,7 @@ ExecStartPre=/usr/libexec/squid/cache_swap.sh
|
|||||||
ExecStart=/usr/sbin/squid $SQUID_OPTS -f $SQUID_CONF
|
ExecStart=/usr/sbin/squid $SQUID_OPTS -f $SQUID_CONF
|
||||||
ExecReload=/usr/sbin/squid $SQUID_OPTS -k reconfigure -f $SQUID_CONF
|
ExecReload=/usr/sbin/squid $SQUID_OPTS -k reconfigure -f $SQUID_CONF
|
||||||
ExecStop=/usr/sbin/squid -k shutdown -f $SQUID_CONF
|
ExecStop=/usr/sbin/squid -k shutdown -f $SQUID_CONF
|
||||||
|
PIDFile=/var/run/squid.pid
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
23
squid.spec
23
squid.spec
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
Name: squid
|
Name: squid
|
||||||
Version: 3.2.3
|
Version: 3.2.3
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: The Squid proxy caching server
|
Summary: The Squid proxy caching server
|
||||||
Epoch: 7
|
Epoch: 7
|
||||||
# See CREDITS for breakdown of non GPLv2+ code
|
# See CREDITS for breakdown of non GPLv2+ code
|
||||||
@ -64,6 +64,8 @@ BuildRequires: libcap-devel
|
|||||||
BuildRequires: libecap-devel
|
BuildRequires: libecap-devel
|
||||||
#
|
#
|
||||||
BuildRequires: libtool libtool-ltdl-devel
|
BuildRequires: libtool libtool-ltdl-devel
|
||||||
|
# For test suite
|
||||||
|
BuildRequires: cppunit-devel
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Squid is a high-performance proxy caching server for Web clients,
|
Squid is a high-performance proxy caching server for Web clients,
|
||||||
@ -111,7 +113,7 @@ The squid-sysvinit contains SysV initscritps support.
|
|||||||
CXXFLAGS="$RPM_OPT_FLAGS -fpie" \
|
CXXFLAGS="$RPM_OPT_FLAGS -fpie" \
|
||||||
CFLAGS="$RPM_OPT_FLAGS -fpie" \
|
CFLAGS="$RPM_OPT_FLAGS -fpie" \
|
||||||
%endif
|
%endif
|
||||||
LDFLAGS="-pie"
|
LDFLAGS="$RPM_LD_FLAGS -pie"
|
||||||
|
|
||||||
%configure \
|
%configure \
|
||||||
--disable-strict-error-checking \
|
--disable-strict-error-checking \
|
||||||
@ -123,7 +125,7 @@ LDFLAGS="-pie"
|
|||||||
--with-logdir='$(localstatedir)/log/squid' \
|
--with-logdir='$(localstatedir)/log/squid' \
|
||||||
--with-pidfile='$(localstatedir)/run/squid.pid' \
|
--with-pidfile='$(localstatedir)/run/squid.pid' \
|
||||||
--disable-dependency-tracking \
|
--disable-dependency-tracking \
|
||||||
--enable-arp-acl \
|
--enable-eui \
|
||||||
--enable-follow-x-forwarded-for \
|
--enable-follow-x-forwarded-for \
|
||||||
--enable-auth \
|
--enable-auth \
|
||||||
--enable-auth-basic="DB,LDAP,MSNT,MSNT-multi-domain,NCSA,NIS,PAM,POP3,RADIUS,SASL,SMB,getpwnam" \
|
--enable-auth-basic="DB,LDAP,MSNT,MSNT-multi-domain,NCSA,NIS,PAM,POP3,RADIUS,SASL,SMB,getpwnam" \
|
||||||
@ -141,13 +143,11 @@ LDFLAGS="-pie"
|
|||||||
--with-large-files \
|
--with-large-files \
|
||||||
%endif
|
%endif
|
||||||
--enable-linux-netfilter \
|
--enable-linux-netfilter \
|
||||||
--enable-referer-log \
|
|
||||||
--enable-removal-policies="heap,lru" \
|
--enable-removal-policies="heap,lru" \
|
||||||
--enable-snmp \
|
--enable-snmp \
|
||||||
--enable-ssl \
|
--enable-ssl \
|
||||||
--enable-ssl-crtd \
|
--enable-ssl-crtd \
|
||||||
--enable-storeio="aufs,diskd,ufs" \
|
--enable-storeio="aufs,diskd,ufs" \
|
||||||
--enable-useragent-log \
|
|
||||||
--enable-wccpv2 \
|
--enable-wccpv2 \
|
||||||
--enable-esi \
|
--enable-esi \
|
||||||
--enable-ecap \
|
--enable-ecap \
|
||||||
@ -162,6 +162,9 @@ make \
|
|||||||
DEFAULT_SWAP_DIR='$(localstatedir)/spool/squid' \
|
DEFAULT_SWAP_DIR='$(localstatedir)/spool/squid' \
|
||||||
%{?_smp_mflags}
|
%{?_smp_mflags}
|
||||||
|
|
||||||
|
%check
|
||||||
|
make check
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
make \
|
make \
|
||||||
@ -304,6 +307,16 @@ fi
|
|||||||
%triggerpostun -n %{name}-sysvinit -- %{name} < 7:3.2.0.9-1
|
%triggerpostun -n %{name}-sysvinit -- %{name} < 7:3.2.0.9-1
|
||||||
/sbin/chkconfig --add squid >/dev/null 2>&1 || :
|
/sbin/chkconfig --add squid >/dev/null 2>&1 || :
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri Oct 26 2012 Michal Luscon <mluscon@redhat.com> - 7:3.2.2-2
|
||||||
|
- Resolved: #854356 - squid.service use PIDFile
|
||||||
|
- Resolved: #859393 - Improve cache_swap script
|
||||||
|
- Resolved: #791129 - disk space warning
|
||||||
|
- Resolved: #862252 - reload on VPN or network up/down
|
||||||
|
- Resolved: #867531 - run test suite during build
|
||||||
|
- Resolved: #832684 - missing after dependency nss-lookup.target
|
||||||
|
- Removed obsolete configure options
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Mon Oct 22 2012 Tomas Hozza <thozza@redhat.com> - 7:3.2.3-1
|
* Mon Oct 22 2012 Tomas Hozza <thozza@redhat.com> - 7:3.2.3-1
|
||||||
- Update to latest upstream version 3.2.3
|
- Update to latest upstream version 3.2.3
|
||||||
|
Loading…
Reference in New Issue
Block a user