<pre style='margin:0'>
Renee Otten (reneeotten) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/31398ae494550e460546a07a5fa5cf02471e2aa7">https://github.com/macports/macports-ports/commit/31398ae494550e460546a07a5fa5cf02471e2aa7</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 31398ae4945 clamav-server: Update to clamd version 1.2.1; Add proxy_settings variant
</span>31398ae4945 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 31398ae494550e460546a07a5fa5cf02471e2aa7
</span>Author: Steven Thomas Smith <s.t.smith@ieee.org>
AuthorDate: Sat Dec 9 14:20:39 2023 -0500
<span style='display:block; white-space:pre;color:#404040;'> clamav-server: Update to clamd version 1.2.1; Add proxy_settings variant
</span>---
sysutils/clamav-server/Portfile | 56 +++++++++++++++++++++-
.../files/patch-etc-clamd-conf-macports.diff | 27 ++++++-----
.../files/patch-etc-freshclam-conf-macports.diff | 16 +++----
3 files changed, 76 insertions(+), 23 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/clamav-server/Portfile b/sysutils/clamav-server/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 42cc7699c49..4089c0ac7fc 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/sysutils/clamav-server/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/clamav-server/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -3,8 +3,9 @@
</span> PortSystem 1.0
name clamav-server
<span style='display:block; white-space:pre;background:#ffe0e0;'>-version 0.101.2
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Use the latest MacPorts version of clamav as this port's version
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 1.2.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span> homepage https://www.clamav.net/
categories sysutils
platforms darwin
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -230,6 +231,57 @@ DatabaseCustomURL http:\\/\\/ftp.swin.edu.au\\/sanesecurity\\/sigwhitelist.ign2\
</span> ${destroot}${sharePath}/ClamavScanIt.workflow/Contents/document.wflow
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+set optional_proxy http://localhost:8080
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set proxy_message \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "Freshclam startupitem configured to use a proxy. Please set the
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+environment variables http_proxy and https_proxy and
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+install this port variant a sudo command that sets
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+these variables, e.g.:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+\tsudo -E port install ${name} +proxy_settings
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+\tsudo env http_proxy=${optional_proxy} https_proxy=${optional_proxy} port install ${name} +proxy_settings
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+or edit the startupitem:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+\t${prefix}/etc/${startupitem.location}/org.macports.freshclam/org.macports.freshclam.plist
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+to change the proxy settings and reload the port."
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant proxy_settings \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ description {Include proxy settings in the freshclam startupitem plist.} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Note: `sudo launchctl setenv` is no longer functional on macOS Ventura+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ notes-append ${proxy_message}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-activate {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if { [info exists ::env(http_proxy)] } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set http_proxy $env(http_proxy)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set http_proxy ${optional_proxy}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if { [info exists ::env(https_proxy)] } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set https_proxy $env(https_proxy)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set https_proxy ${http_proxy}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # org.macports.freshclam
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${prefix}/etc/${startupitem.location}/org.macports.freshclam \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "/usr/bin/plutil -insert EnvironmentVariables -xml \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ '<dict> \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <key>http_proxy</key> \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <string>${http_proxy}</string> \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <key>https_proxy</key> \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <string>${https_proxy}</string> \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ </dict>' \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${prefix}/etc/${startupitem.location}/org.macports.freshclam/org.macports.freshclam.plist"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_msg "${proxy_message}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+The freshclam startupitem is configured to use the proxy settings:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+\thttp_proxy=${http_proxy}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+\thttps_proxy=${https_proxy}
</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;'>+
</span> post-activate {
if {![file exists ${prefix}/etc/clamd.conf]} {
copy ${prefix}/etc/clamd.conf.macports \
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/clamav-server/files/patch-etc-clamd-conf-macports.diff b/sysutils/clamav-server/files/patch-etc-clamd-conf-macports.diff
</span><span style='display:block; white-space:pre;color:#808080;'>index 01d89555b72..4aa752a77e8 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/sysutils/clamav-server/files/patch-etc-clamd-conf-macports.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/clamav-server/files/patch-etc-clamd-conf-macports.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,5 +1,5 @@
</span> --- etc/clamd.conf.macports
<span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ etc/clamd.conf.macports 2021-02-24 20:59:00.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ etc/clamd.conf.macports 2023-12-09 13:14:35
</span> @@ -5,13 +5,13 @@
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -33,26 +33,27 @@
</span> +ExtendedDetectionInfo yes
# This option allows you to save a process identifier of the listening
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # daemon (main thread).
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # daemon.
</span> @@ -74,7 +74,7 @@
# It is recommended that the directory where this file is stored is
# also owned by root to keep other users from tampering with it.
# Default: disabled
<span style='display:block; white-space:pre;background:#ffe0e0;'>--#PidFile /var/run/clamd.pid
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#PidFile /run/clamav/clamd.pid
</span> +PidFile @PREFIX@/var/run/clamav/clamd.pid
# Optional path to the global temporary directory.
# Default: system specific (usually /tmp or /var/tmp).
<span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -93,7 +93,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -98,8 +98,7 @@
</span>
# Path to a local socket file the daemon will listen on.
# Default: disabled (must be specified by a user)
<span style='display:block; white-space:pre;background:#ffe0e0;'>--#LocalSocket /tmp/clamd.socket
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#LocalSocket /run/clamav/clamd.sock
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#LocalSocket /tmp/clamd.sock
</span> +LocalSocket @PREFIX@/var/run/clamav/clamd.socket
# Sets the group ownership on the unix socket.
# Default: disabled (the primary group of the user running clamd)
<span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -140,7 +140,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -146,7 +145,7 @@
</span>
# Maximum number of threads running at the same time.
# Default: 10
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -61,7 +62,7 @@
</span>
# Waiting for data from a client socket will timeout after this time (seconds).
# Default: 120
<span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -179,9 +179,107 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -185,9 +184,107 @@
</span> #ExcludePath ^/proc/
#ExcludePath ^/sys/
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -170,7 +171,7 @@
</span>
# Follow directory symlinks.
# Default: no
<span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -223,7 +321,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -231,7 +328,7 @@
</span>
# Don't fork into background.
# Default: no
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -179,7 +180,7 @@
</span>
# Enable debug messages in libclamav.
# Default: no
<span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -240,7 +338,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -255,7 +352,7 @@
</span>
# Detect Possibly Unwanted Applications.
# Default: no
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -188,15 +189,15 @@
</span>
# Exclude a specific PUA category. This directive can be used multiple times.
# See https://github.com/vrtadmin/clamav-faq/blob/master/faq/faq-pua.md for
<span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -256,6 +354,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -270,6 +367,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #IncludePUA Spy
</span> #IncludePUA Scanner
#IncludePUA RAT
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span> +IncludePUA RAT
+IncludePUA Spy
+IncludePUA Server
+IncludePUA Script
<span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # This option causes memory or nested map scans to dump the content to disk.
# If you turn on this option, more data is written to disk and is available
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # when the LeaveTemporaryFiles option is enabled.
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/clamav-server/files/patch-etc-freshclam-conf-macports.diff b/sysutils/clamav-server/files/patch-etc-freshclam-conf-macports.diff
</span><span style='display:block; white-space:pre;color:#808080;'>index 1e16a731430..6929ebe905b 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/sysutils/clamav-server/files/patch-etc-freshclam-conf-macports.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/clamav-server/files/patch-etc-freshclam-conf-macports.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,5 +1,5 @@
</span> --- etc/freshclam.conf.macports
<span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ etc/freshclam.conf.macports 2019-11-23 14:44:28.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ etc/freshclam.conf.macports 2023-12-09 13:29:07
</span> @@ -5,7 +5,7 @@
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -18,16 +18,16 @@
</span>
# Maximum size of the log file.
# Value of 0 disables the limit.
<span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -48,7 +48,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # This option allows you to save the process identifier of the daemon
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -52,7 +52,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # It is recommended that the directory where this file is stored is
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # also owned by root to keep other users from tampering with it.
</span> # Default: disabled
<span style='display:block; white-space:pre;background:#ffe0e0;'>--#PidFile /var/run/freshclam.pid
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#PidFile /run/clamav/freshclam.pid
</span> +PidFile @PREFIX@/var/run/clamav/freshclam.pid
# By default when started freshclam drops privileges and switches to the
# "clamav" user. This directive allows you to change the database owner.
<span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -142,7 +132,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -148,7 +148,7 @@
</span>
# Send the RELOAD command to clamd.
# Default: no
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -35,8 +35,8 @@
</span> +NotifyClamd @PREFIX@/etc/clamd.conf
# Run command after successful database update.
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # Default: disabled
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -159,7 +149,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Use EXIT_1 to return 1 after successful database update.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -166,7 +166,7 @@
</span>
# Don't fork into background.
# Default: no
</pre><pre style='margin:0'>
</pre>