<pre style='margin:0'>
Christopher Nielsen (mascguy) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/09e89a8d2a07115b0a9ee44af3f16de85a802be4">https://github.com/macports/macports-ports/commit/09e89a8d2a07115b0a9ee44af3f16de85a802be4</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 09e89a8d2a0 privoxy: Add launchd.plist to delete expired certificates every week
</span>09e89a8d2a0 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 09e89a8d2a07115b0a9ee44af3f16de85a802be4
</span>Author: Steven Thomas Smith <s.t.smith@ieee.org>
AuthorDate: Sun Nov 14 13:19:49 2021 -0500
<span style='display:block; white-space:pre;color:#404040;'> privoxy: Add launchd.plist to delete expired certificates every week
</span>---
www/privoxy/Portfile | 184 +++++++++++++++++++++++++++++++++------------------
1 file changed, 118 insertions(+), 66 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/www/privoxy/Portfile b/www/privoxy/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index ce18bd2023e..f6428e19d33 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/www/privoxy/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/www/privoxy/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -6,7 +6,7 @@ PortGroup perl5 1.0
</span>
name privoxy
version 3.0.32
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 6
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 7
</span> categories www security net
platforms darwin
license GPL-2
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -70,6 +70,24 @@ set privoxyGroup privoxy
</span> set privoxyUser privoxy
add_users ${privoxyUser} group=${privoxyGroup}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+proc plutil_startup {plcmds label} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ global prefix startupitem.location
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach cmd ${plcmds} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${prefix}/etc/${startupitem.location}/${label} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "/usr/bin/plutil ${cmd} ${label}.plist"
</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><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> # bash commands to generate patch files from new upstream configuration files
## export prefix=${prefix:-/opt/local}
## mkdir privoxy-orig privoxy-new
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -116,7 +134,7 @@ post-build {
</span> system -W ${worksrcpath} "${build.cmd} dok-release"
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-destroot.keepdirs ${destroot}${prefix}/var/log/privoxy \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot.keepdirs ${destroot}${prefix}/var/log/${name} \
</span> ${destroot}${prefix}/var/run
post-destroot {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -135,41 +153,41 @@ post-destroot {
</span> if {${os.platform} ne "darwin"} {
xinstall -d ${destroot}${prefix}/etc/rc.d
xinstall -m 0755 -W ${worksrcpath} privoxy-generic.init \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- ${destroot}${prefix}/etc/rc.d/privoxy.sh
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/etc/rc.d/${name}.sh
</span>
system -W ${destroot}${prefix}/etc/rc.d "patch -p0 < ${filespath}/patch-privoxy.sh.diff"
reinplace "s|@@PREFIX@@|${prefix}|g" \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- ${destroot}${prefix}/etc/rc.d/privoxy.sh
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/etc/rc.d/${name}.sh
</span> if {[existsuser ${privoxyUser}] != 0} {
reinplace "s|@@PRIVOXY_USER@@|${privoxyUser}|g" \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- ${destroot}${prefix}/etc/rc.d/privoxy.sh
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/etc/rc.d/${name}.sh
</span> } else {
reinplace "s|@@PRIVOXY_USER@@|$env(USER)|g" \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- ${destroot}${prefix}/etc/rc.d/privoxy.sh
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/etc/rc.d/${name}.sh
</span> }
}
# Rename these so local modifications are not removed on uninstall.
# NOTE: Always overwrite default.action and default.filter.
foreach privoxyConf {config match-all.action trust user.action user.filter} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[file exists ${destroot}${prefix}/etc/privoxy/${privoxyConf}]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- file rename ${destroot}${prefix}/etc/privoxy/${privoxyConf} \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${destroot}${prefix}/etc/privoxy/${privoxyConf}.new
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[file exists ${destroot}${prefix}/etc/${name}/${privoxyConf}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file rename ${destroot}${prefix}/etc/${name}/${privoxyConf} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/etc/${name}/${privoxyConf}.new
</span> }
# backup config files before fix #23970
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[file exists ${prefix}/etc/privoxy/${privoxyConf}] \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- && ![file exists ${prefix}/etc/privoxy/${privoxyConf}.new]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- file copy ${prefix}/etc/privoxy/${privoxyConf} \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${destroot}${prefix}/etc/privoxy/${privoxyConf}.mp_backup
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[file exists ${prefix}/etc/${name}/${privoxyConf}] \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ && ![file exists ${prefix}/etc/${name}/${privoxyConf}.new]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file copy ${prefix}/etc/${name}/${privoxyConf} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/etc/${name}/${privoxyConf}.mp_backup
</span> }
}
# Remove the preinstalled log files as, otherwise, a rotation script
# will fail when trying to rename and compress due to gzip not liking
# multi-linked files (the one in ${prefix} and the one in
# ${prefix}/var/db/dports/software/...)
<span style='display:block; white-space:pre;background:#ffe0e0;'>- file delete {*}[glob ${destroot}${prefix}/var/log/privoxy/*]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file delete {*}[glob ${destroot}${prefix}/var/log/${name}/*]
</span> if {[existsuser ${privoxyUser}] != 0 && [existsgroup ${privoxyGroup}] != 0} {
# Make sure log directory owned by privoxy user/group
<span style='display:block; white-space:pre;background:#ffe0e0;'>- file attributes ${destroot}${prefix}/var/log/privoxy \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file attributes ${destroot}${prefix}/var/log/${name} \
</span> -group ${privoxyGroup} -owner ${privoxyUser}
}
}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -177,25 +195,25 @@ post-destroot {
</span> post-activate {
# Make sure initial log files are present and setup correctly
foreach privoxyLog {jarfile logfile} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- touch ${prefix}/var/log/privoxy/${privoxyLog}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ touch ${prefix}/var/log/${name}/${privoxyLog}
</span> if {[existsuser ${privoxyUser}] != 0 && [existsgroup ${privoxyGroup}] != 0} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- file attributes ${prefix}/var/log/privoxy/${privoxyLog} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file attributes ${prefix}/var/log/${name}/${privoxyLog} \
</span> -group ${privoxyGroup} -owner ${privoxyUser} \
-permissions 0660
}
}
foreach privoxyConf {config match-all.action trust user.action user.filter} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if {![file exists ${prefix}/etc/privoxy/${privoxyConf}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {![file exists ${prefix}/etc/${name}/${privoxyConf}]} {
</span> # restore config files before fix #23970
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[file exists ${prefix}/etc/privoxy/${privoxyConf}.mp_backup]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- file copy ${prefix}/etc/privoxy/${privoxyConf}.mp_backup \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${prefix}/etc/privoxy/${privoxyConf}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[file exists ${prefix}/etc/${name}/${privoxyConf}.mp_backup]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file copy ${prefix}/etc/${name}/${privoxyConf}.mp_backup \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${prefix}/etc/${name}/${privoxyConf}
</span> } else {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- file copy ${prefix}/etc/privoxy/${privoxyConf}.new \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${prefix}/etc/privoxy/${privoxyConf}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file copy ${prefix}/etc/${name}/${privoxyConf}.new \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${prefix}/etc/${name}/${privoxyConf}
</span> }
if {[existsuser ${privoxyUser}] != 0 && [existsgroup ${privoxyGroup}] != 0} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- file attributes ${prefix}/etc/privoxy/${privoxyConf} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file attributes ${prefix}/etc/${name}/${privoxyConf} \
</span> -group ${privoxyGroup} -owner ${privoxyUser} \
-permissions 0660
}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -203,7 +221,7 @@ post-activate {
</span> }
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-set tls_ca_dir ${prefix}/etc/privoxy/ca.macports
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set tls_ca_dir ${prefix}/etc/${name}/ca.macports
</span>
variant https_inspection \
description {Use Privoxy HTTPS inspection.} {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -246,22 +264,22 @@ variant https_inspection \
</span> --with-openssl
destroot.keepdirs-append \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- ${destroot}${prefix}/etc/privoxy/CA \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${destroot}${prefix}/var/privoxy \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${destroot}${prefix}/var/privoxy/certs
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/etc/${name}/CA \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/var/${name} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/var/${name}/certs
</span>
post-destroot {
xinstall -m 770 -d \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- ${destroot}${prefix}/etc/privoxy/CA \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${destroot}${prefix}/var/privoxy \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${destroot}${prefix}/var/privoxy/certs
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/etc/${name}/CA \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/var/${name} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/var/${name}/certs
</span>
if {[existsuser ${privoxyUser}] != 0 && [existsgroup ${privoxyGroup}] != 0} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- file attributes ${destroot}${prefix}/etc/privoxy/CA \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file attributes ${destroot}${prefix}/etc/${name}/CA \
</span> -group ${privoxyGroup} -owner ${privoxyUser}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- file attributes ${destroot}${prefix}/var/privoxy \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file attributes ${destroot}${prefix}/var/${name} \
</span> -group ${privoxyGroup} -owner ${privoxyUser}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- file attributes ${destroot}${prefix}/var/privoxy/certs \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file attributes ${destroot}${prefix}/var/${name}/certs \
</span> -group ${privoxyGroup} -owner ${privoxyUser}
}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -362,44 +380,44 @@ variant https_inspection \
</span> TLS_PRIVOXY_ROOT_CA
"
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if { ![file exists ${prefix}/etc/privoxy/CA/ca.cert.pem]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- || ![file exists ${prefix}/etc/privoxy/CA/ca.key.pem] } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if { ![file exists ${prefix}/etc/${name}/CA/ca.cert.pem]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ || ![file exists ${prefix}/etc/${name}/CA/ca.key.pem] } {
</span> xinstall -m 0664 \
${tls_ca_dir}/certs/ca.cert.pem \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- ${prefix}/etc/privoxy/CA
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${prefix}/etc/${name}/CA
</span> xinstall -m 0664 \
${tls_ca_dir}/private/ca.key.pem \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- ${prefix}/etc/privoxy/CA
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${prefix}/etc/${name}/CA
</span> xinstall -m 0664 \
${tls_ca_dir}/certs/ca.cer \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- ${prefix}/etc/privoxy/CA
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${prefix}/etc/${name}/CA
</span> xinstall -m 0664 \
${tls_ca_dir}/certs/ca.p12 \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- ${prefix}/etc/privoxy/CA
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${prefix}/etc/${name}/CA
</span> if {[existsuser ${privoxyUser}] != 0 && [existsgroup ${privoxyGroup}] != 0} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- file attributes ${prefix}/etc/privoxy/CA/ca.cert.pem \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file attributes ${prefix}/etc/${name}/CA/ca.cert.pem \
</span> -group ${privoxyGroup} -owner ${privoxyUser} \
-permissions 0664
<span style='display:block; white-space:pre;background:#ffe0e0;'>- file attributes ${prefix}/etc/privoxy/CA/ca.key.pem \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file attributes ${prefix}/etc/${name}/CA/ca.key.pem \
</span> -group ${privoxyGroup} -owner ${privoxyUser} \
-permissions 0664
<span style='display:block; white-space:pre;background:#ffe0e0;'>- file attributes ${prefix}/etc/privoxy/CA/ca.cer \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file attributes ${prefix}/etc/${name}/CA/ca.cer \
</span> -group ${privoxyGroup} -owner ${privoxyUser} \
-permissions 0664
<span style='display:block; white-space:pre;background:#ffe0e0;'>- file attributes ${prefix}/etc/privoxy/CA/ca.p12 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file attributes ${prefix}/etc/${name}/CA/ca.p12 \
</span> -group ${privoxyGroup} -owner ${privoxyUser} \
-permissions 0664
}
}
# Do not overwrite ca-password, but this is where it goes
# reinplace -E -q "s|^#(ca-password\[\[:space:]]+)\[^\[:space:]]*)|\\1${tls_ca_passphrase}|" \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # ${prefix}/etc/privoxy/config
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if { ![file exists ${prefix}/etc/privoxy/CA/trustedCAs.pem] } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # ${prefix}/etc/${name}/config
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if { ![file exists ${prefix}/etc/${name}/CA/trustedCAs.pem] } {
</span> xinstall -m 0664 \
${tls_ca_dir}/trustedCAs.pem \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- ${prefix}/etc/privoxy/CA
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${prefix}/etc/${name}/CA
</span> if {[existsuser ${privoxyUser}] != 0 && [existsgroup ${privoxyGroup}] != 0} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- file attributes ${prefix}/etc/privoxy/CA/trustedCAs.pem \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file attributes ${prefix}/etc/${name}/CA/trustedCAs.pem \
</span> -group ${privoxyGroup} -owner ${privoxyUser} \
-permissions 0664
}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -409,7 +427,7 @@ TLS_PRIVOXY_ROOT_CA
</span> notes "Configure HTTPS inspection by creating a local Privoxy \
certificate authority (CA). As sudo:
<span style='display:block; white-space:pre;background:#ffe0e0;'>- cp -R ${prefix}/etc/privoxy/ca.macports ca.hostname && cd ca.hostname
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cp -R ${prefix}/etc/${name}/ca.macports ca.hostname && cd ca.hostname
</span> # edit openssl.cnf for your local organizationName, commonName, etc.
# generate a strong password, use for both -passin and -passout
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -445,8 +463,8 @@ certificate authority (CA). As sudo:
</span>
# Install the Privoxy PKI
cp -p private/ca.key.pem certs/ca.cert.pem certs/ca.cer certs/ca.p12 \\
<span style='display:block; white-space:pre;background:#ffe0e0;'>- ${prefix}/etc/privoxy/CA
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Edit ${prefix}/etc/privoxy/config and set ca-password
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${prefix}/etc/${name}/CA
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Edit ${prefix}/etc/${name}/config and set ca-password
</span>
# Import and trust the CA in Keychain Access
Keychain\\ Access.app> Import ca.cer or ca.p12 into \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -460,21 +478,55 @@ certificate authority (CA). As sudo:
</span> default_variants-append \
+https_inspection
<span style='display:block; white-space:pre;background:#ffe0e0;'>-platform darwin {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- startupitem.create yes
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- startupitem.name Privoxy
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- startupitem.start "\[ -f \"${prefix}/etc/privoxy/config\" \] \\"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- startupitem.start-append "\t&& ${prefix}/sbin/privoxy \\"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- startupitem.start-append "\t\t--pidfile ${prefix}/var/run/privoxy.pid \\"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- startupitem.start-append "\t\t--user ${privoxyUser} \\"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- startupitem.start-append "\t\t${prefix}/etc/privoxy/config 2>/dev/null"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- startupitem.stop "if \[ -f \"${prefix}/var/run/privoxy.pid\" \]; then"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- startupitem.stop-append "\tkill `cat ${prefix}/var/run/privoxy.pid` \\"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- startupitem.stop-append "\t\t&& rm -f ${prefix}/var/run/privoxy.pid"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- startupitem.stop-append "else"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- startupitem.stop-append "\t/usr/bin/killall -SIGUSR1 privoxy 2>/dev/null"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- startupitem.stop-append "fi"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- startupitem.pidfile auto ${prefix}/var/run/privoxy.pid
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+startupitem.create yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+startupitems \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ name Privoxy \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ init "pidfile=\"\${prefix}/var/run/${name}.pid\"" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ start [list "\[ -f \"\${prefix}/etc/${name}/config\" \] \\" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "\t&& \"\${prefix}/sbin/${name}\" \\" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "\t\t--pidfile \"\${pidfile}\" \\" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "\t\t--user ${privoxyUser} \\" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "\t\t\"${prefix}/etc/${name}/config\" 2>/dev/null" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ] \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ stop [list "if \[ -f \"\${pidfile}\" \]; then" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "\tkill \$(cat \"\${pidfile}\") \\" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "\t\t&& rm -f \"\${pidfile}\"" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "else" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "\t/usr/bin/killall -SIGUSR1 privoxy 2>/dev/null" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "fi" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ] \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ pidfile [list auto ${prefix}/var/run/${name}.pid]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if { [variant_isset "https_inspection"] } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ startupitems-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ name Privoxy.delete-expired-certs \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ executable /bin/bash \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ pidfile none
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-activate {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # bruteforce expiration launchd daemon
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Privoxy certs are issued for 30 days; delete every week
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ plutil_startup [list \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "-insert Program -string /bin/bash" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "-replace ProgramArguments \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -xml '<array> \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <string>/bin/bash</string> \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <string>-c</string> \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <string>for c in ${prefix}/var/${name}/certs/*.crt; do if ! openssl x509 -checkend 0 -noout -in "\${c}" 1> /dev/null 2>&1; then rm -f "\${c}" "\${c%.crt}.pem"; fi; done</string> \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ </array>'" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "-remove KeepAlive" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "-insert StartCalendarInterval \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -xml '<dict> \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <key>Weekday</key> \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <integer>7</integer> \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <key>Hour</key> \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <integer>0</integer> \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <key>Minute</key> \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <integer>30</integer> \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ </dict>'" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ] \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ org.macports.Privoxy.delete-expired-certs
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> }
livecheck.type regex
</pre><pre style='margin:0'>
</pre>