<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/49e35b552fe3b5bb977505a6b0bda293c9427d45">https://github.com/macports/macports-ports/commit/49e35b552fe3b5bb977505a6b0bda293c9427d45</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 49e35b552fe3b5bb977505a6b0bda293c9427d45
</span>Author: newtonne <newtonne@users.noreply.github.com>
AuthorDate: Mon Jul 30 00:08:11 2018 +0100
<span style='display:block; white-space:pre;color:#404040;'> New port: lynis
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> - lynis is a security and system auditing tool to harden systems
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> - It's a shell script, but can be (and is) delivered as a package on
</span><span style='display:block; white-space:pre;color:#404040;'> many *nix systems
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> - The script reads extra configuration which is included in the tarball.
</span><span style='display:block; white-space:pre;color:#404040;'> I've put this in ${prefix}/libexec/lynis as this seemed like the best
</span><span style='display:block; white-space:pre;color:#404040;'> place for it. Let me know if it should go elsewhere.
</span>---
security/lynis/Portfile | 61 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 61 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/security/lynis/Portfile b/security/lynis/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..eaa73b7
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/security/lynis/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,61 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name lynis
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 2.6.6
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories security
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license GPL-3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {gmail.com:newtonne.github @newtonne} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+supported_archs x86_64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description Security and system auditing tool to harden systems
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description Lynis is a battle-tested security tool for systems running \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Linux, macOS, or Unix-based operating system. \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ It performs an extensive health scan of your systems to \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ support system hardening and compliance testing. The \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ project is open source software with the GPL license and \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ available since 2007.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://cisofy.com/lynis/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+master_sites https://downloads.cisofy.com/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+distname ${name}-${version}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 4dba3f3d3bd5038a139ec3428340ff97bd3c1d6e \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 6b254cf2975eed6db9c39960e7c07e8ff4ddf61f974274980aa62a74745020e4 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 274658
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+use_configure no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+worksrcdir ${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Package is a shell script
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set target_dir ${prefix}/libexec/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+pre-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|/usr/local/lynis|${target_dir}|g" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/lynis
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|/usr/local/lynis|${target_dir}|g" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/include/functions
</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;'>+destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d ${destroot}${target_dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file copy ${worksrcpath}/db \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/include \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/plugins \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {*}[glob ${worksrcpath}/*.prf] \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${target_dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall ${worksrcpath}/${name}.8 ${destroot}${prefix}/share/man/man8
</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;'>+livecheck.type regex
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.url ${master_sites}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.regex >${name}-(\\d+(\\.\\d+)+)${extract.suffix}<
</span></pre><pre style='margin:0'>
</pre>