ports/173152: [Maintainer]: new port: www/squid32

Thomas-Martin Seck tmseck at web.de
Sun Oct 28 11:20:00 UTC 2012


>Number:         173152
>Category:       ports
>Synopsis:       [Maintainer]: new port: www/squid32
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Oct 28 11:20:00 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Thomas-Martin Seck
>Release:        FreeBSD 8.3-RELEASE amd64
>Organization:
a private site in Germany
>Environment:
FreeBSD ports collection as of October 28, 2012.

	
>Description:
Add Squid-3.2.3 as www/squid32.

Note: this update requires an update of www/libecap to 0.2.0 which I
will submit in a separate PR.
	
>How-To-Repeat:
	
>Fix:
This is the shar archive of the new squid32 directory:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	./files/squid.in
#	./files/patch-configure
#	./files/patch-helpers-basic_auth-LDAP-config.test
#	./files/patch-helpers-basic_auth-SASL-config.test
#	./files/extra-patch-src-cf.data.pre.aufs
#	./files/patch-src-cf.data.pre
#	./files/pkg-message.in
#	./files/patch-helpers-external_acl-LDAP_group-config.test
#	./files/pkg-install.in
#	./Makefile
#	./pkg-deinstall
#	./distinfo
#	./pkg-descr
#
echo x - ./files/squid.in
sed 's/^X//' >./files/squid.in << 'daee28e29f481c0000a43806884ec2cc'
X#!/bin/sh
X#
X# $FreeBSD$
X#
X# PROVIDE: squid
X# REQUIRE: LOGIN
X# KEYWORD: shutdown
X#
X# Note:
X# Set "squid_enable=yes" in either /etc/rc.conf, /etc/rc.conf.local or
X# /etc/rc.conf.d/squid to activate Squid.
X#
X# Additional variables you can define in one of these files:
X#
X# squid_chdir:	the directory into which the rc system moves into before
X# 		starting Squid. Default: /var/squid
X#
X# squid_conf:	The configuration file that Squid should use.
X#		Default: %%PREFIX%%/etc/squid/squid.conf
X#
X# squid_fib:	The alternative routing table id that Squid should use.
X#		Default: none
X#		See setfib(1) for further details. Note that the setfib(2)
X#		system call is not available in FreeBSD versions prior to 7.1.
X#
X# squid_user:	The user id that should be used to run the Squid master
X#		process. Default: %%SQUID_UID%%.
X#		Note that you probably need to define "squid_user=root" if
X#		you want to run Squid in reverse proxy setups or if you want
X#		Squid to listen on a "privileged" port < 1024.
X#
X# squid_pidfile:
X#		The name (including the full path) of the Squid
X#		master process' PID file.
X#		Default: /var/run/squid/squid.pid.
X#		You only need to change this if you changed the
X#		corresponding entry in your Squid configuration.
X#
X# squid_flags:	Additional commandline arguments for Squid you might want to
X#		use. See squid(8) for further details.
X#
X
Xsquid_checkrunning() {
X	${command} ${command_args} ${squid_flags} -k check 2>/dev/null
X}
X
Xsquid_setfib() {
X	sysctl net.fibs >/dev/null 2>&1 || return 0
X	if [ "x${squid_fib}" != "xNONE" ]; then
X		command="setfib -F ${squid_fib} ${command}"
X	else
X		return 0
X	fi
X}
X
Xsquid_stop() {
X	echo "Stopping ${name}."
X	${command} ${command_args} ${squid_flags} -k shutdown
X	run_rc_command poll
X}
X
X. /etc/rc.subr
X
Xname=squid
Xrcvar=squid_enable
X
Xcommand=%%PREFIX%%/sbin/squid
Xextra_commands=reload
Xreload_cmd="${command} ${command_args} ${squid_flags} -k reconfigure"
Xstart_precmd="squid_setfib"
Xstop_precmd="squid_checkrunning"
Xstop_cmd="squid_stop"
X
Xload_rc_config ${name}
X
Xsquid_chdir=${squid_chdir:-"/var/squid"}
Xsquid_conf=${squid_conf:-"%%PREFIX%%/etc/squid/squid.conf"}
Xsquid_enable=${squid_enable:-"NO"}
Xsquid_fib=${squid_fib:-"NONE"}
Xsquid_pidfile=${squid_pidfile:-"/var/run/squid/squid.pid"}
Xsquid_user=${squid_user:-%%SQUID_UID%%}
X
Xpidfile=${squid_pidfile}
Xrequired_dirs=${squid_chdir}
X
X# squid(8) will not start if ${squid_conf} is not present so try
X# to catch that beforehand via ${required_files} rather than make
X# squid(8) crash.
X
Xrequired_files=${squid_conf}
X
X# Now make sure that we invoke squid with "-f ${squid_conf}":
X
Xcommand_args="-f ${squid_conf}"
X
Xrun_rc_command "$1"
daee28e29f481c0000a43806884ec2cc
echo x - ./files/patch-configure
sed 's/^X//' >./files/patch-configure << 'c4a64a21f682b9904407688225777d43'
X--- configure.orig	2012-10-21 18:10:03.000000000 +0200
X+++ configure	2012-10-21 18:27:39.000000000 +0200
X@@ -22154,7 +22154,7 @@
X 
X done
X 
X-  if test "x$ac_heimdal" == "x" ; then
X+  if test "x$ac_heimdal" = "x" ; then
X     for ac_header in gssapi/gssapi_generic.h
X do :
X   ac_fn_cxx_check_header_mongrel "$LINENO" "gssapi/gssapi_generic.h" "ac_cv_header_gssapi_gssapi_generic_h" "$ac_includes_default"
X@@ -22351,7 +22351,7 @@
X 
X 
X   ac_com_error_message=no
X-  if test "x$ac_cv_header_com_err_h" == "xyes" ; then
X+  if test "x$ac_cv_header_com_err_h" = "xyes" ; then
X       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
X /* end confdefs.h.  */
X #include <com_err.h>
X@@ -22363,7 +22363,7 @@
X fi
X rm -f conftest*
X 
X-  elif test "x$ac_cv_header_et_com_err_h" == "xyes" ; then
X+  elif test "x$ac_cv_header_et_com_err_h" = "xyes" ; then
X       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
X /* end confdefs.h.  */
X #include <et/com_err.h>
X@@ -22424,7 +22424,7 @@
X 
X   fi
X 
X-  if test `echo $KRB5LIBS | grep -c com_err` -ne 0 -a "x$ac_com_error_message" == "xyes" ; then
X+  if test `echo $KRB5LIBS | grep -c com_err` -ne 0 -a "x$ac_com_error_message" = "xyes" ; then
X     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_message in -lcom_err" >&5
X $as_echo_n "checking for error_message in -lcom_err... " >&6; }
X if ${ac_cv_lib_com_err_error_message+:} false; then :
X@@ -22467,7 +22467,7 @@
X 
X fi
X 
X-  elif test  "x$ac_com_error_message" == "xyes" ; then
X+  elif test  "x$ac_com_error_message" = "xyes" ; then
X     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_message in -lkrb5" >&5
X $as_echo_n "checking for error_message in -lkrb5... " >&6; }
X if ${ac_cv_lib_krb5_error_message+:} false; then :
c4a64a21f682b9904407688225777d43
echo x - ./files/patch-helpers-basic_auth-LDAP-config.test
sed 's/^X//' >./files/patch-helpers-basic_auth-LDAP-config.test << '1e63f88b53f2d76f36352a7afb3f0b8b'
X--- helpers/basic_auth/LDAP/config.test.orig	2012-10-20 14:39:49.000000000 +0200
X+++ helpers/basic_auth/LDAP/config.test	2012-10-21 20:49:49.000000000 +0200
X@@ -1,8 +1,2 @@
X #!/bin/sh
X-if [ -f /usr/include/ldap.h ]; then
X-	exit 0
X-fi
X-if [ -f /usr/include/winldap.h ]; then
X-	exit 0
X-fi
X-exit 1
X+exit 0
1e63f88b53f2d76f36352a7afb3f0b8b
echo x - ./files/patch-helpers-basic_auth-SASL-config.test
sed 's/^X//' >./files/patch-helpers-basic_auth-SASL-config.test << 'ebeab7980e5d68df282c6d82cf834611'
X--- helpers/basic_auth/SASL/config.test.orig	2012-10-20 14:39:49.000000000 +0200
X+++ helpers/basic_auth/SASL/config.test	2012-10-21 20:50:57.000000000 +0200
X@@ -1,8 +1,2 @@
X #!/bin/sh
X-if [ -f /usr/include/sasl.h ]; then
X-	exit 0
X-fi
X-if [ -f /usr/include/sasl/sasl.h ]; then
X-	exit 0
X-fi
X-exit 1
X+exit 0
ebeab7980e5d68df282c6d82cf834611
echo x - ./files/extra-patch-src-cf.data.pre.aufs
sed 's/^X//' >./files/extra-patch-src-cf.data.pre.aufs << '0f9d275c6b66a95054a8364568c168d5'
X--- src/cf.data.pre.orig	Wed Nov  1 15:12:02 2006
X+++ src/cf.data.pre	Wed Nov  1 15:12:17 2006
X@@ -1097,6 +1100,17 @@
X 
X 	see argument descriptions under ufs above
X 
X+	Note:
X+	By default, FreeBSD uses the pthread(3) M:N threading library.
X+	You can, however, map the thread library to the 1:1 libthr(3)
X+	implementation by inserting the following lines into
X+	/etc/libmap.conf and see whether this performs better on your
X+	system:
X+
X+	[%%PREFIX%%/sbin/squid]
X+	libpthread.so.1	libthr.so.1
X+	libpthread.so.2	libthr.so.2
X+
X 	The diskd store type:
X 
X 	"diskd" uses the same storage format as "ufs", utilizing a
0f9d275c6b66a95054a8364568c168d5
echo x - ./files/patch-src-cf.data.pre
sed 's/^X//' >./files/patch-src-cf.data.pre << '8828ddf5b14845ff51cd30b637004e48'
X--- src/cf.data.pre.orig	2012-10-20 14:39:49.000000000 +0200
X+++ src/cf.data.pre	2012-10-28 11:28:18.000000000 +0100
X@@ -3479,6 +3479,10 @@
X LOC: Config.pidFilename
X DOC_START
X 	A filename to write the process-id to.  To disable, enter "none".
X+
X+	Note: If you change this setting, you need to set squid_pidfile
X+	in /etc/rc.conf to reflect the new value. Please see
X+	%%PREFIX%%/etc/rc.d/squid for details.
X DOC_END
X 
X NAME: log_fqdn
8828ddf5b14845ff51cd30b637004e48
echo x - ./files/pkg-message.in
sed 's/^X//' >./files/pkg-message.in << 'f63be51668f70461c30a5539f7c148ef'
X     o You can find the configuration files for this package in the
X       directory %%PREFIX%%/etc/squid.
X
X     o The default cache directory is /var/squid/.
X       The default log directory is /var/log/squid/.
X
X       Note:
X       You must initialize new cache directories before you can start
X       squid.  Do this by running "squid -z" as 'root' or 'squid'.
X       If your cache directories are already initialized (e.g. after an
X       upgrade of squid) you do not need to initialize them again.
X
X     o The default configuration will deny everyone but the local host and
X       local networks as defined in RFC 1918 for IPv4 and RFCs 4193 and
X       4291 for IPv6 access to the proxy service.  Edit the "http_access
X       allow/deny" directives in %%PREFIX%%/etc/squid/squid.conf
X       to suit your needs.
X
X     To enable Squid, set squid_enable=yes in either
X     /etc/rc.conf, /etc/rc.conf.local or /etc/rc.conf.d/squid
X     Please see %%PREFIX%%/etc/rc.d/squid for further details.
X
X     Note:
X     If you just updated your Squid installation from an earlier version,
X     make sure to check your Squid configuration against the 3.2 default
X     configuration file %%PREFIX%%/etc/squid/squid.conf.default.
X     
X     %%PREFIX%%/etc/squid/squid.conf.documented is a fully annotated
X     configuration file you can consult for further reference.
X
X     Additionally, you should check your configuration by calling
X     'squid -f /path/to/squid.conf -k parse' before starting Squid.
X
f63be51668f70461c30a5539f7c148ef
echo x - ./files/patch-helpers-external_acl-LDAP_group-config.test
sed 's/^X//' >./files/patch-helpers-external_acl-LDAP_group-config.test << '31ef32c95bfe98a55fb5a63184a3d131'
X--- helpers/external_acl/LDAP_group/config.test.orig	2012-10-20 14:39:49.000000000 +0200
X+++ helpers/external_acl/LDAP_group/config.test	2012-10-21 20:51:53.000000000 +0200
X@@ -1,8 +1,2 @@
X #!/bin/sh
X-if [ -f /usr/include/ldap.h ]; then
X-	exit 0
X-fi
X-if [ -f /usr/include/winldap.h ]; then
X-	exit 0
X-fi
X-exit 1
X+exit 0
31ef32c95bfe98a55fb5a63184a3d131
echo x - ./files/pkg-install.in
sed 's/^X//' >./files/pkg-install.in << '54ebdf45d5c878152b906d4f588a7e61'
X#!/bin/sh
X#
X# $FreeBSD$
X#
X
XPATH=/bin:/usr/bin:/usr/sbin
Xpkgname=$1
Xsquid_base="/var/squid"
Xsquid_cachedir="${squid_base}/cache"
Xsquid_confdir="${PKG_PREFIX:-%%PREFIX%%}/etc/squid"
Xsquid_logdir="/var/log/squid"
Xsquid_rundir="/var/run/squid"
X# these are hardcoded, see /usr/ports/UIDs and /usr/ports/GIDs:
Xsquid_user=squid
Xsquid_group=squid
Xsquid_gid=100
Xsquid_uid=100
Xcase $2 in
XPRE-INSTALL)
X	echo "===> Pre-installation configuration for ${pkgname}"
X	;;
XPOST-INSTALL)
X	# Since we usually start the Squid master process as ${squid_user}
X	# instead of root make sure that ${squid_base} is writable for it.
X	if [ ! -d ${squid_base} ]; then
X		echo "Creating ${squid_base}..."
X		install -d -o root -g ${squid_group} \
X		    -m 0775 ${squid_base}
X	else
X		chgrp ${squid_group} ${squid_base}
X		chmod g+w ${squid_base}
X	fi
X	if [ ! -d ${squid_cachedir} ]; then
X		echo "Creating ${squid_cachedir} ..."
X		install -d -o ${squid_user} -g ${squid_group} \
X		    -m 0750 ${squid_cachedir}
X	else
X		chown ${squid_user} ${squid_cachedir}
X		chgrp ${squid_group} ${squid_cachedir}
X		chmod 0750 ${squid_cachedir}
X	fi
X	if [ ! -d ${squid_confdir} ]; then
X		echo "Creating ${squid_confdir}..."
X		install -d -o root -g ${squid_group} \
X		    -m 0755 ${squid_confdir}
X	else
X		chgrp ${squid_group} ${squid_confdir}
X	fi
X	if [ ! -d ${squid_logdir} ]; then
X		echo "Creating ${squid_logdir}..."
X		install -d -o ${squid_user} -g ${squid_group} \
X		    -m 0750 ${squid_logdir}
X	else
X		chown ${squid_user} ${squid_logdir}
X		chgrp ${squid_group} ${squid_logdir}
X	fi
X	if [ ! -d ${squid_rundir} ]; then
X		echo "Creating ${squid_rundir}..."
X		install -d -o ${squid_user} -g ${squid_group} \
X		    -m 0755 ${squid_rundir}
X	else
X		chown ${squid_user} ${squid_rundir}
X		chgrp ${squid_group} ${squid_rundir}
X	fi
X	for file in cachemgr.conf errorpage.css mime.conf msntauth.conf squid.conf; do
X		if [ ! -f ${squid_confdir}/${file} \
X		    -a -f ${squid_confdir}/${file}.default ]; then
X			echo "Creating ${file} from default..."
X			install -c -o root -g ${squid_group} -m 0640 \
X		    	    ${squid_confdir}/${file}.default \
X			    ${squid_confdir}/${file}
X		fi
X	done
X	;;
X*)
X	exit 64
X	;;
Xesac
Xexit 0
54ebdf45d5c878152b906d4f588a7e61
echo x - ./Makefile
sed 's/^X//' >./Makefile << '464ef7c6571951809b23e262cbe26e19'
X# $FreeBSD$
X#
X# Note:
X# Starting with Squid 3.1 SQUID_LANGUAGES and SQUID_DEFAULT_LANG are no longer
X# available and will be ignored.
X#
X# SQUID_CONFIGURE_ARGS
X#   Additional configuration options.
X#
X#   To enable them, use e.g
X#   `make SQUID_CONFIGURE_ARGS="--enable-ntml-fail-open" install'
X#
X#   The list below may be incomplete, please see the configure script
X#   in the Squid source distribution for the complete list of additional
X#   options.
X#   Note that you probably do not need to worry about these options in most
X#   cases, they are included in case you want to experiment with them.
X#
X#    --enable-xmalloc-statistics
X#     Show malloc statistics in status page
X#    --enable-cachemgr-hostname=some.hostname
X#     Make cachemgr.cgi default to this host
X#    --disable-unlinkd
X#     Do not use "unlinkd"
X#    --with-aufs-threads=N_THREADS
X#     Tune the number of worker threads for the aufs object
X#    --with-filedescriptors=N
X#     Force Squid to use N filedescriptors.
X#    --enable-ntlm-fail-open
X#     Enable NTLM fail open, where a helper that fails one of the
X#     Authentication steps can allow Squid to still authenticate the user
X#    --enable-x-accelerator-vary
X#     Enable support for the X-Accelerator-Vary HTTP header. Can be used
X#     to indicate variance within an accelerator setup. Typically used
X#     together with other code that adds custom HTTP headers to the
X#     requests.
X
XPORTNAME=	squid
XPORTVERSION=	3.2.${SQUID_STABLE_VER}
XCATEGORIES=	www ipv6
XMASTER_SITES=	ftp://ftp.squid-cache.org/pub/%SUBDIR%/ \
X		http://mirrors.ccs.neu.edu/Squid/ \
X		ftp://ftp.fu-berlin.de/unix/www/squid/squid/ \
X		ftp://ftp.nl.uu.net/pub/unix/www/squid/ \
X		ftp://ftp.solnet.ch/mirror/squid/ \
X		ftp://ftp.ntua.gr/pub/www/Squid/squid/ \
X		${MASTER_SITE_RINGSERVER:S,%SUBDIR%,net/www/squid,} \
X		http://www.squid-cache.org/Versions/v3/3.2/ \
X		http://www2.us.squid-cache.org/Versions/v3/3.2/ \
X		http://www3.us.squid-cache.org/Versions/v3/3.2/ \
X		http://www1.at.squid-cache.org/Versions/v3/3.2/ \
X		http://www.eu.squid-cache.org/Versions/v3/3.2/ \
X		http://www1.ie.squid-cache.org/Versions/v3/3.2/ \
X		http://www1.jp.squid-cache.org/Versions/v3/3.2/ \
X		http://www1.za.squid-cache.org/Versions/v3/3.2/
XMASTER_SITE_SUBDIR=	squid
XDIST_SUBDIR=	squid3.2
X
XPATCH_SITES=	http://www.squid-cache.org/%SUBDIR%/ \
X		http://www2.us.squid-cache.org/%SUBDIR%/ \
X		http://www3.us.squid-cache.org/%SUBDIR%/ \
X		http://www1.at.squid-cache.org/%SUBDIR%/ \
X		http://www.eu.squid-cache.org/%SUBDIR%/ \
X		http://www1.ie.squid-cache.org/%SUBDIR%/ \
X		http://www1.jp.squid-cache.org/%SUBDIR%/ \
X		http://www2.tw.squid-cache.org/%SUBDIR%/
XPATCH_SITE_SUBDIR=	Versions/v3/3.2/changesets
XPATCHFILES=	# empty
X
XMAINTAINER=	tmseck at web.de
XCOMMENT=	HTTP Caching Proxy
X
XLICENSE=	GPLv2
XLICENSE_FILE=	${WRKSRC}/COPYING
X
XLATEST_LINK=	squid32
X
XSQUID_STABLE_VER=	3
X
XCONFLICTS_INSTALL=	squid-2.[0-9].* squid-3.[!2].* cacheboy-[0-9]* lusca-head-[0-9]*
XGNU_CONFIGURE=	yes
XUSE_BZIP2=	yes
XUSE_PERL5=	yes
XUSE_RC_SUBR=	squid
X
XUSERS=		squid
XGROUPS=		squid
X
XMAN1=		squidclient.1
XMAN8=		cachemgr.cgi.8 squid.8
Xdocs=		QUICKSTART README RELEASENOTES.html doc/debug-sections.txt
XPORTDOCS=	${docs:T}
XPORTEXAMPLES=	*
XSUB_FILES+=	pkg-install pkg-message
X
XOPTIONS_DEFINE=	ARP_ACL AUTH_KERB AUTH_LDAP AUTH_NIS AUTH_SASL AUTH_SMB \
X		CACHE_DIGESTS DEBUG DELAY_POOLS DNS_HELPER ECAP ESI \
X		FOLLOW_XFF FS_AUFS FS_COSS HTCP ICAP ICMP IDENT IPV6 KQUEUE \
X		LARGEFILE SNMP SSL SSL_CRTD STACKTRACES STRICT_HTTP \
X		TP_IPF TP_IPFW TP_PF VIA_DB WCCP WCCPV2 
X
XARP_ACL_DESC=	Enable ARP/MAC/EUI based authentification
XAUTH_KERB_DESC=	Install Kerberos authentication helpers
XAUTH_LDAP_DESC=	Install LDAP authentication helpers
XAUTH_NIS_DESC=	Install NIS/YP authentication helpers
XAUTH_SASL_DESC=	Install SASL authentication helpers
XAUTH_SMB_DESC=	Install SMB auth. helpers (req. Samba)
XCACHE_DIGESTS_DESC=	Use cache digests
XDEBUG_DESC=	Build with extended debugging support
XDELAY_POOLS_DESC=	Enable delay pools (bandwidth limiting)
XDNS_HELPER_DESC=	Use external dnsserver processes for DNS
XECAP_DESC=	Enable loadable content adaptation modules
XESI_DESC=	Enable support for ESI
XFOLLOW_XFF_DESC=	Enable support for the X-Following-For header
XFS_AUFS_DESC=	Enable AUFS (async-io) support
XFS_COSS_DESC=	Enable COSS (not stable yet)
XHTCP_DESC=	Enable HTCP support
XICAP_DESC=	Enable the ICAP client
XICMP_DESC=	Enable ICMP pinging and network measurement
XIDENT_DESC=	Enable Ident lookups (RFC 931)
XIPV6_DESC=	Enable IPv6 support
XKQUEUE_DESC=	Enable kqueue(2) support
XLARGEFILE_DESC=	Support large (>2GB) cache and log files
XSNMP_DESC=	Enable SNMP support
XSSL_CRTD_DESC=	Use ssl_crtd to handle SSL cert requests
XSSL_DESC=	Enable SSL gatewaying support
XSTACKTRACES_DESC=	Enable automatic backtraces on fatal errors
XSTRICT_HTTP_DESC=	Make Squid strictly HTTP compliant
XTP_IPFW_DESC=	Enable transparent proxying with IPFW
XTP_IPF_DESC=	Enable transparent proxying with IPFilter
XTP_PF_DESC=	Enable transparent proxying with PF
XVIA_DB_DESC=	Enable Forward/Via database
XWCCPV2_DESC=	Enable Web Cache Coordination Protocol v2
XWCCP_DESC=	Enable Web Cache Coordination Protocol
X
XOPTIONS_DEFAULT=	AUTH_KERB AUTH_NIS FS_AUFS HTCP IDENT IPV6 KQUEUE \
X			SNMP WCCP WCCPV2
X
Xetc_files=	squid/cachemgr.conf.default \
X		squid/errorpage.css.default \
X		squid/mib.txt \
X		squid/mime.conf.default \
X		squid/msntauth.conf.default \
X		squid/squid.conf.default \
X		squid/squid.conf.documented
X
Xicon_silk_files=	application.png arrow_up.png bomb.png box.png \
X			bricks.png bullet_red.png cd.png chart_line.png \
X			compress.png computer_link.png css.png cup.png \
X			database.png database_table.png drive_disk.png \
X			film.png film_key.png folder.png folder_table.png \
X			image.png information.png layers.png layout.png \
X			link.png music.png package.png package_go.png \
X			page_code.png page_excel.png page_green.png \
X			page_white.png page_white_acrobat.png page_white_c.png \
X			page_white_cplusplus.png page_white_flash.png \
X			page_white_magnify.png page_white_picture.png \
X			page_white_powerpoint.png page_white_stack.png \
X			page_white_text.png page_world.png \
X			page_white_word.png page_white_zip.png photo.png \
X			picture.png plugin.png plugin_add.png script.png \
X			script_gear.png script_palette.png
X
Xerror_files=	ERR_ACCESS_DENIED ERR_ACL_TIME_QUOTA_EXCEEDED \
X		ERR_AGENT_CONFIGURE ERR_AGENT_WPAD \
X		ERR_CACHE_ACCESS_DENIED \
X		ERR_CACHE_MGR_ACCESS_DENIED ERR_CONFLICT_HOST \
X		ERR_CANNOT_FORWARD ERR_CONNECT_FAIL \
X		ERR_DIR_LISTING ERR_DNS_FAIL \
X		ERR_ESI ERR_FORWARDING_DENIED \
X		ERR_FTP_DISABLED ERR_FTP_FAILURE ERR_FTP_FORBIDDEN \
X		ERR_FTP_NOT_FOUND ERR_FTP_PUT_CREATED \
X		ERR_FTP_PUT_ERROR ERR_FTP_PUT_MODIFIED ERR_FTP_UNAVAILABLE \
X		ERR_GATEWAY_FAILURE \
X		ERR_ICAP_FAILURE ERR_INVALID_REQ ERR_INVALID_RESP \
X		ERR_INVALID_URL ERR_LIFETIME_EXP ERR_NO_RELAY \
X		ERR_ONLY_IF_CACHED_MISS ERR_PRECONDITION_FAILED \
X		ERR_READ_ERROR ERR_READ_TIMEOUT \
X		ERR_SECURE_CONNECT_FAIL ERR_SHUTTING_DOWN ERR_SOCKET_FAILURE \
X		ERR_TOO_BIG ERR_UNSUP_REQ ERR_UNSUP_HTTPVERSION \
X		ERR_URN_RESOLVE ERR_WRITE_ERROR ERR_ZERO_SIZE_OBJECT \
X		error-details.txt
X
Xerror_dirs=	af ar az bg ca cs da de el en es et fa fi fr he hu hy id it \
X		ja ko lt lv ms nl oc pl pt pt-br ro ru sk sl sr-cyrl sr-latn \
X		sv \
X		th tr uk uz \
X		vi zh-cn zh-tw \
X		templates
X
Xerror_dir_links=	ar-ae ar-bh ar-dz ar-eg ar-iq ar-jo ar-kw ar-lb \
X			ar-ly ar-ma ar-om ar-qa ar-sa ar-sy ar-tn ar-ye \
X			az-az bg-bg cs-cz da-dk \
X			de-at de-ch de-de de-li de-lu \
X			el-gr \
X			en-au en-bz en-ca en-gb en-ie en-in en-jm en-nz \
X			en-ph en-sg en-tt en-uk en-us en-za en-zw \
X			es-ar es-bo es-cl es-co es-cr es-do es-ec es-es \
X			es-gt es-hn es-mx es-ni es-pa es-pe es-pr es-py \
X			es-sv es-uy es-ve \
X			et-ee \
X			fa-fa fa-ir fi-fi \
X			fr-be fr-ca fr-ch fr-fr fr-lu fr-mc \
X			he-il hu-hu hy-am hy-armn id-id it-ch it-it \
X			ja-jp ko-kp ko-kr lt-lt lv-lv ms-my nl-nl \
X			pl-pl pt-pt ro-md ro-ro ru-ru \
X			sk-sk sl-si sr sr-latn-cs sr-sp sv-fi sv-se \
X			th-th tr-tr uk-ua vi-vn zh-hk zh-mo zh-sg
X
Xlibexec=	cachemgr.cgi \
X		diskd \
X		helper-mux.pl
X
X.if !defined(SQUID_CONFIGURE_ARGS) || ${SQUID_CONFIGURE_ARGS:M*--disable-unlinkd*} == ""
Xlibexec+=	unlinkd
X.endif
X
Xsbin=		purge squidclient squid
X
XCONFIGURE_ARGS=	--with-default-user=squid \
X		--bindir=${PREFIX}/sbin  \
X		--sbindir=${PREFIX}/sbin  \
X		--datadir=${ETCDIR} \
X		--libexecdir=${PREFIX}/libexec/squid \
X		--localstatedir=/var/squid \
X		--sysconfdir=${ETCDIR} \
X		--with-logdir=/var/log/squid \
X		--with-pidfile=/var/run/squid/squid.pid \
X		--enable-auth \
X		--enable-build-info \
X		--enable-loadable-modules \
X		--enable-removal-policies="lru heap" \
X		--disable-epoll \
X		--disable-linux-netfilter \
X		--disable-linux-tproxy \
X		--disable-translation
X
X.include <bsd.port.options.mk>
X.include <bsd.port.pre.mk>
X
X# Authentication methods and modules:
X# TODO: external-session hängt wovon ab?
X
Xbasic_auth=	DB MSNT MSNT-multi-domain NCSA PAM POP3 RADIUS \
X		fake getpwnam
Xdigest_auth=	file
Xexternal_acl=	file_userip unix_group
Xntlm_auth=	fake smb_lm
Xlibexec+=	basic_db_auth \
X		basic_fake_auth \
X		basic_getpwnam_auth \
X		basic_ncsa_auth \
X		basic_msnt_auth \
X		basic_msnt_multi_domain_auth \
X		basic_pam_auth \
X		basic_pop3_auth \
X		basic_radius_auth \
X		digest_file_auth \
X		ext_file_userip_acl \
X		ext_unix_group_acl \
X		ntlm_fake_auth \
X		ntlm_smb_lm_auth
XMAN8+=		basic_getpwnam_auth.8 basic_ncsa_auth.8 basic_pam_auth.8 \
X		basic_radius_auth.8 basic_db_auth.8 \
X		digest_file_auth.8 \
X		ext_file_userip_acl.8 ext_unix_group_acl.8
X.if ${PORT_OPTIONS:MAUTH_LDAP}
XUSE_OPENLDAP=	yes
XCFLAGS+=	-I${LOCALBASE}/include
XLDFLAGS+=	-L${LOCALBASE}/lib
XMAN8+=		basic_ldap_auth.8 ext_ldap_group_acl.8
Xbasic_auth+=	LDAP
Xexternal_acl+=	LDAP_group
Xlibexec+=	basic_ldap_auth ext_ldap_group_acl
X.endif
X.if ${PORT_OPTIONS:MAUTH_SASL}
XLIB_DEPENDS+=	sasl2.2:${PORTSDIR}/security/cyrus-sasl2
XCFLAGS+=	-I${LOCALBASE}/include
XCPPFLAGS+=	-I${LOCALBASE}/include
XLDFLAGS+=	-L${LOCALBASE}/lib
XMAN8+=		basic_sasl_auth.8
Xbasic_auth+=	SASL
Xlibexec+=	basic_sasl_auth
X.endif
X.if ${PORT_OPTIONS:MAUTH_SMB}
X# TODO: build-depends entfernen, wird nur für den configure-check gebraucht
XBUILD_DEPENDS+=	smbclient:${PORTSDIR}/net/samba36
XRUN_DEPENDS+=	smbclient:${PORTSDIR}/net/samba36
Xbasic_auth+=	SMB
Xexternal_acl+=	wbinfo_group
Xlibexec+=	basic_smb_auth basic_smb_auth.sh \
X		ext_wbinfo_group_acl
XMAN8+=		ext_wbinfo_group_acl.8
X.endif
X# POLA: allow the old global make.conf(5) (pre src.conf(5)) defines, too:
X.if ${PORT_OPTIONS:MAUTH_NIS} && !defined(NO_NIS) && !defined(WITHOUT_NIS)
Xbasic_auth+=	NIS
Xlibexec+=	basic_nis_auth
X.endif
XCONFIGURE_ARGS+=	--enable-auth-basic="${basic_auth}" \
X			--enable-auth-digest="${digest_auth}" \
X			--enable-external-acl-helpers="${external_acl}" \
X			--enable-auth-ntlm="${ntlm_auth}"
X# TODO:
X#  - configure-Skript auf bashisms prüfen
X#  - external/kerberos_ldap_group immer mit installieren?
X#  - gehört wrapper auch zu kerberos oder kann man den immer installieren?
X#  - negotiate_auth-Variable einführen
X# POLA: allow the old global make.conf(5) (pre src.conf(5)) defines, too:
X.if ${PORT_OPTIONS:MAUTH_KERB} && !defined(NO_KERBEROS) && !defined(WITHOUT_KERBEROS)
XCONFIGURE_ARGS+=	--enable-auth-negotiate="kerberos wrapper"
Xlibexec+=	negotiate_kerberos_auth negotiate_kerberos_auth_test \
X		negotiate_wrapper_auth
XMAN8+=		negotiate_kerberos_auth.8
X.else
XCONFIGURE_ARGS+=	--enable-auth-negotiate="none"
X.endif
X
X# Storage schemes:
X
Xstorage_schemes=	diskd rock ufs
Xdiskio_modules=	AIO Blocking DiskDaemon IpcIo Mmapped
X.if ${PORT_OPTIONS:MFS_AUFS}
Xstorage_schemes+=	aufs
Xdiskio_modules+=	DiskThreads
X# Only document switching from libpthread to libthr using libmap.conf
X# where lipthread is still the default threading library:
X.if ${OSVERSION} < 700041
XEXTRA_PATCHES+=		${PATCHDIR}/extra-patch-src-cf.data.pre.aufs
X.endif
X# Nil aufs threads is default, set any other value via SQUID_CONFIGURE_ARGS,
X# e.g. SQUID_CONFIGURE_ARGS=--with-aufs-threads=N
XCFLAGS+=	${PTHREAD_CFLAGS}
XLDFLAGS+=	${PTHREAD_LIBS}
X.else
XCONFIGURE_ARGS+=	--without-pthreads
X.endif
X.if ${PORT_OPTIONS:MFS_COSS}
Xstorage_schemes+=	coss
X.endif
XCONFIGURE_ARGS+=	--enable-storeio="${storage_schemes}"
XCONFIGURE_ARGS+=	--enable-disk-io="${diskio_modules}"
X
X# Log daemon helpers:
X
Xlogdaemon_helpers=	file
XCONFIGURE_ARGS+=	--enable-log-daemon-helpers="${logdaemon_helpers}"
Xlibexec+=	log_file_daemon
X
X# Rewrite helpers:
X
Xrewrite_helpers=	fake
XCONFIGURE_ARGS+=	--enable-url-rewrite-helpers="${rewrite_helpers}"
Xlibexec+=	url_fake_rewrite url_fake_rewrite.sh
X
X# Other options set via 'make config':
X
X.if empty(PORT_OPTIONS:MIPV6) || defined(WITHOUT_IPV6)
XCONFIGURE_ARGS+=	--disable-ipv6
X.endif
X.if ${PORT_OPTIONS:MDELAY_POOLS}
XCONFIGURE_ARGS+=	--enable-delay-pools
X.endif
X.if empty(PORT_OPTIONS:MSNMP)
XCONFIGURE_ARGS+=	--disable-snmp
X.endif
X.if ${PORT_OPTIONS:MSSL}
X# we need to .include bsd.openssl.mk manually here.because USE_OPENSSL only
X# works when it is defined before bsd.port{.pre}.mk is .included.
X# This makes it currently impossible to combine this macro with OPTIONS to
X# conditionally include OpenSSL support.
X# XXX: is this still true with OptionsNG as of 2012-10?
X.include "${PORTSDIR}/Mk/bsd.openssl.mk"
XCONFIGURE_ARGS+=	--enable-ssl \
X			--with-openssl="${OPENSSLBASE}"
XCFLAGS+=	-I${OPENSSLINC}
XLDFLAGS+=	-L${OPENSSLLIB}
X.endif
X.if ${PORT_OPTIONS:MSSL_CRTD}
XCONFIGURE_ARGS+=	--enable-ssl-crtd
Xlibexec+=	ssl_crtd
X.endif
X.if ${PORT_OPTIONS:MICMP}
XCONFIGURE_ARGS+=	--enable-icmp
Xlibexec+=	pinger
X.endif
X.if ${PORT_OPTIONS:MDNS_HELPER}
XCONFIGURE_ARGS+=	--disable-internal-dns
Xlibexec+=	dnsserver
X.endif
X.if empty(PORT_OPTIONS:MHTCP)
XCONFIGURE_ARGS+=	--disable-htcp
X.else
XCONFIGURE_ARGS+=	--enable-htcp
X.endif
X.if ${PORT_OPTIONS:MVIA_DB}
XCONFIGURE_ARGS+=	--enable-forw-via-db
X.else
XCONFIGURE_ARGS+=	--disable-forw-via-db
X.endif
X.if ${PORT_OPTIONS:MCACHE_DIGESTS}
XCONFIGURE_ARGS+=	--enable-cache-digests
X.else
XCONFIGURE_ARGS+=	--disable-cache-digests
X.endif
X.if ${PORT_OPTIONS:MWCCP}
XCONFIGURE_ARGS+=	--enable-wccp
X.else
XCONFIGURE_ARGS+=	--disable-wccp
X.endif
X.if ${PORT_OPTIONS:MWCCPV2}
XCONFIGURE_ARGS+=	--enable-wccpv2
X.else
XCONFIGURE_ARGS+=	--disable-wccpv2
X.endif
X.if ${PORT_OPTIONS:MSTRICT_HTTP}
XCONFIGURE_ARGS+=	--disable-http-violations
X.endif
X.if empty(PORT_OPTIONS:MIDENT)
XCONFIGURE_ARGS+=	--disable-ident-lookups
X.endif
X.if ${PORT_OPTIONS:MARP_ACL}
XCONFIGURE_ARGS+=	--enable-eui
X.else
XCONFIGURE_ARGS+=	--disable-eui
X.endif
X.if ${PORT_OPTIONS:MTP_IPFW}
XCONFIGURE_ARGS+=	--enable-ipfw-transparent
X.else
XCONFIGURE_ARGS+=	--disable-ipfw-transparent
X.endif
X.if ${PORT_OPTIONS:MTP_PF}
XCONFIGURE_ARGS+=	--enable-pf-transparent
X.else
XCONFIGURE_ARGS+=	--disable-pf-transparent
X.endif
X.if ${PORT_OPTIONS:MTP_IPF}
XCONFIGURE_ARGS+=	--enable-ipf-transparent
X.else
XCONFIGURE_ARGS+=	--disable-ipf-transparent
X.endif
X.if ${PORT_OPTIONS:MFOLLOW_XFF}
XCONFIGURE_ARGS+=	--enable-follow-x-forwarded-for
X.else
XCONFIGURE_ARGS+=	--disable-follow-x-forwarded-for
X.endif
X.if ${PORT_OPTIONS:MECAP}
XCONFIGURE_ARGS+=	--enable-ecap
XLIB_DEPENDS+=	ecap:${PORTSDIR}/www/libecap
XCFLAGS+=	-I${LOCALBASE}/include
XLDFLAGS+=	-L${LOCALBASE}/lib
XUSE_PKGCONFIG=	build
X.else
XCONFIGURE_ARGS+=	--disable-ecap
X.endif
X.if ${PORT_OPTIONS:MICAP}
XCONFIGURE_ARGS+=	--enable-icap-client
X.else
XCONFIGURE_ARGS+=	--disable-icap-client
X.endif
X.if ${PORT_OPTIONS:MESI}
XCONFIGURE_ARGS+=	--enable-esi
XLIB_DEPENDS+=	expat:${PORTSDIR}/textproc/expat2 \
X		xml2:${PORTSDIR}/textproc/libxml2
XCFLAGS+=	-I${LOCALBASE}/include -I${LOCALBASE}/include/libxml2
XLDFLAGS+=	-L${LOCALBASE}/lib
X.else
XCONFIGURE_ARGS+=	--disable-esi
X.endif
X.if empty(PORT_OPTIONS:MKQUEUE)
X# Squid-3's kqueue support is still marked as experimental, so it is not yet
X# enabled automatically as in Squid-2. We are explicit about disabling it,
X# nonetheless:
XCONFIGURE_ARGS+=	--disable-kqueue
X.else
XCONFIGURE_ARGS+=	--enable-kqueue
X.endif
X.if ${PORT_OPTIONS:MLARGEFILE}
XCONFIGURE_ARGS+=	--with-large-files
X.endif
X.if ${PORT_OPTIONS:MSTACKTRACES}
XCONFIGURE_ARGS+=	--enable-stacktraces
XCFLAGS+=		-g
XSTRIP=
X.endif
X.if ${PORT_OPTIONS:MDEBUG} || defined(WITH_DEBUG)
XCONFIGURE_ARGS+=	--disable-optimizations --enable-debug-cbdata
XWITH_DEBUG?=		yes
X.endif
X
X# Finally, add additional user specified configuration options:
XCONFIGURE_ARGS+=	${SQUID_CONFIGURE_ARGS}
X
XPLIST_DIRS=	%%ETCDIR%%/icons/silk %%ETCDIR%%/icons libexec/squid
XPLIST_FILES=	${etc_files:S,^,etc/,} \
X		%%ETCDIR%%/icons/SN.png \
X		${icon_silk_files:S,^,%%ETCDIR%%/icons/silk/,} \
X		${libexec:S,^,libexec/squid/,} ${sbin:S,^,sbin/,}
X
XPLIST_FILES+=	%%ETCDIR%%/errors/COPYRIGHT %%ETCDIR%%/errors/TRANSLATORS
X.for d in ${error_dirs}
XPLIST_DIRS+=	%%ETCDIR%%/errors/${d}
XPLIST_FILES+=	${error_files:S,^,%%ETCDIR%%/errors/${d}/,}
X.endfor
XPLIST_FILES+=	${error_dir_links:S,^,%%ETCDIR%%/errors/,}
XPLIST_DIRS+=	%%ETCDIR%%/errors
XPLIST_DIRSTRY+=	%%ETCDIR%%
X
Xpost-patch:
X	@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \
X	    ${WRKSRC}/src/cf.data.pre
X
Xpre-install:
X# Prevent installation of .orig files by deleting them.
X	@${FIND} ${WRKSRC} -name '*.bak' -delete
X	@${FIND} ${WRKSRC} -name '*.orig' -delete
X
Xpre-su-install:
X	@${SETENV} ${SCRIPTS_ENV} PKG_PREFIX=${PREFIX} \
X	    ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
X
Xpost-install:
X.if !defined(NOPORTEXAMPLES)
X	@${MKDIR} ${EXAMPLESDIR}
X	${INSTALL_DATA} ${WRKSRC}/helpers/basic_auth/DB/passwd.sql ${EXAMPLESDIR}
X.endif
X.if ${PORT_OPTIONS:MICMP}
X	${CHMOD} 4510 ${PREFIX}/libexec/squid/pinger; \
X	${CHGRP} squid ${PREFIX}/libexec/squid/pinger
X.endif
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X	cd ${WRKSRC} && ${INSTALL_DATA} ${docs} ${DOCSDIR}
X.endif
X	@${SETENV} PKG_PREFIX=${PREFIX} \
X	    ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
X
X	@${ECHO_CMD} "===> post-installation information for ${PKGNAME}:"
X	@${ECHO_CMD} ""
X	@${CAT} ${PKGMESSAGE}
X	@${ECHO_CMD} ""
X
X.include <bsd.port.post.mk>
464ef7c6571951809b23e262cbe26e19
echo x - ./pkg-deinstall
sed 's/^X//' >./pkg-deinstall << 'e929be94aa11a11392f0a3d9e6faf6c3'
X#!/bin/sh
X#
X# $FreeBSD: ports/www/squid31/files/pkg-deinstall.in,v 1.5 2010/05/02 10:52:12 miwi Exp $
X#
X
XPATH=/bin:/usr/bin:/usr/sbin
Xsquid_base="/var/squid"
Xsquid_cachedir="${squid_base}/cache"
Xsquid_confdir=${PKG_PREFIX}/etc/squid
Xsquid_logdir="/var/log/squid"
Xsquid_rundir="/var/run/squid"
X
Xcase $2 in
XDEINSTALL)
X	cd ${squid_confdir} || exit 1
X	for f in cachemgr.conf errorpage.css mime.conf msntauth.conf squid.conf; do
X		cmp -s -z ${f} ${f}.default && rm ${f}
X	done
X	# try to cleanup directories in /var:
X	for d in ${squid_cachedir} ${squid_base} ${squid_logdir} ${squid_rundir}; do
X		rmdir ${d} 2>/dev/null
X	done
X	;;
XPOST-DEINSTALL)
X	echo "===> post-deinstallation information for $1:"
X	echo ""
X	echo "     Note:"
X	echo "     Squid related user accounts and groups were not removed."
X	echo ""
X	echo "     To remove the 'squid' user and the 'squid' group which were"
X	echo "     created by a default installation of this package, run"
X	echo ""
X	echo "     pw userdel -n squid -u 100"
X	if  [ -d ${squid_base} -o -d ${squid_confdir} -o -d ${squid_logdir} -o -d ${squid_rundir} ] ; then
X		echo ""
X		echo "     In order to ease updates the cache and log directories"
X		echo "     and all configuration files modified by you were preserved."
X		echo ""
X		echo "     Please remove them manually if you do not want to use"
X	       	echo "     Squid any longer."
X	fi
X	echo ""
X	;;
X*)
X	exit 64
X	;;
Xesac
Xexit 0
e929be94aa11a11392f0a3d9e6faf6c3
echo x - ./distinfo
sed 's/^X//' >./distinfo << 'aec8793adfd5b7c3f00e62ae41a09ac2'
XSHA256 (squid3.2/squid-3.2.3.tar.bz2) = 1741c3ef647f5b0960498b7bb3e44af4a4409c321afe2d141c67d2b5c85ed5a1
XSIZE (squid3.2/squid-3.2.3.tar.bz2) = 2891753
aec8793adfd5b7c3f00e62ae41a09ac2
echo x - ./pkg-descr
sed 's/^X//' >./pkg-descr << '0e313719ff012ceaf97a028d51caa8f5'
XSquid is a fully-featured HTTP/1.0 proxy which is almost (but not quite)
XHTTP/1.1 compliant. Squid offers a rich access control, authorization and
Xlogging environment to develop web proxy and content serving applications.
X
XWWW: http://www.squid-cache.org/
0e313719ff012ceaf97a028d51caa8f5
exit

	


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list