annotate net-proxy/squid/squid-3.1.10.ebuild @ 279:a5d43ca434f7

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