openbsd-ports/www/squid/Makefile

65 lines
1.4 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.87 2007/05/20 00:52:32 todd Exp $
COMMENT= "WWW and FTP proxy cache and accelerator"
1998-09-13 21:36:52 -04:00
DISTNAME= squid-2.6.STABLE13
1998-09-13 21:36:52 -04:00
CATEGORIES= www
MASTER_SITES= ${HOMEPAGE}Versions/v2/2.6/
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/
2000-09-24 03:03:59 -04:00
MAINTAINER= Brad Smith <brad@openbsd.org>
1998-09-13 21:36:52 -04:00
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c crypto m ssl
2000-02-12 03:02:07 -05:00
SQUIDDIR?= /var/squid
SUBST_VARS= SQUIDDIR
FLAVORS= transparent snmp
FLAVOR?=
.include <bsd.own.mk>
USE_GCC3?= No
# optimization workaround for gcc 2.95
.if ${USE_GCC3:L} == "no"
PATCH_LIST= patch-* gcc-*
.endif
2002-03-16 13:18:30 -05:00
SEPARATE_BUILD= concurrent
AUTOCONF_VERSION= 2.59
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="NCSA YP" \
--enable-digest-auth-helpers="password" \
--enable-external-acl-helpers="ip_user unix_group" \
--enable-removal-policies="lru heap" \
--enable-ssl \
--enable-storeio="ufs diskd null" \
2002-03-16 13:18:30 -05:00
--localstatedir="${SQUIDDIR}"
.if ${FLAVOR:L:Mtransparent}
CONFIGURE_ARGS+=--enable-pf-transparent
.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>