# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
set branch [join [lrange [split ${version} .] 0 1] .]
maintainers {jmr @jmroot} openmaintainer
description advanced proxy caching server for http, https, ftp, gopher
long_description Squid is a high-performance proxy caching server for \
web clients, supporting FTP, gopher, and HTTP data \
objects. Unlike traditional caching software, Squid \
handles all requests in a single, non-blocking, \
I/O-driven process. Squid keeps meta data and \
especially hot objects cached in RAM, caches DNS \
lookups, supports non-blocking DNS lookups, and \
implements negative caching of failed requests.
homepage http://www.squid-cache.org/
master_sites https://mirror.aarnet.edu.au/pub/squid/squid/ \
https://www.mirrorservice.org/sites/ftp.squid-cache.org/pub/squid/ \
http://ftp.ring.gr.jp/archives/net/www/squid/ \
ftp://ftp.is.co.za/pub/squid/ \
ftp://ftp1.cl.squid-cache.org/pub/squid/ \
http://www.squid-cache.org/Versions/v3/${branch}/ \
ftp://ftp.squid-cache.org/pub/squid/
distname squid-${version}
checksums md5 9367e0375ea53ba0e99f77054d4402c5 \
sha1 721241a270ec27d629d65ae17a50be56510e8441 \
rmd160 5c102be674a567d780590035e0ac3362e5b1a4b8
patchfiles patch-cf.data.pre.diff \
patch-compat_types.h.diff \
patch-basic_pam_auth.cc.diff \
# ticket #37102, /usr/include/rpcsvc/yp_prot.h tries to redefine bool
patchfiles-append snowleopard-bool.diff
depends_build port:pkgconfig
set pidfile ${prefix}/var/run/squid/squid.pid
configure.args --mandir=${prefix}/share/man \
--sysconfdir=${prefix}/etc/squid \
--datadir=${prefix}/share/squid \
--localstatedir=${prefix}/var/squid \
--libexecdir=${prefix}/libexec/squid \
--with-swapdir=${prefix}/var/squid/cache \
--with-pidfile=${pidfile} \
--disable-strict-error-checking \
--disable-loadable-modules \
--enable-removal-policies \
--enable-storeio=ufs,aufs,diskd,rock \
--enable-disk-io=AIO,Blocking,DiskDaemon,DiskThreads,Mmapped \
--enable-log-daemon-helpers \
--with-default-user=squid \
--enable-auth-negotiate="wrapper" \
--enable-external-acl-helpers="SQL_session eDirectory_userip file_userip time_quota unix_group wbinfo_group"
if {[variant_isset universal]} {
system -W ${worksrcpath} "ed - include/autoconf.h < ${filespath}/include_autoconf.h.ed && touch include/stamp-h1"
startupitem.netchange yes