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