freebsd-ports/www/squid31/Makefile
Peter Wemm 3f8bf3d375 Squid-1.1.beta13. This was a little unusual in that the www/squid ncvs
files were repository copied to www/squid11, then this commit brings it
to 1.1.b13.  (This was Satoshi's idea :-) It preserves the history)

Squid-1.0 and 1.1 are under parallel development, kinda like when we had
2.1-stable and 2.2-current in parallel development.  The 1.0 code is well
polished, and 1.1 is "on the bleeding edge" as such.  The features and
performance are much improved, but it can be a bit hair-raising.  I
personally have no major hassles with 1.1beta13.

Among the nicer things that this version has over 1.0:
- URL redirector..  ie: you can rewrite url's of sites with "mirrors"
  so that you don't have 15 copies of the same files.
- optional ident logging
- improved acl's
- dramatically improved cache directory structure (scales much better with
  gigantic disk caches)
- much improved DNS ttl handling (esp. with resolver hack)
- more control over neighbor status; parent, sibling etc.
- much improved refresh rules to help combat stupid sites that needlessly
  set the Expires: field to zero when it doesn't need to be.  (This is fine
  when it's genuinely needed, but some sites really abuse it to to attempt
  to negate caching to get inflated hit counts etc)
Reviewed by:
Submitted by:
Obtained from:
1996-11-06 17:21:00 +00:00

43 lines
1.5 KiB
Makefile

# New ports collection makefile for: squid
# Version required: 1.1.beta13
# Date created: Thu Nov 7 00:53:18 WST 1996
# Whom: Peter Wemm <peter@freebsd.org>
#
# $Id: Makefile,v 1.3 1996/11/06 16:37:10 peter Exp $
#
DISTNAME= squid-1.1.beta13
CATEGORIES+= www
MASTER_SITES= \
ftp://squid.nlanr.net/pub/squid-1.1.beta/ \
ftp://www.unimelb.edu.au/pub/cwis/servers/unix/squid/squid-1.1.beta/ \
ftp://sunsite.auc.dk/pub/infosystems/squid/squid-1.1.beta/ \
ftp://ftp.net.lut.ac.uk/squid/squid-1.1.beta/
EXTRACT_SUFX= -src.tar.gz
MAINTAINER= peter@freebsd.org
GNU_CONFIGURE= yes
# Follow the apache port's lead...
CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc/squid --bindir=${PREFIX}/sbin \
--libexecdir=${PREFIX}/sbin --localstatedir=${PREFIX}/squid
STRIP= # won't install scripts correctly othervise.
MAKEFILE= makefile
post-install:
.for file in cachemgr.cgi client dnsserver ftpget pinger squid
strip ${PREFIX}/sbin/${file}
.endfor
${MKDIR} ${PREFIX}/squid/logs
${MKDIR} ${PREFIX}/squid/cache
@if [ ! -f ${PREFIX}/etc/rc.d/squid.sh ]; then \
echo "Installing ${PREFIX}/etc/rc.d/squid.sh startup file."; \
echo "#!/bin/sh" > ${PREFIX}/etc/rc.d/squid.sh; \
echo "if [ -x /usr/local/sbin/RunCache -a -f /usr/local/etc/squid/squid.conf ]; then" >> ${PREFIX}/etc/rc.d/squid.sh; \
echo " (cd /tmp; /usr/local/sbin/RunCache &) ; echo -n ' squid'" >> ${PREFIX}/etc/rc.d/squid.sh; \
echo "fi" >> ${PREFIX}/etc/rc.d/squid.sh; \
chmod 751 ${PREFIX}/etc/rc.d/squid.sh; \
fi
.include <bsd.port.mk>