diff options
author | Alin Năstac <mrness@gentoo.org> | 2005-02-23 20:06:05 +0000 |
---|---|---|
committer | Alin Năstac <mrness@gentoo.org> | 2005-02-23 20:06:05 +0000 |
commit | 8f67fae6bd8be6fdb263c5699ed0b2f13458c1c0 (patch) | |
tree | 01ee4aab85ecfb265513dbedfa959075a3fe861b /www-proxy | |
parent | Add revision bumps of two most recent releases, that include optional xlib ba... (diff) | |
download | gentoo-2-8f67fae6bd8be6fdb263c5699ed0b2f13458c1c0.tar.gz gentoo-2-8f67fae6bd8be6fdb263c5699ed0b2f13458c1c0.tar.bz2 gentoo-2-8f67fae6bd8be6fdb263c5699ed0b2f13458c1c0.zip |
add combined log patch (#76333); add logrotate USE flag; remove old versions
(Portage version: 2.0.51-r15)
Diffstat (limited to 'www-proxy')
18 files changed, 48 insertions, 1850 deletions
diff --git a/www-proxy/squid/ChangeLog b/www-proxy/squid/ChangeLog index 02247752f713..514890ecd40b 100644 --- a/www-proxy/squid/ChangeLog +++ b/www-proxy/squid/ChangeLog @@ -1,6 +1,17 @@ # ChangeLog for www-proxy/squid # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-proxy/squid/ChangeLog,v 1.39 2005/02/21 04:04:53 agriffis Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-proxy/squid/ChangeLog,v 1.40 2005/02/23 20:06:05 mrness Exp $ + +*squid-2.5.8-r1 (23 Feb 2005) + + 23 Feb 2005; Alin Nastac <mrness@gentoo.org> + -files/squid-2.4.7-debian.diff, -files/squid-2.4.7-gentoo.diff, + -files/squid-2.5.3-gentoo.diff, -files/squid-2.5.5-ntml-auth-fix.patch, + -files/squid-2.5.6-ufs-no-valid-dir.patch, -files/squid-2.5.7-gentoo.diff, + +files/squid-logrotate, -squid-2.4.7.ebuild, -squid-2.5.5-r3.ebuild, + -squid-2.5.6-r3.ebuild, -squid-2.5.7-r6.ebuild, +squid-2.5.8-r1.ebuild: + Incorporate combined log patch (#76333). Add support for logrotate selected + by a new USE flag (#71658). Remove obsolete versions. 20 Feb 2005; Aron Griffis <agriffis@gentoo.org> squid-2.5.8.ebuild: stable on ia64 #81997 diff --git a/www-proxy/squid/Manifest b/www-proxy/squid/Manifest index fb686abab2c1..a6f01098f13e 100644 --- a/www-proxy/squid/Manifest +++ b/www-proxy/squid/Manifest @@ -1,4 +1,5 @@ MD5 4d6e594d3261b3e09b9db1fab876f19c squid-2.5.5-r3.ebuild 5383 +MD5 7e80ff6c94e6181dbe77a5c8474442ab squid-2.5.8-r1.ebuild 5893 MD5 f0556ae57a1b49d2c59645362ea9412e squid-2.5.7-r6.ebuild 5822 MD5 f2881ab9b7a08ed59e6f62d772193dfb squid-2.5.8.ebuild 5893 MD5 09369b2d9c6744fe160586802c49a8f7 squid-2.4.7.ebuild 4000 @@ -10,6 +11,7 @@ MD5 a188814c2113dcd28c55672dbe58df8c files/squid-2.5.5-ntml-auth-fix.patch 2354 MD5 45bf3c4b37515fe4da4ed6d39904132d files/digest-squid-2.5.5-r3 147 MD5 c3cb57db464a884a63d0c53ceb38331b files/digest-squid-2.5.6-r3 156 MD5 5c71681960446a71b628cf4c4c6cd195 files/digest-squid-2.5.7-r6 156 +MD5 c2d230465ceefe887175cb8121d0fbc8 files/digest-squid-2.5.8-r1 156 MD5 e4e44e57aa7d93849649c3ceb67a3a65 files/squid.confd 437 MD5 77aec5b95dd4600de8621d925d2997e4 files/squid-2.5.7-gentoo.diff 16834 MD5 0c7867dce4b8bef078a93bf717196b0e files/squid-2.5.3-gentoo.diff 11534 diff --git a/www-proxy/squid/files/digest-squid-2.4.7 b/www-proxy/squid/files/digest-squid-2.4.7 deleted file mode 100644 index bc9fd7334661..000000000000 --- a/www-proxy/squid/files/digest-squid-2.4.7 +++ /dev/null @@ -1,3 +0,0 @@ -MD5 3b91136b8ddcc37196716fa6e85a14b2 squid-2.4.STABLE7-src.tar.gz 1087532 -MD5 ef0f9ad85ef9770668c4bc509ac8c0b9 squid-2.4.STABLE7-patches.tar.gz 769 -MD5 61f54d69abfee45b28e36a385bb9069c msntauth-v2.0.3-squid.2.tar.gz 50939 diff --git a/www-proxy/squid/files/digest-squid-2.5.5-r3 b/www-proxy/squid/files/digest-squid-2.5.5-r3 deleted file mode 100644 index 189d53b6e39e..000000000000 --- a/www-proxy/squid/files/digest-squid-2.5.5-r3 +++ /dev/null @@ -1,2 +0,0 @@ -MD5 45ed1b1cd492e3f529085d09c3ffc1b8 squid-2.5.STABLE5.tar.bz2 1044932 -MD5 03d17de9f410805b852aed440787ec7c squid-2.5.STABLE5-patches.tar.gz 24491 diff --git a/www-proxy/squid/files/digest-squid-2.5.6-r3 b/www-proxy/squid/files/digest-squid-2.5.6-r3 deleted file mode 100644 index d6e20aa37fda..000000000000 --- a/www-proxy/squid/files/digest-squid-2.5.6-r3 +++ /dev/null @@ -1,2 +0,0 @@ -MD5 7fd964ac27b43b613d6b981cc702a29e squid-2.5.STABLE6.tar.bz2 1047199 -MD5 528e905f676b99b84af342c2e2ad4d2a squid-2.5.STABLE6-patches-20041017.tar.gz 38575 diff --git a/www-proxy/squid/files/digest-squid-2.5.7-r6 b/www-proxy/squid/files/digest-squid-2.5.7-r6 deleted file mode 100644 index e1825917ffd2..000000000000 --- a/www-proxy/squid/files/digest-squid-2.5.7-r6 +++ /dev/null @@ -1,2 +0,0 @@ -MD5 bf63e34906c68d716896eec0351108dc squid-2.5.STABLE7.tar.bz2 1051830 -MD5 aa6c3244d30dbc5669bd563ca3de0b5a squid-2.5.STABLE7-patches-20050210.tar.gz 28026 diff --git a/www-proxy/squid/files/digest-squid-2.5.8-r1 b/www-proxy/squid/files/digest-squid-2.5.8-r1 new file mode 100644 index 000000000000..512edad30fae --- /dev/null +++ b/www-proxy/squid/files/digest-squid-2.5.8-r1 @@ -0,0 +1,2 @@ +MD5 687db8c5f0fec3798dbc77f94340b185 squid-2.5.STABLE8.tar.bz2 1057299 +MD5 b33c4bc57348b5e2672b9781e5ccc3ce squid-2.5.STABLE8-patches-20050223.tar.gz 20076 diff --git a/www-proxy/squid/files/squid-2.4.7-debian.diff b/www-proxy/squid/files/squid-2.4.7-debian.diff deleted file mode 100644 index b6ae92586746..000000000000 --- a/www-proxy/squid/files/squid-2.4.7-debian.diff +++ /dev/null @@ -1,413 +0,0 @@ -These patches are borrowed from Debian's squid-2.4.4 patch. Here's -the README file describing them: ---- - -Upstream patches against the release, that will be integrated into -the next stable release (http://www.squid-cache.org/Versions/v2/2.4/bugs/) - -[currently none] - -Debian specific patches: -All patches that were in the debian squid-2.2.5 and squid-2.3.4 have been -applied to squid-2.4.3 as well, if they hadn't been integrated yet. - -cf.data.debian.patch Debian specific squid.conf patches -dfl-error-dir.patch Default error dir is under /usr/lib/squid for Debian -linux-increase-fds.patch - A hack to squid.h so that FD_SETSIZE can be - redefined on Linux for more open filedescriptors. -no_append_domain_localhost.patch - Don't apply "append_domain" setting to "localhost" - in unqualified URLs. -pipeline-shutup.patch Lower priority of some debug msgs of pipelining code -smb_auth.patch Read password with '-r' so backslashes work - Patch awk regexp to read correct field from nmblookup -syslog.patch Log to daemon.log instead of local4.log -unlinkd.patch Only run unlinkd for diskd and ufs storage methods -debug.c.patch Fix debug output corruption (and crash) when - debug_options is set to 11,3 -webdav-search.patch Reckognize SEARCH webdav method - the Exchange 2000 - web frontend uses it (sigh). -pam-auth-reload.patch Make PAM reload time configurable on command line - ---- squid-2.4.4.orig/auth_modules/PAM/pam_auth.c -+++ squid-2.4.4/auth_modules/PAM/pam_auth.c -@@ -42,6 +42,7 @@ - #include <stdio.h> - #include <assert.h> - #include <stdlib.h> -+#include <unistd.h> - #include <string.h> - #include <signal.h> - #include <time.h> -@@ -56,8 +57,8 @@ - #define SQUID_PAM_SERVICE "squid" - #endif - --/* How often to reinitialize PAM, in seconds. Undefined = never, 0=always */ --/* #define PAM_CONNECTION_TTL 60 */ -+/* How often to reinitialize PAM, in seconds. -1 = never, 0=always */ -+#define PAM_CONNECTION_TTL -1 - - static int reset_pam = 1; /* Set to one if it is time to reset PAM processing */ - -@@ -111,6 +112,13 @@ - } - - int -+usage(void) -+{ -+ fprintf(stderr, "Usage: pam_auth [-r seconds]\n"); -+ exit(1); -+} -+ -+int - main(int argc, char *argv[]) - { - pam_handle_t *pamh = NULL; -@@ -119,6 +127,18 @@ - /* char *password; */ - char buf[BUFSIZE]; - time_t pamh_created = 0; -+ int c, pam_connection_ttl = PAM_CONNECTION_TTL; -+ extern char *optarg; -+ extern int optind; -+ -+ while ((c = getopt(argc, argv, "r:")) != EOF) switch (c) { -+ case 'r': -+ pam_connection_ttl = atoi(optarg); -+ break; -+ default: -+ usage(); -+ } -+ if (optind < argc) usage(); - - signal(SIGHUP, signal_received); - -@@ -142,10 +162,10 @@ - } - *password++ = '\0'; - conv.appdata_ptr = (char *) password; /* from buf above. not allocated */ --#ifdef PAM_CONNECTION_TTL -- if (pamh_created + PAM_CONNECTION_TTL >= time(NULL)) -+ if (pam_connection_ttl >= 0 && -+ pamh_created + pam_connection_ttl <= time(NULL)) - reset_pam = 1; --#endif -+ - if (reset_pam && pamh) { - /* Close previous PAM connection */ - retval = pam_end(pamh, retval); ---- squid-2.4.4.orig/auth_modules/SMB/Makefile.in -+++ squid-2.4.4/auth_modules/SMB/Makefile.in -@@ -11,7 +11,8 @@ - # by using the --prefix option when configuring Samba, you need to change - # SAMBAPREFIX accordingly. - --SAMBAPREFIX=/usr/local/samba -+#SAMBAPREFIX=/usr/local/samba -+SAMBAPREFIX=/usr - - prefix = @prefix@ - exec_prefix = @exec_prefix@ ---- squid-2.4.4.orig/auth_modules/SMB/smb_auth.sh -+++ squid-2.4.4/auth_modules/SMB/smb_auth.sh -@@ -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 - ---- squid-2.4.4.orig/src/cf.data.pre -+++ squid-2.4.4/src/cf.data.pre -@@ -98,12 +98,12 @@ - NAME: htcp_port - IFDEF: USE_HTCP - TYPE: ushort --DEFAULT: 4827 -+DEFAULT: 0 - LOC: Config.Port.htcp - DOC_START - The port number where Squid sends and receives HTCP queries to -- and from neighbor caches. Default is 4827. To disable use -- "0". -+ and from neighbor caches. To turn it on you want to set it 4827. -+ By default it is set to "0" (disabled). - - To enable this option, you must use --enable-htcp with the - configure script. -@@ -1294,7 +1294,7 @@ - 'Max' is an upper limit on how long objects without an explicit - expiry time will be considered fresh. - -- options: overrsde-expire -+ options: override-expire - override-lastmod - reload-into-ims - ignore-reload -@@ -1730,6 +1730,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 -@@ -1763,6 +1765,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 -@@ -1890,19 +1895,19 @@ - - NAME: cache_effective_user - TYPE: string --DEFAULT: nobody -+DEFAULT: squid - LOC: Config.effectiveUser - DOC_NONE - - NAME: cache_effective_group - TYPE: string --DEFAULT: nogroup -+DEFAULT: squid - LOC: Config.effectiveGroup - DOC_START - - If the cache is run as root, it will change its effective/real - UID/GID to the UID/GID specified below. The default is to -- change to UID to nobody and GID to nogroup. -+ change to UID to squid and GID to squid. - - If Squid is not started as root, the default is to keep the - current UID/GID. Note that if Squid is not started as root then -@@ -2657,12 +2665,15 @@ - NAME: snmp_port - TYPE: ushort - LOC: Config.Port.snmp --DEFAULT: 3401 -+DEFAULT: 0 - IFDEF: SQUID_SNMP - DOC_START - Squid can now serve statistics and status information via SNMP. - By default it listens to port 3401 on the machine. If you don't - wish to use SNMP, set this to "0". -+ -+ Note: on Gentoo Linux, the default is zero - you need to -+ set it to 3401 to enable it. - - NOTE: SNMP support requires use the --enable-snmp configure - command line option. ---- squid-2.4.4.orig/src/client_side.c -+++ squid-2.4.4/src/client_side.c -@@ -1702,7 +1702,7 @@ - fd, storeUrl(entry), (int) http->out.offset); - if (conn->chr != http) { - /* there is another object in progress, defer this one */ -- debug(33, 1) ("clientSendMoreData: Deferring %s\n", storeUrl(entry)); -+ debug(33, 2) ("clientSendMoreData: Deferring %s\n", storeUrl(entry)); - memFree(buf, MEM_CLIENT_SOCK_BUF); - return; - } else if (entry && EBIT_TEST(entry->flags, ENTRY_ABORTED)) { -@@ -1876,7 +1876,7 @@ - * execution will resume after the operation completes. - */ - } else { -- debug(33, 1) ("clientKeepaliveNextRequest: FD %d Sending next\n", -+ debug(33, 2) ("clientKeepaliveNextRequest: FD %d Sending next\n", - conn->fd); - assert(entry); - if (0 == storeClientCopyPending(http->sc, entry, http)) { ---- squid-2.4.4.orig/src/debug.c -+++ squid-2.4.4/src/debug.c -@@ -74,6 +74,9 @@ - #else - format = va_arg(args1, const char *); - #endif -+ /* give a chance to context-based debugging to print current context */ -+ if (debug_log && !Ctx_Lock) -+ ctx_print(); - snprintf(f, BUFSIZ, "%s| %s", - debugLogTime(squid_curtime), - format); -@@ -94,9 +97,6 @@ - { - if (debug_log == NULL) - return; -- /* give a chance to context-based debugging to print current context */ -- if (!Ctx_Lock) -- ctx_print(); - vfprintf(debug_log, format, args); - if (!Config.onoff.buffered_logs) - fflush(debug_log); -@@ -201,9 +201,9 @@ - } - debugOpenLog(logfile); - --#if HAVE_SYSLOG && defined(LOG_LOCAL4) -+#if HAVE_SYSLOG - if (opt_syslog_enable) -- openlog(appname, LOG_PID | LOG_NDELAY | LOG_CONS, LOG_LOCAL4); -+ openlog(appname, LOG_PID | LOG_NDELAY, LOG_DAEMON); - #endif /* HAVE_SYSLOG */ - - } ---- squid-2.4.4.orig/src/defines.h -+++ squid-2.4.4/src/defines.h -@@ -219,7 +219,7 @@ - #define N_COUNT_HOUR_HIST (86400 * 3) / (60 * COUNT_INTERVAL) - - /* were to look for errors if config path fails */ --#define DEFAULT_SQUID_ERROR_DIR "/usr/local/squid/etc/errors" -+#define DEFAULT_SQUID_ERROR_DIR "/usr/lib/squid/errors/English" - - /* gb_type operations */ - #define gb_flush_limit (0x3FFFFFFF) ---- squid-2.4.4.orig/src/enums.h -+++ squid-2.4.4/src/enums.h -@@ -393,6 +393,7 @@ - METHOD_EXT17, - METHOD_EXT18, - METHOD_EXT19, -+ METHOD_SEARCH, /* Exchange 2000 web frontend */ - METHOD_ENUM_END - }; - typedef unsigned int method_t; ---- squid-2.4.4.orig/src/main.c -+++ squid-2.4.4/src/main.c -@@ -83,7 +83,7 @@ - usage(void) - { - fprintf(stderr, -- "Usage: %s [-dhsvzCDFNRVYX] [-f config-file] [-[au] port] [-k signal]\n" -+ "Usage: %s [-hsvzCDFNRSVXY] [-d level] [-f file] [-[au] port] [-k signal]\n" - " -a port Specify HTTP port number (default: %d).\n" - " -d level Write debugging to stderr also.\n" - " -f file Use given config-file instead of\n" -@@ -320,6 +320,21 @@ - asnFreeMemory(); - } - -+#if USE_UNLINKD -+static int -+needUnlinkd(void) -+{ -+ int i; -+ int r = 0; -+ for (i = 0; i < Config.cacheSwap.n_configured; i++) { -+ if (strcmp(Config.cacheSwap.swapDirs[i].type, "ufs") == 0 || -+ strcmp(Config.cacheSwap.swapDirs[i].type, "diskd") == 0) -+ r++; -+ } -+ return r; -+} -+#endif -+ - static void - mainReconfigure(void) - { -@@ -344,6 +359,9 @@ - #endif - redirectShutdown(); - authenticateShutdown(); -+#if USE_UNLINKD -+ unlinkdClose(); -+#endif - storeDirCloseSwapLogs(); - errorClean(); - mimeFreeMemory(); -@@ -362,6 +380,9 @@ - #if USE_WCCP - wccpInit(); - #endif -+#if USE_UNLINKD -+ if (needUnlinkd()) unlinkdInit(); -+#endif - serverConnectionsOpen(); - if (theOutIcpConnection >= 0) { - if (!Config2.Accel.on || Config.onoff.accel_with_proxy) -@@ -507,7 +528,7 @@ - - if (!configured_once) { - #if USE_UNLINKD -- unlinkdInit(); -+ if (needUnlinkd()) unlinkdInit(); - #endif - urlInitialize(); - cachemgrInit(); -@@ -835,7 +856,7 @@ - int nullfd; - if (*(argv[0]) == '(') - return; -- openlog(appname, LOG_PID | LOG_NDELAY | LOG_CONS, LOG_LOCAL4); -+ openlog(appname, LOG_PID | LOG_NDELAY, LOG_DAEMON); - if ((pid = fork()) < 0) - syslog(LOG_ALERT, "fork failed: %s", xstrerror()); - else if (pid > 0) ---- squid-2.4.4.orig/src/squid.h -+++ squid-2.4.4/src/squid.h -@@ -45,10 +45,24 @@ - */ - #define CHANGE_FD_SETSIZE 1 - --/* Cannot increase FD_SETSIZE on Linux */ -+/* -+ * Cannot increase FD_SETSIZE on Linux, but we can increase __FD_SETSIZE -+ * with glibc 2.2 (or later? remains to be seen). We do this by including -+ * bits/types.h which defines __FD_SETSIZE first, then we redefine -+ * FD_SETSIZE. Ofcourse a user program may NEVER include bits/whatever.h -+ * directly, so this is a dirty hack! -+ */ - #if defined(_SQUID_LINUX_) --#undef CHANGE_FD_SETSIZE --#define CHANGE_FD_SETSIZE 0 -+# undef CHANGE_FD_SETSIZE -+# define CHANGE_FD_SETSIZE 0 -+# include <features.h> -+# if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) -+# if SQUID_MAXFD > DEFAULT_FD_SETSIZE -+# include <bits/types.h> -+# undef __FD_SETSIZE -+# define __FD_SETSIZE SQUID_MAXFD -+# endif -+# endif - #endif - - /* ---- squid-2.4.4.orig/src/url.c -+++ squid-2.4.4/src/url.c -@@ -77,6 +77,7 @@ - "%EXT17", - "%EXT18", - "%EXT19", -+ "SEARCH", /* Exchange 2000 web frontend */ - "ERROR" - }; - -@@ -308,7 +309,7 @@ - /* remove duplicate dots */ - while ((t = strstr(host, ".."))) - xmemmove(t, t + 1, strlen(t)); -- if (Config.appendDomain && !strchr(host, '.')) -+ if (Config.appendDomain && !strchr(host, '.') && strcasecmp(host, "localhost") != 0) - strncat(host, Config.appendDomain, SQUIDHOSTNAMELEN); - if (port == 0) { - debug(23, 3) ("urlParse: Invalid port == 0\n"); diff --git a/www-proxy/squid/files/squid-2.4.7-gentoo.diff b/www-proxy/squid/files/squid-2.4.7-gentoo.diff deleted file mode 100644 index c24a27016174..000000000000 --- a/www-proxy/squid/files/squid-2.4.7-gentoo.diff +++ /dev/null @@ -1,40 +0,0 @@ -diff -ur squid-2.4.STABLE4.orig/icons/Makefile.in squid-2.4.STABLE4/icons/Makefile.in ---- squid-2.4.STABLE4.orig/icons/Makefile.in Tue Jan 16 16:12:30 2001 -+++ squid-2.4.STABLE4/icons/Makefile.in Wed Mar 20 09:40:19 2002 -@@ -15,7 +15,7 @@ - - INSTALL = @INSTALL@ - INSTALL_FILE = @INSTALL_DATA@ --DEFAULT_ICON_DIR = $(sysconfdir)/icons -+DEFAULT_ICON_DIR = $(libexecdir)/icons - - ICONS = anthony-binhex.gif \ - anthony-bomb.gif \ -diff -ur squid-2.4.STABLE6.orig/src/Makefile.in squid-2.4.STABLE6/src/Makefile.in ---- squid-2.4.STABLE6.orig/src/Makefile.in Wed Apr 4 03:01:12 2001 -+++ squid-2.4.STABLE6/src/Makefile.in Wed Mar 20 14:18:58 2002 -@@ -37,17 +37,17 @@ - DEFAULT_CONFIG_FILE = $(sysconfdir)/squid.conf - DEFAULT_MIME_TABLE = $(sysconfdir)/mime.conf - DEFAULT_DNSSERVER = $(libexecdir)/$(DNSSERVER_EXE) --DEFAULT_CACHE_LOG = $(localstatedir)/logs/cache.log --DEFAULT_ACCESS_LOG = $(localstatedir)/logs/access.log --DEFAULT_STORE_LOG = $(localstatedir)/logs/store.log --DEFAULT_PID_FILE = $(localstatedir)/logs/squid.pid --DEFAULT_SWAP_DIR = $(localstatedir)/cache -+DEFAULT_CACHE_LOG = $(localstatedir)/log/squid/cache.log -+DEFAULT_ACCESS_LOG = $(localstatedir)/log/squid/access.log -+DEFAULT_STORE_LOG = $(localstatedir)/log/squid/store.log -+DEFAULT_PID_FILE = $(localstatedir)/run/squid.pid -+DEFAULT_SWAP_DIR = $(localstatedir)/cache/squid - DEFAULT_PINGER = $(libexecdir)/$(PINGER_EXE) - DEFAULT_UNLINKD = $(libexecdir)/$(UNLINKD_EXE) - DEFAULT_DISKD = $(libexecdir)/$(DISKD_EXE) --DEFAULT_ICON_DIR = $(sysconfdir)/icons -+DEFAULT_ICON_DIR = $(libexecdir)/icons - DEFAULT_ERROR_DIR = $(sysconfdir)/errors --DEFAULT_MIB_PATH = $(sysconfdir)/mib.txt -+DEFAULT_MIB_PATH = $(libexecdir)/mib.txt - - CC = @CC@ - MAKEDEPEND = @MAKEDEPEND@ diff --git a/www-proxy/squid/files/squid-2.5.3-gentoo.diff b/www-proxy/squid/files/squid-2.5.3-gentoo.diff deleted file mode 100644 index f4ab4c7dbc49..000000000000 --- a/www-proxy/squid/files/squid-2.5.3-gentoo.diff +++ /dev/null @@ -1,336 +0,0 @@ -diff -uNr squid-2.5.STABLE3.orig/errors/Makefile.in squid-2.5.STABLE3/errors/Makefile.in ---- squid-2.5.STABLE3.orig/errors/Makefile.in 2003-02-11 21:02:09.000000000 -0500 -+++ squid-2.5.STABLE3/errors/Makefile.in 2003-06-03 01:23:51.000000000 -0400 -@@ -116,7 +116,7 @@ - install_sh = @install_sh@ - makesnmplib = @makesnmplib@ - --errordir = $(datadir)/errors -+errordir = $(libexecdir)/errors - - DEFAULT_ERROR_DIR = $(errordir) - -diff -uNr squid-2.5.STABLE3.orig/helpers/basic_auth/SMB/Makefile.in squid-2.5.STABLE3/helpers/basic_auth/SMB/Makefile.in ---- squid-2.5.STABLE3.orig/helpers/basic_auth/SMB/Makefile.in 2003-02-11 21:02:25.000000000 -0500 -+++ squid-2.5.STABLE3/helpers/basic_auth/SMB/Makefile.in 2003-06-03 01:23:51.000000000 -0400 -@@ -126,7 +126,7 @@ - makesnmplib = @makesnmplib@ - - 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 -uNr squid-2.5.STABLE3.orig/helpers/basic_auth/SMB/smb_auth.sh squid-2.5.STABLE3/helpers/basic_auth/SMB/smb_auth.sh ---- squid-2.5.STABLE3.orig/helpers/basic_auth/SMB/smb_auth.sh 2001-01-07 18:36:46.000000000 -0500 -+++ squid-2.5.STABLE3/helpers/basic_auth/SMB/smb_auth.sh 2003-06-03 01:23:51.000000000 -0400 -@@ -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 -uNr squid-2.5.STABLE3.orig/icons/Makefile.in squid-2.5.STABLE3/icons/Makefile.in ---- squid-2.5.STABLE3.orig/icons/Makefile.in 2003-05-21 20:15:40.000000000 -0400 -+++ squid-2.5.STABLE3/icons/Makefile.in 2003-06-03 01:23:51.000000000 -0400 -@@ -144,7 +144,7 @@ - anthony-xpm.gif - - --icondir = $(datadir)/icons -+icondir = $(libexecdir)/icons - icon_DATA = $(ICON1) $(ICON2) - EXTRA_DIST = $(ICON1) $(ICON2) icons.shar - DISTCLEANFILES = -diff -uNr squid-2.5.STABLE3.orig/src/Makefile.in squid-2.5.STABLE3/src/Makefile.in ---- squid-2.5.STABLE3.orig/src/Makefile.in 2003-02-11 21:03:14.000000000 -0500 -+++ squid-2.5.STABLE3/src/Makefile.in 2003-06-03 01:23:51.000000000 -0400 -@@ -374,18 +374,18 @@ - DEFAULT_CONFIG_FILE = $(sysconfdir)/squid.conf - DEFAULT_MIME_TABLE = $(sysconfdir)/mime.conf - DEFAULT_DNSSERVER = $(libexecdir)/dnsserver$(EXEEXT) --DEFAULT_LOG_PREFIX = $(localstatedir)/logs --DEFAULT_CACHE_LOG = $(DEFAULT_LOG_PREFIX)/cache.log --DEFAULT_ACCESS_LOG = $(DEFAULT_LOG_PREFIX)/access.log --DEFAULT_STORE_LOG = $(DEFAULT_LOG_PREFIX)/store.log --DEFAULT_PID_FILE = $(DEFAULT_LOG_PREFIX)/squid.pid --DEFAULT_SWAP_DIR = $(localstatedir)/cache -+DEFAULT_LOG_PREFIX = $(localstatedir)/log -+DEFAULT_CACHE_LOG = $(localstatedir)/log/squid/cache.log -+DEFAULT_ACCESS_LOG = $(localstatedir)/log/squid/access.log -+DEFAULT_STORE_LOG = $(localstatedir)/log/squid/store.log -+DEFAULT_PID_FILE = $(localstatedir)/run/squid.pid -+DEFAULT_SWAP_DIR = $(localstatedir)/cache/squid - DEFAULT_PINGER = $(libexecdir)/pinger$(EXEEXT) - DEFAULT_UNLINKD = $(libexecdir)/unlinkd$(EXEEXT) - DEFAULT_DISKD = $(libexecdir)/diskd$(EXEEXT) --DEFAULT_ICON_DIR = $(datadir)/icons --DEFAULT_ERROR_DIR = $(datadir)/errors/@ERR_DEFAULT_LANGUAGE@ --DEFAULT_MIB_PATH = $(datadir)/mib.txt -+DEFAULT_ICON_DIR = $(libexecdir)/icons -+DEFAULT_ERROR_DIR = $(sysconfdir)/errors -+DEFAULT_MIB_PATH = $(libexecdir)/mib.txt - - DEFS = @DEFS@ -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" - -@@ -836,12 +836,12 @@ - uninstall-info-am: - install-dataDATA: $(data_DATA) - @$(NORMAL_INSTALL) -- $(mkinstalldirs) $(DESTDIR)$(datadir) -+ $(mkinstalldirs) $(DESTDIR)$(libexecdir) - @list='$(data_DATA)'; for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - f="`echo $$p | sed -e 's|^.*/||'`"; \ -- echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(datadir)/$$f"; \ -- $(INSTALL_DATA) $$d$$p $(DESTDIR)$(datadir)/$$f; \ -+ echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(libexecdir)/$$f"; \ -+ $(INSTALL_DATA) $$d$$p $(DESTDIR)$(libexecdir)/$$f; \ - done - - uninstall-dataDATA: -diff -uNr squid-2.5.STABLE3.orig/src/cf.data.pre squid-2.5.STABLE3/src/cf.data.pre ---- squid-2.5.STABLE3.orig/src/cf.data.pre 2003-05-21 10:34:38.000000000 -0400 -+++ squid-2.5.STABLE3/src/cf.data.pre 2003-06-03 01:28:47.000000000 -0400 -@@ -156,12 +156,12 @@ - NAME: htcp_port - IFDEF: USE_HTCP - TYPE: ushort --DEFAULT: 4827 -+DEFAULT: 0 - LOC: Config.Port.htcp - DOC_START - The port number where Squid sends and receives HTCP queries to -- and from neighbor caches. Default is 4827. To disable use -- "0". -+ and from neighbor caches. To turn it on you want to set it to -+ 4827. By default it is set to "0" (disabled). - DOC_END - - -@@ -2032,6 +2032,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 -@@ -2065,6 +2067,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 -@@ -2083,6 +2088,9 @@ - #acl our_networks src 192.168.1.0/24 192.168.2.0/24 - #http_access allow our_networks - -+# 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 -@@ -2299,7 +2307,7 @@ - - NAME: cache_mgr - TYPE: string --DEFAULT: webmaster -+DEFAULT: root - LOC: Config.adminEmail - DOC_START - Email-address of local cache manager who will receive -@@ -2309,20 +2317,20 @@ - - NAME: cache_effective_user - TYPE: string --DEFAULT: nobody -+DEFAULT: squid - LOC: Config.effectiveUser - DOC_NONE - - NAME: cache_effective_group - TYPE: string --DEFAULT: none -+DEFAULT: squid - LOC: Config.effectiveGroup - DOC_START - - If you start Squid as root, it will change its effective/real -- UID/GID to the UID/GID specified below. The default is to -- change to UID to nobody. If you define cache_effective_user, -- but not cache_effective_group, Squid sets the GID the -+ UID/GID to the ones specified below. The default is to -+ change to UID squid. If you define cache_effective_user, -+ but not cache_effective_group, Squid sets the GID to the - effective user's default group ID (taken from the password - file). - -@@ -3085,7 +3093,11 @@ - If you wish to create your own versions of the default - (English) error files, either to customize them to suit your - language or company copy the template English files to another -- directory and point this tag at them. -+ directory where the error files are read from. -+ /usr/lib/squid/errors contains sets of error files -+ in different languages. The default error directory -+ is /etc/squid/errors, which is a link to one of these -+ error sets. - DOC_END - - NAME: minimum_retry_timeout -@@ -3127,12 +3139,15 @@ - NAME: snmp_port - TYPE: ushort - LOC: Config.Port.snmp --DEFAULT: 3401 -+DEFAULT: 0 - IFDEF: SQUID_SNMP - DOC_START - Squid can now serve statistics and status information via SNMP. - By default it listens to port 3401 on the machine. If you don't - wish to use SNMP, set this to "0". -+ -+ Note: on Gentoo Linux, the default is zero - you need to -+ set it to 3401 to enable it. - DOC_END - - NAME: snmp_access -diff -uNr squid-2.5.STABLE3.orig/src/debug.c squid-2.5.STABLE3/src/debug.c ---- squid-2.5.STABLE3.orig/src/debug.c 2001-12-17 13:01:54.000000000 -0500 -+++ squid-2.5.STABLE3/src/debug.c 2003-06-03 01:23:51.000000000 -0400 -@@ -200,9 +200,9 @@ - } - debugOpenLog(logfile); - --#if HAVE_SYSLOG && defined(LOG_LOCAL4) -+#if HAVE_SYSLOG - if (opt_syslog_enable) -- openlog(appname, LOG_PID | LOG_NDELAY | LOG_CONS, LOG_LOCAL4); -+ openlog(appname, LOG_PID | LOG_NDELAY, LOG_DAEMON); - #endif /* HAVE_SYSLOG */ - - } -diff -uNr squid-2.5.STABLE3.orig/src/defines.h squid-2.5.STABLE3/src/defines.h ---- squid-2.5.STABLE3.orig/src/defines.h 2002-08-08 16:17:39.000000000 -0400 -+++ squid-2.5.STABLE3/src/defines.h 2003-06-03 01:23:51.000000000 -0400 -@@ -219,7 +219,7 @@ - - /* were to look for errors if config path fails */ - #ifndef DEFAULT_SQUID_ERROR_DIR --#define DEFAULT_SQUID_ERROR_DIR "/usr/local/squid/etc/errors" -+#define DEFAULT_SQUID_ERROR_DIR "/usr/lib/squid/errors/English" - #endif - - /* gb_type operations */ -diff -uNr squid-2.5.STABLE3.orig/src/main.c squid-2.5.STABLE3/src/main.c ---- squid-2.5.STABLE3.orig/src/main.c 2003-05-05 20:24:14.000000000 -0400 -+++ squid-2.5.STABLE3/src/main.c 2003-06-03 01:23:51.000000000 -0400 -@@ -326,6 +326,21 @@ - asnFreeMemory(); - } - -+#if USE_UNLINKD -+static int -+needUnlinkd(void) -+{ -+ int i; -+ int r = 0; -+ for (i = 0; i < Config.cacheSwap.n_configured; i++) { -+ if (strcmp(Config.cacheSwap.swapDirs[i].type, "ufs") == 0 || -+ strcmp(Config.cacheSwap.swapDirs[i].type, "diskd") == 0) -+ r++; -+ } -+ return r; -+} -+#endif -+ - static void - mainReconfigure(void) - { -@@ -351,6 +366,7 @@ - redirectShutdown(); - authenticateShutdown(); - externalAclShutdown(); -+ unlinkdClose(); - storeDirCloseSwapLogs(); - storeLogClose(); - accessLogClose(); -@@ -381,6 +397,9 @@ - #if USE_WCCP - wccpInit(); - #endif -+#if USE_UNLINKD -+ if (needUnlinkd()) unlinkdInit(); -+#endif - serverConnectionsOpen(); - if (theOutIcpConnection >= 0) { - if (!Config2.Accel.on || Config.onoff.accel_with_proxy) -@@ -524,7 +543,7 @@ - - if (!configured_once) { - #if USE_UNLINKD -- unlinkdInit(); -+ if (needUnlinkd()) unlinkdInit(); - #endif - urlInitialize(); - cachemgrInit(); -@@ -858,7 +877,7 @@ - int nullfd; - if (*(argv[0]) == '(') - return; -- openlog(appname, LOG_PID | LOG_NDELAY | LOG_CONS, LOG_LOCAL4); -+ openlog(appname, LOG_PID | LOG_NDELAY, LOG_DAEMON); - if ((pid = fork()) < 0) - syslog(LOG_ALERT, "fork failed: %s", xstrerror()); - else if (pid > 0) -@@ -893,14 +912,14 @@ - mainStartScript(argv[0]); - if ((pid = fork()) == 0) { - /* child */ -- openlog(appname, LOG_PID | LOG_NDELAY | LOG_CONS, LOG_LOCAL4); -+ openlog(appname, LOG_PID | LOG_NDELAY, LOG_DAEMON); - prog = xstrdup(argv[0]); - argv[0] = xstrdup("(squid)"); - execvp(prog, argv); - syslog(LOG_ALERT, "execvp failed: %s", xstrerror()); - } - /* parent */ -- openlog(appname, LOG_PID | LOG_NDELAY | LOG_CONS, LOG_LOCAL4); -+ openlog(appname, LOG_PID | LOG_NDELAY, LOG_DAEMON); - syslog(LOG_NOTICE, "Squid Parent: child process %d started", pid); - time(&start); - squid_signal(SIGINT, SIG_IGN, SA_RESTART); -diff -uNr squid-2.5.STABLE3.orig/src/url.c squid-2.5.STABLE3/src/url.c ---- squid-2.5.STABLE3.orig/src/url.c 2003-01-18 09:16:49.000000000 -0500 -+++ squid-2.5.STABLE3/src/url.c 2003-06-03 01:23:51.000000000 -0400 -@@ -312,8 +312,8 @@ - return NULL; - } - #endif -- if (Config.appendDomain && !strchr(host, '.')) -- strncat(host, Config.appendDomain, SQUIDHOSTNAMELEN); -+ if (Config.appendDomain && !strchr(host, '.') && strcasecmp(host, "localhost") != 0) -+ strncat(host, Config.appendDomain, SQUIDHOSTNAMELEN); - /* remove trailing dots from hostnames */ - while ((l = strlen(host)) > 0 && host[--l] == '.') - host[l] = '\0'; diff --git a/www-proxy/squid/files/squid-2.5.5-ntml-auth-fix.patch b/www-proxy/squid/files/squid-2.5.5-ntml-auth-fix.patch deleted file mode 100644 index de579da11bcf..000000000000 --- a/www-proxy/squid/files/squid-2.5.5-ntml-auth-fix.patch +++ /dev/null @@ -1,72 +0,0 @@ ---- squid-2.5.STABLE5/helpers/ntlm_auth/SMB/libntlmssp.c 30 Nov 2001 09:50:28 -0000 1.7 -+++ squid-2.5.STABLE5/helpers/ntlm_auth/SMB/libntlmssp.c 20 May 2004 22:31:33 -0000 -@@ -161,7 +161,10 @@ make_challenge(char *domain, char *domai - #define min(A,B) (A<B?A:B) - - int ntlm_errno; --static char credentials[1024]; /* we can afford to waste */ -+#define MAX_USERNAME_LEN 255 -+#define MAX_DOMAIN_LEN 255 -+#define MAX_PASSWD_LEN 31 -+static char credentials[MAX_USERNAME_LEN+MAX_DOMAIN_LEN+2]; /* we can afford to waste */ - - - /* Fetches the user's credentials from the challenge. -@@ -197,7 +200,7 @@ char * - ntlm_check_auth(ntlm_authenticate * auth, int auth_length) - { - int rv; -- char pass[25] /*, encrypted_pass[40] */; -+ char pass[MAX_PASSWD_LEN+1]; - char *domain = credentials; - char *user; - lstring tmp; -@@ -215,8 +218,13 @@ ntlm_check_auth(ntlm_authenticate * auth - ntlm_errno = NTLM_LOGON_ERROR; - return NULL; - } -+ if (tmp.l > MAX_DOMAIN_LEN) { -+ debug("Domain string exceeds %d bytes, rejecting\n", MAX_DOMAIN_LEN); -+ ntlm_errno = NTLM_LOGON_ERROR; -+ return NULL; -+ } - memcpy(domain, tmp.str, tmp.l); -- user = domain + tmp.l; -+ user = domain + tmp.l + 1; - *user++ = '\0'; - - /* debug("fetching user name\n"); */ -@@ -226,20 +234,30 @@ ntlm_check_auth(ntlm_authenticate * auth - ntlm_errno = NTLM_LOGON_ERROR; - return NULL; - } -+ if (tmp.l > MAX_USERNAME_LEN) { -+ debug("Username string exceeds %d bytes, rejecting\n", MAX_USERNAME_LEN); -+ ntlm_errno = NTLM_LOGON_ERROR; -+ return NULL; -+ } - memcpy(user, tmp.str, tmp.l); - *(user + tmp.l) = '\0'; - - -- /* Authenticating against the NT response doesn't seem to work... */ -+ /* Authenticating against the NT response doesn't seem to work... */ - tmp = ntlm_fetch_string((char *) auth, auth_length, &auth->lmresponse); - if (tmp.str == NULL || tmp.l == 0) { - fprintf(stderr, "No auth at all. Returning no-auth\n"); - ntlm_errno = NTLM_LOGON_ERROR; - return NULL; - } -- -+ if (tmp.l > MAX_PASSWD_LEN) { -+ debug("Password string exceeds %d bytes, rejecting\n", MAX_PASSWD_LEN); -+ ntlm_errno = NTLM_LOGON_ERROR; -+ return NULL; -+ } -+ - memcpy(pass, tmp.str, tmp.l); -- pass[25] = '\0'; -+ pass[min(MAX_PASSWD_LEN,tmp.l)] = '\0'; - - #if 1 - debug ("Empty LM pass detection: user: '%s', ours:'%s', his: '%s'" diff --git a/www-proxy/squid/files/squid-2.5.6-ufs-no-valid-dir.patch b/www-proxy/squid/files/squid-2.5.6-ufs-no-valid-dir.patch deleted file mode 100644 index e2738191a0f8..000000000000 --- a/www-proxy/squid/files/squid-2.5.6-ufs-no-valid-dir.patch +++ /dev/null @@ -1,14 +0,0 @@ -Index: squid/src/fs/ufs/store_dir_ufs.c -diff -c squid/src/fs/ufs/store_dir_ufs.c:1.39.2.8 squid/src/fs/ufs/store_dir_ufs.c:1.39.2.9 -*** squid/src/fs/ufs/store_dir_ufs.c:1.39.2.8 Mon May 31 16:03:31 2004 ---- squid/src/fs/ufs/store_dir_ufs.c Wed Jul 14 10:26:12 2004 -*************** -*** 1636,1641 **** ---- 1636,1642 ---- - ufsinfo->swaplog_fd = -1; - ufsinfo->map = NULL; /* Debugging purposes */ - ufsinfo->suggest = 0; -+ ufsinfo->open_files = 0; - sd->init = storeUfsDirInit; - sd->newfs = storeUfsDirNewfs; - sd->dump = storeUfsDirDump; diff --git a/www-proxy/squid/files/squid-2.5.7-gentoo.diff b/www-proxy/squid/files/squid-2.5.7-gentoo.diff deleted file mode 100644 index 3906a8aec9c5..000000000000 --- a/www-proxy/squid/files/squid-2.5.7-gentoo.diff +++ /dev/null @@ -1,449 +0,0 @@ -diff -uNr squid-2.5.STABLE7.orig/errors/Makefile.in squid-2.5.STABLE7/errors/Makefile.in ---- squid-2.5.STABLE7.orig/errors/Makefile.in 2003-02-11 21:02:09.000000000 -0500 -+++ squid-2.5.STABLE7/errors/Makefile.in 2003-06-03 01:23:51.000000000 -0400 -@@ -116,7 +116,7 @@ - install_sh = @install_sh@ - makesnmplib = @makesnmplib@ - --errordir = $(datadir)/errors -+errordir = $(libexecdir)/errors - - DEFAULT_ERROR_DIR = $(errordir) - -diff -uNr squid-2.5.STABLE7.orig/helpers/basic_auth/SMB/Makefile.in squid-2.5.STABLE7/helpers/basic_auth/SMB/Makefile.in ---- squid-2.5.STABLE7.orig/helpers/basic_auth/SMB/Makefile.in 2003-02-11 21:02:25.000000000 -0500 -+++ squid-2.5.STABLE7/helpers/basic_auth/SMB/Makefile.in 2003-06-03 01:23:51.000000000 -0400 -@@ -126,7 +126,7 @@ - makesnmplib = @makesnmplib@ - - 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 -uNr squid-2.5.STABLE7.orig/helpers/basic_auth/SMB/smb_auth.sh squid-2.5.STABLE7/helpers/basic_auth/SMB/smb_auth.sh ---- squid-2.5.STABLE7.orig/helpers/basic_auth/SMB/smb_auth.sh 2001-01-07 18:36:46.000000000 -0500 -+++ squid-2.5.STABLE7/helpers/basic_auth/SMB/smb_auth.sh 2003-06-03 01:23:51.000000000 -0400 -@@ -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 -uNr squid-2.5.STABLE7.orig/icons/Makefile.in squid-2.5.STABLE7/icons/Makefile.in ---- squid-2.5.STABLE7.orig/icons/Makefile.in 2003-05-21 20:15:40.000000000 -0400 -+++ squid-2.5.STABLE7/icons/Makefile.in 2003-06-03 01:23:51.000000000 -0400 -@@ -144,7 +144,7 @@ - anthony-xpm.gif - - --icondir = $(datadir)/icons -+icondir = $(libexecdir)/icons - icon_DATA = $(ICON1) $(ICON2) - EXTRA_DIST = $(ICON1) $(ICON2) icons.shar - DISTCLEANFILES = -diff -uNr squid-2.5.STABLE7.orig/src/Makefile.in squid-2.5.STABLE7/src/Makefile.in ---- squid-2.5.STABLE7.orig/src/Makefile.in 2003-02-11 21:03:14.000000000 -0500 -+++ squid-2.5.STABLE7/src/Makefile.in 2003-06-03 01:23:51.000000000 -0400 -@@ -374,18 +374,18 @@ - DEFAULT_CONFIG_FILE = $(sysconfdir)/squid.conf - DEFAULT_MIME_TABLE = $(sysconfdir)/mime.conf - DEFAULT_DNSSERVER = $(libexecdir)/`echo dnsserver | sed '$(transform);s/$$/$(EXEEXT)/'` --DEFAULT_LOG_PREFIX = $(localstatedir)/logs --DEFAULT_CACHE_LOG = $(DEFAULT_LOG_PREFIX)/cache.log --DEFAULT_ACCESS_LOG = $(DEFAULT_LOG_PREFIX)/access.log --DEFAULT_STORE_LOG = $(DEFAULT_LOG_PREFIX)/store.log --DEFAULT_PID_FILE = $(DEFAULT_LOG_PREFIX)/squid.pid --DEFAULT_SWAP_DIR = $(localstatedir)/cache -+DEFAULT_LOG_PREFIX = $(localstatedir)/log -+DEFAULT_CACHE_LOG = $(localstatedir)/log/squid/cache.log -+DEFAULT_ACCESS_LOG = $(localstatedir)/log/squid/access.log -+DEFAULT_STORE_LOG = $(localstatedir)/log/squid/store.log -+DEFAULT_PID_FILE = $(localstatedir)/run/squid.pid -+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)/'` --DEFAULT_ICON_DIR = $(datadir)/icons --DEFAULT_ERROR_DIR = $(datadir)/errors/@ERR_DEFAULT_LANGUAGE@ --DEFAULT_MIB_PATH = $(datadir)/mib.txt -+DEFAULT_ICON_DIR = $(libexecdir)/icons -+DEFAULT_ERROR_DIR = $(sysconfdir)/errors -+DEFAULT_MIB_PATH = $(libexecdir)/mib.txt - - DEFS = @DEFS@ -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" - -@@ -836,12 +836,12 @@ - uninstall-info-am: - install-dataDATA: $(data_DATA) - @$(NORMAL_INSTALL) -- $(mkinstalldirs) $(DESTDIR)$(datadir) -+ $(mkinstalldirs) $(DESTDIR)$(libexecdir) - @list='$(data_DATA)'; for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - f="`echo $$p | sed -e 's|^.*/||'`"; \ -- echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(datadir)/$$f"; \ -- $(INSTALL_DATA) $$d$$p $(DESTDIR)$(datadir)/$$f; \ -+ echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(libexecdir)/$$f"; \ -+ $(INSTALL_DATA) $$d$$p $(DESTDIR)$(libexecdir)/$$f; \ - done - - uninstall-dataDATA: -diff -uNr squid-2.5.STABLE7.orig/src/debug.c squid-2.5.STABLE7/src/debug.c ---- squid-2.5.STABLE7.orig/src/debug.c 2001-12-17 13:01:54.000000000 -0500 -+++ squid-2.5.STABLE7/src/debug.c 2003-06-03 01:23:51.000000000 -0400 -@@ -200,9 +200,9 @@ - } - debugOpenLog(logfile); - --#if HAVE_SYSLOG && defined(LOG_LOCAL4) -+#if HAVE_SYSLOG - if (opt_syslog_enable) -- openlog(appname, LOG_PID | LOG_NDELAY | LOG_CONS, LOG_LOCAL4); -+ openlog(appname, LOG_PID | LOG_NDELAY, LOG_DAEMON); - #endif /* HAVE_SYSLOG */ - - } -diff -uNr squid-2.5.STABLE7.orig/src/defines.h squid-2.5.STABLE7/src/defines.h ---- squid-2.5.STABLE7.orig/src/defines.h 2002-08-08 16:17:39.000000000 -0400 -+++ squid-2.5.STABLE7/src/defines.h 2003-06-03 01:23:51.000000000 -0400 -@@ -219,7 +219,7 @@ - - /* were to look for errors if config path fails */ - #ifndef DEFAULT_SQUID_ERROR_DIR --#define DEFAULT_SQUID_ERROR_DIR "/usr/local/squid/etc/errors" -+#define DEFAULT_SQUID_ERROR_DIR "/usr/lib/squid/errors/English" - #endif - - /* gb_type operations */ -diff -uNr squid-2.5.STABLE7.orig/src/main.c squid-2.5.STABLE7/src/main.c ---- squid-2.5.STABLE7.orig/src/main.c 2003-05-05 20:24:14.000000000 -0400 -+++ squid-2.5.STABLE7/src/main.c 2003-06-03 01:23:51.000000000 -0400 -@@ -326,6 +326,21 @@ - asnFreeMemory(); - } - -+#if USE_UNLINKD -+static int -+needUnlinkd(void) -+{ -+ int i; -+ int r = 0; -+ for (i = 0; i < Config.cacheSwap.n_configured; i++) { -+ if (strcmp(Config.cacheSwap.swapDirs[i].type, "ufs") == 0 || -+ strcmp(Config.cacheSwap.swapDirs[i].type, "diskd") == 0) -+ r++; -+ } -+ return r; -+} -+#endif -+ - static void - mainReconfigure(void) - { -@@ -351,6 +366,7 @@ - redirectShutdown(); - authenticateShutdown(); - externalAclShutdown(); -+ unlinkdClose(); - storeDirCloseSwapLogs(); - storeLogClose(); - accessLogClose(); -@@ -381,6 +397,9 @@ - #if USE_WCCP - wccpInit(); - #endif -+#if USE_UNLINKD -+ if (needUnlinkd()) unlinkdInit(); -+#endif - serverConnectionsOpen(); - if (theOutIcpConnection >= 0) { - if (!Config2.Accel.on || Config.onoff.accel_with_proxy) -@@ -524,7 +543,7 @@ - - if (!configured_once) { - #if USE_UNLINKD -- unlinkdInit(); -+ if (needUnlinkd()) unlinkdInit(); - #endif - urlInitialize(); - cachemgrInit(); -@@ -858,7 +877,7 @@ - int nullfd; - if (*(argv[0]) == '(') - return; -- openlog(appname, LOG_PID | LOG_NDELAY | LOG_CONS, LOG_LOCAL4); -+ openlog(appname, LOG_PID | LOG_NDELAY, LOG_DAEMON); - if ((pid = fork()) < 0) - syslog(LOG_ALERT, "fork failed: %s", xstrerror()); - else if (pid > 0) -@@ -893,14 +912,14 @@ - mainStartScript(argv[0]); - if ((pid = fork()) == 0) { - /* child */ -- openlog(appname, LOG_PID | LOG_NDELAY | LOG_CONS, LOG_LOCAL4); -+ openlog(appname, LOG_PID | LOG_NDELAY, LOG_DAEMON); - prog = xstrdup(argv[0]); - argv[0] = xstrdup("(squid)"); - execvp(prog, argv); - syslog(LOG_ALERT, "execvp failed: %s", xstrerror()); - } - /* parent */ -- openlog(appname, LOG_PID | LOG_NDELAY | LOG_CONS, LOG_LOCAL4); -+ openlog(appname, LOG_PID | LOG_NDELAY, LOG_DAEMON); - syslog(LOG_NOTICE, "Squid Parent: child process %d started", pid); - time(&start); - squid_signal(SIGINT, SIG_IGN, SA_RESTART); -diff -uNr squid-2.5.STABLE7.orig/src/url.c squid-2.5.STABLE7/src/url.c ---- squid-2.5.STABLE7.orig/src/url.c 2003-01-18 09:16:49.000000000 -0500 -+++ squid-2.5.STABLE7/src/url.c 2003-06-03 01:23:51.000000000 -0400 -@@ -312,8 +312,8 @@ - return NULL; - } - #endif -- if (Config.appendDomain && !strchr(host, '.')) -- strncat(host, Config.appendDomain, SQUIDHOSTNAMELEN); -+ if (Config.appendDomain && !strchr(host, '.') && strcasecmp(host, "localhost") != 0) -+ strncat(host, Config.appendDomain, SQUIDHOSTNAMELEN); - /* remove trailing dots from hostnames */ - while ((l = strlen(host)) > 0 && host[--l] == '.') - host[l] = '\0'; ---- squid-2.5.STABLE7.orig/src/cf.data.pre 2004-10-09 03:41:10.000000000 +1000 -+++ squid-2.5.STABLE7/cf.data.pre 2004-10-17 12:19:41.902629720 +1000 -@@ -156,12 +156,12 @@ - NAME: htcp_port - IFDEF: USE_HTCP - TYPE: ushort --DEFAULT: 4827 -+DEFAULT: 0 - LOC: Config.Port.htcp - DOC_START - The port number where Squid sends and receives HTCP queries to -- and from neighbor caches. Default is 4827. To disable use -- "0". -+ and from neighbor caches. To turn it on you want to set it to -+ 4827. By default it is set to "0" (disabled). - DOC_END - - -@@ -2140,6 +2140,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 -@@ -2173,6 +2175,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 -@@ -2191,6 +2196,9 @@ - #acl our_networks src 192.168.1.0/24 192.168.2.0/24 - #http_access allow our_networks - -+# 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 -@@ -2415,7 +2423,7 @@ - - NAME: cache_mgr - TYPE: string --DEFAULT: webmaster -+DEFAULT: root - LOC: Config.adminEmail - DOC_START - Email-address of local cache manager who will receive -@@ -2425,7 +2433,7 @@ - - NAME: cache_effective_user - TYPE: string --DEFAULT: nobody -+DEFAULT: squid - LOC: Config.effectiveUser - DOC_START - If you start Squid as root, it will change its effective/real -@@ -2440,7 +2448,7 @@ - - NAME: cache_effective_group - TYPE: string --DEFAULT: none -+DEFAULT: squid - LOC: Config.effectiveGroup - DOC_START - If you want Squid to run with a specific GID regardless of -@@ -3214,7 +3222,11 @@ - If you wish to create your own versions of the default - (English) error files, either to customize them to suit your - language or company copy the template English files to another -- directory and point this tag at them. -+ directory where the error files are read from. -+ /usr/lib/squid/errors contains sets of error files -+ in different languages. The default error directory -+ is /etc/squid/errors, which is a link to one of these -+ error sets. - DOC_END - - NAME: maximum_single_addr_tries -@@ -3237,12 +3249,15 @@ - NAME: snmp_port - TYPE: ushort - LOC: Config.Port.snmp --DEFAULT: 3401 -+DEFAULT: 0 - IFDEF: SQUID_SNMP - DOC_START - Squid can now serve statistics and status information via SNMP. - By default it listens to port 3401 on the machine. If you don't - wish to use SNMP, set this to "0". -+ -+ Note: on Gentoo Linux, the default is zero - you need to -+ set it to 3401 to enable it. - DOC_END - - NAME: snmp_access ---- squid-2.5.STABLE7/snmplib/snmp_api.c.orig 2004-12-04 12:44:06.173684192 +1100 -+++ squid-2.5.STABLE7/snmplib/snmp_api.c 2004-12-04 12:44:24.644876144 +1100 -@@ -121,7 +121,7 @@ - } - - /* -- * Parses the packet recieved on the input session, and places the data into -+ * Parses the packet received on the input session, and places the data into - * the input pdu. length is the length of the input packet. If any errors - * are encountered, NULL is returned. If not, the community is. - */ ---- squid-2.5.STABLE7/src/auth/digest/auth_digest.c.orig 2004-12-04 12:44:39.407631864 +1100 -+++ squid-2.5.STABLE7/src/auth/digest/auth_digest.c 2004-12-04 12:45:01.422285128 +1100 -@@ -1252,7 +1252,7 @@ - nonce = authenticateDigestNonceFindNonce(digest_request->nonceb64); - if (!nonce) { - /* we couldn't find a matching nonce! */ -- debug(29, 4) ("authenticateDigestDecode: Unexpected or invalid nonce recieved\n"); -+ debug(29, 4) ("authenticateDigestDecode: Unexpected or invalid nonce received\n"); - authDigestLogUsername(auth_user_request, username); - - /* we don't need the scheme specific data anymore */ -@@ -1266,8 +1266,8 @@ - /* check the qop is what we expected. Note that for compatability with - * RFC 2069 we should support a missing qop. Tough. */ - if (!digest_request->qop || strcmp(digest_request->qop, QOP_AUTH)) { -- /* we recieved a qop option we didn't send */ -- debug(29, 4) ("authenticateDigestDecode: Invalid qop option recieved\n"); -+ /* we received a qop option we didn't send */ -+ debug(29, 4) ("authenticateDigestDecode: Invalid qop option received\n"); - authDigestLogUsername(auth_user_request, username); - - /* we don't need the scheme specific data anymore */ ---- squid-2.5.STABLE7/src/auth/ntlm/auth_ntlm.c.orig 2004-12-04 12:47:27.270112888 +1100 -+++ squid-2.5.STABLE7/src/auth/ntlm/auth_ntlm.c 2004-12-04 12:47:41.014023496 +1100 -@@ -951,7 +951,7 @@ - } - switch (ntlm_request->auth_state) { - case AUTHENTICATE_STATE_NONE: -- /* we've recieved a negotiate request. pass to a helper */ -+ /* we've received a negotiate request. pass to a helper */ - debug(29, 9) ("authenticateNTLMAuthenticateUser: auth state ntlm none. %s\n", proxy_auth); - ntlm_request->auth_state = AUTHENTICATE_STATE_NEGOTIATE; - ntlm_request->ntlmnegotiate = xstrdup(proxy_auth); -@@ -970,7 +970,7 @@ - return; - break; - case AUTHENTICATE_STATE_CHALLENGE: -- /* we should have recieved a NTLM challenge. pass it to the same -+ /* we should have received a NTLM challenge. pass it to the same - * helper process */ - debug(29, 9) ("authenticateNTLMAuthenticateUser: auth state challenge with header %s.\n", proxy_auth); - /* do a cache lookup here. If it matches it's a successful ntlm ---- squid-2.5.STABLE7/src/cf.data.pre.orig 2004-12-04 12:45:13.815401088 +1100 -+++ squid-2.5.STABLE7/src/cf.data.pre 2004-12-04 12:45:35.480107552 +1100 -@@ -2100,7 +2100,7 @@ - # acls. - - acl aclname rep_mime_type mime-type1 ... -- # regex match against the mime type of the reply recieved by -+ # regex match against the mime type of the reply received by - # squid. Can be used to detect file download or some - # types HTTP tunelling requests. - # NOTE: This has no effect in http_access rules. It only has -@@ -2396,7 +2396,7 @@ - DOC_START - This option specifies the maximum size of a reply body in bytes. - It can be used to prevent users from downloading very large files, -- such as MP3's and movies. When the reply headers are recieved, -+ such as MP3's and movies. When the reply headers are received, - the reply_body_max_size lines are processed, and the first line with - a result of "allow" is used as the maximum body size for this reply. - This size is checked twice. First when we get the reply headers, -@@ -2600,7 +2600,7 @@ - DOC_START - If you are running Squid as an accelerator and have a single backend - server set this to on. This causes Squid to forward the request -- to this server, regardles of what any redirectors or Host headers -+ to this server, regardless of what any redirectors or Host headers - say. - - Leave this at off if you have multiple backend servers, and use a ---- squid-2.5.STABLE7/src/mib.txt.orig 2004-12-04 12:45:47.854226400 +1100 -+++ squid-2.5.STABLE7/src/mib.txt 2004-12-04 12:46:06.349414704 +1100 -@@ -290,7 +290,7 @@ - MAX-ACCESS read-only - STATUS current - DESCRIPTION -- " Number of HTTP KB's recieved " -+ " Number of HTTP KB's received " - ::= { cacheProtoAggregateStats 4 } - - cacheHttpOutKb OBJECT-TYPE -@@ -330,7 +330,7 @@ - MAX-ACCESS read-only - STATUS current - DESCRIPTION -- " Number of ICP KB's recieved " -+ " Number of ICP KB's received " - ::= { cacheProtoAggregateStats 9 } - - cacheServerRequests OBJECT-TYPE -@@ -354,7 +354,7 @@ - MAX-ACCESS read-only - STATUS current - DESCRIPTION -- " KB's of traffic recieved from servers " -+ " KB's of traffic received from servers " - ::= { cacheProtoAggregateStats 12 } - - cacheServerOutKb OBJECT-TYPE ---- squid-2.5.STABLE7/src/delay_pools.c.orig 2004-12-04 12:46:15.246062208 +1100 -+++ squid-2.5.STABLE7/src/delay_pools.c 2004-12-04 12:46:25.598488400 +1100 -@@ -609,7 +609,7 @@ - } - - /* -- * this records actual bytes recieved. always recorded, even if the -+ * this records actual bytes received. always recorded, even if the - * class is disabled - it's more efficient to just do it than to do all - * the checks. - */ diff --git a/www-proxy/squid/files/squid-logrotate b/www-proxy/squid/files/squid-logrotate new file mode 100644 index 000000000000..72486b016fbf --- /dev/null +++ b/www-proxy/squid/files/squid-logrotate @@ -0,0 +1,8 @@ +/var/log/squid/*.log { + copytruncate + compress + notifempty + missingok + sharedscripts +} + diff --git a/www-proxy/squid/squid-2.4.7.ebuild b/www-proxy/squid/squid-2.4.7.ebuild deleted file mode 100644 index 62c97af09f55..000000000000 --- a/www-proxy/squid/squid-2.4.7.ebuild +++ /dev/null @@ -1,143 +0,0 @@ -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-proxy/squid/squid-2.4.7.ebuild,v 1.4 2005/01/11 21:38:53 cyfred Exp $ - -inherit eutils - -IUSE="snmp pam ldap debug selinux" - -# this could be cleaner.. -MY_P=${PN}-2.4.STABLE7 -S=${WORKDIR}/${MY_P} -DESCRIPTION="A caching web proxy, with advanced features" -HOMEPAGE="http://www.squid-cache.org/" -PATCH_URI="http://dev.gentoo.org/~cyfred/distfiles/squid-2.4.STABLE7-patches.tar.gz - http://dev.gentoo.org/~cyfred/distfiles/msntauth-v2.0.3-squid.2.tar.gz" -SRC_URI="ftp://ftp.squid-cache.org/pub/squid-2/STABLE/${MY_P}-src.tar.gz - ftp://sunsite.auc.dk/pub/infosystems/squid/squid-2/STABLE/${MY_P}-src.tar.gz - ${PATCH_URI}" - -SLOT="0" -LICENSE="GPL-2" -KEYWORDS="x86 ppc sparc alpha mips hppa" - -RDEPEND="pam? ( >=sys-libs/pam-0.72 ) - ldap? ( >=net-nds/openldap-2 ) - selinux? ( sec-policy/selinux-squid )" - -DEPEND=">=sys-apps/portage-2.0.47-r10 - >=sys-apps/sed-4.0.5 - dev-lang/perl" - -src_unpack() { - unpack ${A} - cd ${S} - # see the tops of these patches for details.. - epatch ${FILESDIR}/${P}-debian.diff - epatch ${FILESDIR}/${P}-gentoo.diff - - # We are applying several patches for the 2.4 tree - EPATCH_SUFFIX="patch" epatch ${WORKDIR}/patch - - # Now copy the msnt_auth updates over the top of the tree - einfo "Updating msnt_auth module" - rm -rf auth_modules/MSNT/* - cp ${WORKDIR}/msntauth-v2.0.3-squid.2/* auth_modules/MSNT/ - - if ! use debug - then - sed -i 's%LDFLAGS="-g"%LDFLAGS=""%' configure.in - autoconf || die - fi -} - -src_compile() { - local myconf mymodules - mymodules="getpwnam,YP,NCSA,SMB,MSNT,multi-domain-NTLM" - use ldap && mymodules="LDAP,${mymodules}" - use pam && mymodules="PAM,${mymodules}" - use snmp && myconf="--enable-snmp" - - ./configure \ - --prefix=/usr \ - --bindir=/usr/sbin \ - --exec-prefix=/usr \ - --sbindir=/usr/sbin \ - --localstatedir=/var \ - --sysconfdir=/etc/squid \ - --libexecdir=/usr/lib/squid \ - --enable-storeio="ufs,diskd,coss,aufs,null" \ - --enable-removal-policies="lru,heap" \ - --enable-auth-modules=${mymodules} \ - --enable-linux-netfilter \ - --disable-ident-lookups \ - --enable-useragent-log \ - --enable-cache-digests \ - --enable-delay-pools \ - --enable-referer-log \ - --enable-async-io \ - --enable-truncate \ - --enable-arp-acl \ - --with-pthreads \ - --enable-htcp \ - --enable-carp \ - --enable-poll \ - --host=${CHOST} ${myconf} || die "bad ./configure" - #--enable-icmp - - mv include/autoconf.h include/autoconf.h.orig - sed -e "s:^#define SQUID_MAXFD.*:#define SQUID_MAXFD 4096:" \ - include/autoconf.h.orig > include/autoconf.h - - emake || die "compile problem" -} - -src_install() { - make \ - prefix=${D}/usr \ - bindir=${D}/usr/sbin \ - localstatedir=${D}/var \ - sysconfdir=${D}/etc/squid \ - libexecdir=${D}/usr/lib/squid \ - install || die - - #make -C src install-pinger libexecdir=${D}/usr/lib/squid || die - #chown root:squid ${D}/usr/lib/squid/pinger - #chmod 4750 ${D}/usr/lib/squid/pinger - - mv ${D}/usr/sbin/{*_auth*,Run*} ${D}/usr/lib/squid - chown root:squid ${D}/usr/lib/squid/pam_auth - chmod 2750 ${D}/usr/lib/squid/pam_auth - - rm -rf ${D}/etc/squid/errors ${D}/var/logs - cd errors - dodir /usr/lib/squid/errors - for i in * - do - if [ -d $i ] - then - insinto /usr/lib/squid/errors/$i - doins $i/* - fi - done - cd ${S} - dosym /usr/lib/squid/errors/English /etc/squid/errors - - dodoc README QUICKSTART CONTRIBUTORS COPYRIGHT - dodoc COPYING CREDITS ChangeLog TODO - newdoc auth_modules/SMB/README SMB.auth.readme - newdoc auth_modules/LDAP/README LDAP.auth.readme - doman auth_modules/LDAP/*.8 doc/tree.3 - docinto txt - dodoc doc/*.txt - - insinto /etc/pam.d ; newins ${FILESDIR}/squid.pam squid - exeinto /etc/init.d ; newexe ${FILESDIR}/squid.rc6 squid - insinto /etc/conf.d ; newins ${FILESDIR}/squid.confd squid -} - -pkg_postinst() { - # This helps if you had it installed, but never _ran_ it. - install -m0755 -o squid -g squid -d ${ROOT}/var/cache/squid - install -m0755 -o squid -g squid -d ${ROOT}/var/log/squid -} diff --git a/www-proxy/squid/squid-2.5.5-r3.ebuild b/www-proxy/squid/squid-2.5.5-r3.ebuild deleted file mode 100644 index e6915c3665af..000000000000 --- a/www-proxy/squid/squid-2.5.5-r3.ebuild +++ /dev/null @@ -1,172 +0,0 @@ -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-proxy/squid/squid-2.5.5-r3.ebuild,v 1.4 2005/01/11 21:38:53 cyfred Exp $ - -inherit eutils - -IUSE="pam ldap ssl sasl snmp debug selinux" - -#lame archive versioning scheme.. -S_PV=${PV%.*} -S_PL=${PV##*.} -S_PP=${PN}-${S_PV}.STABLE${S_PL} - -DESCRIPTION="A caching web proxy, with advanced features" -HOMEPAGE="http://www.squid-cache.org/" - -S=${WORKDIR}/${S_PP} -SRC_URI="ftp://ftp.squid-cache.org/pub/squid-2/STABLE/${S_PP}.tar.bz2 - http://dev.gentoo.org/~cyfred/distfiles/squid-2.5.STABLE5-patches.tar.gz" - -RDEPEND="virtual/libc - pam? ( >=sys-libs/pam-0.72 ) - ldap? ( >=net-nds/openldap-2.0.25 ) - ssl? ( >=dev-libs/openssl-0.9.6g ) - sasl? ( >=dev-libs/cyrus-sasl-1.5.27 ) - selinux? ( sec-policy/selinux-squid )" -DEPEND="${RDEPEND} dev-lang/perl" -LICENSE="GPL-2" -KEYWORDS="x86 ppc sparc alpha hppa ~ia64 s390 amd64 ppc64" -SLOT="0" - -src_unpack() { - unpack ${A} || die - cd ${S} || die - - #do NOT just remove this patch. yes, it's here for a reason. - #woodchip@gentoo.org (07 Nov 2002) - patch -p1 <${FILESDIR}/squid-2.5.3-gentoo.diff || die - - # Do bulk patching for 2.5 Stable 5 tree see bug #57081 - EPATCH_SUFFIX="patch" epatch ${WORKDIR}/patch - - #hmm #10865 - cd helpers/external_acl/ldap_group - cp Makefile.in Makefile.in.orig - sed -e 's%^\(LINK =.*\)\(-o.*\)%\1\$(XTRA_LIBS) \2%' \ - Makefile.in.orig > Makefile.in - - if ! use debug - then - cd ${S} - mv configure.in configure.in.orig - sed -e 's%LDFLAGS="-g"%LDFLAGS=""%' configure.in.orig > configure.in - export WANT_AUTOCONF=2.1 - autoconf || die - fi -} - -src_compile() { - local basic_modules="getpwnam,YP,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}" - - local ext_helpers="ip_user,unix_group,wbinfo_group,winbind_group" - use ldap && ext_helpers="ldap_group,${ext_helpers}" - - local myconf="" - use snmp && myconf="${myconf} --enable-snmp" || myconf="${myconf} --disable-snmp" - use ssl && myconf="${myconf} --enable-ssl" || myconf="${myconf} --disable-ssl" - - use amd64 && myconf="${myconf} --disable-internal-dns " - - 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 - - ./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-storeio="ufs,diskd,coss,aufs,null" \ - --enable-basic-auth-helpers=${basic_modules} \ - --enable-external-acl-helpers=${ext_helpers} \ - --enable-ntlm-auth-helpers="SMB,fakeauth,no_check,winbind" \ - --enable-linux-netfilter \ - --enable-ident-lookups \ - --enable-useragent-log \ - --enable-cache-digests \ - --enable-delay-pools \ - --enable-referer-log \ - --enable-async-io \ - --enable-truncate \ - --enable-arp-acl \ - --with-pthreads \ - --enable-htcp \ - --enable-carp \ - --enable-poll \ - --host=${CHOST} ${myconf} || die "bad ./configure" - #--enable-icmp - - mv include/autoconf.h include/autoconf.h.orig - sed -e "s:^#define SQUID_MAXFD.*:#define SQUID_MAXFD 4096:" \ - include/autoconf.h.orig > include/autoconf.h - -# if [ "${ARCH}" = "hppa" ] -# then -# mv include/autoconf.h include/autoconf.h.orig -# sed -e "s:^#define HAVE_MALLOPT 1:#undef HAVE_MALLOPT:" \ -# include/autoconf.h.orig > include/autoconf.h -# fi - - emake || die "compile problem" -} - -src_install() { - make DESTDIR=${D} install || die - - #--enable-icmp - #make -C src install-pinger libexecdir=${D}/usr/lib/squid || die - #chown root:squid ${D}/usr/lib/squid/pinger - #chmod 4750 ${D}/usr/lib/squid/pinger - - #need suid root for looking into /etc/shadow - chown root:squid ${D}/usr/lib/squid/ncsa_auth - chown root:squid ${D}/usr/lib/squid/pam_auth - chmod 4750 ${D}/usr/lib/squid/ncsa_auth - chmod 4750 ${D}/usr/lib/squid/pam_auth - - #some clean ups - rm -rf ${D}/var - mv ${D}/usr/bin/Run* ${D}/usr/lib/squid - - #simply switch this symlink to choose the desired language.. - dosym /usr/lib/squid/errors/English /etc/squid/errors - - dodoc CONTRIBUTORS COPYING COPYRIGHT 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* - - insinto /etc/pam.d ; newins ${FILESDIR}/squid.pam squid - exeinto /etc/init.d ; newexe ${FILESDIR}/squid.rc6 squid - insinto /etc/conf.d ; newins ${FILESDIR}/squid.confd squid - exeinto /etc/cron.weekly ; newexe ${FILESDIR}/squid-r1.cron squid.cron -} - -pkg_postinst() { - # empty dirs.. - install -m0755 -o squid -g squid -d ${ROOT}/var/cache/squid - install -m0755 -o squid -g squid -d ${ROOT}/var/log/squid - - echo - ewarn "Squid authentication helpers have been installed suid root" - ewarn "This allows shadow based authentication, see bug #52977 for more" - echo -} diff --git a/www-proxy/squid/squid-2.5.6-r3.ebuild b/www-proxy/squid/squid-2.5.6-r3.ebuild deleted file mode 100644 index 4768cc780991..000000000000 --- a/www-proxy/squid/squid-2.5.6-r3.ebuild +++ /dev/null @@ -1,187 +0,0 @@ -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-proxy/squid/squid-2.5.6-r3.ebuild,v 1.3 2005/01/11 21:38:53 cyfred Exp $ - -inherit eutils - -IUSE="pam ldap ssl sasl snmp debug uclibc selinux" - -#lame archive versioning scheme.. -S_PV=${PV%.*} -S_PL=${PV##*.} -S_PP=${PN}-${S_PV}.STABLE${S_PL} -PATCH_VERSION="20041017" - -DESCRIPTION="A caching web proxy, with advanced features" -HOMEPAGE="http://www.squid-cache.org/" - -S=${WORKDIR}/${S_PP} -SRC_URI="ftp://ftp.squid-cache.org/pub/squid-2/STABLE/${S_PP}.tar.bz2 - http://dev.gentoo.org/~cyfred/distfiles/squid-2.5.STABLE6-patches-${PATCH_VERSION}.tar.gz" - -RDEPEND="virtual/libc - pam? ( >=sys-libs/pam-0.75 ) - 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 )" -DEPEND="${RDEPEND} dev-lang/perl" -LICENSE="GPL-2" -KEYWORDS="x86 amd64 alpha ppc sparc hppa ppc64 mips" -SLOT="0" - -src_unpack() { - unpack ${A} || die - cd ${S} || die - - #do NOT just remove this patch. yes, it's here for a reason. - #woodchip@gentoo.org (07 Nov 2002) - patch -p1 <${FILESDIR}/squid-2.5.3-gentoo.diff || die - - # Do bulk patching from squids bug fix list for stable 6 see #57081 - EPATCH_SUFFIX="patch" epatch ${WORKDIR}/patch - - #hmm #10865 - cd helpers/external_acl/ldap_group - cp Makefile.in Makefile.in.orig - sed -e 's%^\(LINK =.*\)\(-o.*\)%\1\$(XTRA_LIBS) \2%' \ - Makefile.in.orig > Makefile.in - - if ! use debug - then - cd ${S} - mv configure.in configure.in.orig - sed -e 's%LDFLAGS="-g"%LDFLAGS=""%' configure.in.orig > configure.in - export WANT_AUTOCONF=2.1 - autoconf || die - fi -} - -src_compile() { - # Support for uclibc #61175 - if use uclibc; then - local basic_modules="getpwnam,NCSA,SMB,MSNT,multi-domain-NTLM,winbind" - else - local basic_modules="getpwnam,YP,NCSA,SMB,MSNT,multi-domain-NTLM,winbind" - fi - - use ldap && basic_modules="LDAP,${basic_modules}" - use pam && basic_modules="PAM,${basic_modules}" - use sasl && basic_modules="SASL,${basic_modules}" - # SASL 1 / 2 Supported Natively - - local ext_helpers="ip_user,unix_group,wbinfo_group,winbind_group" - use ldap && ext_helpers="ldap_group,${ext_helpers}" - - local myconf="" - use snmp && myconf="${myconf} --enable-snmp" || myconf="${myconf} --disable-snmp" - use ssl && myconf="${myconf} --enable-ssl" || myconf="${myconf} --disable-ssl" - - use amd64 && myconf="${myconf} --disable-internal-dns " - - 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 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 - - ./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-linux-netfilter \ - --enable-ident-lookups \ - --enable-useragent-log \ - --enable-cache-digests \ - --enable-delay-pools \ - --enable-referer-log \ - --enable-truncate \ - --enable-arp-acl \ - --with-pthreads \ - --enable-htcp \ - --enable-carp \ - --enable-poll \ - --host=${CHOST} ${myconf} || die "bad ./configure" - #--enable-icmp - - mv include/autoconf.h include/autoconf.h.orig - sed -e "s:^#define SQUID_MAXFD.*:#define SQUID_MAXFD 4096:" \ - include/autoconf.h.orig > include/autoconf.h - -# if [ "${ARCH}" = "hppa" ] -# then -# mv include/autoconf.h include/autoconf.h.orig -# sed -e "s:^#define HAVE_MALLOPT 1:#undef HAVE_MALLOPT:" \ -# include/autoconf.h.orig > include/autoconf.h -# fi - - emake || die "compile problem" -} - -src_install() { - make DESTDIR=${D} install || die - - #--enable-icmp - #make -C src install-pinger libexecdir=${D}/usr/lib/squid || die - #chown root:squid ${D}/usr/lib/squid/pinger - #chmod 4750 ${D}/usr/lib/squid/pinger - - #need suid root for looking into /etc/shadow - chown root:squid ${D}/usr/lib/squid/ncsa_auth - chown root:squid ${D}/usr/lib/squid/pam_auth - chmod 4750 ${D}/usr/lib/squid/ncsa_auth - chmod 4750 ${D}/usr/lib/squid/pam_auth - - #some clean ups - rm -rf ${D}/var - mv ${D}/usr/bin/Run* ${D}/usr/lib/squid - - #simply switch this symlink to choose the desired language.. - dosym /usr/lib/squid/errors/English /etc/squid/errors - - dodoc CONTRIBUTORS COPYING COPYRIGHT 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* - - insinto /etc/pam.d ; newins ${FILESDIR}/squid.pam squid - exeinto /etc/init.d ; newexe ${FILESDIR}/squid.rc6 squid - insinto /etc/conf.d ; newins ${FILESDIR}/squid.confd squid - exeinto /etc/cron.weekly ; newexe ${FILESDIR}/squid-r1.cron squid.cron -} - -pkg_postinst() { - # empty dirs.. - install -m0755 -o squid -g squid -d ${ROOT}/var/cache/squid - install -m0755 -o squid -g squid -d ${ROOT}/var/log/squid - - echo - ewarn "Squid authentication helpers have been installed suid root" - ewarn "This allows shadow based authentication, see bug #52977 for more" - echo -} diff --git a/www-proxy/squid/squid-2.5.7-r6.ebuild b/www-proxy/squid/squid-2.5.8-r1.ebuild index e4831c9c2833..efdc1c33ad60 100644 --- a/www-proxy/squid/squid-2.5.7-r6.ebuild +++ b/www-proxy/squid/squid-2.5.8-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-proxy/squid/squid-2.5.7-r6.ebuild,v 1.1 2005/02/09 12:55:39 cyfred Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-proxy/squid/squid-2.5.8-r1.ebuild,v 1.1 2005/02/23 20:06:05 mrness Exp $ inherit eutils @@ -8,35 +8,36 @@ inherit eutils S_PV=${PV%.*} S_PL=${PV##*.} S_PP=${PN}-${S_PV}.STABLE${S_PL} -PATCH_VERSION="20050210" +PATCH_VERSION="20050223" DESCRIPTION="A caching web proxy, with advanced features" HOMEPAGE="http://www.squid-cache.org/" S=${WORKDIR}/${S_PP} SRC_URI="ftp://ftp.squid-cache.org/pub/squid-2/STABLE/${S_PP}.tar.bz2 - http://dev.gentoo.org/~cyfred/distfiles/squid-2.5.STABLE7-patches-${PATCH_VERSION}.tar.gz" + mirror://gentoo/squid-2.5.STABLE8-patches-${PATCH_VERSION}.tar.gz" LICENSE="GPL-2" SLOT="0" -KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86 mips" -IUSE="pam ldap ssl sasl snmp debug uclibc selinux underscores" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~mips" +IUSE="pam ldap ssl sasl snmp debug uclibc selinux underscores logrotate" RDEPEND="virtual/libc pam? ( >=sys-libs/pam-0.75 ) 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 )" + selinux? ( sec-policy/selinux-squid ) + !mips? ( logrotate? ( app-admin/logrotate ) )" DEPEND="${RDEPEND} dev-lang/perl" src_unpack() { - unpack ${A} || die - cd ${S} || die + unpack ${A} || die "unpack failed" + cd ${S} || die "dir ${S} not found" #do NOT just remove this patch. yes, it's here for a reason. #woodchip@gentoo.org (07 Nov 2002) - patch -p1 <${FILESDIR}/squid-2.5.7-gentoo.diff || die + patch -p1 <${FILESDIR}/squid-${PV}-gentoo.diff || die "failed to apply squid-{PV}-gentoo.diff" # Do bulk patching from squids bug fix list for stable 6 see #57081 EPATCH_SUFFIX="patch" epatch ${WORKDIR}/patch @@ -53,7 +54,7 @@ src_unpack() { mv configure.in configure.in.orig sed -e 's%LDFLAGS="-g"%LDFLAGS=""%' configure.in.orig > configure.in export WANT_AUTOCONF=2.1 - autoconf || die + autoconf || die "autoconf failed" fi } @@ -169,10 +170,19 @@ src_install() { doman helpers/basic_auth/LDAP/*.8 dodoc helpers/basic_auth/SASL/squid_sasl_auth* - insinto /etc/pam.d ; newins ${FILESDIR}/squid.pam squid - exeinto /etc/init.d ; newexe ${FILESDIR}/squid.rc6 squid - insinto /etc/conf.d ; newins ${FILESDIR}/squid.confd squid - exeinto /etc/cron.weekly ; newexe ${FILESDIR}/squid-r1.cron squid.cron + insinto /etc/pam.d + newins ${FILESDIR}/squid.pam squid + exeinto /etc/init.d + newexe ${FILESDIR}/squid.rc6 squid + insinto /etc/conf.d + newins ${FILESDIR}/squid.confd squid + if useq logrotate; then + insinto /etc/logrotate.d + newins ${FILESDIR}/squid-logrotate squid + else + exeinto /etc/cron.weekly + newexe ${FILESDIR}/squid-r1.cron squid.cron + fi } pkg_postinst() { |