diff options
Diffstat (limited to 'www/squid/Makefile')
-rw-r--r-- | www/squid/Makefile | 75 |
1 files changed, 47 insertions, 28 deletions
diff --git a/www/squid/Makefile b/www/squid/Makefile index 0bda32fc78e..64a09a34906 100644 --- a/www/squid/Makefile +++ b/www/squid/Makefile @@ -1,48 +1,67 @@ -# $NetBSD: Makefile,v 1.3 1998/08/20 15:17:31 tsarna Exp $ -# $FreeBSD Id: Makefile,v 1.36 1998/03/20 13:58:54 peter Exp +# $NetBSD: Makefile,v 1.4 1998/12/06 12:42:00 tron Exp $ # -DISTNAME= squid-1.1.21 +DISTNAME= squid-2.0.PATCH2 CATEGORIES= www MASTER_SITES= \ - ftp://squid.nlanr.net/pub/squid-1.1/ \ - ftp://www.unimelb.edu.au/pub/cwis/servers/unix/squid/squid-1.1/ \ - ftp://sunsite.auc.dk/pub/infosystems/squid/squid-1.1/ \ - ftp://ftp.net.lut.ac.uk/squid/squid-1.1/ + ftp://squid.nlanr.net/pub/squid-2/ \ + ftp://ftp.gw.com/pub/unix/squid/squid-2/ \ + ftp://ftp.funet.fi/pub/mirrors/squid.nlanr.net/pub/squid-2/ \ + ftp://www.unimelb.edu.au/pub/cwis/servers/unix/squid/squid-2/ \ + ftp://sunsite.auc.dk/pub/infosystems/squid/squid-2/ \ + ftp://ftp.net.lut.ac.uk/squid/squid-2/ EXTRACT_SUFX= -src.tar.gz -MAINTAINER= tron@netbsd.org +CONFLICTS= squid-1.1.21 \ + squid-2.0.PRE1 \ + squid-2.0.RELEASE \ + squid-2.0.PATCH1 + +MAINTAINER= kim@tac.nyc.ny.us HOMEPAGE= http://squid.nlanr.net/Squid/ GNU_CONFIGURE= yes -# Follow the apache port's lead... -CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc/squid --bindir=${PREFIX}/sbin \ - --libexecdir=${PREFIX}/sbin --localstatedir=/var/squid -MAKEFILE= makefile +CONFIGURE_ARGS= --sysconfdir=/etc \ + --localstatedir=/var/squid +# Options you might want to enable +CONFIGURE_ARGS+= --enable-cachemgr-hostname=localhost +CONFIGURE_ARGS+= --enable-icmp +#CONFIGURE_ARGS+= --enable-snmp + +MAKEFILE= makefile MAKE_ENV+= INSTALL_SCRIPT="${INSTALL_SCRIPT}" -# If you need to set any of these options, read the source and uncomment -# these if appropriate. -#MAKE_ENV+= HOST_OPT="-DCACHEMGR_HOSTNAME=\"getfullhostname()\"" -#MAKE_ENV+= AUTH_OPT="-DUSE_PROXY_AUTH=1" -#MAKE_ENV+= LOG_HDRS_OPT="-DLOG_FULL_HEADERS=1" -#MAKE_ENV+= ICMP_OPT="-DUSE_ICMP=1" -#MAKE_ENV+= DELAY_HACK="-DDELAY_HACK=1" -#MAKE_ENV+= USERAGENT_OPT="-DUSE_USERAGENT_LOG=1" -#MAKE_ENV+= KILL_PARENT_OPT="-DKILL_PARENT_OPT" -#MAKE_ENV+= USE_POLL_OPT="-DUSE_POLL" -# do NOT define both USE_SPLAY_TREE and USE_BIN_TREE at the same time! -#MAKE_ENV+= USE_SPLAY_TREE="-DUSE_SPLAY_TREE" -#MAKE_ENV+= USE_BIN_TREE="-DUSE_BIN_TREE" -#MAKE_ENV+= RELOAD_INTO_IMS="-DRELOAD_INTO_IMS" -#MAKE_ENV+= UNDERSCORES_OPT="-DALLOW_HOSTNAME_UNDERSCORES" post-build: ${SED} s#@PREFIX@#${PREFIX}#g <${FILESDIR}/squid.sh >${WRKDIR}/squid.sh +PLIST_SRC= ${PKGDIR}/PLIST ${WRKDIR}/PLIST.share + +pre-install: + @-rm -f ${WRKDIR}/PLIST.share + @${MKDIR} ${PREFIX}/share/squid + @${MKDIR} ${PREFIX}/share/squid/errors + @${MKDIR} ${PREFIX}/share/squid/icons + @( \ + cd ${WRKSRC}/errors/English; \ + ls ERR_* | sed -e 's@^@share/squid/errors/@'; \ + echo "@dirrm share/squid/errors"; \ + cd ${WRKSRC}/icons; \ + ls anthony-*.gif | sed -e 's@^@share/squid/icons/@'; \ + echo "@dirrm share/squid/icons"; \ + echo "share/squid/mib.txt"; \ + echo "share/squid/mime.conf"; \ + echo "share/squid/mime.conf.default"; \ + echo "share/squid/squid.conf.default"; \ + echo "@dirrm share/squid"; \ + ) > ${WRKDIR}/PLIST.share + +# This is GNU ${datadir}/squid/squid.conf +DEFCONF= ${PREFIX}/share/squid/squid.conf.default + post-install: cd ${WRKSRC}/src; make install-pinger ${INSTALL_SCRIPT} ${WRKDIR}/squid.sh ${PREFIX}/etc/rc.d/squid.sh - @${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL + @${SH} ${PKGDIR}/INSTALL ${PKGNAME} ${DEFCONF} POST-INSTALL .include <../../mk/bsd.pkg.mk> |