annotate net-proxy/squid/squid-3.1.5.ebuild @ 237:2864788b37cf

bump maven to 3.0-b2
author holger
date Wed, 11 Aug 2010 01:19:11 +0200
parents eee42ea7ddfb
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
236
eee42ea7ddfb sync 3.1.5 with bgo
holger
parents: 229
diff changeset
1 # Copyright 1999-2010 Gentoo Foundation
215
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
2 # Distributed under the terms of the GNU General Public License v2
236
eee42ea7ddfb sync 3.1.5 with bgo
holger
parents: 229
diff changeset
3 # $Header: $
215
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
4
236
eee42ea7ddfb sync 3.1.5 with bgo
holger
parents: 229
diff changeset
5 EAPI="3"
215
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
6
236
eee42ea7ddfb sync 3.1.5 with bgo
holger
parents: 229
diff changeset
7 inherit base eutils pam toolchain-funcs
215
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
8
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
9 DESCRIPTION="A full-featured web proxy cache"
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
10 HOMEPAGE="http://www.squid-cache.org/"
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
11 SRC_URI="http://www.squid-cache.org/Versions/v3/3.1/${P}.tar.gz"
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
12
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
13 LICENSE="GPL-2"
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
14 SLOT="0"
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
15 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
16 IUSE="caps ipv6 pam ldap samba sasl kerberos nis radius ssl snmp selinux logrotate test \
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
17 ecap icap-client \
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
18 mysql postgres sqlite \
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
19 zero-penalty-hit \
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
20 pf-transparent ipf-transparent kqueue \
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
21 elibc_uclibc kernel_linux +epoll"
236
eee42ea7ddfb sync 3.1.5 with bgo
holger
parents: 229
diff changeset
22
215
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
23 RESTRICT=test
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
24
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
25 COMMON_DEPEND="caps? ( >=sys-libs/libcap-2.16 )
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
26 pam? ( virtual/pam )
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
27 ldap? ( net-nds/openldap )
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
28 kerberos? ( || ( app-crypt/mit-krb5 app-crypt/heimdal ) )
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
29 ssl? ( dev-libs/openssl )
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
30 sasl? ( dev-libs/cyrus-sasl )
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
31 ecap? ( net-libs/libecap )
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
32 selinux? ( sec-policy/selinux-squid )
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
33 !x86-fbsd? ( logrotate? ( app-admin/logrotate ) )
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
34 >=sys-libs/db-4
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
35 dev-lang/perl"
236
eee42ea7ddfb sync 3.1.5 with bgo
holger
parents: 229
diff changeset
36
215
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
37 DEPEND="${COMMON_DEPEND}
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
38 sys-devel/automake
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
39 sys-devel/autoconf
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
40 sys-devel/libtool
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
41 test? ( dev-util/cppunit )"
236
eee42ea7ddfb sync 3.1.5 with bgo
holger
parents: 229
diff changeset
42
215
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
43 RDEPEND="${COMMON_DEPEND}
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
44 samba? ( net-fs/samba )
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
45 mysql? ( dev-perl/DBD-mysql )
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
46 postgres? ( dev-perl/DBD-Pg )
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
47 sqlite? ( dev-perl/DBD-SQLite )"
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
48
236
eee42ea7ddfb sync 3.1.5 with bgo
holger
parents: 229
diff changeset
49 PATCHES=(
eee42ea7ddfb sync 3.1.5 with bgo
holger
parents: 229
diff changeset
50 "${FILESDIR}/${P}-gentoo.patch"
eee42ea7ddfb sync 3.1.5 with bgo
holger
parents: 229
diff changeset
51 "${FILESDIR}/${P}-qafixes.patch"
eee42ea7ddfb sync 3.1.5 with bgo
holger
parents: 229
diff changeset
52 "${FILESDIR}/${P}-libmd5.patch"
eee42ea7ddfb sync 3.1.5 with bgo
holger
parents: 229
diff changeset
53 "${FILESDIR}/${P}-errorstate-leak-fix.patch"
eee42ea7ddfb sync 3.1.5 with bgo
holger
parents: 229
diff changeset
54 "${FILESDIR}/${P}-range-leak-fix-1.patch"
eee42ea7ddfb sync 3.1.5 with bgo
holger
parents: 229
diff changeset
55 "${FILESDIR}/${P}-range-leak-fix-2.patch"
eee42ea7ddfb sync 3.1.5 with bgo
holger
parents: 229
diff changeset
56 )
215
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
57
236
eee42ea7ddfb sync 3.1.5 with bgo
holger
parents: 229
diff changeset
58 pkg_pretend() {
215
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
59 if grep -qs '^[[:space:]]*cache_dir[[:space:]]\+coss' "${ROOT}"etc/squid/squid.conf; then
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
60 eerror "coss store IO has been disabled by upstream due to stability issues!"
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
61 eerror "If you want to install this version, switch the store type to something else"
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
62 eerror "before attempting to install this version again."
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
63
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
64 die "/etc/squid/squid.conf: cache_dir use a disabled store type"
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
65 fi
236
eee42ea7ddfb sync 3.1.5 with bgo
holger
parents: 229
diff changeset
66 }
eee42ea7ddfb sync 3.1.5 with bgo
holger
parents: 229
diff changeset
67
eee42ea7ddfb sync 3.1.5 with bgo
holger
parents: 229
diff changeset
68 pkg_setup() {
eee42ea7ddfb sync 3.1.5 with bgo
holger
parents: 229
diff changeset
69 [ ${EAPI} -lt 4 ] && pkg_pretend
215
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
70
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
71 enewgroup squid 31
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
72 enewuser squid 31 -1 /var/cache/squid squid
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
73 }
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
74
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
75 src_prepare() {
236
eee42ea7ddfb sync 3.1.5 with bgo
holger
parents: 229
diff changeset
76 base_src_prepare
215
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
77
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
78 # eautoreconf breaks lib/libLtdl/libtool script
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
79 ./bootstrap.sh || die "autoreconf failed"
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
80 }
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
81
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
82 src_configure() {
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
83 local myconf=""
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
84
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
85 local basic_modules="getpwnam,NCSA,MSNT"
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
86 use samba && basic_modules="SMB,multi-domain-NTLM,${basic_modules}"
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
87 use ldap && basic_modules="LDAP,${basic_modules}"
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
88 use pam && basic_modules="PAM,${basic_modules}"
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
89 use sasl && basic_modules="SASL,${basic_modules}"
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
90 use nis && ! use elibc_uclibc && basic_modules="YP,${basic_modules}"
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
91 use radius && basic_modules="squid_radius_auth,${basic_modules}"
236
eee42ea7ddfb sync 3.1.5 with bgo
holger
parents: 229
diff changeset
92
215
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
93 if use mysql || use postgres || use sqlite ; then
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
94 basic_modules="DB,${basic_modules}"
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
95 fi
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
96
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
97 local digest_modules="password"
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
98 use ldap && digest_modules="ldap,${digest_modules}"
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
99
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
100 local ext_helpers="ip_user,session,unix_group"
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
101 use samba && ext_helpers="wbinfo_group,${ext_helpers}"
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
102 use ldap && ext_helpers="ldap_group,${ext_helpers}"
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
103
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
104 local ntlm_helpers="fakeauth"
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
105 use samba && ntlm_helpers="smb_lm,${ntlm_helpers}"
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
106
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
107 local negotiate_helpers=
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
108 if use kerberos; then
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
109 negotiate_helpers="squid_kerb_auth"
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
110 has_version app-crypt/mit-krb5 \
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
111 && myconf="--enable-mit --disable-heimdal" \
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
112 || myconf="--disable-mit --enable-heimdal"
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
113 fi
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
114
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
115 # coss support has been disabled
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
116 # If it is re-enabled again, make sure you don't enable it for elibc_uclibc (#61175)
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
117 myconf="${myconf} --enable-storeio=ufs,diskd,aufs"
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
118
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
119 if use kernel_linux; then
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
120 myconf="${myconf} --enable-linux-netfilter
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
121 $(use_enable epoll)"
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
122 elif use kernel_FreeBSD || use kernel_OpenBSD || use kernel_NetBSD ; then
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
123 myconf="${myconf} $(use_enable kqueue)"
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
124 if use pf-transparent; then
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
125 myconf="${myconf} --enable-pf-transparent"
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
126 elif use ipf-transparent; then
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
127 myconf="${myconf} --enable-ipf-transparent"
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
128 fi
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
129 fi
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
130
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
131 export CC=$(tc-getCC)
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
132
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
133 econf \
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
134 --sysconfdir=/etc/squid \
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
135 --libexecdir=/usr/libexec/squid \
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
136 --localstatedir=/var \
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
137 --with-pidfile=/var/run/squid.pid \
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
138 --datadir=/usr/share/squid \
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
139 --with-logdir=/var/log/squid \
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
140 --with-default-user=squid \
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
141 --enable-auth="basic,digest,negotiate,ntlm" \
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
142 --enable-removal-policies="lru,heap" \
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
143 --enable-digest-auth-helpers="${digest_modules}" \
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
144 --enable-basic-auth-helpers="${basic_modules}" \
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
145 --enable-external-acl-helpers="${ext_helpers}" \
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
146 --enable-ntlm-auth-helpers="${ntlm_helpers}" \
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
147 --enable-negotiate-auth-helpers="${negotiate_helpers}" \
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
148 --enable-useragent-log \
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
149 --enable-cache-digests \
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
150 --enable-delay-pools \
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
151 --enable-referer-log \
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
152 --enable-arp-acl \
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
153 --with-large-files \
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
154 --with-filedescriptors=8192 \
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
155 --disable-strict-error-checking \
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
156 $(use_enable caps) \
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
157 $(use_enable ipv6) \
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
158 $(use_enable snmp) \
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
159 $(use_enable ssl) \
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
160 $(use_enable icap-client) \
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
161 $(use_enable ecap) \
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
162 $(use_enable zero-penalty-hit zph-qos) \
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
163 ${myconf} || die "econf failed"
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
164 }
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
165
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
166 src_install() {
236
eee42ea7ddfb sync 3.1.5 with bgo
holger
parents: 229
diff changeset
167 base_src_install
215
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
168
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
169 # need suid root for looking into /etc/shadow
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
170 fowners root:squid /usr/libexec/squid/ncsa_auth
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
171 fowners root:squid /usr/libexec/squid/pam_auth
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
172 fperms 4750 /usr/libexec/squid/ncsa_auth
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
173 fperms 4750 /usr/libexec/squid/pam_auth
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
174
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
175 # some cleanups
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
176 rm -f "${D}"/usr/bin/Run*
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
177
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
178 dodoc CONTRIBUTORS CREDITS ChangeLog QUICKSTART SPONSORS doc/*.txt \
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
179 helpers/ntlm_auth/no_check/README.no_check_ntlm_auth
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
180 newdoc helpers/basic_auth/SMB/README README.auth_smb
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
181 dohtml helpers/basic_auth/MSNT/README.html RELEASENOTES.html
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
182 newdoc helpers/basic_auth/LDAP/README README.auth_ldap
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
183 doman helpers/basic_auth/LDAP/*.8
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
184 dodoc helpers/basic_auth/SASL/squid_sasl_auth*
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
185
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
186 newpamd "${FILESDIR}/squid.pam" squid
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
187 newconfd "${FILESDIR}/squid.confd" squid
236
eee42ea7ddfb sync 3.1.5 with bgo
holger
parents: 229
diff changeset
188
215
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
189 if use logrotate; then
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
190 newinitd "${FILESDIR}/squid.initd-logrotate" squid
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
191 insinto /etc/logrotate.d
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
192 newins "${FILESDIR}/squid.logrotate" squid
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
193 else
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
194 newinitd "${FILESDIR}/squid.initd" squid
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
195 exeinto /etc/cron.weekly
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
196 newexe "${FILESDIR}/squid.cron" squid.cron
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
197 fi
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
198
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
199 rm -rf "${D}"/var
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
200 diropts -m0755 -o squid -g squid
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
201 keepdir /var/cache/squid /var/log/squid
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
202 }
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
203
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
204 pkg_postinst() {
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
205 ewarn "Squid authentication helpers have been installed suid root."
236
eee42ea7ddfb sync 3.1.5 with bgo
holger
parents: 229
diff changeset
206 ewarn "This allows for shadow based authentication (see bug #52977 for more)."
eee42ea7ddfb sync 3.1.5 with bgo
holger
parents: 229
diff changeset
207 ewarn
215
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
208 ewarn "Be careful what type of cache_dir you select!"
236
eee42ea7ddfb sync 3.1.5 with bgo
holger
parents: 229
diff changeset
209 ewarn "'diskd' is optimized for high levels of traffic, but it might seem slow"
eee42ea7ddfb sync 3.1.5 with bgo
holger
parents: 229
diff changeset
210 ewarn "where there isn't sufficient traffic to keep squid reasonably busy."
eee42ea7ddfb sync 3.1.5 with bgo
holger
parents: 229
diff changeset
211 ewarn "If your traffic level is low to moderate, use 'aufs' or 'ufs'."
eee42ea7ddfb sync 3.1.5 with bgo
holger
parents: 229
diff changeset
212 ewarn
215
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
213 ewarn "Squid can be configured to run in transparent mode like this:"
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
214 ewarn " ${HILITE}http_port internal-addr:3128 transparent${NORMAL}"
236
eee42ea7ddfb sync 3.1.5 with bgo
holger
parents: 229
diff changeset
215
215
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
216 if use zero-penalty-hit; then
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
217 echo
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
218 ewarn "In order for zph_preserve_miss_tos to work, you will have to alter your kernel"
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
219 ewarn "with the patch that can be found on http://zph.bratcheda.org site."
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
220 fi
4cb7937e347c squid-3.1.1 final
holger
parents:
diff changeset
221 }