# New ports collection makefile for: squid24 # Date created: Tue Mar 27 14:56:08 CEST 2001 # Whom: Adrian Chadd # # $FreeBSD$ # # Tunables not (yet) configurable via 'make config': # SQUID_{U,G}ID # Which user/group Squid should run as (default: squid/squid). # The user and group will be created if they do not already exist using # a uid:gid of 100:100. # 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. # # SQUID_LANGUAGES # A list of languages for which error page files should be installed # (default: all) # # 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. # # SQUID_DEFAULT_LANG # If you define SQUID_LANGUAGES, select which language should be the default # one (this variable defaults to English). This setting can be overwritten # with squid.conf's error_directory directive. # # SQUID_CONFIGURE_ARGS # Additional configuration options. # # 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 # in the Squid source distribution for the complete list of additional # 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. # # --enable-dlmalloc # Compile and use the malloc package from Doug Lea # --enable-gnuregex # Compile and use the supplied GNUregex routines instead of BSD regex # (not recommended). # --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) # --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. # --enable-ntlm-fail-open # Enable NTLM fail open, where a helper that fails one of the # Authentication steps can allow Squid to still authenticate the user # --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. PORTNAME= lusca DISTVERSION= r14809 PORTREVISION= 6 CATEGORIES= www MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} PROJECTHOST= lusca-cache PKGNAMESUFFIX= -head DISTNAME= LUSCA_HEAD-r14809 # EXTRACT_SUFX= .tar.gz MAINTAINER= adrian@FreeBSD.org COMMENT= HTTP Caching Proxy (Squid Derivative) - Stable Release CONFLICTS= squid-[0-9]* cacheboy* GNU_CONFIGURE= yes USE_PERL5= yes USE_RC_SUBR= squid SQUID_UID?= squid SQUID_GID?= squid MAN8= cachemgr.cgi.8 squid.8 docs= QUICKSTART README.Squid ChangeLog.Cacheboy doc/debug-sections.txt PORTDOCS= ${docs:T} PORTEXAMPLES= passwd.sql SUB_FILES+= pkg-deinstall pkg-install pkg-message SUB_LIST+= SQUID_UID=${SQUID_UID} SQUID_GID=${SQUID_GID} OPTIONS= SQUID_LDAP_AUTH "Install LDAP authentication helpers" off \ SQUID_SASL_AUTH "Install SASL authentication helpers" off \ SQUID_KERBEROS_HELPER "Install Keberos authentication helper" off \ SQUID_DELAY_POOLS "Enable delay pools" on \ SQUID_SNMP "Enable SNMP support" on \ SQUID_CARP "Enable CARP support" on \ SQUID_SSL "Enable SSL support for reverse proxies" off \ SQUID_PINGER "Install the icmp helper" on \ 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 \ SQUID_WCCP "Enable Web Cache Coordination Prot. v1" off \ SQUID_WCCPV2 "Enable Web Cache Coordination Prot. v2" off \ SQUID_STRICT_HTTP "Be strictly HTTP compliant" off \ SQUID_IDENT "Enable ident (RFC 931) lookups" off \ SQUID_REFERER_LOG "Enable Referer-header logging" off \ SQUID_USERAGENT_LOG "Enable User-Agent-header logging" off \ SQUID_ARP_ACL "Enable ACLs based on ethernet address" off \ SQUID_PF "Enable transparent proxying with PF" off \ SQUID_IPFILTER "Enable transp. proxying with IPFilter" off \ SQUID_FOLLOW_XFF "Follow X-Forwarded-For headers" off \ SQUID_COSS "Enable the COSS storage scheme" on \ SQUID_KQUEUE "Use kqueue(2) instead of poll(2)" on \ SQUID_LARGEFILE "Support log and cache files >2GB" on \ SQUID_STACKTRACES "Create backtraces on fatal errors" on \ SQUID_TPROXY "Enable FreeBSD-current TPROXY support" off etc_files= squid/cachemgr.conf.default \ squid/mib.txt squid/mime.conf.default \ squid/msntauth.conf.default squid/squid.conf.default \ squid/squid.conf.clean 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 \ ERR_FTP_PUT_ERROR ERR_FTP_PUT_MODIFIED ERR_FTP_UNAVAILABLE \ ERR_INVALID_REQ ERR_INVALID_RESP ERR_INVALID_URL \ 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 libexec= cachemgr.cgi digest_pw_auth logfile-daemon \ ip_user_check \ msnt_auth ncsa_auth ntlm_auth \ pam_auth smb_auth smb_auth.sh squid_db_auth squid_session \ squid_unix_group wbinfo_group.pl \ ufs_log_build ufs_log_cat ufs_rebuild coss_rebuild .if !defined(SQUID_CONFIGURE_ARGS) || ${SQUID_CONFIGURE_ARGS:M*--disable-unlinkd*} == "" libexec+= unlinkd .endif sbin= RunCache squidclient squid coss_newfs ufs_log_dump ufs_newfs CONFIGURE_ARGS= --bindir=${PREFIX}/sbin \ --sbindir=${PREFIX}/sbin \ --datadir=${PREFIX}/etc/squid \ --libexecdir=${PREFIX}/libexec/squid \ --localstatedir=${PREFIX}/squid \ --sysconfdir=${PREFIX}/etc/squid \ --enable-removal-policies="lru heap" \ --disable-linux-netfilter \ --disable-linux-tproxy \ --disable-epoll .include .if defined(SQUID_KERBEROS_HELPER) && ${OSVERSION} >= 800037 BROKEN= does not compile with Heimdal 1.1 in 8.0-CURRENT .endif .if ${OSVERSION} < 700000 BROKEN= does not compile with OpenSSL in 6.x base .endif # Authentication methods and modules: basic_auth= DB NCSA PAM MSNT SMB digest_auth= password external_acl= ip_user session unix_group wbinfo_group MAN8+= ncsa_auth.8 pam_auth.8 squid_db_auth.8 squid_session.8 \ squid_unix_group.8 .if defined(WITH_SQUID_LDAP_AUTH) USE_OPENLDAP= yes CFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib MAN8+= squid_ldap_auth.8 squid_ldap_group.8 basic_auth+= LDAP digest_auth+= ldap external_acl+= ldap_group libexec+= digest_ldap_auth squid_ldap_auth squid_ldap_group .endif .if defined(WITH_SQUID_SASL_AUTH) LIB_DEPENDS+= sasl2:${PORTSDIR}/security/cyrus-sasl2 CFLAGS+= -I${LOCALBASE}/include CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib basic_auth+= SASL libexec+= sasl_auth .endif .if !defined(NO_NIS) && !defined(WITHOUT_NIS) basic_auth+= YP libexec+= yp_auth .endif CONFIGURE_ARGS+= --enable-auth="basic ntlm digest" \ --enable-basic-auth-helpers="${basic_auth}" \ --enable-digest-auth-helpers="${digest_auth}" \ --enable-external-acl-helpers="${external_acl}" \ --enable-ntlm-auth-helpers="SMB" .if defined(SQUID_KERBEROS_HELPER) && !defined(NO_KERBEROS) && !defined(WITHOUT_KERBEROS) # XXX This currently only works with heimdal from the base system, # see ${FILES_DIR}/patch-helpers_negotiate_auth-squid_kerb_auth_* CONFIGURE_ARGS+= --enable-negotiate-auth-helpers="squid_kerb_auth" libexec+= squid_kerb_auth .endif # Storage schemes: storage_schemes= aufs null # Nil aufs threads is default, set any other value via SQUID_CONFIGURE_ARGS CONFIGURE_ARGS+= --with-pthreads CFLAGS+= ${PTHREAD_CFLAGS} .if defined(WITH_SQUID_COSS) storage_schemes+= coss sbin+= cossdump .endif CONFIGURE_ARGS+= --enable-storeio="${storage_schemes}" # Other options set via 'make config': .if defined(WITH_SQUID_DELAY_POOLS) CONFIGURE_ARGS+= --enable-delay-pools .endif .if defined(WITH_SQUID_SNMP) CONFIGURE_ARGS+= --enable-snmp .endif .if defined(WITHOUT_SQUID_CARP) CONFIGURE_ARGS+= --disable-carp .endif .if defined(WITH_SQUID_SSL) # 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. .include "${PORTSDIR}/Mk/bsd.openssl.mk" CONFIGURE_ARGS+= --enable-ssl \ --with-openssl="${OPENSSLBASE}" CFLAGS+= -I${OPENSSLINC} LDFLAGS+= -L${OPENSSLLIB} .endif .if defined(WITH_SQUID_PINGER) CONFIGURE_ARGS+= --enable-icmp libexec+= pinger .endif .if defined(WITH_SQUID_DNS_HELPER) CONFIGURE_ARGS+= --disable-internal-dns libexec+= dnsserver .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 .if defined(WITH_SQUID_WCCPV2) CONFIGURE_ARGS+= --enable-wccpv2 .endif .if defined(WITH_SQUID_STRICT_HTTP) CONFIGURE_ARGS+= --disable-http-violations .endif .if defined(WITHOUT_SQUID_IDENT) CONFIGURE_ARGS+= --disable-ident-lookups .endif .if defined(WITH_SQUID_REFERER_LOG) CONFIGURE_ARGS+= --enable-referer-log .endif .if defined(WITH_SQUID_USERAGENT_LOG) CONFIGURE_ARGS+= --enable-useragent-log .endif .if defined(WITH_SQUID_ARP_ACL) CONFIGURE_ARGS+= --enable-arp-acl .endif .if defined(WITH_SQUID_PF) CONFIGURE_ARGS+= --enable-pf-transparent .endif .if defined(WITH_SQUID_IPFILTER) CONFIGURE_ARGS+= --enable-ipf-transparent .endif .if defined(WITH_SQUID_FOLLOW_XFF) CONFIGURE_ARGS+= --enable-follow-x-forwarded-for .endif .if defined(WITHOUT_SQUID_KQUEUE) CONFIGURE_ARGS+= --disable-kqueue .endif .if defined(WITH_SQUID_LARGEFILE) CONFIGURE_ARGS+= --with-large-files --enable-large-cache-files .endif .if defined(WITH_SQUID_STACKTRACES) CONFIGURE_ARGS+= --enable-stacktraces CFLAGS+= -g STRIP= .endif .if defined(WITH_SQUID_TPROXY) CONFIGURE_ARGS+= --enable-freebsd-tproxy .endif # Languages: # # If you do not define SQUID_LANGUAGES yourself, all available language files # will be installed; the default language will be English. SQUID_LANGUAGES?= Armenian 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 SQUID_DEFAULT_LANG?= English CONFIGURE_ARGS+= --enable-err-languages="${SQUID_LANGUAGES}" \ --enable-default-err-language=${SQUID_DEFAULT_LANG} # Finally, add additional user specified configuration options: CONFIGURE_ARGS+= ${SQUID_CONFIGURE_ARGS} 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 post-patch: @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' \ ${WRKSRC}/configure @${REINPLACE_CMD} -e 's|%%SQUID_UID%%|${SQUID_UID}|g' \ -e 's|%%SQUID_GID%%|${SQUID_GID}|g' \ -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/src/cf.data.pre @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ ${WRKSRC}/helpers/basic_auth/SMB/Makefile.in \ ${WRKSRC}/helpers/basic_auth/SMB/smb_auth.sh pre-install: # Prevent installation of .orig files by deleting them. @${FIND} ${WRKSRC} -name '*.bak' -delete @${FIND} ${WRKSRC} -name '*.orig' -delete pre-su-install: @${SETENV} ${SCRIPTS_ENV} PKG_PREFIX=${PREFIX} \ ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL post-install: .if !defined(NOPORTEXAMPLES) @${MKDIR} ${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/helpers/basic_auth/DB/passwd.sql ${EXAMPLESDIR} .endif .if defined(WITH_SQUID_PINGER) ${CHMOD} 4510 ${PREFIX}/libexec/squid/pinger; \ ${CHGRP} ${SQUID_GID} ${PREFIX}/libexec/squid/pinger .endif .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} cd ${WRKSRC} && ${INSTALL_DATA} ${docs} ${DOCSDIR} .endif @${SETENV} PKG_PREFIX=${PREFIX} \ ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL @${ECHO_CMD} "===> post-installation information for ${PKGNAME}:" @${ECHO_CMD} "" @${CAT} ${PKGMESSAGE} @${ECHO_CMD} "" .include * - chase exiv2 library bumpbapt2011-04-121-2/+2 * Fix graphics/hugin pkg-plistvd2011-01-252-0/+2 * Upgrade graphics/hugin from 2009.4.0 to 2010.4.0vd2011-01-104-88/+80 * Chase exiv2 shlib bump.kwm2010-08-201-1/+1 * Change dependency from boost-python back to boost-libs.makc2010-06-261-2/+2 * Bounce PORTREVISION for gettext-related ports. Have fun, ya'll.ade2010-05-311-1/+1 * - Add glew to the list of supported USE_GL variablesgahr2010-04-281-2/+2 * - fix build for png-1.4.1dinoex2010-03-291-0/+11 * - update to 1.4.1dinoex2010-03-281-1/+1 * The error with GCC 4.4:vd2010-02-211-1/+2 * Use ${OSVERSION} after including bsd.port.pre.mkvd2010-02-201-4/+4 * graphics/hugin:vd2010-02-201-1/+3 * - update to jpeg-8dinoex2010-02-051-0/+1 * graphics/hugin: Use GCC 4.4 or highervd2010-01-241-0/+2 * Upgrade graphics/hugin from 2009.2.0 to 2009.4.0.vd2010-01-114-25/+28 * - Fix build - switch dependency to boost-python-libspav2010-01-101-1/+1 * graphics/hugin:vd2009-10-051-1/+4 * graphics/hugin:vd2009-09-301-1/+1 * Upgrade graphics/hugin from 0.8.0 to 2009.2.0.vd2009-09-308-61/+38 * graphics/hugin:vd2009-09-091-8/+0 * Upgrade graphics/hugin from 0.7.0 to 0.8.0.vd2009-08-225-20/+295 * - Switch SourceForge ports to the new File Release System: categories startin...amdmi32009-08-221-1/+1 * - Update boost to 1.39pav2009-07-281-1/+1 * - update to jpeg7dinoex2009-07-181-1/+1 * bump PORTREVISION after cmake updatemakc2009-03-251-1/+1 * . update graphics/exiv2 to the new version;bsam2009-03-121-0/+1 * Upgrade graphics/hugin from 0.7.r3135 to 0.7.0.vd2008-12-034-9/+132 * Upgrade graphics/hugin from 0.7_beta4 to 0.7.r3135 (SVN revision 3135).vd2008-07-0117-334/+226 * graphics/hugin:vd2008-06-152-1/+14 * Change the bootstrap script so it works with the new gettextize.vd2008-06-111-2/+11 * Bump portrevision due to upgrade of devel/gettext.edwin2008-06-061-1/+1 * Hugin does not work with wxgtk 2.8. It crashes at startup, after displayingvd2008-01-221-1/+2 * * Upgrade graphics/hugin from 0.6.1 to 0.7.b4vd2008-01-197-93/+79 * Switch autoconf dependencies from 2.53 or 2.59 to 2.61.linimon2007-09-301-2/+2 * - Welcome X.org 7.2 \o/.flz2007-05-202-3/+1 * Allow the execution of gettextize because the present gettext infrastructurevd2007-03-292-49/+3 * Fix to expect gettextize versions greater than 0.14vd2007-03-221-1/+10 * Adopt graphics/hugin and related ports.vd2007-03-051-1/+1 * Reset cartola@openit.com.br due to maintainer-timeouts and no responselinimon2007-02-271-1/+1 * Update graphics/hugin from 0.5 to 0.6.1:vd2007-02-1912-40/+287 * - Use features of bsd.wx.mk, especially USE_WXpav2006-12-011-4/+3 * - Update to 0.5garga2006-01-305-143/+163 * - SHA256ifyedwin2006-01-301-0/+1 * BROKEN: Does not compilekris2005-12-181-0/+2 * Bump PORTREVISION to chase the glib20 shared library update.marcus2005-11-051-1/+1 * - Fix build on RELENG_4.fjoe2005-08-146-8/+75 * Fix pkg-plist (this file did not get into previous commit)fjoe2005-08-141-3/+9 * - Fix pkg-plist.fjoe2005-08-091-1/+5 * Fix the build (wx-config has different name now). Maintainer timeout.fjoe2005-07-151-1/+3 * Finish repo copy of wxgtk 2.4.2 ports to wxgtk24*fjoe2005-05-131-2/+2 * At Kris's request, back out the MACHINE_ARCH spelling correction untilobrien2005-04-121-1/+1 * Assist getting more ports working on AMD64 by obeying theobrien2005-04-111-1/+1 * Bump PORTREVISION to chase the glib20 shared lib version change.marcus2005-03-121-0/+1 * - Update to 0.5 beta2pav2005-03-067-474/+72 * Add use_imake to get makedependedwin2004-12-291-0/+1