forked from mirrors/nixpkgs
haka: building binaries
This commit is contained in:
parent
ecc48af0ce
commit
a892be1018
|
@ -313,6 +313,7 @@
|
|||
tstrobel = "Thomas Strobel <ts468@cam.ac.uk>";
|
||||
ttuegel = "Thomas Tuegel <ttuegel@gmail.com>";
|
||||
tv = "Tomislav Viljetić <tv@shackspace.de>";
|
||||
tvestelind = "Tomas Vestelind <tomas.vestelind@fripost.org>";
|
||||
twey = "James ‘Twey’ Kay <twey@twey.co.uk>";
|
||||
urkud = "Yury G. Kudryashov <urkud+nix@ya.ru>";
|
||||
vandenoever = "Jos van den Oever <jos@vandenoever.info>";
|
||||
|
|
34
pkgs/tools/security/haka/default.nix
Normal file
34
pkgs/tools/security/haka/default.nix
Normal file
|
@ -0,0 +1,34 @@
|
|||
{ stdenv, fetchurl, cmake, swig, wireshark, check, rsync, libpcap, gawk, libedit, pcre }:
|
||||
|
||||
let version = "0.3.0"; in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "haka-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
name = "haka_${version}_source.tar.gz";
|
||||
url = "https://github.com/haka-security/haka/releases/download/v${version}";
|
||||
|
||||
# https://github.com/haka-security/haka/releases/download/v${version}/haka_${version}_source.tar.gz.sha1.txt
|
||||
sha1 = "87625ed32841cc0b3aa92aa49397ce71ce434bc2";
|
||||
};
|
||||
|
||||
preConfigure = ''
|
||||
sed -i 's,/etc,'$out'/etc,' src/haka/haka.c
|
||||
sed -i 's,/etc,'$out'/etc,' src/haka/CMakeLists.txt
|
||||
sed -i 's,/opt/haka/etc,$out/opt/haka/etc,' src/haka/haka.1
|
||||
sed -i 's,/etc,'$out'/etc,' doc/user/tool_suite_haka.rst
|
||||
'';
|
||||
|
||||
buildInputs = [ cmake swig wireshark check rsync libpcap gawk libedit pcre ];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = {
|
||||
dscription = "A collection of tools that allows capturing TCP/IP packets and filtering them based on Lua policy files";
|
||||
homepage = http://www.haka-security.org/;
|
||||
license = stdenv.lib.licenses.mpl20;
|
||||
maintaineres = [ stdenv.lib.maintainers.tvestelind ];
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
};
|
||||
}
|
|
@ -9285,6 +9285,8 @@ let
|
|||
|
||||
groovebasin = callPackage ../applications/audio/groovebasin { };
|
||||
|
||||
haka = callPackage ../tools/security/haka { };
|
||||
|
||||
heapster = (callPackage ../servers/monitoring/heapster { }).bin // { outputs = ["bin"]; };
|
||||
|
||||
hbase = callPackage ../servers/hbase {};
|
||||
|
|
Loading…
Reference in a new issue