diff options
author | Alin Năstac <mrness@gentoo.org> | 2009-06-17 23:21:01 +0000 |
---|---|---|
committer | Alin Năstac <mrness@gentoo.org> | 2009-06-17 23:21:01 +0000 |
commit | 3178cb28e6863fef8395fb359113df5038e69322 (patch) | |
tree | eaa45f4e0e86e0476e0b5233152a37d343a88ce9 /net-proxy/squid | |
parent | Remove gnome-base/libghttp per bug #244128 (diff) | |
download | historical-3178cb28e6863fef8395fb359113df5038e69322.tar.gz historical-3178cb28e6863fef8395fb359113df5038e69322.tar.bz2 historical-3178cb28e6863fef8395fb359113df5038e69322.zip |
Version bump.
Package-Manager: portage-2.1.6.13/cvs/Linux x86_64
Diffstat (limited to 'net-proxy/squid')
-rw-r--r-- | net-proxy/squid/ChangeLog | 8 | ||||
-rw-r--r-- | net-proxy/squid/Manifest | 11 | ||||
-rw-r--r-- | net-proxy/squid/files/squid-3.1.0.8_beta-gentoo.patch | 309 | ||||
-rw-r--r-- | net-proxy/squid/squid-3.1.0.8_beta.ebuild | 196 |
4 files changed, 519 insertions, 5 deletions
diff --git a/net-proxy/squid/ChangeLog b/net-proxy/squid/ChangeLog index cf12d26e3916..d5fbf1a720ff 100644 --- a/net-proxy/squid/ChangeLog +++ b/net-proxy/squid/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-proxy/squid # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/ChangeLog,v 1.253 2009/06/17 20:31:31 fauli Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/ChangeLog,v 1.254 2009/06/17 23:21:01 mrness Exp $ + +*squid-3.1.0.8_beta (17 Jun 2009) + + 17 Jun 2009; Alin Năstac <mrness@gentoo.org> + +files/squid-3.1.0.8_beta-gentoo.patch, +squid-3.1.0.8_beta.ebuild: + Version bump. 17 Jun 2009; Christian Faulhammer <fauli@gentoo.org> squid-3.0.15.ebuild: stable x86, bug 274405 diff --git a/net-proxy/squid/Manifest b/net-proxy/squid/Manifest index 2e3a56f31c24..9dd92f5b8b65 100644 --- a/net-proxy/squid/Manifest +++ b/net-proxy/squid/Manifest @@ -23,6 +23,7 @@ AUX squid-3.0.16-adapted-zph.patch 6838 RMD160 8a3aeddf48efccae072c6a4515cb18856 AUX squid-3.0.16-cross-compile.patch 1234 RMD160 d4420fe001d2aa42b321f1c6d52bec542a23b29f SHA1 fd1a82814c09f77ff1cba4b0abb87be07281c325 SHA256 3ce33f078f120ee30b66f957dcb1ba427360b974f3458db2fc4261458f1f1d15 AUX squid-3.0.16-gentoo.patch 13095 RMD160 b0ca0fad05db493358f426eb014a13c46806af63 SHA1 392cb4aa66ab3bda1f564da5945322a9dfe78e48 SHA256 3d357bfe5b8ab8ac214fed250f669f5fa1c55e091300d98dc5dcec25e328049d AUX squid-3.1.0.7_beta-gentoo.patch 13196 RMD160 b9637d05f7ee6aa5b938ed9a4f83171a6ba62f10 SHA1 d3dc845247d7408e0d7e2aea9c2b60c5fa85abe4 SHA256 ea185f7571b3e45353c69f728e2b8244c35348809860f7bc76675b8a49948b0d +AUX squid-3.1.0.8_beta-gentoo.patch 13065 RMD160 342d53821886dac30a795045bda97ff977579411 SHA1 c93f34184b5891c247ab3953a899e274e39aef80 SHA256 ff5129871179ebbb2e6adff43129fd20b534018005213f2daa3a0319a9421ab4 AUX squid.confd 541 RMD160 e248f8fdc3ce732267614652f17bd88472e62b76 SHA1 995df246caffb2a74be2df3072d7ff5fbd024a9d SHA256 982d829f3862c5543af82acd4f7bb123ebe3e9d1c5eff0911f5345262811f2e1 AUX squid.cron 143 RMD160 0706a7ad04691b9a93a2897c319008440483ba11 SHA1 6138db0eccb7320e707b8d60c2970ef684e29336 SHA256 4c9e2afe5b0bba583ce896233ea1f9262beeb1b6cf51b4adb48d5f5c03933b2f AUX squid.initd 2202 RMD160 bdfe34d7d4f0ab5270d2773914d6eb254b030505 SHA1 0092d4259b22c29871b78b0656f836784ec7c09d SHA256 627f30e789949a6881da1b8227cc57ff782159cf5d6c99b1ec4163cfa38636eb @@ -36,18 +37,20 @@ DIST squid-3.0.STABLE14.tar.gz 2456387 RMD160 eebdf3083e8018ded08861e72ee46cb32b DIST squid-3.0.STABLE15.tar.gz 2441793 RMD160 35a8715928ba916a448df9331bfb0c99feb85523 SHA1 31c1eac13c8ca3d98ccbd8f4b04f1aeb26bde433 SHA256 cdf5453dbe62a9250f90fce2770322d6b0d0c50d0a365a018d17e00383d14544 DIST squid-3.0.STABLE16.tar.gz 2449986 RMD160 d9e019ef5c2fb26f0a16a9bfbce5fe0269360ab1 SHA1 3d0ba0e509b7939b9023f1b25cc956e4ac3c0ba1 SHA256 a50c9d1d276f59a2754f13c27468445290930c000cb1457160bfe8898620b615 DIST squid-3.1.0.7.tar.gz 3051051 RMD160 9522e64a78bc19a07cff79109da6b8d99f4fada6 SHA1 eff28b0c5600d07938882013021f1707f58162ae SHA256 57c4c7edfe2b87f2b62b5c53521429857d68289a2abeda30adbbe59fd5a748f7 +DIST squid-3.1.0.8.tar.gz 3187808 RMD160 96d407feadf19844b72b094ba15a001789d0be72 SHA1 79452bd38fa942c1f70bb42f733299d6c4090239 SHA256 2d0ce79d59853e4b1617c2942a1a47f7ddff649751d0dc2a47d74b012757af90 EBUILD squid-2.7.6-r1.ebuild 5940 RMD160 5b91d674be3300c7bfed7d1b30df48a2f038396d SHA1 164412cead1a39412d488cce3736b8908d315e04 SHA256 5981bf0f065742f28bf6a1941779f5df7b8e53a3f2b83352d85c89afe70a61e2 EBUILD squid-3.0.13.ebuild 6458 RMD160 d3ca104a621de1e4f435bf8ca74c50f130210710 SHA1 f2ee7dcd7269d5024b1e1c82ea4341336a7e9766 SHA256 0606094713ec67bbbdbd37592f28d5babde42a93c8be76e1d20487afe296bbc2 EBUILD squid-3.0.14-r2.ebuild 6592 RMD160 e8a8059445b73f15c22892446a8e3438ca6832b0 SHA1 a3be279eb3ee1bfd47cfb21d2a666530abd2b250 SHA256 812d4957678d17512fe418a9c16e2f7a84356e736ade7ba33871e793569b6c80 EBUILD squid-3.0.15.ebuild 6566 RMD160 9dd6e86c1f4d4fce499aca840611753426370c7d SHA1 18947b25e5edb85a05c55c83c5970bc115f78b39 SHA256 f94912af155c59fd02aff9511ed26977bbbebcae7d29218a9f0a037b9a55da03 EBUILD squid-3.0.16.ebuild 6345 RMD160 60d081b113dbbbeac167e902fab620d67b2701d4 SHA1 c65477023921acb8f242a6b2711f31a383162f2f SHA256 da0694055e70cf47fa21375eefbc3c16765cec1e6cb9ee9976c86e93e41e4134 EBUILD squid-3.1.0.7_beta.ebuild 6717 RMD160 7113becd62ce2c77b79120cd3f69422adc690dd4 SHA1 d2fa3e4525d4a8617a16f3db76d47802edbbca2c SHA256 0199755988a9da9485c3ba464e85524b8d81c275aefba60906baad5c16aa435d -MISC ChangeLog 55177 RMD160 43db0ca2e9020ba7c49d2e1f697ca509ab0349b6 SHA1 d4895f6587e735b487ccdb1a73da4ab2c951c744 SHA256 f8d6ef7632c6bbcedea53496922620d8a953eace99b2d4f6df0ddfd87ca19280 +EBUILD squid-3.1.0.8_beta.ebuild 6513 RMD160 e437b118c10fa86c06454d8b42ed86c7e617a705 SHA1 2f8989d5967d21fe4ad936da1b0f548c7dfe2992 SHA256 185e63f379b363088aac803be4cb3110b8e7efab7130eabf04868eae8f9a7da3 +MISC ChangeLog 55348 RMD160 5afd8df6ee6c557d63f6c271f959776cfb5f647a SHA1 d75904a90a47e49089674b88559a2e74fbcf3424 SHA256 47ccb9b8947ec8836a5914a3563e93c1d536589f63c9e124e7b38514d3d24670 MISC metadata.xml 815 RMD160 ef81660620d9fa0746bc415a7e6e6cf8a5500b98 SHA1 7a420824358267ae8c85256da092d1fba8727dcd SHA256 943b6f547b43197636ac4ec29ad23423770ec621cdb1b495306d95ab14da09ba -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (GNU/Linux) -iEYEARECAAYFAko5UqkACgkQNQqtfCuFnePasQCfXzSd0XzMpI7B/oDgaK69V8WK -hbcAn29l4QR04Z3Rwvlav7AetLhkw8Yy -=YeNN +iEYEARECAAYFAko5emcACgkQts85UDFmaOV7aQCfZpytaR8HFy0JK12Q//OK86Vy +tYMAnRr/Zs8uD+yXHAztwD+Rz48299Te +=rf6O -----END PGP SIGNATURE----- diff --git a/net-proxy/squid/files/squid-3.1.0.8_beta-gentoo.patch b/net-proxy/squid/files/squid-3.1.0.8_beta-gentoo.patch new file mode 100644 index 000000000000..ba68dd7e5640 --- /dev/null +++ b/net-proxy/squid/files/squid-3.1.0.8_beta-gentoo.patch @@ -0,0 +1,309 @@ +diff -Nru squid-3.1.0.8.orig/acinclude.m4 squid-3.1.0.8/acinclude.m4 +--- squid-3.1.0.8.orig/acinclude.m4 2009-05-23 14:30:51.000000000 +0200 ++++ squid-3.1.0.8/acinclude.m4 2009-06-16 00:03:52.000000000 +0200 +@@ -73,7 +73,7 @@ + AC_MSG_CHECKING([whether compiler accepts -fhuge-objects]) + AC_CACHE_VAL([ac_cv_test_checkforhugeobjects],[ + ac_cv_test_checkforhugeobjects=`echo "int foo;" > conftest.cc +-${CXX} -Werror -fhuge-objects -c conftest.cc 2>/dev/null ++${CXX} -fhuge-objects -c conftest.cc 2>/dev/null + res=$? + rm -f conftest.* + echo yes +diff -Nru squid-3.1.0.8.orig/configure.in squid-3.1.0.8/configure.in +--- squid-3.1.0.8.orig/configure.in 2009-05-23 14:31:40.000000000 +0200 ++++ squid-3.1.0.8/configure.in 2009-06-16 00:03:52.000000000 +0200 +@@ -16,9 +16,9 @@ + PRESET_LDFLAGS="$LDFLAGS" + + dnl Set default LDFLAGS +-if test -z "$LDFLAGS"; then +- LDFLAGS="-g" +-fi ++dnl if test -z "$LDFLAGS"; then ++dnl LDFLAGS="-g" ++dnl fi + + dnl Check for GNU cc + AC_PROG_CC +@@ -259,13 +259,13 @@ + dnl TODO: check if the problem will be present in any other newer MinGW release. + case "$host_os" in + mingw|mingw32) +- SQUID_CFLAGS="-Werror -Wall -Wpointer-arith -Wwrite-strings -Wcomments" ++ SQUID_CFLAGS="-Wall -Wpointer-arith -Wwrite-strings" + ;; + *) +- SQUID_CFLAGS="-Werror -Wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wcomments" ++ SQUID_CFLAGS="-Wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations" + ;; + esac +- SQUID_CXXFLAGS="-Werror -Wall -Wpointer-arith -Wwrite-strings -Wcomments" ++ SQUID_CXXFLAGS="-Wall -Wpointer-arith -Wwrite-strings" + else + SQUID_CFLAGS= + SQUID_CXXFLAGS= +diff -Nru squid-3.1.0.8.orig/helpers/basic_auth/MSNT/confload.c squid-3.1.0.8/helpers/basic_auth/MSNT/confload.c +--- squid-3.1.0.8.orig/helpers/basic_auth/MSNT/confload.c 2009-05-23 14:30:53.000000000 +0200 ++++ squid-3.1.0.8/helpers/basic_auth/MSNT/confload.c 2009-06-16 00:03:52.000000000 +0200 +@@ -27,7 +27,7 @@ + + /* Path to configuration file */ + #ifndef SYSCONFDIR +-#define SYSCONFDIR "/usr/local/squid/etc" ++#define SYSCONFDIR "/etc/squid" + #endif + #define CONFIGFILE SYSCONFDIR "/msntauth.conf" + +diff -Nru squid-3.1.0.8.orig/helpers/basic_auth/MSNT/msntauth.conf.default squid-3.1.0.8/helpers/basic_auth/MSNT/msntauth.conf.default +--- squid-3.1.0.8.orig/helpers/basic_auth/MSNT/msntauth.conf.default 2009-05-23 14:30:53.000000000 +0200 ++++ squid-3.1.0.8/helpers/basic_auth/MSNT/msntauth.conf.default 2009-06-16 00:03:52.000000000 +0200 +@@ -8,6 +8,6 @@ + server other_PDC other_BDC otherdomain + + # Denied and allowed users. Comment these if not needed. +-#denyusers /usr/local/squid/etc/msntauth.denyusers +-#allowusers /usr/local/squid/etc/msntauth.allowusers ++#denyusers /etc/squid/msntauth.denyusers ++#allowusers /etc/squid/msntauth.allowusers + +diff -Nru squid-3.1.0.8.orig/helpers/basic_auth/SMB/Makefile.am squid-3.1.0.8/helpers/basic_auth/SMB/Makefile.am +--- squid-3.1.0.8.orig/helpers/basic_auth/SMB/Makefile.am 2009-05-23 14:30:54.000000000 +0200 ++++ squid-3.1.0.8/helpers/basic_auth/SMB/Makefile.am 2009-06-16 00:03:52.000000000 +0200 +@@ -14,7 +14,7 @@ + ## FIXME: autoconf should test for the samba path. + + SMB_AUTH_HELPER = smb_auth.sh +-SAMBAPREFIX=/usr/local/samba ++SAMBAPREFIX=/usr + SMB_AUTH_HELPER_PATH = $(libexecdir)/$(SMB_AUTH_HELPER) + + libexec_SCRIPTS = $(SMB_AUTH_HELPER) +diff -Nru squid-3.1.0.8.orig/helpers/basic_auth/SMB/smb_auth.sh squid-3.1.0.8/helpers/basic_auth/SMB/smb_auth.sh +--- squid-3.1.0.8.orig/helpers/basic_auth/SMB/smb_auth.sh 2009-05-23 14:30:54.000000000 +0200 ++++ squid-3.1.0.8/helpers/basic_auth/SMB/smb_auth.sh 2009-06-16 00:03:52.000000000 +0200 +@@ -24,7 +24,7 @@ + read AUTHSHARE + read AUTHFILE + read SMBUSER +-read SMBPASS ++read -r SMBPASS + + # Find domain controller + echo "Domain name: $DOMAINNAME" +@@ -47,7 +47,7 @@ + addropt="" + fi + echo "Query address options: $addropt" +-dcip=`$SAMBAPREFIX/bin/nmblookup $addropt "$PASSTHROUGH#1c" | awk '/^[0-9.]+ / { print $1 ; exit }'` ++dcip=`$SAMBAPREFIX/bin/nmblookup $addropt "$PASSTHROUGH#1c" | awk '/^[0-9.]+\..+ / { print $1 ; exit }'` + echo "Domain controller IP address: $dcip" + [ -n "$dcip" ] || exit 1 + +diff -Nru squid-3.1.0.8.orig/helpers/external_acl/session/squid_session.8 squid-3.1.0.8/helpers/external_acl/session/squid_session.8 +--- squid-3.1.0.8.orig/helpers/external_acl/session/squid_session.8 2009-05-23 14:30:54.000000000 +0200 ++++ squid-3.1.0.8/helpers/external_acl/session/squid_session.8 2009-06-16 00:03:52.000000000 +0200 +@@ -35,7 +35,7 @@ + .P + Configuration example using the default automatic mode + .IP +-external_acl_type session ttl=300 negative_ttl=0 children=1 concurrency=200 %LOGIN /usr/local/squid/libexec/squid_session ++external_acl_type session ttl=300 negative_ttl=0 children=1 concurrency=200 %LOGIN /usr/libexec/squid/squid_session + .IP + acl session external session + .IP +diff -Nru squid-3.1.0.8.orig/helpers/external_acl/unix_group/squid_unix_group.8 squid-3.1.0.8/helpers/external_acl/unix_group/squid_unix_group.8 +--- squid-3.1.0.8.orig/helpers/external_acl/unix_group/squid_unix_group.8 2009-05-23 14:30:54.000000000 +0200 ++++ squid-3.1.0.8/helpers/external_acl/unix_group/squid_unix_group.8 2009-06-16 00:03:52.000000000 +0200 +@@ -27,7 +27,7 @@ + This squid.conf example defines two Squid acls. usergroup1 matches users in group1, and usergroup2 + matches users in group2 or group3 + .IP +-external_acl_type unix_group %LOGIN /usr/local/squid/libexec/squid_unix_group -p ++external_acl_type unix_group %LOGIN /usr/libexec/squid/squid_unix_group -p + .IP + acl usergroup1 external unix_group group1 + .IP +diff -Nru squid-3.1.0.8.orig/helpers/negotiate_auth/squid_kerb_auth/configure.in squid-3.1.0.8/helpers/negotiate_auth/squid_kerb_auth/configure.in +--- squid-3.1.0.8.orig/helpers/negotiate_auth/squid_kerb_auth/configure.in 2009-05-23 14:30:55.000000000 +0200 ++++ squid-3.1.0.8/helpers/negotiate_auth/squid_kerb_auth/configure.in 2009-06-16 00:03:52.000000000 +0200 +@@ -17,6 +17,7 @@ + + AC_INIT([squid_kerb_auth],[1.0.5],[markus_moeller@compuserve.com]) + AM_INIT_AUTOMAKE(squid_kerb_auth,1.0.5) ++AM_MAINTAINER_MODE + AC_CONFIG_SRCDIR([squid_kerb_auth.c]) + + AC_PROG_CC +@@ -531,7 +532,7 @@ + dnl set variable for use in automakefile(s) + AM_CONDITIONAL(HAVE_SPNEGO, test x"$ac_cv_have_spnego" = x"yes" ) + +-MY_CFLAGS="-Wall -Wextra -Werror -Wcomment -Wpointer-arith -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wdeclaration-after-statement -Wshadow" ++MY_CFLAGS="-Wall -Wextra -Wpointer-arith -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wdeclaration-after-statement -Wshadow" + for ac_cv_my_cflag in $MY_CFLAGS; do + echo "int main() + { +diff -Nru squid-3.1.0.8.orig/lib/libTrie/acinclude.m4 squid-3.1.0.8/lib/libTrie/acinclude.m4 +--- squid-3.1.0.8.orig/lib/libTrie/acinclude.m4 2009-05-23 14:30:56.000000000 +0200 ++++ squid-3.1.0.8/lib/libTrie/acinclude.m4 2009-06-16 00:03:52.000000000 +0200 +@@ -9,7 +9,7 @@ + AC_MSG_CHECKING([whether compiler accepts -fhuge-objects]) + AC_CACHE_VAL([ac_cv_test_checkforhugeobjects],[ + ac_cv_test_checkforhugeobjects=`echo "int foo;" > conftest.cc +-${CXX} -Werror -fhuge-objects -c conftest.cc 2>/dev/null ++${CXX} -fhuge-objects -c conftest.cc 2>/dev/null + res=$? + rm -f conftest.* + echo yes +diff -Nru squid-3.1.0.8.orig/lib/libTrie/configure.in squid-3.1.0.8/lib/libTrie/configure.in +--- squid-3.1.0.8.orig/lib/libTrie/configure.in 2009-05-23 14:30:56.000000000 +0200 ++++ squid-3.1.0.8/lib/libTrie/configure.in 2009-06-16 00:03:52.000000000 +0200 +@@ -58,8 +58,8 @@ + + dnl set useful flags + if test "$GCC" = "yes"; then +- TRIE_CFLAGS="-Werror -Wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wcomments" +- TRIE_CXXFLAGS="-Werror -Wall -Wpointer-arith -Wwrite-strings -Wcomments" ++ TRIE_CFLAGS="-Wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations" ++ TRIE_CXXFLAGS="-Wall -Wpointer-arith -Wwrite-strings" + else + TRIE_CFLAGS= + TRIE_CXXFLAGS= +diff -Nru squid-3.1.0.8.orig/src/cf.data.pre squid-3.1.0.8/src/cf.data.pre +--- squid-3.1.0.8.orig/src/cf.data.pre 2009-05-23 14:31:02.000000000 +0200 ++++ squid-3.1.0.8/src/cf.data.pre 2009-06-16 00:03:52.000000000 +0200 +@@ -684,6 +684,8 @@ + acl Safe_ports port 488 # gss-http + acl Safe_ports port 591 # filemaker + acl Safe_ports port 777 # multiling http ++acl Safe_ports port 901 # SWAT ++acl purge method PURGE + acl CONNECT method CONNECT + NOCOMMENT_END + DOC_END +@@ -803,6 +805,9 @@ + # Only allow cachemgr access from localhost + http_access allow manager localhost + http_access deny manager ++# Only allow purge requests from localhost ++http_access allow purge localhost ++http_access deny purge + # Deny requests to unknown ports + http_access deny !Safe_ports + # Deny CONNECT to other than SSL ports +@@ -820,6 +825,9 @@ + # from where browsing should be allowed + http_access allow localnet + ++# Allow the localhost to have access by default ++http_access allow localhost ++ + # And finally deny all other access to this proxy + http_access deny all + NOCOMMENT_END +@@ -3639,11 +3647,11 @@ + + NAME: cache_mgr + TYPE: string +-DEFAULT: webmaster ++DEFAULT: root + LOC: Config.adminEmail + DOC_START + Email-address of local cache manager who will receive +- mail if the cache dies. The default is "webmaster." ++ mail if the cache dies. The default is "root". + DOC_END + + NAME: mail_from +@@ -5761,7 +5769,7 @@ + NAME: forwarded_for + COMMENT: on|off|transparent|truncate|delete + TYPE: string +-DEFAULT: on ++DEFAULT: delete + LOC: opt_forwarded_for + DOC_START + If set to "on", Squid will append your client's IP address +diff -Nru squid-3.1.0.8.orig/src/debug.cc squid-3.1.0.8/src/debug.cc +--- squid-3.1.0.8.orig/src/debug.cc 2009-05-23 14:31:03.000000000 +0200 ++++ squid-3.1.0.8/src/debug.cc 2009-06-16 00:03:52.000000000 +0200 +@@ -438,7 +438,7 @@ + #if HAVE_SYSLOG && defined(LOG_LOCAL4) + + if (opt_syslog_enable) +- openlog(APP_SHORTNAME, LOG_PID | LOG_NDELAY | LOG_CONS, syslog_facility); ++ openlog(APP_SHORTNAME, LOG_PID | LOG_NDELAY, syslog_facility); + + #endif /* HAVE_SYSLOG */ + +diff -Nru squid-3.1.0.8.orig/src/main.cc squid-3.1.0.8/src/main.cc +--- squid-3.1.0.8.orig/src/main.cc 2009-05-23 14:31:03.000000000 +0200 ++++ squid-3.1.0.8/src/main.cc 2009-06-16 00:03:52.000000000 +0200 +@@ -1514,7 +1514,7 @@ + if (*(argv[0]) == '(') + return; + +- openlog(APP_SHORTNAME, LOG_PID | LOG_NDELAY | LOG_CONS, LOG_LOCAL4); ++ openlog(APP_SHORTNAME, LOG_PID | LOG_NDELAY, LOG_DAEMON); + + if ((pid = fork()) < 0) + syslog(LOG_ALERT, "fork failed: %s", xstrerror()); +@@ -1558,7 +1558,7 @@ + + if ((pid = fork()) == 0) { + /* child */ +- openlog(APP_SHORTNAME, LOG_PID | LOG_NDELAY | LOG_CONS, LOG_LOCAL4); ++ openlog(APP_SHORTNAME, LOG_PID | LOG_NDELAY, LOG_DAEMON); + prog = xstrdup(argv[0]); + argv[0] = xstrdup("(squid)"); + execvp(prog, argv); +@@ -1566,7 +1566,7 @@ + } + + /* parent */ +- openlog(APP_SHORTNAME, LOG_PID | LOG_NDELAY | LOG_CONS, LOG_LOCAL4); ++ openlog(APP_SHORTNAME, LOG_PID | LOG_NDELAY, LOG_DAEMON); + + syslog(LOG_NOTICE, "Squid Parent: child process %d started", pid); + +diff -Nru squid-3.1.0.8.orig/src/Makefile.am squid-3.1.0.8/src/Makefile.am +--- squid-3.1.0.8.orig/src/Makefile.am 2009-05-23 14:30:58.000000000 +0200 ++++ squid-3.1.0.8/src/Makefile.am 2009-06-16 00:05:55.000000000 +0200 +@@ -637,7 +637,6 @@ + + sysconf_DATA = \ + squid.conf.default \ +- squid.conf.documented \ + mime.conf.default + + data_DATA = \ +@@ -712,8 +711,8 @@ + DEFAULT_ACCESS_LOG = $(DEFAULT_LOG_PREFIX)/access.log + DEFAULT_STORE_LOG = $(DEFAULT_LOG_PREFIX)/store.log + DEFAULT_PID_FILE = @DEFAULT_PIDFILE@ +-DEFAULT_NETDB_FILE = $(DEFAULT_LOG_PREFIX)/netdb.state +-DEFAULT_SWAP_DIR = $(localstatedir)/cache ++DEFAULT_NETDB_FILE = $(localstatedir)/run/netdb.state ++DEFAULT_SWAP_DIR = $(localstatedir)/cache/squid + DEFAULT_PINGER = $(libexecdir)/`echo pinger | sed '$(transform);s/$$/$(EXEEXT)/'` + DEFAULT_UNLINKD = $(libexecdir)/`echo unlinkd | sed '$(transform);s/$$/$(EXEEXT)/'` + DEFAULT_DISKD = $(libexecdir)/`echo diskd | sed '$(transform);s/$$/$(EXEEXT)/'` +@@ -749,7 +748,7 @@ + true + + squid.conf.default: squid.conf.documented +- $(EGREP) -v "^[#\ ]" squid.conf.documented | $(EGREP) . >squid.conf.default ++ cp squid.conf.documented squid.conf.default + + cf_parser.h: cf.data cf_gen$(EXEEXT) + ./cf_gen cf.data $(srcdir)/cf.data.depend +@@ -803,8 +802,6 @@ + fi + echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \ + $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \ +- echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \ +- $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \ + $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX) + + uninstall-local: diff --git a/net-proxy/squid/squid-3.1.0.8_beta.ebuild b/net-proxy/squid/squid-3.1.0.8_beta.ebuild new file mode 100644 index 000000000000..570f2d7a7511 --- /dev/null +++ b/net-proxy/squid/squid-3.1.0.8_beta.ebuild @@ -0,0 +1,196 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/squid-3.1.0.8_beta.ebuild,v 1.1 2009/06/17 23:21:01 mrness Exp $ + +EAPI="2" + +inherit eutils pam toolchain-funcs linux-info + +RESTRICT="test" # check if test works in next bump + +DESCRIPTION="A full-featured web proxy cache" +HOMEPAGE="http://www.squid-cache.org/" +SRC_URI="http://www.squid-cache.org/Versions/v3/3.1/${P/_beta}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" +IUSE="ipv6 pam ldap samba sasl kerberos nis radius ssl snmp selinux icap-client logrotate \ + mysql postgres sqlite \ + zero-penalty-hit \ + pf-transparent ipf-transparent kqueue \ + elibc_uclibc kernel_linux epoll" + +COMMON_DEPEND="pam? ( virtual/pam ) + ldap? ( net-nds/openldap ) + kerberos? ( || ( app-crypt/mit-krb5 app-crypt/heimdal ) ) + ssl? ( dev-libs/openssl ) + sasl? ( dev-libs/cyrus-sasl ) + selinux? ( sec-policy/selinux-squid ) + !x86-fbsd? ( logrotate? ( app-admin/logrotate ) ) + >=sys-libs/db-4 + dev-lang/perl" +DEPEND="${COMMON_DEPEND} + sys-devel/automake + sys-devel/autoconf + sys-devel/libtool" +RDEPEND="${COMMON_DEPEND} + samba? ( net-fs/samba ) + mysql? ( dev-perl/DBD-mysql ) + postgres? ( dev-perl/DBD-Pg ) + sqlite? ( dev-perl/DBD-SQLite )" + +S="${WORKDIR}/${P/_beta}" + +pkg_setup() { + if grep -qs '^[[:space:]]*cache_dir[[:space:]]\+coss' "${ROOT}"etc/squid/squid.conf; then + eerror "coss store IO has been disabled by upstream due to stability issues!" + eerror "If you want to install this version, switch the store type to something else" + eerror "before attempting to install this version again." + + die "/etc/squid/squid.conf: cache_dir use a disabled store type" + fi + + enewgroup squid 31 + enewuser squid 31 -1 /var/cache/squid squid +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-3-capability.patch + epatch "${FILESDIR}"/${P}-gentoo.patch + + # eautoreconf breaks lib/libLtdl/libtool script + ./bootstrap.sh || die "autoreconf failed" +} + +src_configure() { + local myconf="" + + local basic_modules="getpwnam,NCSA,MSNT" + use samba && basic_modules="SMB,multi-domain-NTLM,${basic_modules}" + 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}" + use radius && basic_modules="squid_radius_auth,${basic_modules}" + if use mysql || use postgres || use sqlite ; then + basic_modules="DB,${basic_modules}" + fi + + local ext_helpers="ip_user,session,unix_group" + use samba && ext_helpers="wbinfo_group,${ext_helpers}" + use ldap && ext_helpers="ldap_group,${ext_helpers}" + + local ntlm_helpers="fakeauth" + use samba && ntlm_helpers="smb_lm,${ntlm_helpers}" + + local negotiate_helpers= + if use kerberos; then + negotiate_helpers="squid_kerb_auth" + has_version app-crypt/mit-krb5 \ + && myconf="--enable-mit --disable-heimdal" \ + || myconf="--disable-mit --enable-heimdal" + fi + + # coss support has been disabled + # If it is re-enabled again, make sure you don't enable it for elibc_uclibc (#61175) + myconf="${myconf} --enable-storeio=ufs,diskd,aufs" + + if use kernel_linux; then + myconf="${myconf} --enable-linux-netfilter + $(use_enable epoll)" + elif use kernel_FreeBSD || use kernel_OpenBSD || use kernel_NetBSD ; then + myconf="${myconf} $(use_enable kqueue)" + 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) + + econf \ + --sysconfdir=/etc/squid \ + --libexecdir=/usr/libexec/squid \ + --localstatedir=/var \ + --datadir=/usr/share/squid \ + --with-logdir=/var/log/squid \ + --with-default-user=squid \ + --enable-auth="basic,digest,negotiate,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="${ntlm_helpers}" \ + --enable-negotiate-auth-helpers="${negotiate_helpers}" \ + --enable-useragent-log \ + --enable-cache-digests \ + --enable-delay-pools \ + --enable-referer-log \ + --enable-arp-acl \ + --with-large-files \ + --with-filedescriptors=8192 \ + $(use_enable ipv6) \ + $(use_enable snmp) \ + $(use_enable ssl) \ + $(use_enable icap-client) \ + $(use_enable zero-penalty-hit zph-qos) \ + ${myconf} || die "econf failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + + # need suid root for looking into /etc/shadow + fowners root:squid /usr/libexec/squid/ncsa_auth + fowners root:squid /usr/libexec/squid/pam_auth + fperms 4750 /usr/libexec/squid/ncsa_auth + fperms 4750 /usr/libexec/squid/pam_auth + + # some cleanups + rm -f "${D}"/usr/bin/Run* + + 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_postinst() { + echo + ewarn "Squid authentication helpers have been installed suid root." + ewarn "This allows shadow based authentication (see bug #52977 for more)." + 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 + ewarn "Squid can be configured to run in transparent mode like this:" + ewarn " ${HILITE}http_port internal-addr:3128 transparent${NORMAL}" + if use zero-penalty-hit; then + echo + ewarn "In order for zph_preserve_miss_tos to work, you will have to alter your kernel" + ewarn "with the patch that can be found on http://zph.bratcheda.org site." + fi +} |