4851e97c68
Among the changes: - remove patch-aa, it's now in the standard distribution - checks for libgnumalloc for <= FreeBSD-2.1.x systems to avoid the nasty libc malloc problems. - more useful data in the logs - support for poll() syscall with unlimited number of file descriptors if present instead of select()'s restrictions. (Standard FreeBSD doesn't yet have poll()..) - the usual bug fixes
44 lines
1.5 KiB
Makefile
44 lines
1.5 KiB
Makefile
# New ports collection makefile for: squid
|
|
# Version required: 1.1.beta26
|
|
# Date created: Thu Nov 7 00:53:18 WST 1996
|
|
# Whom: Peter Wemm <peter@freebsd.org>
|
|
#
|
|
# $Id: Makefile,v 1.10 1996/12/02 09:52:27 peter Exp $
|
|
#
|
|
|
|
DISTNAME= squid-1.1.beta26
|
|
PKGNAME= squid-1.1b26
|
|
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} -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>
|