diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2020-09-21 07:27:11 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-21 07:27:11 -0500 |
commit | 49bf89f95b53ce7c5c8330c513e9f6662fd57571 (patch) | |
tree | ddd9c8eb8c5ff152284d3d7b3c6ffc6f1dc0aca1 /pkgs/applications/networking/ids/zeek | |
parent | b144c8f25a2efd9b5f9fc1abdd5ab15dc64fda3d (diff) | |
parent | b82f1771daabd228c06a6284060ccd9537cd4ba2 (diff) |
Merge pull request #97813 from GTrunSec/zeek-script
zeek: Fix zeek script coreutils and hardlinking
Diffstat (limited to 'pkgs/applications/networking/ids/zeek')
-rw-r--r-- | pkgs/applications/networking/ids/zeek/default.nix | 3 | ||||
-rw-r--r-- | pkgs/applications/networking/ids/zeek/script.nix | 7 |
2 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/applications/networking/ids/zeek/default.nix b/pkgs/applications/networking/ids/zeek/default.nix index 7a6d82cd28eb..a6189da7ee3e 100644 --- a/pkgs/applications/networking/ids/zeek/default.nix +++ b/pkgs/applications/networking/ids/zeek/default.nix @@ -14,9 +14,10 @@ , swig , gettext , fetchpatch +, coreutils }: let - preConfigure = (import ./script.nix); + preConfigure = (import ./script.nix {inherit coreutils;}); in stdenv.mkDerivation rec { pname = "zeek"; diff --git a/pkgs/applications/networking/ids/zeek/script.nix b/pkgs/applications/networking/ids/zeek/script.nix index 10a2d11a1489..4c8bbcf22c03 100644 --- a/pkgs/applications/networking/ids/zeek/script.nix +++ b/pkgs/applications/networking/ids/zeek/script.nix @@ -1,4 +1,10 @@ +{coreutils}: '' + sed -i 's|/bin/mv|${coreutils}/bin/mv|' scripts/base/frameworks/logging/writers/ascii.zeek + sed -i 's|/bin/mv|${coreutils}/bin/mv|' scripts/policy/misc/trim-trace-file.zeek + sed -i 's|/bin/cat|${coreutils}/bin/cat|' scripts/base/frameworks/notice/actions/pp-alarms.zeek + sed -i 's|/bin/cat|${coreutils}/bin/cat|' scripts/base/frameworks/notice/main.zeek + sed -i "1i##! test dpd" $PWD/scripts/base/frameworks/dpd/__load__.zeek sed -i "1i##! test x509" $PWD/scripts/base/files/x509/__load__.zeek sed -i "1i##! test files-extract" $PWD/scripts/base/files/extract/__load__.zeek @@ -32,6 +38,7 @@ sed -i "1i##! test dns" $PWD/scripts/base/protocols/dns/__load__.zeek sed -i "1i##! test ftp" $PWD/scripts/base/protocols/ftp/__load__.zeek sed -i "1i##! test http" $PWD/scripts/base/protocols/http/__load__.zeek + sed -i "1i##! test tunnels" $PWD/scripts/base/protocols/tunnels/__load__.zeek sed -i "1i##! test imap" $PWD/scripts/base/protocols/imap/__load__.zeek sed -i "1i##! test irc" $PWD/scripts/base/protocols/irc/__load__.zeek sed -i "1i##! test krb" $PWD/scripts/base/protocols/krb/__load__.zeek |