1996-06-03 02:21:13 +00:00
|
|
|
# New ports collection makefile for: squid
|
1996-12-06 11:17:58 +00:00
|
|
|
# Version required: 1.1.beta28
|
1996-11-06 17:21:00 +00:00
|
|
|
# Date created: Thu Nov 7 00:53:18 WST 1996
|
|
|
|
# Whom: Peter Wemm <peter@freebsd.org>
|
1996-06-03 02:21:13 +00:00
|
|
|
#
|
1996-12-06 11:17:58 +00:00
|
|
|
# $Id: Makefile,v 1.12 1996/12/05 08:42:50 peter Exp $
|
1996-06-03 02:21:13 +00:00
|
|
|
#
|
|
|
|
|
1996-12-06 11:17:58 +00:00
|
|
|
DISTNAME= squid-1.1.beta28
|
|
|
|
PKGNAME= squid-1.1b28
|
1996-11-18 11:44:27 +00:00
|
|
|
CATEGORIES= www
|
1996-07-10 21:50:18 +00:00
|
|
|
MASTER_SITES= \
|
1996-11-06 17:21:00 +00:00
|
|
|
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/
|
1996-06-03 02:21:13 +00:00
|
|
|
EXTRACT_SUFX= -src.tar.gz
|
|
|
|
|
1996-11-06 17:21:00 +00:00
|
|
|
MAINTAINER= peter@freebsd.org
|
1996-06-03 02:21:13 +00:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
1996-11-06 16:37:26 +00:00
|
|
|
# Follow the apache port's lead...
|
|
|
|
CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc/squid --bindir=${PREFIX}/sbin \
|
|
|
|
--libexecdir=${PREFIX}/sbin --localstatedir=${PREFIX}/squid
|
1996-06-03 02:21:13 +00:00
|
|
|
STRIP= # won't install scripts correctly othervise.
|
1996-11-06 16:37:26 +00:00
|
|
|
MAKEFILE= makefile
|
1996-06-03 02:21:13 +00:00
|
|
|
|
|
|
|
post-install:
|
1996-11-06 17:21:00 +00:00
|
|
|
.for file in cachemgr.cgi client dnsserver ftpget pinger squid
|
1996-11-06 16:37:26 +00:00
|
|
|
strip ${PREFIX}/sbin/${file}
|
1996-06-03 02:21:13 +00:00
|
|
|
.endfor
|
1996-11-15 12:42:06 +00:00
|
|
|
${MKDIR} -p ${PREFIX}/squid/logs
|
|
|
|
${MKDIR} -p ${PREFIX}/squid/cache
|
1996-11-06 16:37:26 +00:00
|
|
|
@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; \
|
1996-11-12 08:26:06 +00:00
|
|
|
echo " (cd /tmp; /usr/local/sbin/RunCache >/dev/null 2>&1 &) ; echo -n ' squid'" >> ${PREFIX}/etc/rc.d/squid.sh; \
|
1996-11-06 16:37:26 +00:00
|
|
|
echo "fi" >> ${PREFIX}/etc/rc.d/squid.sh; \
|
|
|
|
chmod 751 ${PREFIX}/etc/rc.d/squid.sh; \
|
|
|
|
fi
|
1996-06-03 02:21:13 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|