<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/c8231d17c88ca2cc5ee9cf68bf0306c178536560">https://github.com/macports/macports-ports/commit/c8231d17c88ca2cc5ee9cf68bf0306c178536560</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 c8231d1 lynis: Fix reinplace regex and add bash completion
</span>c8231d1 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit c8231d17c88ca2cc5ee9cf68bf0306c178536560
</span>Author: newtonne <newtonne@users.noreply.github.com>
AuthorDate: Tue Aug 21 19:46:04 2018 +0100
<span style='display:block; white-space:pre;color:#404040;'> lynis: Fix reinplace regex and add bash completion
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> - Issue 56891 was caused by the reinplace regex being incorrect. I've
</span><span style='display:block; white-space:pre;color:#404040;'> now fixed this so that the ${prefix}/etc/${name}/* paths are correct.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> - Also, just realised that they include a bash completion file so I've
</span><span style='display:block; white-space:pre;color:#404040;'> installed that now too.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Fixes: https://trac.macports.org/ticket/56891
</span>---
security/lynis/Portfile | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
<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 9d540ef..700c6ae 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;'>@@ -4,6 +4,7 @@ PortSystem 1.0
</span>
name lynis
version 2.6.6
<span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span>
categories security
license GPL-3
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -38,20 +39,31 @@ build {}
</span> set target_dir ${prefix}/etc/${name}
pre-destroot {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace -E "s|(t.+_TARGETS=)\".+\"|\\1\"${target_dir}\"|g" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -E "s|(t.+_TARGETS=)\".+ \.(.*)\"|\\1\"${target_dir}\\2\"|g" \
</span> ${worksrcpath}/lynis \
${worksrcpath}/include/functions
}
destroot {
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Main binary
</span> xinstall -m 755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/${name}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Additional config
</span> xinstall -d ${destroot}${target_dir}
file copy ${worksrcpath}/db \
${worksrcpath}/include \
${worksrcpath}/plugins \
{*}[glob ${worksrcpath}/*.prf] \
${destroot}${target_dir}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Man page
</span> xinstall ${worksrcpath}/${name}.8 ${destroot}${prefix}/share/man/man8
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Bash completion
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set completions_path ${prefix}/share/bash-completion/completions
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d ${destroot}${completions_path}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 644 ${worksrcpath}/extras/bash_completion.d/${name} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${completions_path}
</span> }
livecheck.type regex
</pre><pre style='margin:0'>
</pre>