mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-14 23:46:10 +00:00
38078b6e98
- Fixed announcement bug. Announcements were always off unless a file was specified. - Fixed wrong number of args to examine_select() debug. - Fixed null-string content-type - Don't cache replies with 'Set-Cookie:' headers. - Fixed bug when client issues IMS, Squid has stale object and Squid's lastmod time is greater than the client IMS time. A 304 reply would be appropriate for Squid, but not the client (diagnosed by Mark Treacy). - Fixed httpBuildRequestHeader() content length bug which breaks for really large POST requests (Takahiro Yugawa). - Fixed 'passthrough_proxy' to pick up port number from list of neighbors. - Ensure pid file is world-readable if umask is set otherwise (Doug Urner). - Collect statistics on a few more HTTP headers. Reviewed by: Submitted by: Obtained from:
43 lines
1.5 KiB
Makefile
43 lines
1.5 KiB
Makefile
# New ports collection makefile for: squid
|
|
# Version required: 1.1.1
|
|
# Date created: Thu Nov 7 00:53:18 WST 1996
|
|
# Whom: Peter Wemm <peter@freebsd.org>
|
|
#
|
|
# $Id: Makefile,v 1.14 1996/12/07 06:25:26 peter Exp $
|
|
#
|
|
|
|
DISTNAME= squid-1.1.1
|
|
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/
|
|
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} -p ${PREFIX}/squid/logs
|
|
${MKDIR} -p ${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 >/dev/null 2>&1 &) ; 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>
|