2007-05-19 20:52:32 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.87 2007/05/20 00:52:32 todd Exp $
|
2001-05-06 00:22:45 -04:00
|
|
|
|
|
|
|
COMMENT= "WWW and FTP proxy cache and accelerator"
|
1998-09-13 21:36:52 -04:00
|
|
|
|
2007-05-19 20:52:32 -04:00
|
|
|
DISTNAME= squid-2.6.STABLE13
|
1998-09-13 21:36:52 -04:00
|
|
|
CATEGORIES= www
|
2006-10-03 01:00:49 -04:00
|
|
|
MASTER_SITES= ${HOMEPAGE}Versions/v2/2.6/
|
2000-03-30 16:59:26 -05:00
|
|
|
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
|
|
|
|
2003-07-07 13:44:43 -04:00
|
|
|
# GPL
|
2000-03-30 16:59:26 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2004-12-07 14:33:33 -05:00
|
|
|
WANTLIB= c crypto m 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
|
|
|
|
2004-06-11 04:00:35 -04:00
|
|
|
FLAVORS= transparent 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>
|
|
|
|
|
|
|
|
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
|
2006-10-03 01:00:49 -04:00
|
|
|
AUTOCONF_VERSION= 2.59
|
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" \
|
|
|
|
--enable-auth="basic digest" \
|
2006-10-03 01:00:49 -04:00
|
|
|
--enable-arp-acl \
|
2004-06-11 04:00:35 -04:00
|
|
|
--enable-basic-auth-helpers="NCSA YP" \
|
|
|
|
--enable-digest-auth-helpers="password" \
|
|
|
|
--enable-external-acl-helpers="ip_user unix_group" \
|
|
|
|
--enable-removal-policies="lru heap" \
|
2003-07-07 13:44:43 -04:00
|
|
|
--enable-ssl \
|
2006-10-03 01:00:49 -04:00
|
|
|
--enable-storeio="ufs diskd null" \
|
2002-03-16 13:18:30 -05:00
|
|
|
--localstatedir="${SQUIDDIR}"
|
|
|
|
|
2002-02-19 20:17:03 -05:00
|
|
|
.if ${FLAVOR:L:Mtransparent}
|
2004-06-11 04:00:35 -04:00
|
|
|
CONFIGURE_ARGS+=--enable-pf-transparent
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if${FLAVOR:L:Msnmp}
|
|
|
|
CONFIGURE_ARGS+=--enable-snmp
|
2002-02-19 20:17:03 -05:00
|
|
|
.endif
|
|
|
|
|
|
|
|
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>
|