Reason:
www/squid has been updated to Squid 2.7.STABLE3.
The update should be rather straightforward.
The only noticeable change in the port is that the ICAP patch is no
longer included; this is because this patch was unmaintained for a long
time and its use was not really recommended. Please consider moving to
Squid-3 (currently available as www/squid30) if you need ICAP support.
Squid 2.6 is still available as www/squid26 and will probably be removed
from the Ports Tree by the end of 2008.

Port Moves

port moved here from www/squid33 on 2015-03-15REASON: Has expired: Reached EOL on 28 August 2014, use www/squid (v3.4) instead

www/squid: Fix crashes under heavy load
Squid 3.5.15 addresses security issues, but reports have been made that
it is unstable under load. These patches repair stability while not
requiring we downgrade to 3.5.14 which reintroduces security vulnerabilities.
PR: 207762
Approved by: maintainer
MFH: 2016Q1

Rather than produce a warning message that IPv6 is not supported
under ipfilter 4 (FreeBSD 9) every tenth time, reduce the message
to one in a million. This has the effect of displaying the message
at or shortly after startup with a reminder every blue moon.
PR: 202950

www/squid: Support DragonFly SHM segments
Out of the box, squid would not run on dragonfly due to its handling
of SHM segments. On DragonFly, SHM segments are always treated as files
but on FreeBSD it depends on whether or not application is inside a jail.
In any case, the case for DragonFly was no supported, so it has been
added via patch. This also requires the return of /var/run/squid
directory which is where the SHM files are stored (defined by
localstatedir and supported by RC script). The RC script would define
this directory if missing, but let's make sure it is always available.
PR: 201405
Submitted by: marino
Approved by: maintainer (timp87/gmail)

MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.
While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.
Also, replace some EXTRACT_SUFX occurences with USES=tar:*.
Checked by: make fetch-urlall-list
With hat: portmgr
Sponsored by: Absolight

www/squid finally gets a maintainer
Pavel Timofeev spearheaded the update to squid to version 3.5 and has
been prepared to be the port's maintainer. Let's make that happen!
Thanks for taking care of this popular port, Timp87.

www/squid: Add MAP_NOSYNC flay to mmap call
This is the same technique used by PostgreSQL to prevent dirty pages
from flushing prematurely (performance hit). In any case, it can't hurt
and it's been used in production for 18 months. Timp87 provided the 3.5
version of squid; the port is still unmaintained.
PR: 198920
Submitted by: emz (norma.perm.ru)
concurred: timp87 (gmail)

www/squid: 3.4.12 -> 3.5.3
As it is written on http://www.squid-cache.org/Versions/ for 3.4.x
versions: they are no longer intended for general use in new installations.
So this is a big upgrade.
Changes to squid-3.5.3 (28 Mar 2015):
- Regression Bug 4213: negotiate_kerberos_auth: freeing non-dynamic memory
- Regression Bug 4206: Incorrect connection close on expect:100-continue
- Bug 4204: ./configure does not abort when required helpers cannot be built
- Bug 3805: support shared memory on MacOS X in Mem::IPC::Segment
- Bug 2907: high CPU usage on CONNECT when using delay pools
- basic_getpwnam_auth: fail authentication on crypt() failures
- basic_nis_auth: fail authentication on crypt() failures

www/squid: implement proper backtrace support
Now Squid will print full backtrace for problematic cases when it is
about to die on some signal and should emit stacktrace. You'll
obviously need to compile it with STACKTRACES option.
Tested at: KIAE Grid production Squid cluster
MFC after: 1 week
MFH: 2014Q4
Sponsored by: Kurchatov Institute of Atomic Energy

Since http://bazaar.launchpad.net/~squid/squid/3-trunk/revision/12842,
Squid's configure script defaults to -march=native, if the flag is
supported by the compiler. And this even *overrides* your own specified
CPUTYPE or -march= flag!
That could cause squid to crash when using a package that was built on a
newer CPU type that the one where the package would run on.
Submitted by: dim

www/squid: Upgrade version 2.7.9 => 3.4.7
From now on, there will only be one squid port, this one. Squid33 has
been deprecated and will expire on 31 JAN 2015.
PR: 192828
Submitted by: timp87 (gmail)
Contributions: takefu (airport.fm), Dennis Glatting

Retire www/squid in a month, and deprecate 6 dependent ports too
Squid cache is only supported for one stable release. There was an
exception for squid 2.7 (www/squid) as it was supported until squid 3.x
reached feature parity which occurred with the release of Squid 3.2
Thus the maintainers of Squid have declared Squid 2.7 reached End-of-Life
on 14 August 2012. As a result, set this port to expire on 15 Sept 2014.
Seven ports dependent on www/squid have been deprecated with the same
date. Perhaps they can be switched to www/squid33 before they expire.
Approved by: portmgr (implicit, some ports not staged)

www/squid, squid32, squid33: Reset maintainer
At least 2 PRs per port have been submitted to provide staging going back
to May, but the maintainer has not responded. These PRs prevented the
maintainer from being reset on the big pass, so do it now that there are
only 2 weeks left to stage these ports.
Approved by: portmgr (implicit, NOT_STAGED)

In the rc.d scripts, change assignments to rcvar to use the
literal name_enable wherever possible, and ${name}_enable
when it's not, to prepare for the demise of set_rcvar().
In cases where I had to hand-edit unusual instances also
modify formatting slightly to be more uniform (and in
some cases, correct). This includes adding some $FreeBSD$
tags, and most importantly moving rcvar= to right after
name= so it's clear that one is derived from the other.

- The squid_kerb_auth helper needs to know about the endianness of the system
at compile time. Its author suggests to use -D__LITTLE_ENDIAN__ in the
program's Makefile and this is the solution proposed in ports/131878. Since
FreeBSD (and FreeBSD ports) might be used on big-endian architectures as
well as on little endian architectures I decided to instrument an already
present endianness check directly in the affected source file instead.
- Bump PORTREVISION since this affects the content (and functionality) of
the port's binary package.
Pr: 133159
Submitted by: Thomas-Martin Seck <tmseck@web.de> (maintainer)

Refactoring and fixes regarding the squid_kerb_auth helper:
- Move the content of
files/patch-helpers-negotiate_auth_squid_kerb_auth-Makefile.in and
-squid_kerb_auth.c to files/fix-kerberos.patch.
- Implement additional configure check for the presence of
gssapi/gssapi.h and gssapi.h and prefer the former over the latter in
squid_kerb_auth.c. This is done to prevent a compiler warning on
FreeBSD 7 and higher where gssapi.h is only present for compatibility
reasons.
- Actually enable the "negotiate" authentication method in Squid
(thanks to John Marshall for pointing this out to the maintainer).
Bump PORTREVISION for this change.
Removed files:
files/patch-helpers-negotiate_auth-squid_kerb_auth-Makefile.in
files/patch-helpers-negotiate_auth-squid_kerb_auth-squid_kerb_auth.c
PR: 124872
Submitted by: Thomas-Martin Seck <tmseck@web.de> (maintainer)

- Fix a mistake I (the maintainer) had introduced regarding the
installation of the cachemgr.conf.default file: instead of explicitly
installing it I thought it would be enough to change an automake
variable that served an entirely different purpose, namely
hardcoding the path to the configuration in the cachemgr.cgi
binary.
- While at it: remove a no longer needed .sh reference from
files/pkg-message.in.
- Set PORTREVISION to 1 because the hardcoded name of the default
configuration file has changed within cachemgr.cgi.
PR: 123573
Submitted by: Thomas-Martin Seck <tmseck@web.de> (maintainer)