[63873] trunk/dports/net/squid3-devel/Portfile
snc at macports.org
snc at macports.org
Wed Feb 17 09:02:24 PST 2010
Revision: 63873
http://trac.macports.org/changeset/63873
Author: snc at macports.org
Date: 2010-02-17 09:02:24 -0800 (Wed, 17 Feb 2010)
Log Message:
-----------
tweak variants, add netchange HUP
Modified Paths:
--------------
trunk/dports/net/squid3-devel/Portfile
Modified: trunk/dports/net/squid3-devel/Portfile
===================================================================
--- trunk/dports/net/squid3-devel/Portfile 2010-02-17 16:54:05 UTC (rev 63872)
+++ trunk/dports/net/squid3-devel/Portfile 2010-02-17 17:02:24 UTC (rev 63873)
@@ -5,6 +5,7 @@
name squid3-devel
version 3.1.0.16
+revision 1
set branch [join [lrange [split ${version} .] 0 1] .]
categories net
platforms darwin
@@ -31,9 +32,10 @@
ftp://ftp.squid-cache.org/pub/squid/
distname squid-${version}
-checksums md5 e193368e286b6f22b6463b8062a70e04 \
- sha1 839304dd8f4b07e724b4ea6a12fe01c3a99c4c89 \
- rmd160 d978d61da4c5126d14251a4ba520385c49ce6a84
+dist_subdir ${name}-${version}_${revision}
+checksums md5 e795d79cf37ec91f59d09c6804a2555b \
+ sha1 e3fe9bb9f2e4eadd6324cde691be11f0bd7a1e0a \
+ rmd160 a63d03defa95fa9b50ea65ffecedf79bcc66f3f9
use_bzip2 yes
patchfiles patch-cf.data.pre.diff patch-include_squid_types.h.diff
@@ -73,12 +75,16 @@
# this implementation will only impact rule numbers 100 and 101.
# A user may be matched by name or identification number.
# you will not want to force squid to use itself (infinite loop)
+if {[variant_isset ipfw_transparent] || [variant_isset https]} {
+ append start_extra "ipfw add 99 allow tcp from me to any dst-port 80 uid squid out\n"
+ append stop_extra "ipfw delete 99\n"
+}
if {[variant_isset ipfw_transparent]} {
- append start_extra "ipfw add 100 fwd 127.0.0.1,3128 tcp from any to any 80 uid 502\n"
+ append start_extra "ipfw add 100 fwd 127.0.0.1,3128 tcp from me to any dst-port 80 out\n"
append stop_extra "ipfw delete 100\n"
}
if {[variant_isset https]} {
- append start_extra "ipfw add 101 fwd 127.0.0.1,3129 tcp from any to any 443 uid 502\n"
+ append start_extra "ipfw add 101 fwd 127.0.0.1,3129 tcp from me to any dst-post 443 out\n"
append stop_extra "ipfw delete 101\n"
}
startupitem.start \
@@ -156,6 +162,8 @@
depends_run-append port:curl-ca-bundle
}
+startupitem.netchange yes
+
livecheck.type regex
livecheck.url http://www.squid-cache.org/Versions/v3/${branch}/
livecheck.regex >squid-(${branch}\[.0-9\]+)<
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100217/8d649c52/attachment.html>
More information about the macports-changes
mailing list