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: squid-3.5.1-r1.ebuild squid-3.4.11-r1.ebuild ChangeLog
Date: Wed, 04 Feb 2015 16:10:22
Message-Id: 20150204161018.F086F110BF@oystercatcher.gentoo.org
1 eras 15/02/04 16:10:18
2
3 Modified: ChangeLog
4 Added: squid-3.5.1-r1.ebuild squid-3.4.11-r1.ebuild
5 Log:
6 Security bump
7
8 (Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key 0x77F1F175586A3B1F)
9
10 Revision Changes Path
11 1.508 net-proxy/squid/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/squid/ChangeLog?rev=1.508&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/squid/ChangeLog?rev=1.508&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/squid/ChangeLog?r1=1.507&r2=1.508
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-proxy/squid/ChangeLog,v
20 retrieving revision 1.507
21 retrieving revision 1.508
22 diff -u -r1.507 -r1.508
23 --- ChangeLog 2 Feb 2015 07:36:58 -0000 1.507
24 +++ ChangeLog 4 Feb 2015 16:10:18 -0000 1.508
25 @@ -1,6 +1,14 @@
26 # ChangeLog for net-proxy/squid
27 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/ChangeLog,v 1.507 2015/02/02 07:36:58 eras Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/ChangeLog,v 1.508 2015/02/04 16:10:18 eras Exp $
30 +
31 +*squid-3.4.11-r1 (04 Feb 2015)
32 +*squid-3.5.1-r1 (04 Feb 2015)
33 +
34 + 04 Feb 2015; Eray Aslan <eras@g.o> +files/squid-13211_13210.patch,
35 + +files/squid-13735_13734.patch, +squid-3.4.11-r1.ebuild,
36 + +squid-3.5.1-r1.ebuild:
37 + Security bump
38
39 02 Feb 2015; Eray Aslan <eras@g.o> squid-3.4.11.ebuild,
40 squid-3.5.1.ebuild:
41
42
43
44 1.1 net-proxy/squid/squid-3.5.1-r1.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/squid/squid-3.5.1-r1.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/squid/squid-3.5.1-r1.ebuild?rev=1.1&content-type=text/plain
48
49 Index: squid-3.5.1-r1.ebuild
50 ===================================================================
51 # Copyright 1999-2015 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/squid-3.5.1-r1.ebuild,v 1.1 2015/02/04 16:10:18 eras Exp $
54
55 EAPI=5
56 inherit autotools eutils linux-info pam toolchain-funcs user versionator
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.5/${P}.tar.xz"
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 esi ssl-crtd \
67 mysql postgres sqlite \
68 qos tproxy \
69 +htcp +wccp +wccpv2 \
70 pf-transparent ipf-transparent kqueue \
71 elibc_uclibc kernel_linux"
72
73 COMMON_DEPEND="caps? ( >=sys-libs/libcap-2.16 )
74 pam? ( virtual/pam )
75 ldap? ( net-nds/openldap )
76 kerberos? ( virtual/krb5 )
77 qos? ( net-libs/libnetfilter_conntrack )
78 ssl? ( dev-libs/openssl dev-libs/nettle >=net-libs/gnutls-3.1.5 )
79 sasl? ( dev-libs/cyrus-sasl )
80 ecap? ( net-libs/libecap:1 )
81 esi? ( dev-libs/expat dev-libs/libxml2 )
82 !x86-fbsd? ( logrotate? ( app-admin/logrotate ) )
83 >=sys-libs/db-4
84 dev-lang/perl
85 dev-libs/libltdl"
86 DEPEND="${COMMON_DEPEND}
87 ecap? ( virtual/pkgconfig )
88 sys-apps/ed
89 test? ( dev-util/cppunit )"
90 RDEPEND="${COMMON_DEPEND}
91 samba? ( net-fs/samba )
92 mysql? ( dev-perl/DBD-mysql )
93 postgres? ( dev-perl/DBD-Pg )
94 selinux? ( sec-policy/selinux-squid )
95 sqlite? ( dev-perl/DBD-SQLite )
96 !<=sci-biology/meme-4.8.1-r1"
97
98 REQUIRED_USE="tproxy? ( caps )
99 qos? ( caps )"
100
101 pkg_pretend() {
102 if use tproxy; then
103 local CONFIG_CHECK="~NF_CONNTRACK ~NETFILTER_TPROXY ~NETFILTER_XT_MATCH_SOCKET ~NETFILTER_XT_TARGET_TPROXY"
104 linux-info_pkg_setup
105 fi
106 }
107
108 pkg_setup() {
109 enewgroup squid 31
110 enewuser squid 31 -1 /var/cache/squid squid
111 }
112
113 src_prepare() {
114 epatch "${FILESDIR}/${PN}-3.3.4-gentoo.patch"
115 epatch "${FILESDIR}/${PN}-13735_13734.patch"
116 sed -i -e 's:/usr/local/squid/etc:/etc/squid:' \
117 INSTALL QUICKSTART \
118 scripts/fileno-to-pathname.pl \
119 scripts/check_cache.pl \
120 tools/cachemgr.cgi.8 \
121 tools/purge/conffile.hh \
122 tools/purge/README || die
123 sed -i -e 's:/usr/local/squid/sbin:/usr/sbin:' \
124 INSTALL QUICKSTART || die
125 sed -i -e 's:/usr/local/squid/var/cache:/var/cache/squid:' \
126 QUICKSTART || die
127 sed -i -e 's:/usr/local/squid/var/logs:/var/log/squid:' \
128 QUICKSTART \
129 src/log/access_log.cc || die
130 sed -i -e 's:/usr/local/squid/logs:/var/log/squid:' \
131 src/log/access_log.cc || die
132 sed -i -e 's:/usr/local/squid/libexec:/usr/libexec/squid:' \
133 helpers/external_acl/unix_group/ext_unix_group_acl.8 \
134 helpers/external_acl/session/ext_session_acl.8 \
135 src/ssl/ssl_crtd.8 || die
136 sed -i -e 's:/usr/local/squid/cache:/var/cache/squid:' \
137 scripts/check_cache.pl || die
138 sed -i -e 's:/usr/local/squid/ssl_cert:/etc/ssl/squid:' \
139 src/ssl/ssl_crtd.8 || die
140 sed -i -e 's:/usr/local/squid/var/lib/ssl_db:/var/lib/squid/ssl_db:' \
141 src/ssl/ssl_crtd.8 || die
142 sed -i -e 's:/var/lib/ssl_db:/var/lib/squid/ssl_db:' \
143 src/ssl/ssl_crtd.8 || die
144 # /var/run/squid to /run/squid
145 sed -i -e 's:$(localstatedir)::' \
146 src/ipc/Makefile.am || die
147 sed -i -e 's:_LTDL_SETUP:LTDL_INIT([installable]):' \
148 libltdl/configure.ac || die
149
150 epatch_user
151
152 eautoreconf
153 }
154
155 src_configure() {
156 local basic_modules="MSNT-multi-domain,NCSA,POP3,getpwnam"
157 use samba && basic_modules+=",SMB"
158 use ldap && basic_modules+=",LDAP"
159 use pam && basic_modules+=",PAM"
160 use sasl && basic_modules+=",SASL"
161 use nis && ! use elibc_uclibc && basic_modules+=",NIS"
162 use radius && basic_modules+=",RADIUS"
163 if use mysql || use postgres || use sqlite ; then
164 basic_modules+=",DB"
165 fi
166
167 local digest_modules="file"
168 use ldap && digest_modules+=",LDAP,eDirectory"
169
170 local negotiate_modules="none"
171 local myconf="--without-mit-krb5 --without-heimdal-krb5"
172 if use kerberos ; then
173 negotiate_modules="kerberos,wrapper"
174 if has_version app-crypt/heimdal ; then
175 myconf="--without-mit-krb5 --with-heimdal-krb5"
176 else
177 myconf="--with-mit-krb5 --without-heimdal-krb5"
178 fi
179 fi
180
181 local ntlm_modules="none"
182 use samba && ntlm_modules="smb_lm"
183
184 local ext_helpers="file_userip,session,unix_group"
185 use samba && ext_helpers+=",wbinfo_group"
186 use ldap && ext_helpers+=",LDAP_group,eDirectory_userip"
187 use ldap && use kerberos && ext_helpers+=",kerberos_ldap_group"
188
189 local storeio_modules="aufs,diskd,rock,ufs"
190
191 local transparent
192 if use kernel_linux ; then
193 transparent+=" --enable-linux-netfilter"
194 use qos && transparent+=" --enable-zph-qos --with-netfilter-conntrack"
195 fi
196
197 if use kernel_FreeBSD || use kernel_OpenBSD || use kernel_NetBSD ; then
198 transparent+=" $(use_enable kqueue)"
199 if use pf-transparent; then
200 transparent+=" --enable-pf-transparent"
201 elif use ipf-transparent; then
202 transparent+=" --enable-ipf-transparent"
203 fi
204 fi
205
206 tc-export CC AR
207
208 econf \
209 --sysconfdir=/etc/squid \
210 --libexecdir=/usr/libexec/squid \
211 --localstatedir=/var \
212 --with-pidfile=/run/squid.pid \
213 --datadir=/usr/share/squid \
214 --with-logdir=/var/log/squid \
215 --with-default-user=squid \
216 --enable-removal-policies="lru,heap" \
217 --enable-storeio="${storeio_modules}" \
218 --enable-disk-io \
219 --enable-auth-basic="${basic_modules}" \
220 --enable-auth-digest="${digest_modules}" \
221 --enable-auth-ntlm="${ntlm_modules}" \
222 --enable-auth-negotiate="${negotiate_modules}" \
223 --enable-external-acl-helpers="${ext_helpers}" \
224 --enable-log-daemon-helpers \
225 --enable-url-rewrite-helpers \
226 --enable-cache-digests \
227 --enable-delay-pools \
228 --enable-eui \
229 --enable-icmp \
230 --enable-follow-x-forwarded-for \
231 --with-large-files \
232 --disable-strict-error-checking \
233 --disable-arch-native \
234 $(use_with caps libcap) \
235 $(use_enable ipv6) \
236 $(use_enable snmp) \
237 $(use_with ssl openssl) \
238 $(use_with ssl nettle) \
239 $(use_with ssl gnutls) \
240 $(use_enable ssl-crtd) \
241 $(use_enable ecap) \
242 $(use_enable esi) \
243 $(use_enable htcp) \
244 $(use_enable wccp) \
245 $(use_enable wccpv2) \
246 ${transparent} \
247 ${myconf}
248 }
249
250 src_install() {
251 emake DESTDIR="${D}" install
252
253 # need suid root for looking into /etc/shadow
254 fowners root:squid /usr/libexec/squid/basic_ncsa_auth
255 fperms 4750 /usr/libexec/squid/basic_ncsa_auth
256 if use pam; then
257 fowners root:squid /usr/libexec/squid/basic_pam_auth
258 fperms 4750 /usr/libexec/squid/basic_pam_auth
259 fi
260 # pinger needs suid as well
261 fowners root:squid /usr/libexec/squid/pinger
262 fperms 4750 /usr/libexec/squid/pinger
263
264 # cleanup
265 rm -f "${D}"/usr/bin/Run*
266 rm -rf "${D}"/run/squid "${D}"/var/cache/squid
267
268 dodoc CONTRIBUTORS CREDITS ChangeLog INSTALL QUICKSTART README SPONSORS doc/*.txt
269 newdoc helpers/negotiate_auth/kerberos/README README.kerberos
270 newdoc helpers/basic_auth/RADIUS/README README.RADIUS
271 newdoc helpers/external_acl/kerberos_ldap_group/README README.kerberos_ldap_group
272 newdoc tools/purge/README README.purge
273 newdoc tools/helper-mux.README README.helper-mux
274 dohtml RELEASENOTES.html
275
276 newpamd "${FILESDIR}/squid.pam" squid
277 newconfd "${FILESDIR}/squid.confd-r1" squid
278 newinitd "${FILESDIR}/squid.initd-r4" squid
279 if use logrotate; then
280 insinto /etc/logrotate.d
281 newins "${FILESDIR}/squid.logrotate" squid
282 else
283 exeinto /etc/cron.weekly
284 newexe "${FILESDIR}/squid.cron" squid.cron
285 fi
286
287 diropts -m0750 -o squid -g squid
288 keepdir /var/log/squid /etc/ssl/squid /var/lib/squid
289 }
290
291 pkg_postinst() {
292 if [[ $(get_version_component_range 1 ${REPLACING_VERSIONS}) -lt 3 ]] || \
293 [[ $(get_version_component_range 2 ${REPLACING_VERSIONS}) -lt 5 ]]; then
294 elog "Please read the release notes at:"
295 elog " http://www.squid-cache.org/Versions/v3/3.5/RELEASENOTES.html"
296 echo
297 fi
298 }
299
300
301
302 1.1 net-proxy/squid/squid-3.4.11-r1.ebuild
303
304 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/squid/squid-3.4.11-r1.ebuild?rev=1.1&view=markup
305 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/squid/squid-3.4.11-r1.ebuild?rev=1.1&content-type=text/plain
306
307 Index: squid-3.4.11-r1.ebuild
308 ===================================================================
309 # Copyright 1999-2015 Gentoo Foundation
310 # Distributed under the terms of the GNU General Public License v2
311 # $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/squid-3.4.11-r1.ebuild,v 1.1 2015/02/04 16:10:18 eras Exp $
312
313 EAPI=5
314 inherit autotools eutils linux-info pam toolchain-funcs user versionator
315
316 DESCRIPTION="A full-featured web proxy cache"
317 HOMEPAGE="http://www.squid-cache.org/"
318 SRC_URI="http://www.squid-cache.org/Versions/v3/3.4/${P}.tar.xz"
319
320 LICENSE="GPL-2"
321 SLOT="0"
322 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
323 IUSE="caps ipv6 pam ldap samba sasl kerberos nis radius ssl snmp selinux logrotate test \
324 ecap esi icap-client ssl-crtd \
325 mysql postgres sqlite \
326 qos tproxy \
327 +htcp +wccp +wccpv2 \
328 pf-transparent ipf-transparent kqueue \
329 elibc_uclibc kernel_linux"
330
331 COMMON_DEPEND="caps? ( >=sys-libs/libcap-2.16 )
332 pam? ( virtual/pam )
333 ldap? ( net-nds/openldap )
334 kerberos? ( virtual/krb5 )
335 qos? ( net-libs/libnetfilter_conntrack )
336 ssl? ( dev-libs/openssl dev-libs/nettle )
337 sasl? ( dev-libs/cyrus-sasl )
338 ecap? ( net-libs/libecap:0.2 )
339 esi? ( dev-libs/expat dev-libs/libxml2 )
340 !x86-fbsd? ( logrotate? ( app-admin/logrotate ) )
341 >=sys-libs/db-4
342 dev-lang/perl
343 dev-libs/libltdl"
344 DEPEND="${COMMON_DEPEND}
345 ecap? ( virtual/pkgconfig )
346 sys-apps/ed
347 test? ( dev-util/cppunit )"
348 RDEPEND="${COMMON_DEPEND}
349 samba? ( net-fs/samba )
350 mysql? ( dev-perl/DBD-mysql )
351 postgres? ( dev-perl/DBD-Pg )
352 selinux? ( sec-policy/selinux-squid )
353 sqlite? ( dev-perl/DBD-SQLite )
354 !<=sci-biology/meme-4.8.1-r1"
355
356 REQUIRED_USE="tproxy? ( caps )
357 qos? ( caps )"
358
359 pkg_pretend() {
360 if use tproxy; then
361 local CONFIG_CHECK="~NF_CONNTRACK ~NETFILTER_TPROXY ~NETFILTER_XT_MATCH_SOCKET ~NETFILTER_XT_TARGET_TPROXY"
362 linux-info_pkg_setup
363 fi
364 }
365
366 pkg_setup() {
367 enewgroup squid 31
368 enewuser squid 31 -1 /var/cache/squid squid
369 }
370
371 src_prepare() {
372 epatch "${FILESDIR}/${PN}-3.3.4-gentoo.patch"
373 epatch "${FILESDIR}/${PN}-13211_13210.patch"
374 sed -i -e 's:/usr/local/squid/etc:/etc/squid:' \
375 INSTALL QUICKSTART \
376 helpers/basic_auth/MSNT/README.html \
377 helpers/basic_auth/MSNT/confload.cc \
378 helpers/basic_auth/MSNT/msntauth.conf.default \
379 scripts/fileno-to-pathname.pl \
380 scripts/check_cache.pl \
381 tools/cachemgr.cgi.8 \
382 tools/purge/conffile.hh \
383 tools/purge/README || die
384 sed -i -e 's:/usr/local/squid/sbin:/usr/sbin:' \
385 INSTALL QUICKSTART || die
386 sed -i -e 's:/usr/local/squid/var/cache:/var/cache/squid:' \
387 QUICKSTART || die
388 sed -i -e 's:/usr/local/squid/var/logs:/var/log/squid:' \
389 QUICKSTART \
390 src/log/access_log.cc || die
391 sed -i -e 's:/usr/local/squid/logs:/var/log/squid:' \
392 src/log/access_log.cc || die
393 sed -i -e 's:/usr/local/squid/bin:/usr/bin:' \
394 helpers/basic_auth/MSNT/README.html || die
395 sed -i -e 's:/usr/local/squid/libexec:/usr/libexec/squid:' \
396 helpers/external_acl/unix_group/ext_unix_group_acl.8 \
397 helpers/external_acl/session/ext_session_acl.8 \
398 src/ssl/ssl_crtd.8 || die
399 sed -i -e 's:/usr/local/squid/cache:/var/cache/squid:' \
400 scripts/check_cache.pl || die
401 sed -i -e 's:/usr/local/squid/ssl_cert:/etc/ssl/squid:' \
402 src/ssl/ssl_crtd.8 || die
403 sed -i -e 's:/usr/local/squid/var/lib/ssl_db:/var/lib/squid/ssl_db:' \
404 src/ssl/ssl_crtd.8 || die
405 sed -i -e 's:/var/lib/ssl_db:/var/lib/squid/ssl_db:' \
406 src/ssl/ssl_crtd.8 || die
407 # /var/run/squid to /run/squid
408 sed -i -e 's:$(localstatedir)::' \
409 src/ipc/Makefile.am || die
410 sed -i -e 's:_LTDL_SETUP:LTDL_INIT([installable]):' \
411 libltdl/configure.ac || die
412
413 epatch_user
414
415 eautoreconf
416 }
417
418 src_configure() {
419 local basic_modules="MSNT,MSNT-multi-domain,NCSA,POP3,getpwnam"
420 use samba && basic_modules+=",SMB"
421 use ldap && basic_modules+=",LDAP"
422 use pam && basic_modules+=",PAM"
423 use sasl && basic_modules+=",SASL"
424 use nis && ! use elibc_uclibc && basic_modules+=",NIS"
425 use radius && basic_modules+=",RADIUS"
426 if use mysql || use postgres || use sqlite ; then
427 basic_modules+=",DB"
428 fi
429
430 local digest_modules="file"
431 use ldap && digest_modules+=",LDAP,eDirectory"
432
433 local negotiate_modules myconf
434 if use kerberos ; then
435 negotiate_modules="kerberos,wrapper"
436 myconf="--with-krb5-config=yes"
437 else
438 negotiate_modules="none"
439 myconf="--with-krb5-config=no"
440 fi
441
442 local ntlm_modules="none"
443 use samba && ntlm_modules="smb_lm"
444
445 local ext_helpers="file_userip,session,unix_group"
446 use samba && ext_helpers+=",wbinfo_group"
447 use ldap && ext_helpers+=",LDAP_group,eDirectory_userip"
448 use ldap && use kerberos && ext_helpers+=",kerberos_ldap_group"
449
450 # uclibc does not have aio support - needed for coss (#61175)
451 local storeio_modules="aufs,diskd,rock,ufs"
452
453 local transparent
454 if use kernel_linux ; then
455 transparent+=" --enable-linux-netfilter"
456 use qos && transparent+=" --enable-zph-qos --with-netfilter-conntrack"
457 fi
458
459 if use kernel_FreeBSD || use kernel_OpenBSD || use kernel_NetBSD ; then
460 transparent+=" $(use_enable kqueue)"
461 if use pf-transparent; then
462 transparent+=" --enable-pf-transparent"
463 elif use ipf-transparent; then
464 transparent+=" --enable-ipf-transparent"
465 fi
466 fi
467
468 tc-export CC AR
469
470 econf \
471 --sysconfdir=/etc/squid \
472 --libexecdir=/usr/libexec/squid \
473 --localstatedir=/var \
474 --with-pidfile=/run/squid.pid \
475 --datadir=/usr/share/squid \
476 --with-logdir=/var/log/squid \
477 --with-default-user=squid \
478 --enable-removal-policies="lru,heap" \
479 --enable-storeio="${storeio_modules}" \
480 --enable-disk-io \
481 --enable-auth \
482 --enable-auth-basic="${basic_modules}" \
483 --enable-auth-digest="${digest_modules}" \
484 --enable-auth-ntlm="${ntlm_modules}" \
485 --enable-auth-negotiate="${negotiate_modules}" \
486 --enable-external-acl-helpers="${ext_helpers}" \
487 --enable-log-daemon-helpers \
488 --enable-url-rewrite-helpers \
489 --enable-cache-digests \
490 --enable-delay-pools \
491 --enable-eui \
492 --enable-icmp \
493 --enable-follow-x-forwarded-for \
494 --with-large-files \
495 --disable-strict-error-checking \
496 --disable-arch-native \
497 $(use_with caps libcap) \
498 $(use_enable ipv6) \
499 $(use_enable snmp) \
500 $(use_enable ssl) \
501 $(use_with ssl nettle) \
502 $(use_enable ssl-crtd) \
503 $(use_enable icap-client) \
504 $(use_enable ecap) \
505 $(use_enable esi) \
506 $(use_enable htcp) \
507 $(use_enable wccp) \
508 $(use_enable wccpv2) \
509 ${transparent} \
510 ${myconf}
511 }
512
513 src_install() {
514 emake DESTDIR="${D}" install
515
516 # need suid root for looking into /etc/shadow
517 fowners root:squid /usr/libexec/squid/basic_ncsa_auth
518 fperms 4750 /usr/libexec/squid/basic_ncsa_auth
519 if use pam; then
520 fowners root:squid /usr/libexec/squid/basic_pam_auth
521 fperms 4750 /usr/libexec/squid/basic_pam_auth
522 fi
523 # pinger needs suid as well
524 fowners root:squid /usr/libexec/squid/pinger
525 fperms 4750 /usr/libexec/squid/pinger
526
527 # cleanup
528 rm -f "${D}"/usr/bin/Run*
529 rm -rf "${D}"/run/squid "${D}"/var/cache/squid
530
531 dodoc CONTRIBUTORS CREDITS ChangeLog INSTALL QUICKSTART README SPONSORS doc/*.txt
532 newdoc helpers/negotiate_auth/kerberos/README README.kerberos
533 newdoc helpers/basic_auth/MSNT-multi-domain/README.txt README.MSNT-multi-domain
534 newdoc helpers/basic_auth/LDAP/README README.LDAP
535 newdoc helpers/basic_auth/RADIUS/README README.RADIUS
536 newdoc helpers/external_acl/kerberos_ldap_group/README README.kerberos_ldap_group
537 newdoc tools/purge/README README.purge
538 newdoc tools/helper-mux.README README.helper-mux
539 dohtml RELEASENOTES.html
540
541 newpamd "${FILESDIR}/squid.pam" squid
542 newconfd "${FILESDIR}/squid.confd-r1" squid
543 newinitd "${FILESDIR}/squid.initd-r4" squid
544 if use logrotate; then
545 insinto /etc/logrotate.d
546 newins "${FILESDIR}/squid.logrotate" squid
547 else
548 exeinto /etc/cron.weekly
549 newexe "${FILESDIR}/squid.cron" squid.cron
550 fi
551
552 diropts -m0750 -o squid -g squid
553 keepdir /var/log/squid /etc/ssl/squid /var/lib/squid
554 }
555
556 pkg_postinst() {
557 if [[ $(get_version_component_range 1 ${REPLACING_VERSIONS}) -lt 3 ]] || \
558 [[ $(get_version_component_range 2 ${REPLACING_VERSIONS}) -lt 4 ]]; then
559 elog "Please read the release notes at:"
560 elog " http://www.squid-cache.org/Versions/v3/3.4/RELEASENOTES.html"
561 echo
562 fi
563 }