[61458] trunk/dports/net/squid3-devel/Portfile

snc at macports.org snc at macports.org
Fri Dec 11 13:58:20 PST 2009


Revision: 61458
          http://trac.macports.org/changeset/61458
Author:   snc at macports.org
Date:     2009-12-11 13:58:17 -0800 (Fri, 11 Dec 2009)
Log Message:
-----------
add default, https configurations

Modified Paths:
--------------
    trunk/dports/net/squid3-devel/Portfile

Modified: trunk/dports/net/squid3-devel/Portfile
===================================================================
--- trunk/dports/net/squid3-devel/Portfile	2009-12-11 21:55:37 UTC (rev 61457)
+++ trunk/dports/net/squid3-devel/Portfile	2009-12-11 21:58:17 UTC (rev 61458)
@@ -89,6 +89,27 @@
     xinstall -o squid -g squid -m 755 -d \
         ${destroot}${prefix}/var/run/squid ${destroot}${prefix}/var/squid \
         ${destroot}${prefix}/var/squid/cache ${destroot}${prefix}/var/squid/logs
+    reinplace "s|http_port 3128|http_port 127.0.0.1:3128 intercept|" \
+        ${destroot}${prefix}/etc/squid/squid.conf.default
+    set config [open ${destroot}${prefix}/etc/squid/squid.conf.default a]
+    if {[variant_isset https]} {
+        puts $config "https_port 127.0.0.1:3129 intercept sslBump"
+        puts $config "sslproxy_cafile ${prefix}/share/curl/curl-ca-bundle.crt"
+        puts $config "# Bumped requests have relative URLs so Squid has to use"
+        puts $config "# reverse proxy or accelerator code. By default, that"
+        puts $config "# code denies direct forwarding. The need for this option"
+        puts $config "# may disappear in the future."
+        puts $config "always_direct allow all"
+        puts $config ""
+        puts $config "# if a site uses a self-signed certificate it will"
+        puts $config "# produce errors"
+        puts $config "#acl TrustedName dstdomain .domain.org"
+        puts $config "#sslproxy_cert_error allow TrustedName"
+        puts $config "#sslproxy_cert_error deny all"
+    }
+    puts $config "visible_hostname localhost"
+    puts $config "shutdown_lifetime 1 second"
+    close $config
     file delete -force ${destroot}${prefix}/etc/squid/squid.conf \
                        ${destroot}${prefix}/etc/squid/mime.conf \
                        ${destroot}${prefix}/etc/squid/cachemgr.conf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091211/b360cf52/attachment.html>


More information about the macports-changes mailing list