2006-11-13 02:11:39 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.83 2006/11/13 02:11:39 brad Exp $
|
2001-05-06 04:22:45 +00:00
|
|
|
|
|
|
|
COMMENT= "WWW and FTP proxy cache and accelerator"
|
1998-09-14 01:36:52 +00:00
|
|
|
|
2006-11-13 02:11:39 +00:00
|
|
|
DISTNAME= squid-2.6.STABLE5
|
1998-09-14 01:36:52 +00:00
|
|
|
CATEGORIES= www
|
2006-10-03 05:00:49 +00:00
|
|
|
MASTER_SITES= ${HOMEPAGE}Versions/v2/2.6/
|
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/
|
|
|
|
|
2000-09-24 07:03:59 +00:00
|
|
|
MAINTAINER= Brad Smith <brad@openbsd.org>
|
1998-09-14 01:36:52 +00:00
|
|
|
|
2003-07-07 17:44:43 +00:00
|
|
|
# GPL
|
2000-03-30 21:59:26 +00:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2004-12-07 19:33:33 +00:00
|
|
|
WANTLIB= c crypto m 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
|
|
|
|
2004-06-11 08:00:35 +00:00
|
|
|
FLAVORS= transparent 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>
|
|
|
|
|
|
|
|
USE_GCC3?= No
|
|
|
|
|
|
|
|
# optimization workaround for gcc 2.95
|
|
|
|
.if ${USE_GCC3:L} == "no"
|
|
|
|
PATCH_LIST= patch-* gcc-*
|
|
|
|
.endif
|
|
|
|
|
2002-03-16 18:18:30 +00:00
|
|
|
SEPARATE_BUILD= concurrent
|
2006-10-03 05:00:49 +00:00
|
|
|
AUTOCONF_VERSION= 2.59
|
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" \
|
|
|
|
--enable-auth="basic digest" \
|
2006-10-03 05:00:49 +00:00
|
|
|
--enable-arp-acl \
|
2004-06-11 08:00:35 +00: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 17:44:43 +00:00
|
|
|
--enable-ssl \
|
2006-10-03 05:00:49 +00:00
|
|
|
--enable-storeio="ufs diskd null" \
|
2002-03-16 18:18:30 +00:00
|
|
|
--localstatedir="${SQUIDDIR}"
|
|
|
|
|
2002-02-20 01:17:03 +00:00
|
|
|
.if ${FLAVOR:L:Mtransparent}
|
2004-06-11 08:00:35 +00:00
|
|
|
CONFIGURE_ARGS+=--enable-pf-transparent
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if${FLAVOR:L:Msnmp}
|
|
|
|
CONFIGURE_ARGS+=--enable-snmp
|
2002-02-20 01:17:03 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
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>
|