summaryrefslogtreecommitdiff
path: root/www/squid31/Makefile
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1996-11-06 16:37:26 +0000
committerPeter Wemm <peter@FreeBSD.org>1996-11-06 16:37:26 +0000
commita6d6133eb72fcd6b8e86a25adeb96df2174b83e1 (patch)
treec0f8e957cc2d4ccbd4c9df42903cc906fe942f7d /www/squid31/Makefile
parentUpgrade to version 3.2 (diff)
Update from squid-1.0.0 to 1.0.20. There are a large number of bug fixes
and stability measures. This port installs in a "FreeBSD-native" tree (like apache) rather than with a mini hierarchy under /usr/local/squid/{bin,etc,cache,logs,...} (the default behavior seems to have changed between 1.0.0 and 1.0.20) Also, build a rc.d/squid.sh script.
Notes
Notes: svn path=/head/; revision=4314
Diffstat (limited to 'www/squid31/Makefile')
-rw-r--r--www/squid31/Makefile33
1 files changed, 22 insertions, 11 deletions
diff --git a/www/squid31/Makefile b/www/squid31/Makefile
index 1befb9b30298..866cdd8a9410 100644
--- a/www/squid31/Makefile
+++ b/www/squid31/Makefile
@@ -1,31 +1,42 @@
# New ports collection makefile for: squid
-# Version required: 1.0.0
+# Version required: 1.0.20
# Date created: Fri May 17 04:02:53 EET DST 1996
# Whom: Andrew Stesin <stesin@elvisti.kiev.ua>
#
-# $Id: Makefile,v 1.1.1.1 1996/06/03 02:21:13 asami Exp $
+# $Id: Makefile,v 1.2 1996/07/10 21:48:58 asami Exp $
#
-DISTNAME= squid-1.0.0
-PKGNAME= squid-1.0
+DISTNAME= squid-1.0.20
CATEGORIES+= www
MASTER_SITES= \
- ftp://www.nlanr.net/Software/Squid/ \
- ftp://www.unimelb.edu.au/pub/cwis/servers/unix/squid/ \
- ftp://sunsite.auc.dk/pub/infosystems/squid/ \
- ftp://ftp.net.lut.ac.uk/squid/
+ ftp://squid.nlanr.net/pub/squid-1.0/ \
+ ftp://www.unimelb.edu.au/pub/cwis/servers/unix/squid/squid-1.0/ \
+ ftp://sunsite.auc.dk/pub/infosystems/squid/squid-1.0/ \
+ ftp://ftp.net.lut.ac.uk/squid/squid-1.0/
EXTRACT_SUFX= -src.tar.gz
MAINTAINER= stesin@elvisti.kiev.ua
GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc
-CONFIGURE_ENV= env "STD_CFLAGS=${CFLAGS}"
+# 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 squid
- strip ${PREFIX}/bin/${file}
+ 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>