2001-03-27 12:56:41 +00:00
|
|
|
# New ports collection makefile for: squid24
|
|
|
|
# Date created: Tue Mar 27 14:56:08 CEST 2001
|
|
|
|
# Whom: Adrian Chadd <adrian@FreeBSD.org>
|
1996-06-03 02:21:13 +00:00
|
|
|
#
|
1999-08-31 02:43:35 +00:00
|
|
|
# $FreeBSD$
|
1996-06-03 02:21:13 +00:00
|
|
|
#
|
2004-02-02 15:28:16 +00:00
|
|
|
# Tunables not (yet) configurable via 'make config':
|
2004-01-16 21:18:20 +00:00
|
|
|
# SQUID_{U,G}ID
|
2006-11-04 23:03:40 +00:00
|
|
|
# Which user/group Squid should run as (default: squid/squid).
|
2004-03-17 07:06:46 +00:00
|
|
|
# The user and group will be created if they do not already exist using
|
|
|
|
# a uid:gid of 100:100.
|
2007-02-07 08:42:31 +00:00
|
|
|
# NOTE: older versions of Squid defaulted to nobody/nogroup.
|
|
|
|
# If you wish to run Squid as "nobody" (which is not recommended), please
|
|
|
|
# define SQUID_UID=nobody and SQUID_GID=nogroup in your make environment
|
|
|
|
# before you start the update or installation of this port.
|
|
|
|
#
|
2004-01-16 21:18:20 +00:00
|
|
|
# SQUID_LANGUAGES
|
|
|
|
# A list of languages for which error page files should be installed
|
|
|
|
# (default: all)
|
2004-07-19 21:25:38 +00:00
|
|
|
#
|
|
|
|
# E.g. use `make SQUID_LANGUAGES="English French"' if you want to
|
|
|
|
# install the files for these languages only.
|
|
|
|
# Use `make -VSQUID_LANGUAGES' or scroll down to this variable's
|
|
|
|
# definition to see which values are valid.
|
|
|
|
#
|
2004-01-16 21:18:20 +00:00
|
|
|
# SQUID_DEFAULT_LANG
|
|
|
|
# If you define SQUID_LANGUAGES, select which language should be the default
|
2004-07-19 21:25:38 +00:00
|
|
|
# one (this variable defaults to English). This setting can be overwritten
|
|
|
|
# with squid.conf's error_directory directive.
|
|
|
|
#
|
2004-01-16 21:18:20 +00:00
|
|
|
# SQUID_CONFIGURE_ARGS
|
2004-07-14 18:33:12 +00:00
|
|
|
# Additional configuration options.
|
2004-07-19 21:25:38 +00:00
|
|
|
#
|
|
|
|
# To enable them, use e.g
|
|
|
|
# `make SQUID_CONFIGURE_ARGS="--enable-dlmalloc --enable-truncate" install'
|
|
|
|
#
|
|
|
|
# The list below may be incomplete, please see the configure script
|
2007-02-07 08:42:31 +00:00
|
|
|
# in the Squid source distribution for the complete list of additional
|
2004-07-19 21:25:38 +00:00
|
|
|
# options.
|
|
|
|
# Note that you probably do not need to worry about these options in most
|
|
|
|
# cases, they are included in case you want to experiment with them.
|
2004-07-14 18:33:12 +00:00
|
|
|
#
|
|
|
|
# --enable-dlmalloc
|
|
|
|
# Compile and use the malloc package from Doug Lea
|
|
|
|
# --enable-gnuregex
|
2007-02-07 08:42:31 +00:00
|
|
|
# Compile and use the supplied GNUregex routines instead of BSD regex
|
|
|
|
# (not recommended).
|
2004-07-14 18:33:12 +00:00
|
|
|
# --enable-xmalloc-statistics
|
|
|
|
# Show malloc statistics in status page
|
|
|
|
# --enable-cachemgr-hostname=some.hostname
|
|
|
|
# Set an explicit hostname in cachemgr.cgi
|
|
|
|
# --enable-truncate
|
|
|
|
# Use truncate() rather than unlink()
|
|
|
|
# --disable-unlinkd
|
|
|
|
# Do not use "unlinkd"
|
|
|
|
# --with-aufs-threads=N_THREADS
|
|
|
|
# Tune the number of worker threads for the aufs object
|
|
|
|
# --with-coss-membuf-size
|
|
|
|
# COSS membuf size (default: 1048576 bytes)
|
2005-09-22 17:28:33 +00:00
|
|
|
# --with-maxfd=N
|
|
|
|
# Override the maximum number of filedescriptors. Useful if you
|
|
|
|
# build as another user who is not privileged to use the amount
|
|
|
|
# of filedescriptors the resulting binary is expected to support.
|
2005-12-20 16:01:15 +00:00
|
|
|
# --enable-ntlm-fail-open
|
|
|
|
# Enable NTLM fail open, where a helper that fails one of the
|
2006-11-04 23:03:40 +00:00
|
|
|
# Authentication steps can allow Squid to still authenticate the user
|
2007-02-07 08:42:31 +00:00
|
|
|
# --enable-x-accelerator-vary
|
|
|
|
# Enable support for the X-Accelerator-Vary HTTP header. Can be used
|
|
|
|
# to indicate variance within an accelerator setup. Typically used
|
|
|
|
# together with other code that adds custom HTTP headers to the
|
|
|
|
# requests.
|
|
|
|
# --enable-forward-log
|
|
|
|
# Enable experimental forward_log directive.
|
|
|
|
# --enable-multicast-miss
|
|
|
|
# Enable experimental multicast notification of cachemisses.
|
1996-06-03 02:21:13 +00:00
|
|
|
|
2000-04-10 00:07:29 +00:00
|
|
|
PORTNAME= squid
|
2007-03-21 13:13:07 +00:00
|
|
|
PORTVERSION= 2.6.12
|
1996-11-18 11:44:27 +00:00
|
|
|
CATEGORIES= www
|
2007-02-07 08:42:31 +00:00
|
|
|
MASTER_SITES= ftp://ftp.squid-cache.org/pub/%SUBDIR%/ \
|
|
|
|
ftp://ftp.vistech.net/pub/squid/%SUBDIR%/ \
|
|
|
|
ftp://mirrors.24-7-solutions.net/pub/squid/%SUBDIR%/ \
|
|
|
|
ftp://sunsite.auc.dk/pub/infosystems/squid/%SUBDIR%/ \
|
|
|
|
ftp://ftp.nl.uu.net/pub/unix/www/squid/%SUBDIR%/ \
|
|
|
|
ftp://ftp.mirrorservice.org/sites/ftp.squid-cache.org/pub/%SUBDIR%/ \
|
|
|
|
ftp://ftp.ntua.gr/pub/www/Squid/%SUBDIR%/ \
|
|
|
|
ftp://ftp.ccs.neu.edu/pub/mirrors/squid.nlanr.net/pub/%SUBDIR%/ \
|
|
|
|
${MASTER_SITE_RINGSERVER:S,%SUBDIR%,net/www/squid/&,}
|
|
|
|
MASTER_SITE_SUBDIR= squid-2/STABLE
|
2007-03-21 13:13:07 +00:00
|
|
|
DISTNAME= squid-2.6.STABLE12
|
2007-02-07 08:42:31 +00:00
|
|
|
DIST_SUBDIR= squid2.6
|
|
|
|
|
|
|
|
PATCH_SITES= http://www.squid-cache.org/%SUBDIR%/ \
|
2006-07-11 09:26:23 +00:00
|
|
|
http://www2.us.squid-cache.org/%SUBDIR%/ \
|
|
|
|
http://www3.us.squid-cache.org/%SUBDIR%/ \
|
|
|
|
http://www1.at.squid-cache.org/%SUBDIR%/ \
|
2006-11-17 12:51:29 +00:00
|
|
|
http://www2.nl.squid-cache.org/%SUBDIR%/ \
|
2006-07-11 09:26:23 +00:00
|
|
|
http://www1.ru.squid-cache.org/%SUBDIR%/ \
|
|
|
|
http://www1.uk.squid-cache.org/%SUBDIR%/ \
|
|
|
|
http://www1.jp.squid-cache.org/%SUBDIR%/ \
|
|
|
|
http://www1.tw.squid-cache.org/%SUBDIR%/
|
2007-02-07 08:42:31 +00:00
|
|
|
PATCH_SITE_SUBDIR= Versions/v2/2.6/changesets
|
|
|
|
PATCHFILES=
|
2004-10-18 21:50:20 +00:00
|
|
|
PATCH_DIST_STRIP= -p1
|
2000-03-05 14:08:51 +00:00
|
|
|
|
2004-01-05 09:54:57 +00:00
|
|
|
MAINTAINER= tmseck@netcologne.de
|
2006-11-04 23:03:40 +00:00
|
|
|
COMMENT= HTTP Caching Proxy
|
1996-06-03 02:21:13 +00:00
|
|
|
|
2007-02-07 08:42:31 +00:00
|
|
|
CONFLICTS= squid-2.[^6]*
|
1996-06-03 02:21:13 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2003-07-27 08:45:11 +00:00
|
|
|
USE_BZIP2= yes
|
2002-11-04 22:57:37 +00:00
|
|
|
USE_PERL5= yes
|
2007-02-07 08:42:31 +00:00
|
|
|
USE_RC_SUBR= squid
|
2004-01-16 21:18:20 +00:00
|
|
|
|
|
|
|
SQUID_UID?= squid
|
|
|
|
SQUID_GID?= squid
|
|
|
|
|
2005-05-19 14:17:01 +00:00
|
|
|
MAN8= cachemgr.cgi.8 squid.8
|
2004-02-02 15:28:16 +00:00
|
|
|
docs= QUICKSTART README RELEASENOTES.html doc/debug-sections.txt
|
|
|
|
PORTDOCS= ${docs:T}
|
2006-03-18 17:11:13 +00:00
|
|
|
SUB_FILES+= pkg-deinstall pkg-install pkg-message
|
|
|
|
SUB_LIST+= SQUID_UID=${SQUID_UID} SQUID_GID=${SQUID_GID}
|
2004-02-02 15:28:16 +00:00
|
|
|
|
|
|
|
OPTIONS= SQUID_LDAP_AUTH "Install LDAP authentication helpers" off \
|
2006-03-18 17:11:13 +00:00
|
|
|
SQUID_SASL_AUTH "Install SASL authentication helpers" off \
|
2004-02-02 15:28:16 +00:00
|
|
|
SQUID_DELAY_POOLS "Enable delay pools" off \
|
|
|
|
SQUID_SNMP "Enable SNMP support" off \
|
2007-02-07 08:42:31 +00:00
|
|
|
SQUID_CARP "Enable CARP support" on \
|
2004-02-02 15:28:16 +00:00
|
|
|
SQUID_SSL "Enable SSL support for reverse proxies" off \
|
|
|
|
SQUID_PINGER "Install the icmp helper" off \
|
|
|
|
SQUID_DNS_HELPER "Use the old 'dnsserver' helper" off \
|
|
|
|
SQUID_HTCP "Enable HTCP support" off \
|
|
|
|
SQUID_VIA_DB "Enable forward/via database" off \
|
|
|
|
SQUID_CACHE_DIGESTS "Enable cache digests" off \
|
2007-02-07 08:42:31 +00:00
|
|
|
SQUID_WCCP "Enable Web Cache Coordination Prot. v1" on \
|
|
|
|
SQUID_WCCPV2 "Enable Web Cache Coordination Prot. v2" off \
|
2004-02-02 15:28:16 +00:00
|
|
|
SQUID_STRICT_HTTP "Be strictly HTTP compliant" off \
|
|
|
|
SQUID_IDENT "Enable ident (RFC 931) lookups" on \
|
2007-02-07 08:42:31 +00:00
|
|
|
SQUID_REFERER_LOG "Enable Referer-header logging" off \
|
2004-02-17 11:07:18 +00:00
|
|
|
SQUID_USERAGENT_LOG "Enable User-Agent-header logging" off \
|
2004-03-17 07:06:46 +00:00
|
|
|
SQUID_ARP_ACL "Enable ACLs based on ethernet address" off \
|
2005-03-13 19:32:53 +00:00
|
|
|
SQUID_PF "Enable transparent proxying with PF" off \
|
|
|
|
SQUID_IPFILTER "Enable transp. proxying with IPFilter" off \
|
2004-03-17 07:06:46 +00:00
|
|
|
SQUID_FOLLOW_XFF "Follow X-Forwarded-For headers" off \
|
2005-12-20 16:01:15 +00:00
|
|
|
SQUID_ICAP "Enable ICAP client functionality" off \
|
2004-04-18 17:04:26 +00:00
|
|
|
SQUID_AUFS "Enable the aufs storage scheme" off \
|
|
|
|
SQUID_COSS "Enable the COSS storage scheme" off \
|
2007-02-07 08:42:31 +00:00
|
|
|
SQUID_KQUEUE "Use kqueue(2) instead of poll(2)" on \
|
2005-04-18 01:05:35 +00:00
|
|
|
SQUID_LARGEFILE "Support log and cache files >2GB" off \
|
2007-02-07 08:42:31 +00:00
|
|
|
SQUID_STACKTRACES "Create backtraces on fatal errors" off
|
2004-02-02 15:28:16 +00:00
|
|
|
|
2006-03-18 17:11:13 +00:00
|
|
|
etc_files= squid/cachemgr.conf.default \
|
2005-05-19 14:17:01 +00:00
|
|
|
squid/mib.txt squid/mime.conf.default \
|
2005-01-26 17:56:25 +00:00
|
|
|
squid/msntauth.conf.default squid/squid.conf.default
|
2004-01-16 21:18:20 +00:00
|
|
|
|
2004-07-25 16:30:43 +00:00
|
|
|
icon_files= anthony-binhex.gif anthony-bomb.gif anthony-box.gif \
|
|
|
|
anthony-box2.gif anthony-c.gif anthony-compressed.gif \
|
|
|
|
anthony-dir.gif anthony-dirup.gif anthony-dvi.gif \
|
|
|
|
anthony-f.gif anthony-image.gif anthony-image2.gif \
|
|
|
|
anthony-layout.gif anthony-link.gif anthony-movie.gif \
|
|
|
|
anthony-pdf.gif anthony-portal.gif anthony-ps.gif \
|
|
|
|
anthony-quill.gif anthony-script.gif anthony-sound.gif \
|
|
|
|
anthony-tar.gif anthony-tex.gif anthony-text.gif \
|
|
|
|
anthony-unknown.gif anthony-xbm.gif anthony-xpm.gif
|
|
|
|
|
|
|
|
error_files= ERR_ACCESS_DENIED ERR_CACHE_ACCESS_DENIED \
|
|
|
|
ERR_CACHE_MGR_ACCESS_DENIED ERR_CANNOT_FORWARD \
|
|
|
|
ERR_CONNECT_FAIL ERR_DNS_FAIL ERR_FORWARDING_DENIED \
|
|
|
|
ERR_FTP_DISABLED ERR_FTP_FAILURE ERR_FTP_FORBIDDEN \
|
|
|
|
ERR_FTP_NOT_FOUND ERR_FTP_PUT_CREATED \
|
2005-01-26 17:56:25 +00:00
|
|
|
ERR_FTP_PUT_ERROR ERR_FTP_PUT_MODIFIED ERR_FTP_UNAVAILABLE \
|
|
|
|
ERR_INVALID_REQ ERR_INVALID_RESP ERR_INVALID_URL \
|
2004-07-25 16:30:43 +00:00
|
|
|
ERR_LIFETIME_EXP ERR_NO_RELAY ERR_ONLY_IF_CACHED_MISS \
|
|
|
|
ERR_READ_ERROR ERR_READ_TIMEOUT ERR_SHUTTING_DOWN \
|
|
|
|
ERR_SOCKET_FAILURE ERR_TOO_BIG ERR_UNSUP_REQ \
|
|
|
|
ERR_URN_RESOLVE ERR_WRITE_ERROR ERR_ZERO_SIZE_OBJECT
|
|
|
|
|
2007-02-07 08:42:31 +00:00
|
|
|
libexec= cachemgr.cgi digest_pw_auth diskd-daemon ip_user_check \
|
2005-01-26 17:56:25 +00:00
|
|
|
msnt_auth ncsa_auth ntlm_auth \
|
2007-02-07 08:42:31 +00:00
|
|
|
pam_auth smb_auth smb_auth.sh squid_session squid_unix_group \
|
|
|
|
wbinfo_group.pl
|
2005-01-26 17:56:25 +00:00
|
|
|
.if !defined(SQUID_CONFIGURE_ARGS) || ${SQUID_CONFIGURE_ARGS:M*--disable-unlinkd*} == ""
|
|
|
|
libexec+= unlinkd
|
|
|
|
.endif
|
|
|
|
|
2007-02-07 08:42:31 +00:00
|
|
|
sbin= RunCache squidclient squid
|
2004-07-25 16:30:43 +00:00
|
|
|
|
2007-02-07 08:42:31 +00:00
|
|
|
CONFIGURE_ARGS= --bindir=${PREFIX}/sbin \
|
|
|
|
--sbindir=${PREFIX}/sbin \
|
2003-07-27 08:45:11 +00:00
|
|
|
--datadir=${PREFIX}/etc/squid \
|
2004-01-16 21:18:20 +00:00
|
|
|
--libexecdir=${PREFIX}/libexec/squid \
|
2001-03-27 12:28:47 +00:00
|
|
|
--localstatedir=${PREFIX}/squid \
|
2007-02-07 08:42:31 +00:00
|
|
|
--sysconfdir=${PREFIX}/etc/squid \
|
|
|
|
--enable-removal-policies="lru heap" \
|
|
|
|
--disable-linux-netfilter \
|
|
|
|
--disable-linux-tproxy \
|
|
|
|
--disable-epoll
|
2004-01-16 21:18:20 +00:00
|
|
|
|
2004-02-02 15:28:16 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
2004-01-16 21:18:20 +00:00
|
|
|
|
|
|
|
# Authentication methods and modules:
|
|
|
|
|
2007-02-07 08:42:31 +00:00
|
|
|
basic_auth= NCSA PAM MSNT SMB
|
|
|
|
digest_auth= password
|
|
|
|
external_acl= ip_user session unix_group wbinfo_group
|
|
|
|
MAN8+= ncsa_auth.8 pam_auth.8 squid_session.8 squid_unix_group.8
|
2004-01-16 21:18:20 +00:00
|
|
|
.if defined(WITH_SQUID_LDAP_AUTH)
|
|
|
|
USE_OPENLDAP= yes
|
2004-04-09 18:54:13 +00:00
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2004-01-16 21:18:20 +00:00
|
|
|
MAN8+= squid_ldap_auth.8 squid_ldap_group.8
|
|
|
|
basic_auth+= LDAP
|
2007-02-07 08:42:31 +00:00
|
|
|
digest_auth+= ldap
|
2004-01-16 21:18:20 +00:00
|
|
|
external_acl+= ldap_group
|
2007-02-07 08:42:31 +00:00
|
|
|
libexec+= digest_ldap_auth squid_ldap_auth squid_ldap_group
|
2004-01-16 21:18:20 +00:00
|
|
|
.endif
|
2006-03-18 17:11:13 +00:00
|
|
|
.if defined(WITH_SQUID_SASL_AUTH)
|
|
|
|
LIB_DEPENDS+= sasl2.2:${PORTSDIR}/security/cyrus-sasl2
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
basic_auth+= SASL
|
|
|
|
libexec+= sasl_auth
|
|
|
|
.endif
|
2006-05-22 16:11:43 +00:00
|
|
|
.if !defined(NO_NIS) && !defined(WITHOUT_NIS)
|
2005-01-12 22:37:29 +00:00
|
|
|
basic_auth+= YP
|
|
|
|
libexec+= yp_auth
|
|
|
|
.endif
|
2004-01-16 21:18:20 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-auth="basic ntlm digest" \
|
|
|
|
--enable-basic-auth-helpers="${basic_auth}" \
|
2007-02-07 08:42:31 +00:00
|
|
|
--enable-digest-auth-helpers="${digest_auth}" \
|
2004-01-16 21:18:20 +00:00
|
|
|
--enable-external-acl-helpers="${external_acl}" \
|
2007-02-07 08:42:31 +00:00
|
|
|
--enable-ntlm-auth-helpers="SMB"
|
2004-01-16 21:18:20 +00:00
|
|
|
|
2007-02-07 08:42:31 +00:00
|
|
|
# Storage schemes:
|
2004-03-17 07:06:46 +00:00
|
|
|
|
2004-04-18 17:04:26 +00:00
|
|
|
storage_schemes= ufs diskd null
|
2004-03-17 07:06:46 +00:00
|
|
|
.if defined(WITH_SQUID_AUFS)
|
2004-04-18 17:04:26 +00:00
|
|
|
storage_schemes+= aufs
|
2007-02-07 08:42:31 +00:00
|
|
|
.if ${OSVERSION}>=501000
|
|
|
|
# Only document libmap.conf where it is available:
|
|
|
|
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-src-cf.data.pre.aufs
|
|
|
|
.endif
|
2004-03-17 07:06:46 +00:00
|
|
|
# Nil aufs threads is default, set any other value via SQUID_CONFIGURE_ARGS
|
2007-02-07 08:42:31 +00:00
|
|
|
CONFIGURE_ARGS+= --with-pthreads
|
2004-04-09 18:54:13 +00:00
|
|
|
CFLAGS+= ${PTHREAD_CFLAGS}
|
2004-03-17 07:06:46 +00:00
|
|
|
.endif
|
|
|
|
.if defined(WITH_SQUID_COSS)
|
2004-04-18 17:04:26 +00:00
|
|
|
storage_schemes+= coss
|
2007-02-07 08:42:31 +00:00
|
|
|
.if !defined(WITH_SQUID_AUFS)
|
|
|
|
# use Posix AIO instead of aufs' AIO; note that you then need the kernel to
|
|
|
|
# supply AIO support, either by loading the aio(4) module (n/a on 4.x) or by
|
|
|
|
# adding the option VFS_AIO to your kernel configuration if you want to
|
|
|
|
# actually use COSS storage:
|
|
|
|
CONFIGURE_ARGS+= --enable-coss-aio-ops
|
|
|
|
.endif
|
|
|
|
sbin+= cossdump
|
2004-03-17 07:06:46 +00:00
|
|
|
.endif
|
2004-04-18 17:04:26 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-storeio="${storage_schemes}"
|
2004-03-17 07:06:46 +00:00
|
|
|
|
2004-02-17 11:07:18 +00:00
|
|
|
# Other options set via 'make config':
|
2004-02-02 15:28:16 +00:00
|
|
|
|
|
|
|
.if defined(WITH_SQUID_DELAY_POOLS)
|
|
|
|
CONFIGURE_ARGS+= --enable-delay-pools
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_SQUID_SNMP)
|
|
|
|
CONFIGURE_ARGS+= --enable-snmp
|
|
|
|
.endif
|
2007-02-07 08:42:31 +00:00
|
|
|
.if defined(WITHOUT_SQUID_CARP)
|
|
|
|
CONFIGURE_ARGS+= --disable-carp
|
2004-02-02 15:28:16 +00:00
|
|
|
.endif
|
|
|
|
.if defined(WITH_SQUID_SSL)
|
2007-02-07 08:42:31 +00:00
|
|
|
# we need to .include bsd.openssl.mk manually here.because USE_OPENSSL only
|
|
|
|
# works when it is defined before bsd.port{.pre}.mk is .included.
|
|
|
|
# This makes it currently impossible to combine this macro with OPTIONS to
|
|
|
|
# conditionally include OpenSSL support.
|
2004-04-18 17:04:26 +00:00
|
|
|
.include "${PORTSDIR}/Mk/bsd.openssl.mk"
|
2004-04-09 18:54:13 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-ssl \
|
|
|
|
--with-openssl="${OPENSSLBASE}"
|
|
|
|
CFLAGS+= -I${OPENSSLINC}
|
2007-01-22 08:49:50 +00:00
|
|
|
LDFLAGS+= -L${OPENSSLLIB}
|
2004-02-02 15:28:16 +00:00
|
|
|
.endif
|
|
|
|
.if defined(WITH_SQUID_PINGER)
|
|
|
|
CONFIGURE_ARGS+= --enable-icmp
|
2005-01-26 17:56:25 +00:00
|
|
|
libexec+= pinger
|
2004-02-02 15:28:16 +00:00
|
|
|
.endif
|
|
|
|
.if defined(WITH_SQUID_DNS_HELPER)
|
|
|
|
CONFIGURE_ARGS+= --disable-internal-dns
|
2005-01-26 17:56:25 +00:00
|
|
|
libexec+= dnsserver
|
2004-02-02 15:28:16 +00:00
|
|
|
.endif
|
|
|
|
.if defined(WITH_SQUID_HTCP)
|
|
|
|
CONFIGURE_ARGS+= --enable-htcp
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_SQUID_VIA_DB)
|
|
|
|
CONFIGURE_ARGS+= --enable-forw-via-db
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_SQUID_CACHE_DIGESTS)
|
|
|
|
CONFIGURE_ARGS+= --enable-cache-digests
|
|
|
|
.endif
|
|
|
|
.if defined(WITHOUT_SQUID_WCCP)
|
|
|
|
CONFIGURE_ARGS+= --disable-wccp
|
|
|
|
.endif
|
2007-02-07 08:42:31 +00:00
|
|
|
.if defined(WITH_SQUID_WCCPV2)
|
|
|
|
CONFIGURE_ARGS+= --enable-wccpv2
|
2004-03-17 07:06:46 +00:00
|
|
|
.endif
|
2004-02-02 15:28:16 +00:00
|
|
|
.if defined(WITH_SQUID_STRICT_HTTP)
|
|
|
|
CONFIGURE_ARGS+= --disable-http-violations
|
|
|
|
.endif
|
|
|
|
.if defined(WITHOUT_SQUID_IDENT)
|
|
|
|
CONFIGURE_ARGS+= --disable-ident-lookups
|
|
|
|
.endif
|
2007-02-07 08:42:31 +00:00
|
|
|
.if defined(WITH_SQUID_REFERER_LOG)
|
|
|
|
CONFIGURE_ARGS+= --enable-referer-log
|
|
|
|
.endif
|
2004-02-02 15:28:16 +00:00
|
|
|
.if defined(WITH_SQUID_USERAGENT_LOG)
|
|
|
|
CONFIGURE_ARGS+= --enable-useragent-log
|
|
|
|
.endif
|
2004-02-17 11:07:18 +00:00
|
|
|
.if defined(WITH_SQUID_ARP_ACL)
|
|
|
|
CONFIGURE_ARGS+= --enable-arp-acl
|
|
|
|
.endif
|
2004-03-17 07:06:46 +00:00
|
|
|
.if defined(WITH_SQUID_PF)
|
|
|
|
CONFIGURE_ARGS+= --enable-pf-transparent
|
2004-06-10 15:40:44 +00:00
|
|
|
.if ${OSVERSION} < 502106
|
2005-09-14 23:27:00 +00:00
|
|
|
IGNORE= pf available only in FreeBSD 5.3 and newer
|
2004-03-17 07:06:46 +00:00
|
|
|
.endif
|
|
|
|
.endif
|
2005-03-13 19:32:53 +00:00
|
|
|
# IPFilter-headers are not installed on FreeBSD 4 since 4.7-RELEASE,
|
|
|
|
# they were not installed on FreeBSD 5 from 2002-03-26 (OSVERSION > 500032) to
|
|
|
|
# 2003-06-27 (OSVERSION < 501101).
|
|
|
|
#
|
|
|
|
# Please see PR misc/44148 and the CVS log of src/include/Makefile for further
|
|
|
|
# information.
|
|
|
|
.if defined(WITH_SQUID_IPFILTER)
|
|
|
|
.if (${OSVERSION} >= 470000 && ${OSVERSION} < 500000) || (${OSVERSION} > 500032 && ${OSVERSION} < 501101)
|
2005-05-19 14:17:01 +00:00
|
|
|
IGNORE= IPFilter headers are not part of the base system
|
2005-03-13 19:32:53 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --enable-ipf-transparent
|
|
|
|
.endif
|
|
|
|
.endif
|
2004-03-17 07:06:46 +00:00
|
|
|
.if defined(WITH_SQUID_FOLLOW_XFF)
|
|
|
|
CONFIGURE_ARGS+= --enable-follow-x-forwarded-for
|
|
|
|
.endif
|
2005-12-20 16:01:15 +00:00
|
|
|
.if defined(WITH_SQUID_ICAP)
|
2007-02-07 08:42:31 +00:00
|
|
|
EXTRA_PATCHES+= ${PATCHDIR}/icap-2.6-bootstrap.patch \
|
|
|
|
${PATCHDIR}/icap-2.6-core.patch
|
2005-12-20 16:01:15 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-icap-support
|
|
|
|
error_files+= ERR_ICAP_FAILURE
|
|
|
|
.endif
|
2007-02-07 08:42:31 +00:00
|
|
|
.if !defined(WITHOUT_SQUID_KQUEUE)
|
|
|
|
CONFIGURE_ARGS+= --enable-kqueue
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-kqueue
|
|
|
|
.endif
|
2005-04-18 01:05:35 +00:00
|
|
|
.if defined(WITH_SQUID_LARGEFILE)
|
|
|
|
CONFIGURE_ARGS+= --with-large-files --enable-large-cache-files
|
|
|
|
.endif
|
2007-02-07 08:42:31 +00:00
|
|
|
.if defined(WITH_SQUID_STACKTRACES) || defined(WITH_DEBUG)
|
2004-03-17 07:06:46 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-stacktraces
|
2005-01-26 17:56:25 +00:00
|
|
|
CFLAGS+= -g
|
2004-10-13 09:43:48 +00:00
|
|
|
STRIP= ""
|
2004-03-17 07:06:46 +00:00
|
|
|
.endif
|
2004-02-02 15:28:16 +00:00
|
|
|
|
2004-01-16 21:18:20 +00:00
|
|
|
# Languages:
|
|
|
|
#
|
|
|
|
# If you do not define SQUID_LANGUAGES yourself, all available language files
|
2004-02-17 11:07:18 +00:00
|
|
|
# will be installed; the default language will be English.
|
2004-01-16 21:18:20 +00:00
|
|
|
|
2007-02-07 08:42:31 +00:00
|
|
|
SQUID_LANGUAGES?= Azerbaijani Bulgarian Catalan Czech Danish Dutch \
|
|
|
|
English Estonian Finnish French German Greek Hebrew \
|
|
|
|
Hungarian Italian Japanese Korean Lithuanian \
|
|
|
|
Polish Portuguese Romanian Russian-1251 Russian-koi8-r \
|
|
|
|
Serbian Simplify_Chinese Slovak Spanish Swedish \
|
|
|
|
Traditional_Chinese Turkish
|
2004-01-16 21:18:20 +00:00
|
|
|
SQUID_DEFAULT_LANG?= English
|
|
|
|
CONFIGURE_ARGS+= --enable-err-languages="${SQUID_LANGUAGES}" \
|
|
|
|
--enable-default-err-language=${SQUID_DEFAULT_LANG}
|
|
|
|
|
2004-07-14 18:33:12 +00:00
|
|
|
# Finally, add additional user specified configuration options:
|
2004-01-16 21:18:20 +00:00
|
|
|
CONFIGURE_ARGS+= ${SQUID_CONFIGURE_ARGS}
|
1998-01-04 09:30:21 +00:00
|
|
|
|
2004-04-09 18:54:13 +00:00
|
|
|
CONFIGURE_ENV+= CFLAGS="${CFLAGS}" \
|
2006-03-18 17:11:13 +00:00
|
|
|
CPPFLAGS="${CPPFLAGS}"\
|
2004-04-09 18:54:13 +00:00
|
|
|
LDFLAGS="${LDFLAGS}"
|
|
|
|
|
2005-01-26 17:56:25 +00:00
|
|
|
PLIST_DIRS= etc/squid/icons libexec/squid
|
|
|
|
PLIST_FILES= ${etc_files:S,^,etc/,} ${icon_files:S,^,etc/squid/icons/,} \
|
|
|
|
${libexec:S,^,libexec/squid/,} ${sbin:S,^,sbin/,}
|
|
|
|
|
|
|
|
.for d in ${SQUID_LANGUAGES}
|
|
|
|
PLIST_DIRS+= etc/squid/errors/${d}
|
|
|
|
PLIST_FILES+= ${error_files:S,^,etc/squid/errors/${d}/,}
|
|
|
|
.endfor
|
|
|
|
PLIST_DIRS+= etc/squid/errors etc/squid squid/logs squid/cache squid
|
|
|
|
|
2003-03-09 10:59:07 +00:00
|
|
|
post-patch:
|
2002-11-04 01:15:06 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
|
2004-01-16 21:18:20 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|%%SQUID_UID%%|${SQUID_UID}|g' \
|
2007-02-07 08:42:31 +00:00
|
|
|
-e 's|%%SQUID_GID%%|${SQUID_GID}|g' \
|
|
|
|
-e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/src/cf.data.pre
|
2005-10-06 18:47:55 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
|
|
|
|
${WRKSRC}/helpers/basic_auth/SMB/Makefile.in \
|
|
|
|
${WRKSRC}/helpers/basic_auth/SMB/smb_auth.sh
|
2004-01-16 21:18:20 +00:00
|
|
|
|
|
|
|
pre-install:
|
2004-03-17 07:06:46 +00:00
|
|
|
# Prevent installation of .orig files by deleting them.
|
|
|
|
@${FIND} ${WRKSRC} -name '*.bak' -delete
|
|
|
|
@${FIND} ${WRKSRC} -name '*.orig' -delete
|
2004-01-16 21:18:20 +00:00
|
|
|
|
|
|
|
pre-su-install:
|
2005-11-01 14:05:59 +00:00
|
|
|
@${SETENV} ${SCRIPTS_ENV} PKG_PREFIX=${PREFIX} \
|
|
|
|
${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
2004-01-16 21:18:20 +00:00
|
|
|
|
1996-06-03 02:21:13 +00:00
|
|
|
post-install:
|
2004-01-16 21:18:20 +00:00
|
|
|
.if defined(WITH_SQUID_PINGER)
|
2004-02-17 11:07:18 +00:00
|
|
|
${CHMOD} 4510 ${PREFIX}/libexec/squid/pinger; \
|
2004-01-16 21:18:20 +00:00
|
|
|
${CHGRP} ${SQUID_GID} ${PREFIX}/libexec/squid/pinger
|
|
|
|
.endif
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
2004-02-02 15:28:16 +00:00
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${docs} ${DOCSDIR}
|
2004-01-16 21:18:20 +00:00
|
|
|
.endif
|
2004-03-17 07:06:46 +00:00
|
|
|
@${SETENV} PKG_PREFIX=${PREFIX} \
|
|
|
|
${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
2004-01-06 08:12:54 +00:00
|
|
|
|
2006-03-18 17:11:13 +00:00
|
|
|
@${ECHO_CMD} "===> post-installation information for ${PKGNAME}:"
|
|
|
|
@${ECHO_CMD} ""
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
@${ECHO_CMD} ""
|
2004-03-17 07:06:46 +00:00
|
|
|
|
2004-02-02 15:28:16 +00:00
|
|
|
.include <bsd.port.post.mk>
|