<pre style='margin:0'>
Ryan Schmidt (ryandesign) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/889b95ac250f502cee545e36f5f07b353d721bf5">https://github.com/macports/macports-ports/commit/889b95ac250f502cee545e36f5f07b353d721bf5</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 889b95ac250 macos-fortress: Fix startupitems for MacPorts 2.6.3
</span>889b95ac250 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 889b95ac250f502cee545e36f5f07b353d721bf5
</span>Author: Steven Thomas Smith <s.t.smith@ieee.org>
AuthorDate: Sat Aug 1 14:30:34 2020 -0400
<span style='display:block; white-space:pre;color:#404040;'> macos-fortress: Fix startupitems for MacPorts 2.6.3
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> * Fixes: https://trac.macports.org/ticket/60924
</span>---
net/macos-fortress/Portfile | 76 ++++++++++++++++++++++++---------------------
1 file changed, 41 insertions(+), 35 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/macos-fortress/Portfile b/net/macos-fortress/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index a4e52d6b183..bce1326e794 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/net/macos-fortress/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/macos-fortress/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -4,7 +4,7 @@ PortSystem 1.0
</span>
name macos-fortress
version 2020.06.18
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span>
categories net security
platforms darwin
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -162,6 +162,16 @@ sudo apachectl start
</span> \t${proxy_hostname}:3128
\thttp://${proxy_hostname}/proxy.pac"
<span style='display:block; white-space:pre;background:#e0ffe0;'>+pre-fetch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # The way that startupitems values are quoted was changed in 2.6.3.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # This port now relies on those changes. See:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://github.com/macports/macports-base/pull/191
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[vercmp [macports_version] 2.6.3] < 0} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_error "${name} @${version} requires MacPorts 2.6.3 or later"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return -code error "incompatible MacPorts version"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> if {${name} eq ${subport}} {
description Firewall, Blackhole, and Privatizing Proxy for Trackers, Attackers, Malware, Adware, and Spammers
long_description \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -287,30 +297,32 @@ subport ${name}-pf {
</span> startupitems \
name ${subport} \
init "PF_CONF=\"\${PF_CONF:-${pf_conf_prefix}}\"" \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- start "for tt in {1..4}; do \\
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-\t\tif \[\[ `/sbin/ifconfig | \${prefix}/bin/pcregrep -M -o '^\[^\\t:\]+:(\[^\\n\]|\\n\\t)*status: active' | egrep -o -m 1 '^\[^\\t:\]+'` = '' \]\]; then \\
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-\t\t\tsleep 45; \\
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-\t\telse \\
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-\t\t\t/sbin/pfctl -Fall \\
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-\t\t\t&& /sbin/pfctl -ef \${PF_CONF}; \\
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-\t\t\tbreak; \\
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-\t\tfi; \\
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-\tdone" \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- stop "/sbin/pfctl -d" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ start {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "for tt in {1..4}; do \\"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "\tif \[\[ `/sbin/ifconfig | \${prefix}/bin/pcregrep -M -o '^\[^\\t:\]+:(\[^\\n\]|\\n\\t)*status: active' | egrep -o -m 1 '^\[^\\t:\]+'` = '' \]\]; then \\"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "\t\tsleep 45; \\"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "\telse \\"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "\t\t/sbin/pfctl -Fall \\"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "\t\t&& /sbin/pfctl -ef \${PF_CONF}; \\"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "\t\tbreak; \\"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "\tfi; \\"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "done"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ stop { "/sbin/pfctl -d" } \
</span> pidfile none \
name ${subport}.brutexpire \
executable /sbin/pfctl \
pidfile none \
name ${subport}.subports \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- start \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- "\${prefix}/bin/port load ${name}-dshield
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-\t\${prefix}/bin/port load ${name}-emergingthreats" \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- stop \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- "\${prefix}/bin/port unload ${name}-dshield
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-\t\${prefix}/bin/port unload ${name}-emergingthreats" \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- restart \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- "\${prefix}/bin/port reload ${name}-dshield
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-\t\${prefix}/bin/port reload ${name}-emergingthreats" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ start [list \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "\${prefix}/bin/port -p load ${name}-dshield ${name}-emergingthreats" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ] \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ stop [list \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "\${prefix}/bin/port -p unload ${name}-dshield unload ${name}-emergingthreats" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ] \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ restart [list \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "\${prefix}/bin/port -p reload ${name}-dshield ${name}-emergingthreats" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ] \
</span> pidfile none
post-activate {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -554,21 +566,15 @@ subport ${name}-proxy {
</span> yes
startupitems \
name ${subport} \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- start "\${prefix}/bin/port load ${name}-hosts
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-\t\${prefix}/bin/port load squid4
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-\t\${prefix}/bin/port load privoxy
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-\t\${prefix}/bin/port load adblock2privoxy
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-\t\${prefix}/bin/port load ${name}-easylistpac" \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- stop "\${prefix}/bin/port unload ${name}-hosts
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-\t\${prefix}/bin/port unload squid4
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-\t\${prefix}/bin/port unload privoxy
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-\t\${prefix}/bin/port unload adblock2privoxy
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-\t\${prefix}/bin/port unload ${name}-easylistpac" \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- restart "\${prefix}/bin/port reload ${name}-hosts
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-\t\${prefix}/bin/port reload squid4
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-\t\${prefix}/bin/port reload privoxy
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-\t\${prefix}/bin/port reload adblock2privoxy
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-\t\${prefix}/bin/port reload ${name}-easylistpac" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ start [list \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "\${prefix}/bin/port -p load ${name}-hosts squid4 privoxy adblock2privoxy ${name}-easylistpac" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ] \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ stop [list \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "\${prefix}/bin/port -p unload ${name}-hosts squid4 privoxy adblock2privoxy ${name}-easylistpac" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ] \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ restart [list \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "\${prefix}/bin/port -p reload ${name}-hosts squid4 privoxy adblock2privoxy ${name}-easylistpac" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ] \
</span> pidfile none \
name ${subport}.squid-rotate \
executable ${prefix}/sbin/squid \
</pre><pre style='margin:0'>
</pre>