openbsd-ports/www/squid/Makefile

80 lines
1.9 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.103 2010/05/19 07:38:06 espie Exp $
COMMENT= WWW and FTP proxy cache and accelerator
1998-09-13 21:36:52 -04:00
DISTNAME= squid-2.7.STABLE7
PKGNAME= ${DISTNAME}p1
1998-09-13 21:36:52 -04:00
CATEGORIES= www
MASTER_SITES= ${HOMEPAGE}/Versions/v2/2.7/
DIST_SUBDIR= squid
1998-09-13 21:36:52 -04:00
2000-06-10 02:27:25 -04:00
HOMEPAGE= http://www.squid-cache.org/
MAINTAINER= Brad Smith <brad@comstyle.com>
1998-09-13 21:36:52 -04:00
# GPLv2+
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= asn1 c com_err crypto krb5 gssapi m pthread ssl
2000-02-12 03:02:07 -05:00
SQUIDDIR?= /var/squid
SUBST_VARS= SQUIDDIR
FLAVORS= ldap snmp
FLAVOR?=
.include <bsd.own.mk>
# optimization workaround for gcc 2.95
.if ${COMPILER_VERSION:L:Mgcc2}
PATCH_LIST= patch-* gcc-*
.endif
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
AUTOCONF_VERSION= 2.62
CONFIGURE_STYLE= autoconf
2004-08-04 12:12:14 -04:00
MODGNU_CONFIG_GUESS_DIRS=${WRKSRC}/cfgaux
CONFIGURE_ARGS+=--datadir="${PREFIX}/share/squid" \
--enable-auth="basic digest" \
--enable-arp-acl \
--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 \
--enable-removal-policies="lru heap" \
--enable-ssl \
--enable-storeio="${STOREIO}" \
--with-pthreads \
--localstatedir="${SQUIDDIR}" \
--enable-follow-x-forwarded-for
2002-03-16 13:18:30 -05:00
.if ${FLAVOR:L:Mldap}
BASIC_AUTH+= LDAP
DIGEST_AUTH+= ldap
EXTERNAL_ACL+= ldap_group
LIB_DEPENDS+= ldap,lber::databases/openldap
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
.endif
.if${FLAVOR:L:Msnmp}
CONFIGURE_ARGS+=--enable-snmp
.endif
post-install:
@chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/examples/squid
@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>