|
Lines 1-37
Link Here
|
| 1 |
# New ports collection makefile for: squid24 |
1 |
# New ports collection makefile for: squid |
| 2 |
# Date created: Tue Mar 27 14:56:08 CEST 2001 |
2 |
# Date created: Mon Jul 21 13:19:32 CDT 2003 |
| 3 |
# Whom: Adrian Chadd <adrian@FreeBSD.org> |
3 |
# Whom: Jonathan Noack <noackjr@alumni.rice.edu> |
| 4 |
# |
4 |
# |
| 5 |
# $FreeBSD: ports/www/squid/Makefile,v 1.100 2003/04/09 08:31:30 adrian Exp $ |
5 |
# $FreeBSD: ports/www/squid/Makefile,v 1.100 2003/04/09 08:31:30 adrian Exp $ |
| 6 |
# |
6 |
# |
| 7 |
|
7 |
|
| 8 |
PORTNAME= squid |
8 |
PORTNAME= squid |
| 9 |
PORTVERSION= 2.5 |
9 |
PORTVERSION= 2.5 |
| 10 |
PORTREVISION= 3 |
10 |
PORTREVISION= 4 |
| 11 |
CATEGORIES= www |
11 |
CATEGORIES= www |
| 12 |
MASTER_SITES= \ |
12 |
MASTER_SITES= \ |
| 13 |
ftp://ftp.squid-cache.org/pub/%SUBDIR%/ \ |
13 |
ftp://ftp.squid-cache.org/pub/%SUBDIR%/ \ |
| 14 |
ftp://www.unimelb.edu.au/pub/cwis/servers/unix/squid/%SUBDIR%/ \ |
14 |
ftp://www.unimelb.edu.au/pub/cwis/servers/unix/squid/%SUBDIR%/ \ |
| 15 |
ftp://sunsite.auc.dk/pub/infosystems/squid/%SUBDIR%/ \ |
15 |
ftp://sunsite.auc.dk/pub/infosystems/squid/%SUBDIR%/ \ |
| 16 |
ftp://ftp.net.lut.ac.uk/squid/%SUBDIR%/ \ |
16 |
ftp://ftp.net.lut.ac.uk/squid/%SUBDIR%/ \ |
| 17 |
${MASTER_SITE_RINGSERVER:S,%SUBDIR%,net/www/squid/&,} |
17 |
${MASTER_SITE_RINGSERVER:S,%SUBDIR%,net/www/squid/&,} |
| 18 |
MASTER_SITE_SUBDIR= squid-2/STABLE |
18 |
MASTER_SITE_SUBDIR= squid-2/STABLE |
| 19 |
DISTNAME= squid-2.5.STABLE2 |
19 |
DISTNAME= squid-2.5.STABLE3 |
| 20 |
EXTRACT_SUFX= .tar.gz |
20 |
EXTRACT_SUFX= .tar.bz2 |
|
|
21 |
DIST_SUBDIR= squid2.5 |
| 21 |
|
22 |
|
| 22 |
PATCH_SITES= http://www.squid-cache.org/Versions/v2/2.5/bugs/ |
23 |
PATCH_SITES= http://www.squid-cache.org/Versions/v2/2.5/bugs/ |
|
|
24 |
PATCHFILES= squid-2.5.STABLE3-deny_info.patch \ |
| 25 |
squid-2.5.STABLE3-cache_dir_doc.patch \ |
| 26 |
squid-2.5.STABLE3-devnull.patch \ |
| 27 |
squid-2.5.STABLE3-log_quote.patch \ |
| 28 |
squid-2.5.STABLE3-rfc_reference.patch \ |
| 29 |
squid-2.5.STABLE3-external_acl_ident.patch \ |
| 30 |
squid-2.5.STABLE3-gcc-3_3.patch \ |
| 31 |
squid-2.5.STABLE3-carpfactor.patch \ |
| 32 |
squid-2.5.STABLE3-neighbor_type_domain.patch \ |
| 33 |
squid-2.5.STABLE3-header_access_peer.patch \ |
| 34 |
squid-2.5.STABLE3-memwarnsbrk.patch \ |
| 35 |
squid-2.5.STABLE3-hostscomments.patch \ |
| 36 |
squid-2.5.STABLE3-store_check_cachable_stats.patch \ |
| 37 |
squid-2.5.STABLE3-cachePeerPingsSentsnmp.patch \ |
| 38 |
squid-2.5.STABLE3-minimum_retry_timeout.patch \ |
| 39 |
squid-2.5.STABLE3-tcp_reset_leak.patch \ |
| 40 |
squid-2.5.STABLE3-hostheader.patch \ |
| 41 |
squid-2.5.STABLE3-reply_body_max_size.patch \ |
| 42 |
squid-2.5.STABLE3-ie_refresh.patch \ |
| 43 |
squid-2.5.STABLE3-http_reply_access-denied.patch \ |
| 44 |
squid-2.5.STABLE3-SENT_PASV.patch \ |
| 45 |
squid-2.5.STABLE3-peer_digest_not_found_assertion.patch \ |
| 46 |
squid-2.5.STABLE3-round_robin_max_size.patch |
| 47 |
PATCH_DIST_STRIP= -p1 |
| 23 |
|
48 |
|
| 24 |
MAINTAINER= adrian@freebsd.org |
49 |
MAINTAINER= noackjr@alumni.rice.edu |
| 25 |
COMMENT= The successful WWW proxy cache and accelerator |
50 |
COMMENT= The successful WWW proxy cache and accelerator |
| 26 |
|
51 |
|
| 27 |
DIST_SUBDIR= squid2.5 |
|
|
| 28 |
PATCH_DIST_STRIP= -p1 |
| 29 |
GNU_CONFIGURE= yes |
52 |
GNU_CONFIGURE= yes |
|
|
53 |
USE_BZIP2= yes |
| 30 |
USE_PERL5= yes |
54 |
USE_PERL5= yes |
| 31 |
USE_REINPLACE= yes |
55 |
USE_REINPLACE= yes |
| 32 |
# Follow the apache port's lead... |
56 |
# Follow the apache port's lead... |
| 33 |
CONFIGURE_ARGS= --bindir=${PREFIX}/sbin --sysconfdir=${PREFIX}/etc/squid \ |
57 |
CONFIGURE_ARGS= --bindir=${PREFIX}/sbin --sysconfdir=${PREFIX}/etc/squid \ |
| 34 |
--datadir=${PREFIX}/etc/squid/ \ |
58 |
--datadir=${PREFIX}/etc/squid \ |
| 35 |
--localstatedir=${PREFIX}/squid \ |
59 |
--localstatedir=${PREFIX}/squid \ |
| 36 |
--enable-storeio="ufs diskd null" \ |
60 |
--enable-storeio="ufs diskd null" \ |
| 37 |
--enable-removal-policies="lru heap" \ |
61 |
--enable-removal-policies="lru heap" \ |
|
Lines 39-46
Link Here
|
| 39 |
--enable-external-acl-helpers="ip_user unix_group" \ |
63 |
--enable-external-acl-helpers="ip_user unix_group" \ |
| 40 |
--enable-underscores |
64 |
--enable-underscores |
| 41 |
|
65 |
|
| 42 |
STRIP= # won't install scripts correctly otherwise. |
|
|
| 43 |
MAKEFILE= Makefile |
66 |
MAKEFILE= Makefile |
|
|
67 |
MAN8= pam_auth.8 squid_unix_group.8 squid.8 |
| 44 |
|
68 |
|
| 45 |
# Some other configure options.. |
69 |
# Some other configure options.. |
| 46 |
# - Compile and use the malloc package from Doug Lea |
70 |
# - Compile and use the malloc package from Doug Lea |
|
Lines 101-124
Link Here
|
| 101 |
# - accept the illegal '_' character in hostnames. |
125 |
# - accept the illegal '_' character in hostnames. |
| 102 |
#CONFIGURE_ARGS+= --enable-underscores |
126 |
#CONFIGURE_ARGS+= --enable-underscores |
| 103 |
# - Enable control of different heap replacement algorithms at runtime. |
127 |
# - Enable control of different heap replacement algorithms at runtime. |
| 104 |
#CONFIGURE_ARGS+= --enable-heap-replacement |
128 |
#CONFIGURE_ARGS+= --enable-removal-policies |
| 105 |
|
129 |
|
| 106 |
post-patch: |
130 |
post-patch: |
| 107 |
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure |
131 |
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure |
|
|
132 |
@${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|g' ${WRKSRC}/doc/squid.8 |
| 108 |
|
133 |
|
| 109 |
post-install: |
134 |
post-install: |
| 110 |
# I don't think many people use the pinger nowadays, and if you |
135 |
# I don't think many people use the pinger nowadays, and if you |
| 111 |
# do you'll want squid in its own group so as to restrict access |
136 |
# do you'll want squid in its own group so as to restrict access |
| 112 |
# to it. |
137 |
# to it. |
| 113 |
# cd ${WRKSRC}/src; make install-pinger |
138 |
# cd ${WRKSRC}/src; make install-pinger |
| 114 |
.for file in client squid |
139 |
.for sbin_file in client squid |
| 115 |
if [ -f ${PREFIX}/sbin/${file} ] ; then \ |
140 |
if [ -f ${PREFIX}/sbin/${sbin_file} ] ; then \ |
| 116 |
strip ${PREFIX}/sbin/${file} ; \ |
141 |
${STRIP_CMD} ${PREFIX}/sbin/${sbin_file} ; \ |
| 117 |
fi |
142 |
fi |
| 118 |
.endfor |
143 |
.endfor |
| 119 |
.for file in cachemgr.cgi dnsserver pinger unlinkd |
144 |
.for libexec_file in cachemgr.cgi dnsserver pinger unlinkd |
| 120 |
if [ -f ${PREFIX}/libexec/${file} ] ; then \ |
145 |
if [ -f ${PREFIX}/libexec/${libexec_file} ] ; then \ |
| 121 |
strip ${PREFIX}/libexec/${file} ; \ |
146 |
${STRIP_CMD} ${PREFIX}/libexec/${libexec_file} ; \ |
| 122 |
fi |
147 |
fi |
| 123 |
.endfor |
148 |
.endfor |
| 124 |
@if [ ! -d ${PREFIX}/squid/logs ]; then \ |
149 |
@if [ ! -d ${PREFIX}/squid/logs ]; then \ |