Version bump. Add nis global USE flag; add pf-transparent and ipf-transparent local...
authorAlin Năstac <mrness@gentoo.org>
Mon, 19 Jun 2006 18:52:59 +0000 (18:52 +0000)
committerAlin Năstac <mrness@gentoo.org>
Mon, 19 Jun 2006 18:52:59 +0000 (18:52 +0000)
Package-Manager: portage-2.1

net-proxy/squid/ChangeLog
net-proxy/squid/Manifest
net-proxy/squid/files/digest-squid-2.5.12
net-proxy/squid/files/digest-squid-2.5.12-r1
net-proxy/squid/files/digest-squid-2.5.14 [new file with mode: 0644]
net-proxy/squid/squid-2.5.14.ebuild [new file with mode: 0644]

index 5bbbe8ac3eed4f5faef1f3e9797cd0d98ee423f3..9a33a915c3fba527f9f732724dac0b5fae15641d 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for net-proxy/squid
 # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/ChangeLog,v 1.77 2006/05/25 16:03:49 gmsoft Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/ChangeLog,v 1.78 2006/06/19 18:52:59 mrness Exp $
+
+*squid-2.5.14 (19 Jun 2006)
+
+  19 Jun 2006; Alin Nastac <mrness@gentoo.org> +squid-2.5.14.ebuild:
+  Version bump. Add nis global USE flag; add pf-transparent and
+  ipf-transparent local USE flags (#134823).
 
   25 May 2006; Guy Martin <gmsoft@gentoo.org> squid-2.5.13.ebuild:
   Stable on hppa.
index 53a770303aa6cda0874ec26dfa3d9778bdadf4bc..0ba0fdeca51db20ff79a35c6745e39639880e048 100644 (file)
@@ -1,14 +1,77 @@
-MD5 e63b58a9bdb136e29f5556db218cd0eb ChangeLog 26556
-MD5 3e02deef24558936110d58663433ace3 files/digest-squid-2.5.12 157
-MD5 5d6f903d6b8e8bbcd6fd6f93b8db5986 files/digest-squid-2.5.12-r1 157
-MD5 b264ea2120ea4f9d9dd6bdc9bdf53e1c files/digest-squid-2.5.13 563
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX squid.confd 437 RMD160 8fdfc1416b2f5aaa2964affc25e5fb140f6555c5 SHA1 59e15695bf4d7269002eac5015592419ad8155cc SHA256 d90a92f886764f56fd928ec3340da078a8ff35576a8339fa91b1ce59d0d02a34
 MD5 8e7207b10699502e573d9d60ff0e07a6 files/squid.confd 437
+RMD160 8fdfc1416b2f5aaa2964affc25e5fb140f6555c5 files/squid.confd 437
+SHA256 d90a92f886764f56fd928ec3340da078a8ff35576a8339fa91b1ce59d0d02a34 files/squid.confd 437
+AUX squid.cron 133 RMD160 f1ecb5957645deea4cd1ecedbf808172ee8330a6 SHA1 96cfa6866d3b8eda3efd21e26c7981e614d7da2c SHA256 e3522246629d51381313db1632e083b1df06d1caee9790d4345f2b9f1ba05210
 MD5 6f30a7f5c48ec35a7044acb189c858c5 files/squid.cron 133
+RMD160 f1ecb5957645deea4cd1ecedbf808172ee8330a6 files/squid.cron 133
+SHA256 e3522246629d51381313db1632e083b1df06d1caee9790d4345f2b9f1ba05210 files/squid.cron 133
+AUX squid.initd 2015 RMD160 c3aeee9fa6da941ce0bb8eed5b451949f07476f7 SHA1 41f7d2c6dde660c8e5bd57d79756ab5a37bceb7b SHA256 3211f0f1a17aa5e4bf7e1c5177b1e48d5d75b185f0bcbf5cec0e70d33380b2ff
 MD5 29c067429711e7189923fcfc522000b3 files/squid.initd 2015
+RMD160 c3aeee9fa6da941ce0bb8eed5b451949f07476f7 files/squid.initd 2015
+SHA256 3211f0f1a17aa5e4bf7e1c5177b1e48d5d75b185f0bcbf5cec0e70d33380b2ff files/squid.initd 2015
+AUX squid.initd-logrotate 1909 RMD160 879def42ae96e802e271fb232c960c8b40c16be3 SHA1 281508b0c32fe0909f3ffb7dad35a82e374e8cb2 SHA256 21a177768d9c260ca9748b49474072e8c1cb5e18ec80833c36db43e6dc0003a3
 MD5 59d7ba17075734a74e527151edef9075 files/squid.initd-logrotate 1909
+RMD160 879def42ae96e802e271fb232c960c8b40c16be3 files/squid.initd-logrotate 1909
+SHA256 21a177768d9c260ca9748b49474072e8c1cb5e18ec80833c36db43e6dc0003a3 files/squid.initd-logrotate 1909
+AUX squid.logrotate 101 RMD160 57f6c2461bd8948524dc08c2665593234380891e SHA1 fe8b3c43c0d327150069a65aa473302ae6c423ff SHA256 29e97214612a8656d2d2d60e20451f9e23a9550e58a7af2050bf83fb7af485f6
 MD5 5286e7e73ca5687381fa09ff41dccbd1 files/squid.logrotate 101
+RMD160 57f6c2461bd8948524dc08c2665593234380891e files/squid.logrotate 101
+SHA256 29e97214612a8656d2d2d60e20451f9e23a9550e58a7af2050bf83fb7af485f6 files/squid.logrotate 101
+AUX squid.pam 315 RMD160 ff8a56fd5e8d4e0fde70853162a757476f3b7893 SHA1 f694dbc6246812841fa9015e12d4cf2fe0c7319e SHA256 dec9bd5ea16977fa334db04eb657e0598af411dad7ff279acf86beddcd22a8fd
 MD5 2957ca0ec8bf84e4af8ed5adef7acb90 files/squid.pam 315
-MD5 cf398556bce540358644ce9a452abfba metadata.xml 241
+RMD160 ff8a56fd5e8d4e0fde70853162a757476f3b7893 files/squid.pam 315
+SHA256 dec9bd5ea16977fa334db04eb657e0598af411dad7ff279acf86beddcd22a8fd files/squid.pam 315
+DIST squid-2.5.STABLE12-patches-20051123.tar.gz 21598 RMD160 d16104157b31dc38f9366e3ccf21c8d563ae5346 SHA1 a4d90f6f56442e8c27941c1d4c047fb032dbb307 SHA256 cca5c302eb68c2cd246b032672151ae934272a3d2c8f9238707048676e2936af
+DIST squid-2.5.STABLE12-patches-20060124.tar.gz 23027 RMD160 aef2819961b8af4b87bbb874062d2c4ba2cac009 SHA1 366188a6691b0388680dc3315f70df2cb6154dba SHA256 76c32721e3f0a9af30926445eb307b4757dfa47803bfd2fed4c8930a7191907d
+DIST squid-2.5.STABLE12.tar.gz 1394653 RMD160 ce2b368915e5f927a59b6aeaabecbd1911d66329 SHA1 c47480d9130c1857e2fe54ea2e3acb47b8ed760a SHA256 9a5e0a2bc7ed4202e536c059532884a6c45de9a234520b886b2f891f861d3f0f
+DIST squid-2.5.STABLE13-patches-20060325.tar.gz 23020 RMD160 504261a17070faea4ca34053245add3aa52e9615 SHA1 6758320c88f1a95818435d8672d550f008e154c2 SHA256 d76977108bab1753471e1a9d6c5910d7d744820c88c2a2eee2b0fd53b6bceb26
+DIST squid-2.5.STABLE13.tar.gz 1399833 RMD160 5b66a9ef004f3fcb1225cd0378431f7ee4d005b6 SHA1 af1e1c3d33cf87cacadb7916f41b972a7d6df55a SHA256 e8a5330a5f0e79394612ef57d2bf48658551787062055ffba94eb0bc67355b1a
+DIST squid-2.5.STABLE14-patches-20060619.tar.gz 23811 RMD160 a2779367052e0ac2a8ab085c78ad29de41b6f166 SHA1 fccc2097838c9ff3727a5eac1d92e9d8998ea4a9 SHA256 0688f218779317304195aa2f728f6599635d34528882b23eb8461ca4cfa55319
+DIST squid-2.5.STABLE14.tar.gz 1399962 RMD160 abe464ab115b3f9541d3890fd413044f526ab5f0 SHA1 e8cd21bc84e4cab219a00142eb597f6dcefe301b SHA256 3ddb16abfe51f5fcbab66d2ca6a6e25341ed470eb7eb1415111401b9e20ba5f2
+EBUILD squid-2.5.12-r1.ebuild 6753 RMD160 acb1bc57d6d972e61bfbd424aca7b3a1a0ac2d91 SHA1 6341414a00f644e58786363965ae3363e2747e3c SHA256 03577f1a7be0549a49d1e6e490f5bc4c254a10bf6d9c9e80394477ca76bf0249
 MD5 d016ce3a38feda11279d8b2c1f6dba25 squid-2.5.12-r1.ebuild 6753
+RMD160 acb1bc57d6d972e61bfbd424aca7b3a1a0ac2d91 squid-2.5.12-r1.ebuild 6753
+SHA256 03577f1a7be0549a49d1e6e490f5bc4c254a10bf6d9c9e80394477ca76bf0249 squid-2.5.12-r1.ebuild 6753
+EBUILD squid-2.5.12.ebuild 6412 RMD160 4eddd2fa8934291b6dd5f8cf360be2ff84f6e713 SHA1 f43d70d140dd9195588941fdfcb2ce30e38cad28 SHA256 5707e3d96515e6259761bae3f7ee61ff0c65e73dff47e558674c22b3a794e684
 MD5 ac886689f2b0bcdeb4a449ff6069541f squid-2.5.12.ebuild 6412
+RMD160 4eddd2fa8934291b6dd5f8cf360be2ff84f6e713 squid-2.5.12.ebuild 6412
+SHA256 5707e3d96515e6259761bae3f7ee61ff0c65e73dff47e558674c22b3a794e684 squid-2.5.12.ebuild 6412
+EBUILD squid-2.5.13.ebuild 6753 RMD160 73cd8b38f70e904ba8973145c14392b388ed0023 SHA1 5eda806a930d3e0cf5e776528cf8bd8486ab9dc1 SHA256 6fd18b09fbebda607a7abb1b85970bd2c8eb73fb0ddec10267708e78509c7128
 MD5 835c1d870befdec62d3062a016d433d9 squid-2.5.13.ebuild 6753
+RMD160 73cd8b38f70e904ba8973145c14392b388ed0023 squid-2.5.13.ebuild 6753
+SHA256 6fd18b09fbebda607a7abb1b85970bd2c8eb73fb0ddec10267708e78509c7128 squid-2.5.13.ebuild 6753
+EBUILD squid-2.5.14.ebuild 6503 RMD160 833a83cf0796dc46de518e88bdbdf1fd4b8b19b2 SHA1 b4d18abddb74573853abc22c9ecb6e9df69665b3 SHA256 475a9ef880282a9f4deb485cc522b528236263345bf8ca2be9bc4d0659d3c204
+MD5 196afc1d2dd2fb7f9889f5b445eead69 squid-2.5.14.ebuild 6503
+RMD160 833a83cf0796dc46de518e88bdbdf1fd4b8b19b2 squid-2.5.14.ebuild 6503
+SHA256 475a9ef880282a9f4deb485cc522b528236263345bf8ca2be9bc4d0659d3c204 squid-2.5.14.ebuild 6503
+MISC ChangeLog 26764 RMD160 fbced5f0ddf3c0b4571cc682ea26f4c0c9dfc28b SHA1 dfd851f941ae36226ab7e06831072575178a66d0 SHA256 f77aa7ed392e3192d7c1b6e3032b9effb77ce267b5b5d332699133fd3d813fda
+MD5 d8e9117390c2407b6b7e462308de8995 ChangeLog 26764
+RMD160 fbced5f0ddf3c0b4571cc682ea26f4c0c9dfc28b ChangeLog 26764
+SHA256 f77aa7ed392e3192d7c1b6e3032b9effb77ce267b5b5d332699133fd3d813fda ChangeLog 26764
+MISC metadata.xml 241 RMD160 f966fc130df3c4340939cfbc501781ec74c5ab02 SHA1 62e709c1d0237031ac3bdd8d663cbbbcfffaa8a2 SHA256 f00eeb2aa39f141db6914b1e6d6da77c278225c70276e3bd9fbb13ee34080b08
+MD5 cf398556bce540358644ce9a452abfba metadata.xml 241
+RMD160 f966fc130df3c4340939cfbc501781ec74c5ab02 metadata.xml 241
+SHA256 f00eeb2aa39f141db6914b1e6d6da77c278225c70276e3bd9fbb13ee34080b08 metadata.xml 241
+MD5 8d31bb67b8d482af9deb6b5ae8151e8b files/digest-squid-2.5.12 563
+RMD160 d4409fe33dfd3758d077145e4697d87615fead6e files/digest-squid-2.5.12 563
+SHA256 ff17e3a44f2032593a3bd496eeebcf8a2bda464b148676c708240ab180bc73c0 files/digest-squid-2.5.12 563
+MD5 165a5bed013f88f73f2e73aa6a1994a3 files/digest-squid-2.5.12-r1 563
+RMD160 cbafbbd19367def03b68c2aa77969b3d472d1eef files/digest-squid-2.5.12-r1 563
+SHA256 f5e80222d1e7cedc675a9d7169b3863f67f9edf7fb7e579741838570bdf04be2 files/digest-squid-2.5.12-r1 563
+MD5 b264ea2120ea4f9d9dd6bdc9bdf53e1c files/digest-squid-2.5.13 563
+RMD160 a5ff37bf6f2e8d3877610badcef222431bb9db45 files/digest-squid-2.5.13 563
+SHA256 34af136654198a96d6fdad147b0b0a49c6216f14baa08625373fca5b96ed5e95 files/digest-squid-2.5.13 563
+MD5 94e9eea9d8b6b6cad4263131af7c7887 files/digest-squid-2.5.14 563
+RMD160 5b862305d93ac58ec4907ee9dc7a98671d5e1077 files/digest-squid-2.5.14 563
+SHA256 1727923e9880a2d267ed0cc7cbc782c1617aa8b5a9161ad7c6dc255870f1c916 files/digest-squid-2.5.14 563
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.3 (GNU/Linux)
+
+iD8DBQFElvMHjG8pv1lIUX4RAvG5AKDo9kwTBkBLORoRhN1hfqSVSmqNFgCffJVZ
+oVaQ027tRSfKN9mZYnjkYBE=
+=qPX8
+-----END PGP SIGNATURE-----
index 53e91d2f682043189785014bca4409091b30cce7..dc8aa77ef3b2eb9194c046e9009e5682ee5e647e 100644 (file)
@@ -1,2 +1,6 @@
 MD5 ef9c292c2458a8d11e2ee2a569fbc408 squid-2.5.STABLE12-patches-20051123.tar.gz 21598
+RMD160 d16104157b31dc38f9366e3ccf21c8d563ae5346 squid-2.5.STABLE12-patches-20051123.tar.gz 21598
+SHA256 cca5c302eb68c2cd246b032672151ae934272a3d2c8f9238707048676e2936af squid-2.5.STABLE12-patches-20051123.tar.gz 21598
 MD5 de6238427bed63728970b7e3d6cba40a squid-2.5.STABLE12.tar.gz 1394653
+RMD160 ce2b368915e5f927a59b6aeaabecbd1911d66329 squid-2.5.STABLE12.tar.gz 1394653
+SHA256 9a5e0a2bc7ed4202e536c059532884a6c45de9a234520b886b2f891f861d3f0f squid-2.5.STABLE12.tar.gz 1394653
index 5a037f2ff53bc7260e54e77e9af566f09748f487..c8a2a5b17d2a598af8db75ae29caf30fc75613a3 100644 (file)
@@ -1,2 +1,6 @@
 MD5 33f76d99bccd759e35c52479fe3009ad squid-2.5.STABLE12-patches-20060124.tar.gz 23027
+RMD160 aef2819961b8af4b87bbb874062d2c4ba2cac009 squid-2.5.STABLE12-patches-20060124.tar.gz 23027
+SHA256 76c32721e3f0a9af30926445eb307b4757dfa47803bfd2fed4c8930a7191907d squid-2.5.STABLE12-patches-20060124.tar.gz 23027
 MD5 de6238427bed63728970b7e3d6cba40a squid-2.5.STABLE12.tar.gz 1394653
+RMD160 ce2b368915e5f927a59b6aeaabecbd1911d66329 squid-2.5.STABLE12.tar.gz 1394653
+SHA256 9a5e0a2bc7ed4202e536c059532884a6c45de9a234520b886b2f891f861d3f0f squid-2.5.STABLE12.tar.gz 1394653
diff --git a/net-proxy/squid/files/digest-squid-2.5.14 b/net-proxy/squid/files/digest-squid-2.5.14
new file mode 100644 (file)
index 0000000..58922a7
--- /dev/null
@@ -0,0 +1,6 @@
+MD5 9b657ea621e75a457b7db32fa794642f squid-2.5.STABLE14-patches-20060619.tar.gz 23811
+RMD160 a2779367052e0ac2a8ab085c78ad29de41b6f166 squid-2.5.STABLE14-patches-20060619.tar.gz 23811
+SHA256 0688f218779317304195aa2f728f6599635d34528882b23eb8461ca4cfa55319 squid-2.5.STABLE14-patches-20060619.tar.gz 23811
+MD5 26ccd46f232a7f85a42834e0c8953176 squid-2.5.STABLE14.tar.gz 1399962
+RMD160 abe464ab115b3f9541d3890fd413044f526ab5f0 squid-2.5.STABLE14.tar.gz 1399962
+SHA256 3ddb16abfe51f5fcbab66d2ca6a6e25341ed470eb7eb1415111401b9e20ba5f2 squid-2.5.STABLE14.tar.gz 1399962
diff --git a/net-proxy/squid/squid-2.5.14.ebuild b/net-proxy/squid/squid-2.5.14.ebuild
new file mode 100644 (file)
index 0000000..c2994d1
--- /dev/null
@@ -0,0 +1,202 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/squid-2.5.14.ebuild,v 1.1 2006/06/19 18:52:59 mrness Exp $
+
+inherit eutils pam toolchain-funcs flag-o-matic
+
+#lame archive versioning scheme..
+S_PV="${PV%.*}"
+S_PL="${PV##*.}"
+S_PL="${S_PL/_rc/-RC}"
+S_PP="${PN}-${S_PV}.STABLE${S_PL}"
+PATCH_VERSION="20060619"
+
+DESCRIPTION="A caching web proxy, with advanced features"
+HOMEPAGE="http://www.squid-cache.org/"
+SRC_URI="http://www.squid-cache.org/Versions/v2/${S_PV}/${S_PP}.tar.gz
+       mirror://gentoo/${S_PP}-patches-${PATCH_VERSION}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE="pam ldap sasl nis ssl snmp debug selinux underscores logrotate customlog zero-penalty-hit follow-xff \
+       pf-transparent ipf-transparent"
+
+RDEPEND="pam? ( virtual/pam )
+       ldap? ( >=net-nds/openldap-2.1.26 )
+       ssl? ( >=dev-libs/openssl-0.9.6m )
+       sasl? ( >=dev-libs/cyrus-sasl-1.5.27 )
+       selinux? ( sec-policy/selinux-squid )
+       logrotate? ( app-admin/logrotate )"
+DEPEND="${RDEPEND} dev-lang/perl"
+
+S="${WORKDIR}/${S_PP}"
+
+pkg_setup() {
+       enewgroup squid 31
+       enewuser squid 31 -1 /var/cache/squid squid
+}
+
+src_unpack() {
+       unpack ${A} || die "unpack failed"
+       cd "${S}" || die "dir ${S} not found"
+
+       # Do bulk patching from squids bug fix list as well as our patches
+       use customlog || rm "${WORKDIR}"/patch/9*customlog*
+       use zero-penalty-hit || rm "${WORKDIR}"/patch/9*ToS_Hit*
+       use follow-xff || rm "${WORKDIR}"/patch/9*follow_xff*
+       EPATCH_SUFFIX="patch"
+       epatch "${WORKDIR}/patch"
+
+       #hmm #10865
+       sed -i -e 's%^\(LINK =.*\)\(-o.*\)%\1\$(XTRA_LIBS) \2%' \
+               helpers/external_acl/ldap_group/Makefile.in
+
+       #disable lazy bindings on (some at least) suided basic auth programs
+       sed -i -e 's:_LDFLAGS[ ]*=:_LDFLAGS = '$(bindnow-flags)':' \
+               helpers/basic_auth/*/Makefile.in
+
+       if ! use debug ; then
+               sed -i -e 's%LDFLAGS="-g"%LDFLAGS=""%' configure.in
+       fi
+       export WANT_AUTOCONF=2.1
+       autoconf || die "autoconf failed"
+}
+
+src_compile() {
+       local basic_modules="getpwnam,NCSA,SMB,MSNT,multi-domain-NTLM,winbind"
+       use ldap && basic_modules="LDAP,${basic_modules}"
+       use pam && basic_modules="PAM,${basic_modules}"
+       use sasl && basic_modules="SASL,${basic_modules}"
+       use nis && ! use elibc_uclibc && basic_modules="YP,${basic_modules}"
+
+       local ext_helpers="ip_user,unix_group,wbinfo_group,winbind_group"
+       use ldap && ext_helpers="ldap_group,${ext_helpers}"
+
+       local myconf=""
+       if use underscores; then
+               ewarn "Enabling underscores in domain names will result in dns resolution"
+               ewarn "failure if your local DNS client (probably bind) is not compatible."
+               myconf="${myconf} --enable-underscores"
+       fi
+
+       # Support for uclibc #61175
+       if use elibc_uclibc; then
+               myconf="${myconf} --enable-storeio='ufs,diskd,aufs,null'"
+               myconf="${myconf} --disable-async-io"
+       else
+               myconf="${myconf} --enable-storeio='ufs,diskd,coss,aufs,null'"
+               myconf="${myconf} --enable-async-io"
+       fi
+
+       if use kernel_linux; then
+               myconf="${myconf} --enable-linux-netfilter"
+       elif use kernel_freebsd || use kernel_openbsd || use kernel_netbsd ; then
+               if use pf-transparent; then
+                       myconf="${myconf} --enable-pf-transparent"
+               elif use ipf-transparent; then
+                       myconf="${myconf} --enable-ipf-transparent"
+               fi
+       fi
+
+       export CC=$(tc-getCC)
+
+       ./configure \
+               --prefix=/usr \
+               --bindir=/usr/bin \
+               --exec-prefix=/usr \
+               --sbindir=/usr/sbin \
+               --localstatedir=/var \
+               --mandir=/usr/share/man \
+               --sysconfdir=/etc/squid \
+               --libexecdir=/usr/lib/squid \
+               --enable-auth="basic,digest,ntlm" \
+               --enable-removal-policies="lru,heap" \
+               --enable-digest-auth-helpers="password" \
+               --enable-basic-auth-helpers="${basic_modules}" \
+               --enable-external-acl-helpers="${ext_helpers}" \
+               --enable-ntlm-auth-helpers="SMB,fakeauth,no_check,winbind" \
+               --enable-ident-lookups \
+               --enable-useragent-log \
+               --enable-cache-digests \
+               --enable-delay-pools \
+               --enable-referer-log \
+               --enable-truncate \
+               --enable-arp-acl \
+               --with-pthreads \
+               --with-large-files \
+               --enable-htcp \
+               --enable-carp \
+               --enable-poll \
+               $(use_enable snmp) \
+               $(use_enable ssl) \
+               $(use_enable follow-xff follow-x-forwarded-for) \
+               --host=${CHOST} ${myconf} || die "bad ./configure"
+
+       sed -i -e "s:^#define SQUID_MAXFD.*:#define SQUID_MAXFD 8192:" \
+               include/autoconf.h
+
+       emake || die "compile problem"
+}
+
+src_install() {
+       make DESTDIR="${D}" install || die "make install failed"
+
+       #need suid root for looking into /etc/shadow
+       fowners root:squid /usr/lib/squid/ncsa_auth
+       fowners root:squid /usr/lib/squid/pam_auth
+       fperms 4750 /usr/lib/squid/ncsa_auth
+       fperms 4750 /usr/lib/squid/pam_auth
+
+       #some clean ups
+       rm -f "${D}"/usr/bin/Run*
+
+       #simply switch this symlink to choose the desired language..
+       dosym /usr/lib/squid/errors/English /etc/squid/errors
+
+       dodoc CONTRIBUTORS CREDITS ChangeLog QUICKSTART SPONSORS doc/*.txt \
+               helpers/ntlm_auth/no_check/README.no_check_ntlm_auth
+       newdoc helpers/basic_auth/SMB/README README.auth_smb
+       dohtml helpers/basic_auth/MSNT/README.html RELEASENOTES.html
+       newdoc helpers/basic_auth/LDAP/README README.auth_ldap
+       doman helpers/basic_auth/LDAP/*.8
+       dodoc helpers/basic_auth/SASL/squid_sasl_auth*
+
+       newpamd "${FILESDIR}/squid.pam" squid
+       newconfd "${FILESDIR}/squid.confd" squid
+       if use logrotate; then
+               newinitd "${FILESDIR}/squid.initd-logrotate" squid
+               insinto /etc/logrotate.d
+               newins "${FILESDIR}/squid.logrotate" squid
+       else
+               newinitd "${FILESDIR}/squid.initd" squid
+               exeinto /etc/cron.weekly
+               newexe "${FILESDIR}/squid.cron" squid.cron
+       fi
+
+       rm -rf "${D}"/var
+       diropts -m0755 -o squid -g squid
+       keepdir /var/cache/squid /var/log/squid
+}
+
+pkg_preinst() {
+       enewgroup squid 31
+       enewuser squid 31 -1 /var/cache/squid squid
+}
+
+pkg_postinst() {
+       echo
+       ewarn "Squid authentication helpers have been installed suid root"
+       ewarn "This allows shadow based authentication, see bug #52977 for more"
+       echo
+       einfo "For winbind authentication to work with squid you should change the"
+       einfo "/var/cache/samba/winbindd_privileged group to the same one you use"
+       einfo "in the cache_effective_group option on your squid.conf:"
+       einfo "    chgrp squid /var/cache/samba/winbindd_privileged"
+       echo
+       ewarn "Be careful what type of cache_dir you select!"
+       ewarn "   'diskd' is optimized for high levels of traffic, but it might seem slow"
+       ewarn "when there isn't sufficient traffic to keep squid reasonably busy."
+       ewarn "   If your traffic level is low to moderate, use 'aufs' or 'ufs'."
+       echo
+}