2010-11-26 13:45:04 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.108 2010/11/26 13:45:04 dcoppa Exp $
|
2001-05-06 04:22:45 +00:00
|
|
|
|
2007-09-01 20:11:21 +00:00
|
|
|
COMMENT= WWW and FTP proxy cache and accelerator
|
1998-09-14 01:36:52 +00:00
|
|
|
|
2010-06-18 10:32:17 +00:00
|
|
|
DISTNAME= squid-2.7.STABLE9
|
2010-11-26 13:45:04 +00:00
|
|
|
REVISION= 0
|
1998-09-14 01:36:52 +00:00
|
|
|
CATEGORIES= www
|
2009-08-30 21:52:44 +00:00
|
|
|
MASTER_SITES= ${HOMEPAGE}/Versions/v2/2.7/
|
2000-03-30 21:59:26 +00:00
|
|
|
DIST_SUBDIR= squid
|
1998-09-14 01:36:52 +00:00
|
|
|
|
2000-06-10 06:27:25 +00:00
|
|
|
HOMEPAGE= http://www.squid-cache.org/
|
|
|
|
|
2007-09-01 20:11:21 +00:00
|
|
|
MAINTAINER= Brad Smith <brad@comstyle.com>
|
1998-09-14 01:36:52 +00:00
|
|
|
|
2008-05-31 10:07:45 +00:00
|
|
|
# GPLv2+
|
2000-03-30 21:59:26 +00:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2008-05-31 10:07:45 +00:00
|
|
|
WANTLIB= asn1 c com_err crypto krb5 gssapi m pthread ssl
|
2000-02-12 08:02:07 +00:00
|
|
|
|
2002-02-20 01:17:03 +00:00
|
|
|
SQUIDDIR?= /var/squid
|
|
|
|
SUBST_VARS= SQUIDDIR
|
1999-12-09 19:48:17 +00:00
|
|
|
|
2010-11-26 13:45:04 +00:00
|
|
|
FLAVORS= ldap ntlm snmp
|
2002-02-20 01:17:03 +00:00
|
|
|
FLAVOR?=
|
2001-01-17 02:38:20 +00:00
|
|
|
|
2004-04-13 00:40:47 +00:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
|
|
|
# optimization workaround for gcc 2.95
|
2010-05-19 07:38:06 +00:00
|
|
|
.if ${COMPILER_VERSION:L:Mgcc2}
|
2004-04-13 00:40:47 +00:00
|
|
|
PATCH_LIST= patch-* gcc-*
|
|
|
|
.endif
|
|
|
|
|
2010-11-26 13:45:04 +00:00
|
|
|
AUTH= basic digest
|
2008-05-31 10:07:45 +00:00
|
|
|
BASIC_AUTH= NCSA YP
|
|
|
|
DIGEST_AUTH= password
|
|
|
|
EXTERNAL_ACL= ip_user unix_group
|
|
|
|
STOREIO= aufs ufs diskd null
|
|
|
|
|
2002-03-16 18:18:30 +00:00
|
|
|
SEPARATE_BUILD= concurrent
|
2009-02-08 15:04:33 +00:00
|
|
|
AUTOCONF_VERSION= 2.62
|
2002-02-20 01:17:03 +00:00
|
|
|
CONFIGURE_STYLE= autoconf
|
2004-08-04 16:12:14 +00:00
|
|
|
MODGNU_CONFIG_GUESS_DIRS=${WRKSRC}/cfgaux
|
2004-06-11 08:00:35 +00:00
|
|
|
CONFIGURE_ARGS+=--datadir="${PREFIX}/share/squid" \
|
2010-11-26 13:45:04 +00:00
|
|
|
--enable-auth="${AUTH}" \
|
2006-10-03 05:00:49 +00:00
|
|
|
--enable-arp-acl \
|
2008-05-31 10:07:45 +00:00
|
|
|
--enable-basic-auth-helpers="${BASIC_AUTH}" \
|
|
|
|
--enable-digest-auth-helpers="${DIGEST_AUTH}" \
|
|
|
|
--enable-delay-pools \
|
|
|
|
--enable-external-acl-helpers="${EXTERNAL_ACL}" \
|
|
|
|
--enable-forw-via-db \
|
|
|
|
--enable-negotiate-auth-helpers="squid_kerb_auth" \
|
|
|
|
--enable-pf-transparent \
|
2004-06-11 08:00:35 +00:00
|
|
|
--enable-removal-policies="lru heap" \
|
2003-07-07 17:44:43 +00:00
|
|
|
--enable-ssl \
|
2008-05-31 10:07:45 +00:00
|
|
|
--enable-storeio="${STOREIO}" \
|
2007-12-04 01:27:13 +00:00
|
|
|
--with-pthreads \
|
2007-10-08 07:04:50 +00:00
|
|
|
--localstatedir="${SQUIDDIR}" \
|
|
|
|
--enable-follow-x-forwarded-for
|
2002-03-16 18:18:30 +00:00
|
|
|
|
2008-05-31 10:07:45 +00:00
|
|
|
.if ${FLAVOR:L:Mldap}
|
|
|
|
BASIC_AUTH+= LDAP
|
|
|
|
DIGEST_AUTH+= ldap
|
|
|
|
EXTERNAL_ACL+= ldap_group
|
2010-11-11 12:35:09 +00:00
|
|
|
WANTLIB+= ldap lber
|
2010-11-22 08:36:47 +00:00
|
|
|
LIB_DEPENDS+= databases/openldap
|
2008-05-31 10:07:45 +00:00
|
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2004-06-11 08:00:35 +00:00
|
|
|
.endif
|
|
|
|
|
2010-11-26 13:45:04 +00:00
|
|
|
.if ${FLAVOR:L:Mntlm}
|
|
|
|
AUTH+= ntlm
|
|
|
|
BASIC_AUTH+= SMB
|
|
|
|
EXTERNAL_ACL+= wbinfo_group
|
|
|
|
RUN_DEPENDS+= net/samba,ads
|
|
|
|
CONFIGURE_ARGS+=--enable-ntlm-auth-helpers="fakeauth SMB"
|
|
|
|
.endif
|
|
|
|
|
2004-06-11 08:00:35 +00:00
|
|
|
.if${FLAVOR:L:Msnmp}
|
|
|
|
CONFIGURE_ARGS+=--enable-snmp
|
2002-02-20 01:17:03 +00:00
|
|
|
.endif
|
|
|
|
|
2010-11-26 13:45:04 +00:00
|
|
|
pre-build:
|
|
|
|
@${SUBST_CMD} ${WRKSRC}/src/defines.h \
|
|
|
|
${WRKSRC}/helpers/external_acl/wbinfo_group/wbinfo_group.pl
|
|
|
|
|
2002-02-20 01:17:03 +00:00
|
|
|
post-install:
|
2002-04-17 18:03:21 +00:00
|
|
|
@chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/examples/squid
|
2004-02-16 10:21:20 +00:00
|
|
|
@find ${PREFIX}/share/examples/squid/errors \
|
|
|
|
-name '*.orig' -print0 | xargs -0 rm -f
|
1998-09-14 01:36:52 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|