- update to latest upstream 2.6.STABLE14
- resolves: #247064: Initscript Review
This commit is contained in:
parent
6af29dd185
commit
41ce9b724c
@ -1 +1 @@
|
|||||||
squid-2.6.STABLE12.tar.bz2
|
squid-2.6.STABLE14.tar.bz2
|
||||||
|
2
sources
2
sources
@ -1 +1 @@
|
|||||||
a830ccc95cb39cdfa5e5b773add0bb0d squid-2.6.STABLE12.tar.bz2
|
eadb138d48320df8b99349121159c6bf squid-2.6.STABLE14.tar.bz2
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
--- squid-2.5.STABLE11/src/cf.data.pre.config 2005-09-13 15:44:35.000000000 +0200
|
--- squid-2.6.STABLE14/src/cf.data.pre.config 2007-06-26 01:34:57.000000000 +0200
|
||||||
+++ squid-2.5.STABLE11/src/cf.data.pre 2005-09-23 11:13:06.000000000 +0200
|
+++ squid-2.6.STABLE14/src/cf.data.pre 2007-07-19 21:22:45.000000000 +0200
|
||||||
@@ -2210,6 +2210,7 @@
|
@@ -2961,6 +2961,7 @@
|
||||||
#http_access allow our_networks
|
#http_access allow our_networks
|
||||||
|
|
||||||
# And finally deny all other access to this proxy
|
# And finally deny all other access to this proxy
|
||||||
@ -8,7 +8,7 @@
|
|||||||
http_access deny all
|
http_access deny all
|
||||||
NOCOMMENT_END
|
NOCOMMENT_END
|
||||||
DOC_END
|
DOC_END
|
||||||
@@ -2436,11 +2437,11 @@
|
@@ -3243,11 +3244,11 @@
|
||||||
|
|
||||||
NAME: cache_mgr
|
NAME: cache_mgr
|
||||||
TYPE: string
|
TYPE: string
|
||||||
@ -21,8 +21,8 @@
|
|||||||
+ mail if the cache dies. The default is "root".
|
+ mail if the cache dies. The default is "root".
|
||||||
DOC_END
|
DOC_END
|
||||||
|
|
||||||
|
NAME: mail_from
|
||||||
@@ -2471,22 +2472,23 @@
|
@@ -3275,21 +3276,22 @@
|
||||||
|
|
||||||
NAME: cache_effective_user
|
NAME: cache_effective_user
|
||||||
TYPE: string
|
TYPE: string
|
||||||
@ -33,7 +33,7 @@
|
|||||||
If you start Squid as root, it will change its effective/real
|
If you start Squid as root, it will change its effective/real
|
||||||
UID/GID to the user specified below. The default is to change
|
UID/GID to the user specified below. The default is to change
|
||||||
- to UID to nobody. If you define cache_effective_user, but not
|
- to UID to nobody. If you define cache_effective_user, but not
|
||||||
+ to UID to "squid". If you define cache_effective_user, but not
|
+ to UID to squid. If you define cache_effective_user, but not
|
||||||
cache_effective_group, Squid sets the GID to the effective
|
cache_effective_group, Squid sets the GID to the effective
|
||||||
user's default group ID (taken from the password file) and
|
user's default group ID (taken from the password file) and
|
||||||
supplementary group list from the from groups membership of
|
supplementary group list from the from groups membership of
|
||||||
@ -41,7 +41,6 @@
|
|||||||
+cache_effective_user squid
|
+cache_effective_user squid
|
||||||
DOC_END
|
DOC_END
|
||||||
|
|
||||||
|
|
||||||
NAME: cache_effective_group
|
NAME: cache_effective_group
|
||||||
TYPE: string
|
TYPE: string
|
||||||
-DEFAULT: none
|
-DEFAULT: none
|
||||||
@ -49,15 +48,15 @@
|
|||||||
LOC: Config.effectiveGroup
|
LOC: Config.effectiveGroup
|
||||||
DOC_START
|
DOC_START
|
||||||
If you want Squid to run with a specific GID regardless of
|
If you want Squid to run with a specific GID regardless of
|
||||||
@@ -2496,6 +2498,7 @@
|
@@ -3299,6 +3301,7 @@
|
||||||
and only this GID is effective. If Squid is not started as
|
and only this GID is effective. If Squid is not started as
|
||||||
root the user starting Squid must be member of the specified
|
root the user starting Squid must be member of the specified
|
||||||
group.
|
group.
|
||||||
+cache_effective_group squid
|
+cache_effective_group squid
|
||||||
DOC_END
|
DOC_END
|
||||||
|
|
||||||
|
NAME: httpd_suppress_version_string
|
||||||
@@ -2723,7 +2726,7 @@
|
@@ -3929,7 +3932,7 @@
|
||||||
|
|
||||||
NAME: logfile_rotate
|
NAME: logfile_rotate
|
||||||
TYPE: int
|
TYPE: int
|
||||||
@ -66,7 +65,7 @@
|
|||||||
LOC: Config.Log.rotateNumber
|
LOC: Config.Log.rotateNumber
|
||||||
DOC_START
|
DOC_START
|
||||||
Specifies the number of logfile rotations to make when you
|
Specifies the number of logfile rotations to make when you
|
||||||
@@ -2739,6 +2742,8 @@
|
@@ -3945,6 +3948,8 @@
|
||||||
purposes, so -k rotate uses another signal. It is best to get
|
purposes, so -k rotate uses another signal. It is best to get
|
||||||
in the habit of using 'squid -k rotate' instead of 'kill -USR1
|
in the habit of using 'squid -k rotate' instead of 'kill -USR1
|
||||||
<pid>'.
|
<pid>'.
|
||||||
@ -74,8 +73,8 @@
|
|||||||
+logfile_rotate 0
|
+logfile_rotate 0
|
||||||
DOC_END
|
DOC_END
|
||||||
|
|
||||||
|
NAME: append_domain
|
||||||
@@ -3296,10 +3301,18 @@
|
@@ -4546,10 +4551,18 @@
|
||||||
LOC: Config.errorDirectory
|
LOC: Config.errorDirectory
|
||||||
DEFAULT: @DEFAULT_ERROR_DIR@
|
DEFAULT: @DEFAULT_ERROR_DIR@
|
||||||
DOC_START
|
DOC_START
|
||||||
@ -97,7 +96,7 @@
|
|||||||
DOC_END
|
DOC_END
|
||||||
|
|
||||||
NAME: maximum_single_addr_tries
|
NAME: maximum_single_addr_tries
|
||||||
@@ -3333,12 +3346,12 @@
|
@@ -4583,12 +4596,12 @@
|
||||||
NAME: snmp_port
|
NAME: snmp_port
|
||||||
TYPE: ushort
|
TYPE: ushort
|
||||||
LOC: Config.Port.snmp
|
LOC: Config.Port.snmp
|
39
squid.init
39
squid.init
@ -1,16 +1,18 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# squid This shell script takes care of starting and stopping
|
### BEGIN INIT INFO
|
||||||
# Squid Internet Object Cache
|
# Provides: squid
|
||||||
#
|
|
||||||
# chkconfig: - 90 25
|
# chkconfig: - 90 25
|
||||||
# description: Squid - Internet Object Cache. Internet object caching is \
|
# pidfile: /var/run/squid.pid
|
||||||
|
# config: /etc/squid/squid.conf
|
||||||
|
# Short-Description: starting and stopping Squid Internet Object Cache
|
||||||
|
# Description: Squid - Internet Object Cache. Internet object caching is \
|
||||||
# a way to store requested Internet objects (i.e., data available \
|
# a way to store requested Internet objects (i.e., data available \
|
||||||
# via the HTTP, FTP, and gopher protocols) on a system closer to the \
|
# via the HTTP, FTP, and gopher protocols) on a system closer to the \
|
||||||
# requesting site than to the source. Web browsers can then use the \
|
# requesting site than to the source. Web browsers can then use the \
|
||||||
# local Squid cache as a proxy HTTP server, reducing access time as \
|
# local Squid cache as a proxy HTTP server, reducing access time as \
|
||||||
# well as bandwidth consumption.
|
# well as bandwidth consumption.
|
||||||
# pidfile: /var/run/squid.pid
|
### END INIT INFO
|
||||||
# config: /etc/squid/squid.conf
|
|
||||||
|
|
||||||
PATH=/usr/bin:/sbin:/bin:/usr/sbin
|
PATH=/usr/bin:/sbin:/bin:/usr/sbin
|
||||||
export PATH
|
export PATH
|
||||||
@ -21,12 +23,6 @@ export PATH
|
|||||||
# Source networking configuration.
|
# Source networking configuration.
|
||||||
. /etc/sysconfig/network
|
. /etc/sysconfig/network
|
||||||
|
|
||||||
# Check that networking is up.
|
|
||||||
[ ${NETWORKING} = "no" ] && exit 0
|
|
||||||
|
|
||||||
# check if the squid conf file is present
|
|
||||||
[ -f /etc/squid/squid.conf ] || exit 0
|
|
||||||
|
|
||||||
if [ -f /etc/sysconfig/squid ]; then
|
if [ -f /etc/sysconfig/squid ]; then
|
||||||
. /etc/sysconfig/squid
|
. /etc/sysconfig/squid
|
||||||
fi
|
fi
|
||||||
@ -39,7 +35,18 @@ SQUID_SHUTDOWN_TIMEOUT=${SQUID_SHUTDOWN_TIMEOUT:-100}
|
|||||||
|
|
||||||
# determine the name of the squid binary
|
# determine the name of the squid binary
|
||||||
[ -f /usr/sbin/squid ] && SQUID=squid
|
[ -f /usr/sbin/squid ] && SQUID=squid
|
||||||
[ -z "$SQUID" ] && exit 0
|
|
||||||
|
if [ $1 -ne 'status' ]; then
|
||||||
|
[ -z "$SQUID" ] && exit 1
|
||||||
|
|
||||||
|
# Check that networking is up.
|
||||||
|
[ ${NETWORKING} = "no" ] && exit 1
|
||||||
|
|
||||||
|
# check if the squid conf file is present
|
||||||
|
[ -f /etc/squid/squid.conf ] || exit 6
|
||||||
|
else
|
||||||
|
[ -z "$SQUID" ] && exit 4
|
||||||
|
fi
|
||||||
|
|
||||||
prog="$SQUID"
|
prog="$SQUID"
|
||||||
|
|
||||||
@ -152,12 +159,12 @@ status)
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
probe)
|
probe)
|
||||||
exit 0
|
probe
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
echo $"Usage: $0 {start|stop|status|reload|restart|condrestart}"
|
echo $"Usage: $0 {start|stop|status|reload|restart|condrestart|probe}"
|
||||||
exit 1
|
exit 2
|
||||||
esac
|
esac
|
||||||
|
|
||||||
exit $?
|
exit $?
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
Summary: The Squid proxy caching server
|
Summary: The Squid proxy caching server
|
||||||
Name: squid
|
Name: squid
|
||||||
Version: 2.6.STABLE12
|
Version: 2.6.STABLE14
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Epoch: 7
|
Epoch: 7
|
||||||
License: GPL
|
License: GPL
|
||||||
@ -26,7 +26,7 @@ Source98: perl-requires-squid.sh
|
|||||||
# Local patches
|
# Local patches
|
||||||
# Applying upstream patches first makes it less likely that local patches
|
# Applying upstream patches first makes it less likely that local patches
|
||||||
# will break upstream ones.
|
# will break upstream ones.
|
||||||
Patch201: squid-2.5.STABLE11-config.patch
|
Patch201: squid-2.6.STABLE14-config.patch
|
||||||
Patch202: squid-2.5.STABLE4-location.patch
|
Patch202: squid-2.5.STABLE4-location.patch
|
||||||
Patch203: squid-2.6.STABLE2-build.patch
|
Patch203: squid-2.6.STABLE2-build.patch
|
||||||
Patch204: squid-2.5.STABLE4-perlpath.patch
|
Patch204: squid-2.5.STABLE4-perlpath.patch
|
||||||
@ -326,6 +326,10 @@ fi
|
|||||||
chgrp squid /var/cache/samba/winbindd_privileged >/dev/null 2>&1 || :
|
chgrp squid /var/cache/samba/winbindd_privileged >/dev/null 2>&1 || :
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jul 19 2007 Martin Bacovsky <mbacovsk@redhat.com> - 7:2.6.STABLE14-1
|
||||||
|
- update to latest upstream 2.6.STABLE14
|
||||||
|
- resolves: #247064: Initscript Review
|
||||||
|
|
||||||
* Tue Mar 27 2007 Martin Bacovsky <mbacovsk@redhat.com> - 7:2.6.STABLE12-1
|
* Tue Mar 27 2007 Martin Bacovsky <mbacovsk@redhat.com> - 7:2.6.STABLE12-1
|
||||||
- update to latest upstream 2.6.STABLE12
|
- update to latest upstream 2.6.STABLE12
|
||||||
- Resolves: #233913: squid: unowned directory
|
- Resolves: #233913: squid: unowned directory
|
||||||
|
Loading…
Reference in New Issue
Block a user