<pre style='margin:0'>
Daniel J. Luke (danielluke) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/130e060f21c32aba941e20ec78766c6b88e9b991">https://github.com/macports/macports-ports/commit/130e060f21c32aba941e20ec78766c6b88e9b991</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 130e060 clamav: support systems < 10.7
</span>130e060 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 130e060f21c32aba941e20ec78766c6b88e9b991
</span>Author: Ken Cunningham <kencu@macports.org>
AuthorDate: Mon Oct 7 17:44:20 2019 -0700
<span style='display:block; white-space:pre;color:#404040;'> clamav: support systems < 10.7
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> the new certificate code is using 10.7+ API
</span><span style='display:block; white-space:pre;color:#404040;'> the other implementation, for linux compiles without
</span><span style='display:block; white-space:pre;color:#404040;'> issues on MacOSX, and passes all test
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> closes: https://trac.macports.org/ticket/59168
</span>---
sysutils/clamav/Portfile | 13 +++++++++++++
1 file changed, 13 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/clamav/Portfile b/sysutils/clamav/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 18a0d32..fa535c6 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/sysutils/clamav/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/clamav/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -47,6 +47,19 @@ depends_lib port:libiconv \
</span> #- hack to build even when chmlib is installed with its own lzx.h
patchfiles patch-libclamav-Makefile.diff
<span style='display:block; white-space:pre;background:#e0ffe0;'>+## older systems support
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# use linux version of openssl cert util on systems < 10.7 that don't support the macOS version
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# ./shared/linux/cert_util_linux.c -> ./shared/mac/cert_util_mac.m
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# passes all tests. See: https://trac.macports.org/ticket/59168
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-extract {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if { ${os.platform} eq "darwin" && ${os.major} < 11 } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_msg "replacing mac security with linux security"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ delete ${worksrcpath}/shared/mac/cert_util_mac.m
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${worksrcpath}/shared/linux/cert_util_linux.c \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/shared/mac/cert_util_mac.m
</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> test.run yes
test.target check
</pre><pre style='margin:0'>
</pre>