<pre style='margin:0'>
Perry E. Metzger (pmetzger) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/4f9f29f31a4547eea7c76701fb03897207ec3b0c">https://github.com/macports/macports-ports/commit/4f9f29f31a4547eea7c76701fb03897207ec3b0c</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 4f9f29f31a4547eea7c76701fb03897207ec3b0c
</span>Author: newtonne <newtonne@users.noreply.github.com>
AuthorDate: Mon Jul 30 20:34:35 2018 +0100
<span style='display:block; white-space:pre;color:#404040;'> Updates to lynis port
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> - Change supported_archs to noarch as we're not compiling anything.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> - Change target dir for misc config files to ${prefix}/etc/lynis as I
</span><span style='display:block; white-space:pre;color:#404040;'> think this is the place that makes the most sense. They're not
</span><span style='display:block; white-space:pre;color:#404040;'> executables, they're not libraries, they're miscellaneous config files.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> - Change the reinplace regex so that ${prefix}/etc/lynis replaces all
</span><span style='display:block; white-space:pre;color:#404040;'> other paths. This makes sense as users installing through Macports
</span><span style='display:block; white-space:pre;color:#404040;'> should put their config in there.
</span>---
security/lynis/Portfile | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/security/lynis/Portfile b/security/lynis/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index eaa73b7..9d540ef 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/security/lynis/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/security/lynis/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -9,7 +9,7 @@ categories security
</span> license GPL-3
maintainers {gmail.com:newtonne.github @newtonne} openmaintainer
platforms darwin
<span style='display:block; white-space:pre;background:#ffe0e0;'>-supported_archs x86_64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+supported_archs noarch
</span>
description Security and system auditing tool to harden systems
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -23,7 +23,6 @@ long_description Lynis is a battle-tested security tool for systems running \
</span> homepage https://cisofy.com/lynis/
master_sites https://downloads.cisofy.com/${name}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-distname ${name}-${version}
</span>
checksums rmd160 4dba3f3d3bd5038a139ec3428340ff97bd3c1d6e \
sha256 6b254cf2975eed6db9c39960e7c07e8ff4ddf61f974274980aa62a74745020e4 \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -36,12 +35,11 @@ worksrcdir ${name}
</span> # Package is a shell script
build {}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-set target_dir ${prefix}/libexec/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set target_dir ${prefix}/etc/${name}
</span>
pre-destroot {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace "s|/usr/local/lynis|${target_dir}|g" \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${worksrcpath}/lynis
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace "s|/usr/local/lynis|${target_dir}|g" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -E "s|(t.+_TARGETS=)\".+\"|\\1\"${target_dir}\"|g" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/lynis \
</span> ${worksrcpath}/include/functions
}
</pre><pre style='margin:0'>
</pre>