<pre style='margin:0'>
Marius Schamschula (Schamschula) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/d17f8a0f5ac30990f6e0fafb5c5eaa61e07b8924">https://github.com/macports/macports-ports/commit/d17f8a0f5ac30990f6e0fafb5c5eaa61e07b8924</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 d17f8a0f5ac zeek: fix cfg files
</span>d17f8a0f5ac is described below
<span style='display:block; white-space:pre;color:#808000;'>commit d17f8a0f5ac30990f6e0fafb5c5eaa61e07b8924
</span>Author: Marius Schamschula <mschamschula@gmail.com>
AuthorDate: Sat Aug 26 14:33:54 2023 -0500
<span style='display:block; white-space:pre;color:#404040;'> zeek: fix cfg files
</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/67727
</span>---
net/zeek/Portfile | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/zeek/Portfile b/net/zeek/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index f9cd2ac6c9d..0ddc0099003 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/net/zeek/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/zeek/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -6,7 +6,7 @@ PortGroup openssl 1.0
</span>
name zeek
version 6.0.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span> categories net security
maintainers {mps @Schamschula} openmaintainer
license BSD
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -35,7 +35,7 @@ subport ${name}-devel {
</span> conflicts ${name}
version 6.0.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>- revision 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ revision 2
</span>
checksums rmd160 b3ce3eca058447f45b397fc38bf9a81b088401ac \
sha256 cc37587389ec96a2437c48851a6ef8300b19a39d9e6a1c9066570c25b070d0e2 \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -110,6 +110,8 @@ if {![variant_isset python38] && ![variant_isset python39] && ![variant_isset py
</span> }
post-destroot {
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ delete {*}[glob ${destroot}${prefix}/etc/zeek/*.cfg]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> xinstall -d ${destroot}${prefix}/share/examples/${name}
copy ${worksrcpath}/auxil/zeekctl/etc/node.cfg ${destroot}${prefix}/share/examples/${name}/
copy ${worksrcpath}/auxil/zeekctl/etc/networks.cfg ${destroot}${prefix}/share/examples/${name}/
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -133,6 +135,18 @@ startupitem.start "${prefix}/bin/zeekctl start"
</span> startupitem.stop "${prefix}/bin/zeekctl stop"
startupitem.restart "${prefix}/bin/zeekctl restart"
<span style='display:block; white-space:pre;background:#e0ffe0;'>+post-activate {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {![file exists ${prefix}/etc/zeek/node.cfg]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${prefix}/share/examples/${name}/node.cfg ${prefix}/etc/zeek/node.cfg
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {![file exists ${prefix}/etc/zeek/networks.cfg]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${prefix}/share/examples/${name}/networks.cfg ${prefix}/etc/zeek/networks.cfg
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {![file exists ${prefix}/etc/zeek/zeekctl.cfg]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${prefix}/share/examples/${name}/zeekctl.cfg.in ${prefix}/etc/zeek/zeekctl.cfg
</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> # This doesn't work due to error: error: AF_UNIX path too long
# To manual test:
# sudo port build
</pre><pre style='margin:0'>
</pre>