Lines 42-66
Link Here
|
42 |
# |
42 |
# |
43 |
# --enable-dlmalloc |
43 |
# --enable-dlmalloc |
44 |
# Compile and use the malloc package from Doug Lea |
44 |
# Compile and use the malloc package from Doug Lea |
45 |
# --enable-gnuregex |
|
|
46 |
# Compile and use the supplied GNUregex routines instead of BSD regex |
47 |
# (not recommended). |
48 |
# --enable-xmalloc-statistics |
45 |
# --enable-xmalloc-statistics |
49 |
# Show malloc statistics in status page |
46 |
# Show malloc statistics in status page |
50 |
# --enable-cachemgr-hostname=some.hostname |
47 |
# --enable-cachemgr-hostname=some.hostname |
51 |
# Set an explicit hostname in cachemgr.cgi |
48 |
# Make cachemgr.cgi default to this host |
52 |
# --enable-truncate |
|
|
53 |
# Use truncate() rather than unlink() |
54 |
# --disable-unlinkd |
49 |
# --disable-unlinkd |
55 |
# Do not use "unlinkd" |
50 |
# Do not use "unlinkd" |
56 |
# --with-aufs-threads=N_THREADS |
51 |
# --with-aufs-threads=N_THREADS |
57 |
# Tune the number of worker threads for the aufs object |
52 |
# Tune the number of worker threads for the aufs object |
58 |
# --with-coss-membuf-size |
53 |
# --with-coss-membuf-size |
59 |
# COSS membuf size (default: 1048576 bytes) |
54 |
# COSS membuf size (default: 1048576 bytes) |
60 |
# --with-maxfd=N |
55 |
# --with-filedescriptors=N |
61 |
# Override the maximum number of filedescriptors. Useful if you |
56 |
# Force Squid to use N filedescriptors. |
62 |
# build as another user who is not privileged to use the amount |
|
|
63 |
# of filedescriptors the resulting binary is expected to support. |
64 |
# --enable-ntlm-fail-open |
57 |
# --enable-ntlm-fail-open |
65 |
# Enable NTLM fail open, where a helper that fails one of the |
58 |
# Enable NTLM fail open, where a helper that fails one of the |
66 |
# Authentication steps can allow Squid to still authenticate the user |
59 |
# Authentication steps can allow Squid to still authenticate the user |
Lines 69-81
Link Here
|
69 |
# to indicate variance within an accelerator setup. Typically used |
62 |
# to indicate variance within an accelerator setup. Typically used |
70 |
# together with other code that adds custom HTTP headers to the |
63 |
# together with other code that adds custom HTTP headers to the |
71 |
# requests. |
64 |
# requests. |
72 |
# --enable-forward-log |
|
|
73 |
# Enable experimental forward_log directive. |
74 |
# --enable-multicast-miss |
75 |
# Enable experimental multicast notification of cachemisses. |
76 |
|
65 |
|
77 |
PORTNAME= squid |
66 |
PORTNAME= squid |
78 |
PORTVERSION= 2.6.13 |
67 |
PORTVERSION= 3.0.p6.${PATCHSET_DATE} |
79 |
CATEGORIES= www |
68 |
CATEGORIES= www |
80 |
MASTER_SITES= ftp://ftp.squid-cache.org/pub/%SUBDIR%/ \ |
69 |
MASTER_SITES= ftp://ftp.squid-cache.org/pub/%SUBDIR%/ \ |
81 |
ftp://ftp.vistech.net/pub/squid/%SUBDIR%/ \ |
70 |
ftp://ftp.vistech.net/pub/squid/%SUBDIR%/ \ |
Lines 86-94
Link Here
|
86 |
ftp://ftp.ntua.gr/pub/www/Squid/%SUBDIR%/ \ |
75 |
ftp://ftp.ntua.gr/pub/www/Squid/%SUBDIR%/ \ |
87 |
ftp://ftp.ccs.neu.edu/pub/mirrors/squid.nlanr.net/pub/%SUBDIR%/ \ |
76 |
ftp://ftp.ccs.neu.edu/pub/mirrors/squid.nlanr.net/pub/%SUBDIR%/ \ |
88 |
${MASTER_SITE_RINGSERVER:S,%SUBDIR%,net/www/squid/&,} |
77 |
${MASTER_SITE_RINGSERVER:S,%SUBDIR%,net/www/squid/&,} |
89 |
MASTER_SITE_SUBDIR= squid-2/STABLE |
78 |
MASTER_SITE_SUBDIR= squid-3/DEVEL |
90 |
DISTNAME= squid-2.6.STABLE13 |
79 |
DISTNAME= squid-3.0.PRE6 |
91 |
DIST_SUBDIR= squid2.6 |
80 |
DIST_SUBDIR= squid3.0 |
92 |
|
81 |
|
93 |
PATCH_SITES= http://www.squid-cache.org/%SUBDIR%/ \ |
82 |
PATCH_SITES= http://www.squid-cache.org/%SUBDIR%/ \ |
94 |
http://www2.us.squid-cache.org/%SUBDIR%/ \ |
83 |
http://www2.us.squid-cache.org/%SUBDIR%/ \ |
Lines 99-113
Link Here
|
99 |
http://www1.uk.squid-cache.org/%SUBDIR%/ \ |
88 |
http://www1.uk.squid-cache.org/%SUBDIR%/ \ |
100 |
http://www1.jp.squid-cache.org/%SUBDIR%/ \ |
89 |
http://www1.jp.squid-cache.org/%SUBDIR%/ \ |
101 |
http://www1.tw.squid-cache.org/%SUBDIR%/ |
90 |
http://www1.tw.squid-cache.org/%SUBDIR%/ |
102 |
PATCH_SITE_SUBDIR= Versions/v2/2.6/changesets |
91 |
PATCH_SITE_SUBDIR= Versions/v3/3.0/changesets |
103 |
PATCHFILES= |
92 |
# Inspired by editors/vim: |
|
|
93 |
# (I know that portlint is not happy with this, but putting this code at any |
94 |
# other location makes it even unhappier.) |
95 |
PATCHSET_DATE= 20070529 |
96 |
FIRST_PATCHSET= 10789 |
97 |
LAST_PATCHSET= 10834 |
98 |
IGNORE_PATCHSETS= 10792 10793 10794 10795 10796 10798 10799 10803 10807 \ |
99 |
10810 10814 10819 |
100 |
PATCHFILES!= jot -w "%d.patch" - ${FIRST_PATCHSET} ${LAST_PATCHSET} 1 |
101 |
.for cs in ${IGNORE_PATCHSETS} |
102 |
PATCHFILES:= ${PATCHFILES:N${cs}\.patch} |
103 |
.endfor |
104 |
PATCH_DIST_STRIP= -p1 |
104 |
PATCH_DIST_STRIP= -p1 |
105 |
|
105 |
|
106 |
MAINTAINER= tmseck@netcologne.de |
106 |
MAINTAINER= tmseck@netcologne.de |
107 |
COMMENT= HTTP Caching Proxy |
107 |
COMMENT= HTTP Caching Proxy (development version) |
108 |
|
108 |
|
109 |
CONFLICTS= squid-2.[^6]* |
109 |
LATEST_LINK= squid30 |
|
|
110 |
|
111 |
CONFLICTS= squid-2.[0-9].* |
110 |
GNU_CONFIGURE= yes |
112 |
GNU_CONFIGURE= yes |
|
|
113 |
USE_AUTOTOOLS= autoconf:259 automake:19 libtool:15 |
111 |
USE_BZIP2= yes |
114 |
USE_BZIP2= yes |
112 |
USE_PERL5= yes |
115 |
USE_PERL5= yes |
113 |
USE_RC_SUBR= squid |
116 |
USE_RC_SUBR= squid |
Lines 139-153
Link Here
|
139 |
SQUID_REFERER_LOG "Enable Referer-header logging" off \ |
142 |
SQUID_REFERER_LOG "Enable Referer-header logging" off \ |
140 |
SQUID_USERAGENT_LOG "Enable User-Agent-header logging" off \ |
143 |
SQUID_USERAGENT_LOG "Enable User-Agent-header logging" off \ |
141 |
SQUID_ARP_ACL "Enable ACLs based on ethernet address" off \ |
144 |
SQUID_ARP_ACL "Enable ACLs based on ethernet address" off \ |
|
|
145 |
SQUID_IPFW "Enable transparent proxying with IPFW" off \ |
142 |
SQUID_PF "Enable transparent proxying with PF" off \ |
146 |
SQUID_PF "Enable transparent proxying with PF" off \ |
143 |
SQUID_IPFILTER "Enable transp. proxying with IPFilter" off \ |
147 |
SQUID_IPFILTER "Enable transp. proxying with IPFilter" off \ |
144 |
SQUID_FOLLOW_XFF "Follow X-Forwarded-For headers" off \ |
|
|
145 |
SQUID_ICAP "Enable ICAP client functionality" off \ |
148 |
SQUID_ICAP "Enable ICAP client functionality" off \ |
|
|
149 |
SQUID_ESI "Enable ESI support (experimental)" off \ |
146 |
SQUID_AUFS "Enable the aufs storage scheme" off \ |
150 |
SQUID_AUFS "Enable the aufs storage scheme" off \ |
147 |
SQUID_COSS "Enable the COSS storage scheme" off \ |
151 |
SQUID_COSS "Enable the COSS storage scheme" off \ |
148 |
SQUID_KQUEUE "Use kqueue(2) instead of poll(2)" on \ |
152 |
SQUID_KQUEUE "Use kqueue(2) instead of poll(2)" on \ |
149 |
SQUID_LARGEFILE "Support log and cache files >2GB" off \ |
153 |
SQUID_LARGEFILE "Support log and cache files >2GB" off \ |
150 |
SQUID_STACKTRACES "Create backtraces on fatal errors" off |
154 |
SQUID_STACKTRACES "Create backtraces on fatal errors" off \ |
|
|
155 |
SQUID_DEBUG "Enable debugging options" off |
151 |
|
156 |
|
152 |
etc_files= squid/cachemgr.conf.default \ |
157 |
etc_files= squid/cachemgr.conf.default \ |
153 |
squid/mib.txt squid/mime.conf.default \ |
158 |
squid/mib.txt squid/mime.conf.default \ |
Lines 165-181
Link Here
|
165 |
|
170 |
|
166 |
error_files= ERR_ACCESS_DENIED ERR_CACHE_ACCESS_DENIED \ |
171 |
error_files= ERR_ACCESS_DENIED ERR_CACHE_ACCESS_DENIED \ |
167 |
ERR_CACHE_MGR_ACCESS_DENIED ERR_CANNOT_FORWARD \ |
172 |
ERR_CACHE_MGR_ACCESS_DENIED ERR_CANNOT_FORWARD \ |
168 |
ERR_CONNECT_FAIL ERR_DNS_FAIL ERR_FORWARDING_DENIED \ |
173 |
ERR_CONNECT_FAIL ERR_DNS_FAIL ERR_ESI ERR_FORWARDING_DENIED \ |
169 |
ERR_FTP_DISABLED ERR_FTP_FAILURE ERR_FTP_FORBIDDEN \ |
174 |
ERR_FTP_DISABLED ERR_FTP_FAILURE ERR_FTP_FORBIDDEN \ |
170 |
ERR_FTP_NOT_FOUND ERR_FTP_PUT_CREATED \ |
175 |
ERR_FTP_NOT_FOUND ERR_FTP_PUT_CREATED \ |
171 |
ERR_FTP_PUT_ERROR ERR_FTP_PUT_MODIFIED ERR_FTP_UNAVAILABLE \ |
176 |
ERR_FTP_PUT_ERROR ERR_FTP_PUT_MODIFIED ERR_FTP_UNAVAILABLE \ |
172 |
ERR_INVALID_REQ ERR_INVALID_RESP ERR_INVALID_URL \ |
177 |
ERR_ICAP_FAILURE ERR_INVALID_REQ ERR_INVALID_RESP \ |
173 |
ERR_LIFETIME_EXP ERR_NO_RELAY ERR_ONLY_IF_CACHED_MISS \ |
178 |
ERR_INVALID_URL ERR_LIFETIME_EXP ERR_NO_RELAY \ |
174 |
ERR_READ_ERROR ERR_READ_TIMEOUT ERR_SHUTTING_DOWN \ |
179 |
ERR_ONLY_IF_CACHED_MISS ERR_READ_ERROR ERR_READ_TIMEOUT \ |
175 |
ERR_SOCKET_FAILURE ERR_TOO_BIG ERR_UNSUP_REQ \ |
180 |
ERR_SHUTTING_DOWN ERR_SOCKET_FAILURE ERR_TOO_BIG ERR_UNSUP_REQ \ |
176 |
ERR_URN_RESOLVE ERR_WRITE_ERROR ERR_ZERO_SIZE_OBJECT |
181 |
ERR_URN_RESOLVE ERR_WRITE_ERROR ERR_ZERO_SIZE_OBJECT |
177 |
|
182 |
|
178 |
libexec= cachemgr.cgi digest_pw_auth diskd-daemon ip_user_check \ |
183 |
libexec= cachemgr.cgi digest_pw_auth diskd ip_user_check \ |
179 |
msnt_auth ncsa_auth ntlm_auth \ |
184 |
msnt_auth ncsa_auth ntlm_auth \ |
180 |
pam_auth smb_auth smb_auth.sh squid_session squid_unix_group \ |
185 |
pam_auth smb_auth smb_auth.sh squid_session squid_unix_group \ |
181 |
wbinfo_group.pl |
186 |
wbinfo_group.pl |
Lines 183-189
Link Here
|
183 |
libexec+= unlinkd |
188 |
libexec+= unlinkd |
184 |
.endif |
189 |
.endif |
185 |
|
190 |
|
186 |
sbin= RunCache squidclient squid |
191 |
sbin= RunAccel RunCache squidclient squid |
187 |
|
192 |
|
188 |
CONFIGURE_ARGS= --bindir=${PREFIX}/sbin \ |
193 |
CONFIGURE_ARGS= --bindir=${PREFIX}/sbin \ |
189 |
--sbindir=${PREFIX}/sbin \ |
194 |
--sbindir=${PREFIX}/sbin \ |
Lines 203-209
Link Here
|
203 |
basic_auth= NCSA PAM MSNT SMB |
208 |
basic_auth= NCSA PAM MSNT SMB |
204 |
digest_auth= password |
209 |
digest_auth= password |
205 |
external_acl= ip_user session unix_group wbinfo_group |
210 |
external_acl= ip_user session unix_group wbinfo_group |
206 |
MAN8+= ncsa_auth.8 pam_auth.8 squid_session.8 squid_unix_group.8 |
211 |
MAN8+= pam_auth.8 squid_session.8 squid_unix_group.8 |
207 |
.if defined(WITH_SQUID_LDAP_AUTH) |
212 |
.if defined(WITH_SQUID_LDAP_AUTH) |
208 |
USE_OPENLDAP= yes |
213 |
USE_OPENLDAP= yes |
209 |
CFLAGS+= -I${LOCALBASE}/include |
214 |
CFLAGS+= -I${LOCALBASE}/include |
Lines 237-244
Link Here
|
237 |
storage_schemes= ufs diskd null |
242 |
storage_schemes= ufs diskd null |
238 |
.if defined(WITH_SQUID_AUFS) |
243 |
.if defined(WITH_SQUID_AUFS) |
239 |
storage_schemes+= aufs |
244 |
storage_schemes+= aufs |
240 |
.if ${OSVERSION}>=501000 |
245 |
# Only document switching from libpthread to libthr using libmap.conf |
241 |
# Only document libmap.conf where it is available: |
246 |
# where lipthread is the default threading library: |
|
|
247 |
.if (${OSVERSION} >= 501000) && (${OSVERSION} < 700041) |
242 |
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-src-cf.data.pre.aufs |
248 |
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-src-cf.data.pre.aufs |
243 |
.endif |
249 |
.endif |
244 |
# Nil aufs threads is default, set any other value via SQUID_CONFIGURE_ARGS |
250 |
# Nil aufs threads is default, set any other value via SQUID_CONFIGURE_ARGS |
Lines 247-261
Link Here
|
247 |
.endif |
253 |
.endif |
248 |
.if defined(WITH_SQUID_COSS) |
254 |
.if defined(WITH_SQUID_COSS) |
249 |
storage_schemes+= coss |
255 |
storage_schemes+= coss |
250 |
.if !defined(WITH_SQUID_AUFS) |
|
|
251 |
# use Posix AIO instead of aufs' AIO; note that you then need the kernel to |
252 |
# supply AIO support, either by loading the aio(4) module (n/a on 4.x) or by |
253 |
# adding the option VFS_AIO to your kernel configuration if you want to |
254 |
# actually use COSS storage: |
255 |
CONFIGURE_ARGS+= --enable-coss-aio-ops |
256 |
.endif |
256 |
.endif |
257 |
sbin+= cossdump |
|
|
258 |
.endif |
259 |
CONFIGURE_ARGS+= --enable-storeio="${storage_schemes}" |
257 |
CONFIGURE_ARGS+= --enable-storeio="${storage_schemes}" |
260 |
|
258 |
|
261 |
# Other options set via 'make config': |
259 |
# Other options set via 'make config': |
Lines 318-323
Link Here
|
318 |
.if defined(WITH_SQUID_ARP_ACL) |
316 |
.if defined(WITH_SQUID_ARP_ACL) |
319 |
CONFIGURE_ARGS+= --enable-arp-acl |
317 |
CONFIGURE_ARGS+= --enable-arp-acl |
320 |
.endif |
318 |
.endif |
|
|
319 |
.if defined(WITH_SQUID_IPFW) |
320 |
CONFIGURE_ARGS+= --enable-ipfw-transparent |
321 |
.endif |
321 |
.if defined(WITH_SQUID_PF) |
322 |
.if defined(WITH_SQUID_PF) |
322 |
CONFIGURE_ARGS+= --enable-pf-transparent |
323 |
CONFIGURE_ARGS+= --enable-pf-transparent |
323 |
.if ${OSVERSION} < 502106 |
324 |
.if ${OSVERSION} < 502106 |
Lines 337-363
Link Here
|
337 |
CONFIGURE_ARGS+= --enable-ipf-transparent |
338 |
CONFIGURE_ARGS+= --enable-ipf-transparent |
338 |
.endif |
339 |
.endif |
339 |
.endif |
340 |
.endif |
340 |
.if defined(WITH_SQUID_FOLLOW_XFF) |
|
|
341 |
CONFIGURE_ARGS+= --enable-follow-x-forwarded-for |
342 |
.endif |
343 |
.if defined(WITH_SQUID_ICAP) |
341 |
.if defined(WITH_SQUID_ICAP) |
344 |
EXTRA_PATCHES+= ${PATCHDIR}/icap-2.6-bootstrap.patch \ |
342 |
CONFIGURE_ARGS+= --enable-icap-client |
345 |
${PATCHDIR}/icap-2.6-core.patch |
|
|
346 |
CONFIGURE_ARGS+= --enable-icap-support |
347 |
error_files+= ERR_ICAP_FAILURE |
348 |
.endif |
343 |
.endif |
|
|
344 |
.if defined(WITH_SQUID_ESI) |
345 |
CONFIGURE_ARGS+= --enable-esi |
346 |
LIB_DEPENDS+= xml2:${PORTSDIR}/textproc/libxml2 |
347 |
.endif |
349 |
.if defined(WITHOUT_SQUID_KQUEUE) |
348 |
.if defined(WITHOUT_SQUID_KQUEUE) |
|
|
349 |
# XXX: Squid3 -- unlike Squid2 -- does not automatically enable kqueue(2) at |
350 |
# this time so this is a no-op for now: |
350 |
CONFIGURE_ARGS+= --disable-kqueue |
351 |
CONFIGURE_ARGS+= --disable-kqueue |
|
|
352 |
.else |
353 |
CONFIGURE_ARGS+= --enable-kqueue |
351 |
.endif |
354 |
.endif |
352 |
.if defined(WITH_SQUID_LARGEFILE) |
355 |
.if defined(WITH_SQUID_LARGEFILE) |
353 |
CONFIGURE_ARGS+= --with-large-files --enable-large-cache-files |
356 |
CONFIGURE_ARGS+= --with-large-files |
354 |
.endif |
357 |
.endif |
355 |
.if defined(WITH_SQUID_STACKTRACES) || defined(WITH_DEBUG) |
358 |
.if defined(WITH_SQUID_STACKTRACES) |
356 |
CONFIGURE_ARGS+= --enable-stacktraces |
359 |
CONFIGURE_ARGS+= --enable-stacktraces |
357 |
CFLAGS+= -g |
360 |
CFLAGS+= -g |
358 |
STRIP= "" |
361 |
STRIP= "" |
359 |
.endif |
362 |
.endif |
360 |
|
363 |
.if defined(WITH_SQUID_DEBUG) || defined(WITH_DEBUG) |
|
|
364 |
# TODO: are there other useful options that can/should be set to help |
365 |
# the developers in debugging failures? |
366 |
CONFIGURE_ARGS+= --disable-optimizations |
367 |
CFLAGS+= -g |
368 |
STRIP= "" |
369 |
.endif |
361 |
# Languages: |
370 |
# Languages: |
362 |
# |
371 |
# |
363 |
# If you do not define SQUID_LANGUAGES yourself, all available language files |
372 |
# If you do not define SQUID_LANGUAGES yourself, all available language files |
Lines 390-396
Link Here
|
390 |
.endfor |
399 |
.endfor |
391 |
PLIST_DIRS+= etc/squid/errors etc/squid squid/logs squid/cache squid |
400 |
PLIST_DIRS+= etc/squid/errors etc/squid squid/logs squid/cache squid |
392 |
|
401 |
|
|
|
402 |
pre-patch: |
403 |
# special handling for ChangeSet 10817 that relies on metadata information |
404 |
# supplied by a non applicable earlier patch; can be removed when the port |
405 |
# is updated to a post-pre6 tarball: |
406 |
@${REINPLACE_CMD} -e 's|v 1.453 2007/05/09 22:14:24 wessels|v 1.454 2007/05/13 10:57:41 hno|' \ |
407 |
-e 's|\(Revision:\) 1.453|\1 1.454|' \ |
408 |
${WRKSRC}/configure.in |
409 |
|
393 |
post-patch: |
410 |
post-patch: |
|
|
411 |
# add this version's datestamp so that Squid identifies itself as patched-up: |
412 |
@${REINPLACE_CMD} -e 's|3.0.PRE6|&+PatchSets-${PATCHSET_DATE}|' \ |
413 |
${WRKSRC}/configure.in |
394 |
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure |
414 |
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure |
395 |
@${REINPLACE_CMD} -e 's|%%SQUID_UID%%|${SQUID_UID}|g' \ |
415 |
@${REINPLACE_CMD} -e 's|%%SQUID_UID%%|${SQUID_UID}|g' \ |
396 |
-e 's|%%SQUID_GID%%|${SQUID_GID}|g' \ |
416 |
-e 's|%%SQUID_GID%%|${SQUID_GID}|g' \ |
Lines 409-414
Link Here
|
409 |
${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL |
429 |
${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL |
410 |
|
430 |
|
411 |
post-install: |
431 |
post-install: |
|
|
432 |
# Create cachemgr.conf.default manually since squid-3's install routine |
433 |
# unfortunately fails to do so (as it did in the old 2.5 days...): |
434 |
${INSTALL_DATA} ${WRKSRC}/tools/cachemgr.conf \ |
435 |
${PREFIX}/etc/squid/cachemgr.conf.default |
412 |
.if defined(WITH_SQUID_PINGER) |
436 |
.if defined(WITH_SQUID_PINGER) |
413 |
${CHMOD} 4510 ${PREFIX}/libexec/squid/pinger; \ |
437 |
${CHMOD} 4510 ${PREFIX}/libexec/squid/pinger; \ |
414 |
${CHGRP} ${SQUID_GID} ${PREFIX}/libexec/squid/pinger |
438 |
${CHGRP} ${SQUID_GID} ${PREFIX}/libexec/squid/pinger |