Gentoo Archives: gentoo-commits

From: "Eray Aslan (eras)" <eras@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-proxy/squid: ChangeLog squid-3.1.12.ebuild
Date: Fri, 29 Apr 2011 13:24:29
Message-Id: 20110429132418.2A0DD20054@flycatcher.gentoo.org
1 eras 11/04/29 13:24:18
2
3 Modified: ChangeLog
4 Added: squid-3.1.12.ebuild
5 Log:
6 Non-maintainer version bump - bug #362049
7
8 (Portage version: 2.1.9.46/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.319 net-proxy/squid/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/squid/ChangeLog?rev=1.319&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/squid/ChangeLog?rev=1.319&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/squid/ChangeLog?r1=1.318&r2=1.319
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-proxy/squid/ChangeLog,v
20 retrieving revision 1.318
21 retrieving revision 1.319
22 diff -u -r1.318 -r1.319
23 --- ChangeLog 3 Dec 2010 16:29:41 -0000 1.318
24 +++ ChangeLog 29 Apr 2011 13:24:18 -0000 1.319
25 @@ -1,6 +1,12 @@
26 # ChangeLog for net-proxy/squid
27 -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/ChangeLog,v 1.318 2010/12/03 16:29:41 flameeyes Exp $
29 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/ChangeLog,v 1.319 2011/04/29 13:24:18 eras Exp $
31 +
32 +*squid-3.1.12 (29 Apr 2011)
33 +
34 + 29 Apr 2011; Eray Aslan <eras@g.o> +squid-3.1.12.ebuild,
35 + +files/squid-3.1.12-gentoo.patch:
36 + Non-maintainer version bump - bug #362049
37
38 03 Dec 2010; Diego E. Pettenò <flameeyes@g.o> squid-3.1.9.ebuild:
39 Come back to using eautoreconf, it works fine with libtool-2 and 3.1.9.
40
41
42
43 1.1 net-proxy/squid/squid-3.1.12.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/squid/squid-3.1.12.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/squid/squid-3.1.12.ebuild?rev=1.1&content-type=text/plain
47
48 Index: squid-3.1.12.ebuild
49 ===================================================================
50 # Copyright 1999-2011 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/squid-3.1.12.ebuild,v 1.1 2011/04/29 13:24:18 eras Exp $
53
54 EAPI="4"
55
56 inherit eutils pam toolchain-funcs autotools linux-info
57
58 DESCRIPTION="A full-featured web proxy cache"
59 HOMEPAGE="http://www.squid-cache.org/"
60 SRC_URI="http://www.squid-cache.org/Versions/v3/3.1/${P}.tar.gz"
61
62 LICENSE="GPL-2"
63 SLOT="0"
64 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
65 IUSE="caps ipv6 pam ldap samba sasl kerberos nis radius ssl snmp selinux logrotate test \
66 ecap icap-client \
67 mysql postgres sqlite \
68 zero-penalty-hit \
69 pf-transparent ipf-transparent kqueue \
70 elibc_uclibc kernel_linux +epoll tproxy"
71
72 COMMON_DEPEND="caps? ( >=sys-libs/libcap-2.16 )
73 pam? ( virtual/pam )
74 ldap? ( net-nds/openldap )
75 kerberos? ( virtual/krb5 )
76 ssl? ( dev-libs/openssl )
77 sasl? ( dev-libs/cyrus-sasl )
78 ecap? ( net-libs/libecap )
79 selinux? ( sec-policy/selinux-squid )
80 !x86-fbsd? ( logrotate? ( app-admin/logrotate ) )
81 >=sys-libs/db-4
82 dev-lang/perl"
83 DEPEND="${COMMON_DEPEND}
84 sys-apps/ed
85 test? ( dev-util/cppunit )"
86 RDEPEND="${COMMON_DEPEND}
87 samba? ( net-fs/samba )
88 mysql? ( dev-perl/DBD-mysql )
89 postgres? ( dev-perl/DBD-Pg )
90 sqlite? ( dev-perl/DBD-SQLite )"
91
92 REQUIRED_USE="tproxy? ( caps )"
93
94 pkg_pretend() {
95 if grep -qs '^[[:space:]]*cache_dir[[:space:]]\+coss' "${ROOT}"etc/squid/squid.conf; then
96 eerror "coss store IO has been disabled by upstream due to stability issues!"
97 eerror "If you want to install this version, switch the store type to something else"
98 eerror "before attempting to install this version again."
99
100 die "/etc/squid/squid.conf: cache_dir uses a disabled store type"
101 fi
102
103 if use tproxy; then
104 echo
105 elog "Checking kernel configuration for full Tproxy4 support"
106 local CONFIG_CHECK="~NF_CONNTRACK ~NETFILTER_TPROXY ~NETFILTER_XT_MATCH_SOCKET ~NETFILTER_XT_TARGET_TPROXY"
107 linux-info_pkg_setup
108 echo
109 fi
110 }
111
112 pkg_setup() {
113 enewgroup squid 31
114 enewuser squid 31 -1 /var/cache/squid squid
115 }
116
117 src_prepare() {
118 epatch "${FILESDIR}"/${P}-gentoo.patch
119 eautoreconf
120 }
121
122 src_configure() {
123 local myconf=""
124
125 local basic_modules="getpwnam,NCSA,MSNT"
126 use samba && basic_modules="SMB,multi-domain-NTLM,${basic_modules}"
127 use ldap && basic_modules="LDAP,${basic_modules}"
128 use pam && basic_modules="PAM,${basic_modules}"
129 use sasl && basic_modules="SASL,${basic_modules}"
130 use nis && ! use elibc_uclibc && basic_modules="YP,${basic_modules}"
131 use radius && basic_modules="squid_radius_auth,${basic_modules}"
132 if use mysql || use postgres || use sqlite ; then
133 basic_modules="DB,${basic_modules}"
134 fi
135
136 local digest_modules="password"
137 use ldap && digest_modules="ldap,${digest_modules}"
138
139 local ext_helpers="ip_user,session,unix_group"
140 use samba && ext_helpers="wbinfo_group,${ext_helpers}"
141 use ldap && ext_helpers="ldap_group,${ext_helpers}"
142
143 local ntlm_helpers="fakeauth"
144 use samba && ntlm_helpers="smb_lm,${ntlm_helpers}"
145
146 local negotiate_helpers=
147 if use kerberos; then
148 negotiate_helpers="squid_kerb_auth"
149 if has_version app-crypt/mit-krb5; then
150 myconf="--enable-mit --disable-heimdal"
151 elif has_version app-crypt/heimdal; then
152 myconf="--disable-mit --enable-heimdal"
153 fi
154 else
155 myconf="--disable-mit --disable-heimdal"
156 fi
157
158 # coss support has been disabled
159 # If it is re-enabled again, make sure you don't enable it for elibc_uclibc (#61175)
160 myconf="${myconf} --enable-storeio=ufs,diskd,aufs"
161
162 if use kernel_linux; then
163 myconf="${myconf} --enable-linux-netfilter \
164 $(use_enable tproxy linux-tproxy) \
165 $(use_enable epoll)"
166 elif use kernel_FreeBSD || use kernel_OpenBSD || use kernel_NetBSD ; then
167 myconf="${myconf} $(use_enable kqueue)"
168 if use pf-transparent; then
169 myconf="${myconf} --enable-pf-transparent"
170 elif use ipf-transparent; then
171 myconf="${myconf} --enable-ipf-transparent"
172 fi
173 fi
174
175 export CC=$(tc-getCC)
176
177 econf \
178 --sysconfdir=/etc/squid \
179 --libexecdir=/usr/libexec/squid \
180 --localstatedir=/var \
181 --with-pidfile=/var/run/squid.pid \
182 --datadir=/usr/share/squid \
183 --with-logdir=/var/log/squid \
184 --with-default-user=squid \
185 --enable-auth="basic,digest,negotiate,ntlm" \
186 --enable-removal-policies="lru,heap" \
187 --enable-digest-auth-helpers="${digest_modules}" \
188 --enable-basic-auth-helpers="${basic_modules}" \
189 --enable-external-acl-helpers="${ext_helpers}" \
190 --enable-ntlm-auth-helpers="${ntlm_helpers}" \
191 --enable-negotiate-auth-helpers="${negotiate_helpers}" \
192 --enable-useragent-log \
193 --enable-cache-digests \
194 --enable-delay-pools \
195 --enable-referer-log \
196 --enable-arp-acl \
197 --with-large-files \
198 --with-filedescriptors=8192 \
199 --disable-strict-error-checking \
200 $(use_with caps libcap) \
201 $(use_enable ipv6) \
202 $(use_enable snmp) \
203 $(use_enable ssl) \
204 $(use_enable icap-client) \
205 $(use_enable ecap) \
206 $(use_enable zero-penalty-hit zph-qos) \
207 ${myconf}
208 }
209
210 src_install() {
211 emake DESTDIR="${D}" install || die "emake install failed"
212
213 # need suid root for looking into /etc/shadow
214 fowners root:squid /usr/libexec/squid/ncsa_auth
215 fowners root:squid /usr/libexec/squid/pam_auth
216 fperms 4750 /usr/libexec/squid/ncsa_auth
217 fperms 4750 /usr/libexec/squid/pam_auth
218
219 # some cleanups
220 rm -f "${D}"/usr/bin/Run*
221
222 dodoc CONTRIBUTORS CREDITS ChangeLog QUICKSTART SPONSORS doc/*.txt \
223 helpers/ntlm_auth/no_check/README.no_check_ntlm_auth
224 newdoc helpers/basic_auth/SMB/README README.auth_smb
225 dohtml helpers/basic_auth/MSNT/README.html RELEASENOTES.html
226 newdoc helpers/basic_auth/LDAP/README README.auth_ldap
227 doman helpers/basic_auth/LDAP/*.8
228 dodoc helpers/basic_auth/SASL/squid_sasl_auth*
229
230 newpamd "${FILESDIR}/squid.pam" squid
231 newconfd "${FILESDIR}/squid.confd" squid
232 if use logrotate; then
233 newinitd "${FILESDIR}/squid.initd-logrotate" squid
234 insinto /etc/logrotate.d
235 newins "${FILESDIR}/squid.logrotate" squid
236 else
237 newinitd "${FILESDIR}/squid.initd" squid
238 exeinto /etc/cron.weekly
239 newexe "${FILESDIR}/squid.cron" squid.cron
240 fi
241
242 rm -rf "${D}"/var
243 diropts -m0755 -o squid -g squid
244 keepdir /var/cache/squid /var/log/squid
245 }
246
247 pkg_postinst() {
248 echo
249 elog "Squid authentication helpers have been installed suid root."
250 elog "This allows shadow based authentication (see bug #52977 for more)."
251 echo
252 elog "Be careful what type of cache_dir you select!"
253 elog " 'diskd' is optimized for high levels of traffic, but it might seem slow"
254 elog "when there isn't sufficient traffic to keep squid reasonably busy."
255 elog " If your traffic level is low to moderate, use 'aufs' or 'ufs'."
256 }