1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-01 22:05:08 +00:00
freebsd-ports/www/squid25/Makefile
Peter Wemm a75cb27231 Update this for the benefit of the new broken patch. Tell it to look at
Index: like posix says, rather than going into dummy mode.  The distributed
patches are generated with standard cvs and don't have ache's hack (which
doesn't work when new files are added anyway).
1998-01-21 03:06:06 +00:00

96 lines
3.6 KiB
Makefile

# New ports collection makefile for: squid
# Version required: 1.2-beta11
# Date created: Thu Nov 7 00:53:18 WST 1996
# Whom: Peter Wemm <peter@freebsd.org>
#
# $Id: Makefile,v 1.37 1998/01/10 14:38:23 peter Exp $
#
DISTNAME= squid-1.2.beta11
PKGNAME= squid-1.2b11
CATEGORIES= www
MASTER_SITES= \
ftp://squid.nlanr.net/pub/squid-1.2.beta/ \
ftp://www.unimelb.edu.au/pub/cwis/servers/unix/squid/squid-1.2.beta/ \
ftp://sunsite.auc.dk/pub/infosystems/squid/squid-1.2.beta/ \
ftp://ftp.net.lut.ac.uk/squid/squid-1.2.beta/
EXTRACT_SUFX= -src.tar.gz
# Note, these are generated with CVS and the new patch does not correctly
# apply them, so we have to force the new patch into better POSIX compliant
# mode. See end of Makefile. See also post-extract.
PATCH_SITES+= http://squid.nlanr.net/Squid/1.2.beta/
PATCHFILES+= 1.2.beta11.patches
MAINTAINER= peter@freebsd.org
DIST_SUBDIR= squid1.2b11
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
# Some other configure options..
# - Use hash function as store index, instead of URL (trades CPU for memory)
#CONFIGURE_ARGS+= --enable-new-storekey=sha
#CONFIGURE_ARGS+= --enable-new-storekey=md5
# - Use ASYNC disk I/O (Requires real pthreads, libc_r probably doesn't work)
#CONFIGURE_ARGS+= --enable-async-io
# - Compile and use the malloc package from Doug Lea
#CONFIGURE_ARGS+= --enable-dlmalloc
# - Use tree function to store ACL lists
#CONFIGURE_ARGS+= --enable-acltree=bin
#CONFIGURE_ARGS+= --enable-acltree=splay
# - Enable ICMP pinging for heirarchy stats and selection
#CONFIGURE_ARGS+= --enable-icmp
# - Enable delay hack to limit bandwidth usage
#CONFIGURE_ARGS+= --enable-delay-hack
# - Enable logging of the User-Agent header
#CONFIGURE_ARGS+= --enable-useragent-log
# - Kill parent (eg: RunCache) on shutdown (use with great care!!)
#CONFIGURE_ARGS+= --enable-kill-parent
# - Turn on SNMP server support
#CONFIGURE_ARGS+= --enable-snmp
# - Optimize time updates to one per second rather than calling gettimeofday()
#CONFIGURE_ARGS+= --enable-time-hack
# - Set an explicit hostname in cachemgr.cgi
#CONFIGURE_ARGS+= --enable-cachemgr-hostname=some.hostname
# - Enable ACL based on ethernet address (eg: for machines with dynamic DHCP
# assigned IP addresses)
#CONFIGURE_ARGS+= --enable-arp-acl
# - Enable simple malloc debugging
#CONFIGURE_ARGS+= --enable-xmalloc-debug
# - Detailed trace of memory allocations
#CONFIGURE_ARGS+= --enable-xmalloc-debug-count
# - Show malloc statistics in cachemgr status pages
#CONFIGURE_ARGS+= --enable-xmalloc-statistics
# For the benefit of the new broken patch.
post-extract:
touch ${WRKSRC}/lib/malloc-2.6.4.c
post-install:
cd ${WRKSRC}/src; make install-pinger
.for file in cachemgr.cgi client dnsserver pinger squid
if [ -f ${PREFIX}/sbin/${file} ] ; then \
strip ${PREFIX}/sbin/${file} ; \
fi
.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 >/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>
# Stupid GNU Make 2.5!!!
PATCH:= env POSIXLY_CORRECT=yes ${PATCH}