1996-06-03 02:21:13 +00:00
|
|
|
# New ports collection makefile for: squid
|
1997-10-25 02:51:14 +00:00
|
|
|
# Version required: 1.1.17
|
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
|
|
|
#
|
1997-10-25 02:51:14 +00:00
|
|
|
# $Id: Makefile,v 1.32 1997/09/07 13:08:51 peter Exp $
|
1996-06-03 02:21:13 +00:00
|
|
|
#
|
|
|
|
|
1997-10-25 02:51:14 +00:00
|
|
|
DISTNAME= squid-1.1.17
|
1996-11-18 11:44:27 +00:00
|
|
|
CATEGORIES= www
|
1996-07-10 21:50:18 +00:00
|
|
|
MASTER_SITES= \
|
1996-12-07 06:25:28 +00:00
|
|
|
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/
|
1996-06-03 02:21:13 +00:00
|
|
|
EXTRACT_SUFX= -src.tar.gz
|
|
|
|
|
1997-07-18 05:06:51 +00:00
|
|
|
#PATCH_SITES+= http://squid.nlanr.net/Squid/1.1/1.1.11/
|
|
|
|
#PATCHFILES+= config.h.in.patch long-dns-coredump.patch
|
1997-03-23 15:43:45 +00:00
|
|
|
|
1996-11-06 17:21:00 +00:00
|
|
|
MAINTAINER= peter@freebsd.org
|
1996-06-03 02:21:13 +00:00
|
|
|
|
1997-10-25 02:51:14 +00:00
|
|
|
DIST_SUBDIR= squid1.1.17
|
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
|
|
|
|
1997-01-19 03:24:13 +00:00
|
|
|
# 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"
|
1997-03-02 02:50:43 +00:00
|
|
|
# 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"
|
1997-08-13 02:59:42 +00:00
|
|
|
#MAKE_ENV+= RELOAD_INTO_IMS="-DRELOAD_INTO_IMS"
|
1997-01-19 03:24:13 +00:00
|
|
|
|
1996-06-03 02:21:13 +00:00
|
|
|
post-install:
|
1997-03-31 11:14:54 +00:00
|
|
|
cd ${WRKSRC}/src; make install-pinger
|
1996-11-06 17:21:00 +00:00
|
|
|
.for file in cachemgr.cgi client dnsserver ftpget pinger squid
|
1997-03-31 11:14:54 +00:00
|
|
|
if [ -f ${PREFIX}/sbin/${file} ] ; then \
|
|
|
|
strip ${PREFIX}/sbin/${file} ; \
|
|
|
|
fi
|
1996-06-03 02:21:13 +00:00
|
|
|
.endfor
|
1997-01-07 18:49:07 +00:00
|
|
|
${MKDIR} ${PREFIX}/squid/logs
|
|
|
|
${MKDIR} ${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>
|