public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Eray Aslan" <eras@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-proxy/squid/
Date: Tue, 22 Sep 2015 06:29:14 +0000 (UTC)	[thread overview]
Message-ID: <1442903328.384715d9776e57b007da94aa44a04e3fbce48639.eras@gentoo> (raw)

commit:     384715d9776e57b007da94aa44a04e3fbce48639
Author:     Eray Aslan <eras <AT> gentoo <DOT> org>
AuthorDate: Tue Sep 22 06:28:48 2015 +0000
Commit:     Eray Aslan <eras <AT> gentoo <DOT> org>
CommitDate: Tue Sep 22 06:28:48 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=384715d9

net-proxy/squid: security bump to squid-3.5.9

Package-Manager: portage-2.2.21

 net-proxy/squid/Manifest           |   1 +
 net-proxy/squid/squid-3.5.9.ebuild | 250 +++++++++++++++++++++++++++++++++++++
 2 files changed, 251 insertions(+)

diff --git a/net-proxy/squid/Manifest b/net-proxy/squid/Manifest
index bada621..bdea487 100644
--- a/net-proxy/squid/Manifest
+++ b/net-proxy/squid/Manifest
@@ -1,3 +1,4 @@
 DIST squid-3.5.6.tar.xz 2291152 SHA256 cd080e8d5eaabebf6808792751322bd05f2a9c8fe4377f54c7155682ef6c38d5 SHA512 f6c2550cdb5b2f3317105c986caddf06d010bffa0c61d065cffcde72e5bc30c4608486c79c4b25418dfb9f0a8d7ef1d2fabb6b07d1f0262a19fafc945af98bef WHIRLPOOL 863c6f73c3c26737d98cbff15afa5b6630310226ee9ec10a3e38f646b1416137e998f9bb1e5b492e5871129aed3c98e729b3a757d35088162e671d310a887336
 DIST squid-3.5.7.tar.xz 2294580 SHA256 ec6f861bddee007b1dd320667a26ddc9ff76847bbe4cbb59c0134588e65c8699 SHA512 13757da759c1a64fe13d451cff40c4ae30b18c2939f6971b4ef25e24b771ea973e3357f05ec89fccff51acc9e2c77418880b05f6020d58b7633141b928aaf349 WHIRLPOOL 9ce722647f6144ae5192a0a177d5d085252039eed3a7cbdf1fcb638c32097bf21710db71044448fc98bdba7c15daefb79dee5912b4d0c41cbc0e0b0fda695ee1
 DIST squid-3.5.8.tar.xz 2295644 SHA256 f402a21d4fae8b3e9df13683dc530366e4b1753df21e91c05a0a9514a1abfc62 SHA512 df371934b141fd0e57223ef2a801b71ae2c88c918e1ebd17a82105d33a8f6d439da65cd6437b42a3857f0d64ce461ea31d01299d452ede3650a44cf6826e16e1 WHIRLPOOL 9ca3f07b3068a439299b30e8be924208bc36e336f7929c593563bf6dadf9eaaa051c213e34eafc1ec6db43540b61367bd666c7c172e370d600aa6823779bd192
+DIST squid-3.5.9.tar.xz 2296384 SHA256 9e9a3dc16e6f97258f2c3589dc6163bec20fb9369aec1fe03612dbca76d185d3 SHA512 e9db2eb1674feb4242c5498d24c44ba53eb1ac8df71465301a6e2462051788b45d38e779edc38a944c7ac903bfef0dde52a9b0e167ef15d71084b7b6e405c666 WHIRLPOOL 48c9866f36882051072fde81521189c463d35a72954f0d891b0f65f7caa49f078b1ad5229244b3c9bd51e8c4f07c947313eacffc3d94ac211c95f432deed3657

diff --git a/net-proxy/squid/squid-3.5.9.ebuild b/net-proxy/squid/squid-3.5.9.ebuild
new file mode 100644
index 0000000..1c2065f
--- /dev/null
+++ b/net-proxy/squid/squid-3.5.9.ebuild
@@ -0,0 +1,250 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit autotools eutils linux-info pam toolchain-funcs user versionator
+
+DESCRIPTION="A full-featured web proxy cache"
+HOMEPAGE="http://www.squid-cache.org/"
+SRC_URI="http://www.squid-cache.org/Versions/v3/3.5/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE="caps ipv6 pam ldap samba sasl kerberos nis radius ssl snmp selinux logrotate test \
+	ecap esi ssl-crtd \
+	mysql postgres sqlite \
+	qos tproxy \
+	+htcp +wccp +wccpv2 \
+	pf-transparent ipf-transparent kqueue \
+	elibc_uclibc kernel_linux"
+
+COMMON_DEPEND="caps? ( >=sys-libs/libcap-2.16 )
+	pam? ( virtual/pam )
+	ldap? ( net-nds/openldap )
+	kerberos? ( virtual/krb5 )
+	qos? ( net-libs/libnetfilter_conntrack )
+	ssl? ( dev-libs/openssl:* dev-libs/nettle >=net-libs/gnutls-3.1.5 )
+	sasl? ( dev-libs/cyrus-sasl )
+	ecap? ( net-libs/libecap:1 )
+	esi? ( dev-libs/expat dev-libs/libxml2 )
+	!x86-fbsd? ( logrotate? ( app-admin/logrotate ) )
+	>=sys-libs/db-4:*
+	dev-lang/perl
+	dev-libs/libltdl:0"
+DEPEND="${COMMON_DEPEND}
+	ecap? ( virtual/pkgconfig )
+	sys-apps/ed
+	test? ( dev-util/cppunit )"
+RDEPEND="${COMMON_DEPEND}
+	samba? ( net-fs/samba )
+	mysql? ( dev-perl/DBD-mysql )
+	postgres? ( dev-perl/DBD-Pg )
+	selinux? ( sec-policy/selinux-squid )
+	sqlite? ( dev-perl/DBD-SQLite )
+	!<=sci-biology/meme-4.8.1-r1"
+
+REQUIRED_USE="tproxy? ( caps )
+			qos? ( caps )"
+
+pkg_pretend() {
+	if use tproxy; then
+		local CONFIG_CHECK="~NF_CONNTRACK ~NETFILTER_XT_MATCH_SOCKET ~NETFILTER_XT_TARGET_TPROXY"
+		linux-info_pkg_setup
+	fi
+}
+
+pkg_setup() {
+	enewgroup squid
+	enewuser squid -1 -1 /var/cache/squid squid
+}
+
+src_prepare() {
+	epatch "${FILESDIR}/${PN}-3.5.7-gentoo.patch"
+	epatch "${FILESDIR}/${PN}-kernel-headers-4.2.patch"
+	sed -i -e 's:/usr/local/squid/etc:/etc/squid:' \
+		INSTALL QUICKSTART \
+		scripts/fileno-to-pathname.pl \
+		scripts/check_cache.pl \
+		tools/cachemgr.cgi.8 \
+		tools/purge/conffile.hh \
+		tools/purge/README  || die
+	sed -i -e 's:/usr/local/squid/sbin:/usr/sbin:' \
+		INSTALL QUICKSTART || die
+	sed -i -e 's:/usr/local/squid/var/cache:/var/cache/squid:' \
+		QUICKSTART || die
+	sed -i -e 's:/usr/local/squid/var/logs:/var/log/squid:' \
+		QUICKSTART \
+		src/log/access_log.cc || die
+	sed -i -e 's:/usr/local/squid/logs:/var/log/squid:' \
+		src/log/access_log.cc || die
+	sed -i -e 's:/usr/local/squid/libexec:/usr/libexec/squid:' \
+		helpers/external_acl/unix_group/ext_unix_group_acl.8 \
+		helpers/external_acl/session/ext_session_acl.8 \
+		src/ssl/ssl_crtd.8 || die
+	sed -i -e 's:/usr/local/squid/cache:/var/cache/squid:' \
+		scripts/check_cache.pl || die
+	sed -i -e 's:/usr/local/squid/ssl_cert:/etc/ssl/squid:' \
+		src/ssl/ssl_crtd.8 || die
+	sed -i -e 's:/usr/local/squid/var/lib/ssl_db:/var/lib/squid/ssl_db:' \
+		src/ssl/ssl_crtd.8 || die
+	sed -i -e 's:/var/lib/ssl_db:/var/lib/squid/ssl_db:' \
+		src/ssl/ssl_crtd.8 || die
+	# /var/run/squid to /run/squid
+	sed -i -e 's:$(localstatedir)::' \
+		src/ipc/Makefile.am || die
+	sed -i -e 's:_LTDL_SETUP:LTDL_INIT([installable]):' \
+		libltdl/configure.ac || die
+
+	epatch_user
+
+	eautoreconf
+}
+
+src_configure() {
+	local basic_modules="MSNT-multi-domain,NCSA,POP3,getpwnam"
+	use samba && basic_modules+=",SMB"
+	use ldap && basic_modules+=",LDAP"
+	use pam && basic_modules+=",PAM"
+	use sasl && basic_modules+=",SASL"
+	use nis && ! use elibc_uclibc && basic_modules+=",NIS"
+	use radius && basic_modules+=",RADIUS"
+	if use mysql || use postgres || use sqlite ; then
+		basic_modules+=",DB"
+	fi
+
+	local digest_modules="file"
+	use ldap && digest_modules+=",LDAP,eDirectory"
+
+	local negotiate_modules="none"
+	local myconf="--without-mit-krb5 --without-heimdal-krb5"
+	if use kerberos ; then
+		negotiate_modules="kerberos,wrapper"
+		if has_version app-crypt/heimdal ; then
+			myconf="--without-mit-krb5 --with-heimdal-krb5"
+		else
+			myconf="--with-mit-krb5 --without-heimdal-krb5"
+		fi
+	fi
+
+	local ntlm_modules="none"
+	use samba && ntlm_modules="smb_lm"
+
+	local ext_helpers="file_userip,session,unix_group"
+	use samba && ext_helpers+=",wbinfo_group"
+	use ldap && ext_helpers+=",LDAP_group,eDirectory_userip"
+	use ldap && use kerberos && ext_helpers+=",kerberos_ldap_group"
+
+	local storeio_modules="aufs,diskd,rock,ufs"
+
+	local transparent
+	if use kernel_linux ; then
+		transparent+=" --enable-linux-netfilter"
+		use qos && transparent+=" --enable-zph-qos --with-netfilter-conntrack"
+	fi
+
+	if use kernel_FreeBSD || use kernel_OpenBSD || use kernel_NetBSD ; then
+		transparent+=" $(use_enable kqueue)"
+		if use pf-transparent; then
+			transparent+=" --enable-pf-transparent"
+		elif use ipf-transparent; then
+			transparent+=" --enable-ipf-transparent"
+		fi
+	fi
+
+	tc-export CC AR
+
+	econf \
+		--sysconfdir=/etc/squid \
+		--libexecdir=/usr/libexec/squid \
+		--localstatedir=/var \
+		--with-pidfile=/run/squid.pid \
+		--datadir=/usr/share/squid \
+		--with-logdir=/var/log/squid \
+		--with-default-user=squid \
+		--enable-removal-policies="lru,heap" \
+		--enable-storeio="${storeio_modules}" \
+		--enable-disk-io \
+		--enable-auth-basic="${basic_modules}" \
+		--enable-auth-digest="${digest_modules}" \
+		--enable-auth-ntlm="${ntlm_modules}" \
+		--enable-auth-negotiate="${negotiate_modules}" \
+		--enable-external-acl-helpers="${ext_helpers}" \
+		--enable-log-daemon-helpers \
+		--enable-url-rewrite-helpers \
+		--enable-cache-digests \
+		--enable-delay-pools \
+		--enable-eui \
+		--enable-icmp \
+		--enable-follow-x-forwarded-for \
+		--with-large-files \
+		--disable-strict-error-checking \
+		--disable-arch-native \
+		--with-ltdl-includedir=/usr/include \
+		--with-ltdl-libdir=/usr/$(get_libdir) \
+		$(use_with caps libcap) \
+		$(use_enable ipv6) \
+		$(use_enable snmp) \
+		$(use_with ssl openssl) \
+		$(use_with ssl nettle) \
+		$(use_with ssl gnutls) \
+		$(use_enable ssl-crtd) \
+		$(use_enable ecap) \
+		$(use_enable esi) \
+		$(use_enable htcp) \
+		$(use_enable wccp) \
+		$(use_enable wccpv2) \
+		${transparent} \
+		${myconf}
+}
+
+src_install() {
+	emake DESTDIR="${D}" install
+
+	# need suid root for looking into /etc/shadow
+	fowners root:squid /usr/libexec/squid/basic_ncsa_auth
+	fperms 4750 /usr/libexec/squid/basic_ncsa_auth
+	if use pam; then
+		fowners root:squid /usr/libexec/squid/basic_pam_auth
+		fperms 4750 /usr/libexec/squid/basic_pam_auth
+	fi
+	# pinger needs suid as well
+	fowners root:squid /usr/libexec/squid/pinger
+	fperms 4750 /usr/libexec/squid/pinger
+
+	# cleanup
+	rm -f "${D}"/usr/bin/Run*
+	rm -rf "${D}"/run/squid "${D}"/var/cache/squid
+
+	dodoc CONTRIBUTORS CREDITS ChangeLog INSTALL QUICKSTART README SPONSORS doc/*.txt
+	newdoc helpers/negotiate_auth/kerberos/README README.kerberos
+	newdoc helpers/basic_auth/RADIUS/README README.RADIUS
+	newdoc helpers/external_acl/kerberos_ldap_group/README README.kerberos_ldap_group
+	newdoc tools/purge/README README.purge
+	newdoc tools/helper-mux.README README.helper-mux
+	dohtml RELEASENOTES.html
+
+	newpamd "${FILESDIR}/squid.pam" squid
+	newconfd "${FILESDIR}/squid.confd-r1" squid
+	newinitd "${FILESDIR}/squid.initd-r4" squid
+	if use logrotate; then
+		insinto /etc/logrotate.d
+		newins "${FILESDIR}/squid.logrotate" squid
+	else
+		exeinto /etc/cron.weekly
+		newexe "${FILESDIR}/squid.cron" squid.cron
+	fi
+
+	diropts -m0750 -o squid -g squid
+	keepdir /var/log/squid /etc/ssl/squid /var/lib/squid
+}
+
+pkg_postinst() {
+	if [[ $(get_version_component_range 1 ${REPLACING_VERSIONS}) -lt 3 ]] || \
+		[[ $(get_version_component_range 2 ${REPLACING_VERSIONS}) -lt 5 ]]; then
+		elog "Please read the release notes at:"
+		elog "  http://www.squid-cache.org/Versions/v3/3.5/RELEASENOTES.html"
+		echo
+	fi
+}


             reply	other threads:[~2015-09-22  6:29 UTC|newest]

Thread overview: 164+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-22  6:29 Eray Aslan [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-10-14  7:36 [gentoo-commits] repo/gentoo:master commit in: net-proxy/squid/ Eray Aslan
2015-11-09  7:50 Eray Aslan
2015-12-01 14:54 Eray Aslan
2016-01-22 15:57 Eray Aslan
2016-01-22 15:58 Eray Aslan
2016-01-27  9:22 Agostino Sarubbo
2016-02-04  9:45 Tobias Klausmann
2016-02-05 19:08 Markus Meier
2016-02-16 12:31 Eray Aslan
2016-02-17  5:56 Eray Aslan
2016-02-20 11:56 Jeroen Roovers
2016-02-24 14:23 Eray Aslan
2016-02-27  9:09 Jeroen Roovers
2016-03-02 13:58 Agostino Sarubbo
2016-03-13 12:32 Markus Meier
2016-03-15 16:38 Agostino Sarubbo
2016-03-15 20:50 Tobias Klausmann
2016-04-04  7:46 Eray Aslan
2016-04-20  8:55 Agostino Sarubbo
2016-04-20 19:10 Eray Aslan
2016-04-23 10:19 Jeroen Roovers
2016-04-26 11:19 Agostino Sarubbo
2016-04-26 17:34 Markus Meier
2016-05-20 16:37 Tobias Klausmann
2016-05-24  6:56 Eray Aslan
2016-05-24  8:51 Tobias Klausmann
2016-05-25  5:12 Jeroen Roovers
2016-05-25  9:48 Agostino Sarubbo
2016-05-25 11:25 Agostino Sarubbo
2016-06-04  5:05 Markus Meier
2016-07-08  7:53 Agostino Sarubbo
2016-07-12 13:49 Eray Aslan
2016-09-19  7:50 Eray Aslan
2016-10-09 16:19 Pacho Ramos
2016-10-14 10:38 Eray Aslan
2016-10-14 10:38 Eray Aslan
2016-12-22 12:18 Eray Aslan
2016-12-24  9:47 Agostino Sarubbo
2016-12-24 10:18 Agostino Sarubbo
2016-12-24 10:25 Agostino Sarubbo
2016-12-25 10:09 Agostino Sarubbo
2016-12-25 10:14 Agostino Sarubbo
2016-12-25 10:23 Agostino Sarubbo
2016-12-27  9:06 Agostino Sarubbo
2017-01-05 12:34 Tobias Klausmann
2017-01-14 12:54 Jeroen Roovers
2017-01-31  7:56 Eray Aslan
2017-02-07 13:07 Eray Aslan
2017-05-04  7:20 Eray Aslan
2017-08-17  5:46 Eray Aslan
2017-08-17 20:18 Sergei Trofimovich
2017-08-25 13:34 Mikle Kolyada
2017-08-28  4:42 Markus Meier
2017-08-29 21:39 Thomas Deutschmann
2017-09-15 15:38 Tobias Klausmann
2017-10-05 11:07 Sergei Trofimovich
2017-10-05 11:07 Sergei Trofimovich
2017-11-07 22:52 Sergei Trofimovich
2017-11-15 22:42 Sergei Trofimovich
2017-11-20  8:12 Eray Aslan
2017-11-20 10:08 Eray Aslan
2018-01-05  7:32 Mike Frysinger
2018-01-09 20:10 Mike Frysinger
2018-01-22 13:31 Eray Aslan
2018-01-23 16:41 Agostino Sarubbo
2018-01-26 18:21 Thomas Deutschmann
2018-02-05 21:27 Markus Meier
2018-02-05 22:34 Sergei Trofimovich
2018-02-06  7:57 Sergei Trofimovich
2018-03-04 16:23 Tobias Klausmann
2018-03-30 12:03 Sergei Trofimovich
2018-03-30 17:32 Sergei Trofimovich
2018-06-19 16:14 Eray Aslan
2018-06-22 22:17 Patrice Clement
2018-08-29  6:05 Eray Aslan
2019-02-04  6:02 Eray Aslan
2019-02-07 10:01 Mikle Kolyada
2019-03-28 18:34 Mikle Kolyada
2019-05-03 12:35 Mikle Kolyada
2019-07-17 10:47 Mikle Kolyada
2019-07-17 10:48 Mikle Kolyada
2019-07-25 12:58 Mikle Kolyada
2019-10-12 20:34 Mikle Kolyada
2019-11-10  9:24 Mikle Kolyada
2019-11-10  9:24 Mikle Kolyada
2019-11-10 15:27 Michał Górny
2019-12-31  9:28 Mikle Kolyada
2020-01-27 16:19 Mikle Kolyada
2020-01-27 18:57 Mikle Kolyada
2020-01-27 19:07 Mikle Kolyada
2020-03-14 19:24 Sergei Trofimovich
2020-03-14 19:46 Agostino Sarubbo
2020-03-15 18:27 Agostino Sarubbo
2020-03-15 18:34 Agostino Sarubbo
2020-03-16  7:07 Mikle Kolyada
2020-03-16  7:08 Mikle Kolyada
2020-04-24 10:53 Mikle Kolyada
2020-04-26 14:16 Agostino Sarubbo
2020-04-26 14:19 Agostino Sarubbo
2020-04-26 15:29 Agostino Sarubbo
2020-04-26 15:31 Agostino Sarubbo
2020-05-18 13:43 Mikle Kolyada
2020-05-20  6:24 Agostino Sarubbo
2020-05-20 12:20 Mikle Kolyada
2020-06-20  8:14 Mikle Kolyada
2020-06-28 20:27 Agostino Sarubbo
2020-06-28 20:30 Agostino Sarubbo
2020-06-28 20:37 Agostino Sarubbo
2020-06-28 20:44 Agostino Sarubbo
2020-06-28 20:48 Agostino Sarubbo
2020-07-17 10:42 Sam James
2020-08-27 19:43 Mikle Kolyada
2020-08-27 19:43 Mikle Kolyada
2021-01-24 11:28 Mikle Kolyada
2021-03-07 10:35 Mikle Kolyada
2021-03-07 15:18 Mikle Kolyada
2021-03-13 19:57 Mikle Kolyada
2021-05-17  8:04 Mikle Kolyada
2021-05-17  8:04 Mikle Kolyada
2021-06-22 18:19 Sam James
2021-11-14 12:39 Mikle Kolyada
2022-01-01 20:08 David Seifert
2022-01-04  3:29 Sam James
2022-01-04  9:13 David Seifert
2022-01-04 13:18 David Seifert
2022-02-20  0:31 Sam James
2022-03-22 11:24 Agostino Sarubbo
2022-03-22 16:40 Sam James
2022-03-23 10:35 Agostino Sarubbo
2022-05-05 16:48 Jakov Smolić
2022-05-08 11:24 Yixun Lan
2022-08-31  3:50 Sam James
2022-09-29  2:15 Sam James
2022-09-30  3:11 Sam James
2022-09-30  3:13 Sam James
2022-12-15  5:01 Sam James
2022-12-15  5:01 Sam James
2023-01-14 18:59 Sam James
2023-01-15  2:22 Sam James
2023-01-15  7:51 Joonas Niilola
2023-01-15 12:44 Sam James
2023-01-15 12:44 Sam James
2023-01-16 20:29 Mike Gilbert
2023-05-16  3:39 Sam James
2023-06-17  5:42 Sam James
2023-11-17 15:08 Sam James
2023-11-17 15:09 Sam James
2023-12-02 20:28 Sam James
2023-12-02 21:25 Sam James
2023-12-03  9:33 Arthur Zamarin
2024-02-06  9:45 Sam James
2024-02-06  9:45 Sam James
2024-02-06  9:45 Sam James
2024-02-06 10:00 Sam James
2024-02-06 19:32 Arthur Zamarin
2024-02-06 19:32 Arthur Zamarin
2024-02-06 20:10 Sam James
2024-03-04  7:53 Joonas Niilola
2024-07-03 13:26 Joonas Niilola
2024-07-04  0:49 Sam James
2024-08-31  7:46 Sam James
2024-10-06 18:44 Arthur Zamarin
2024-10-07  2:40 Sam James

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1442903328.384715d9776e57b007da94aa44a04e3fbce48639.eras@gentoo \
    --to=eras@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox