diff options
author | volth <volth@volth.com> | 2018-12-13 20:17:43 +0000 |
---|---|---|
committer | volth <volth@volth.com> | 2018-12-13 22:04:52 +0000 |
commit | 0083685a01a4e07c981a1fe10085474ab427a3d5 (patch) | |
tree | c286cd8ecbf4cd9427cf2f65bd33bc7f2c64abaa /pkgs/tools | |
parent | 81eed0f30a5303c7b9db7e1e25eddc4cb28a8ca0 (diff) | |
download | nixlib-0083685a01a4e07c981a1fe10085474ab427a3d5.tar nixlib-0083685a01a4e07c981a1fe10085474ab427a3d5.tar.gz nixlib-0083685a01a4e07c981a1fe10085474ab427a3d5.tar.bz2 nixlib-0083685a01a4e07c981a1fe10085474ab427a3d5.tar.lz nixlib-0083685a01a4e07c981a1fe10085474ab427a3d5.tar.xz nixlib-0083685a01a4e07c981a1fe10085474ab427a3d5.tar.zst nixlib-0083685a01a4e07c981a1fe10085474ab427a3d5.zip |
freebind: init at 2017-12-27
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/networking/freebind/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/tools/networking/freebind/default.nix b/pkgs/tools/networking/freebind/default.nix new file mode 100644 index 000000000000..3f89323de36b --- /dev/null +++ b/pkgs/tools/networking/freebind/default.nix @@ -0,0 +1,32 @@ +{ stdenv, fetchFromGitHub, libnetfilter_queue, libnfnetlink }: + +stdenv.mkDerivation rec { + name = "freebind-${version}"; + version = "2017-12-27"; + + src = fetchFromGitHub { + owner = "blechschmidt"; + repo = "freebind"; + rev = "9a13d6f9c12aeea4f6d3513ba2461d34f841f278"; + sha256 = "1iv2xiz9w8hbz684caw50fn4a9vc8ninfgaqafkh9sa8mzpfzcqr"; + }; + + buildInputs = [ libnetfilter_queue libnfnetlink ]; + + postPatch = '' + substituteInPlace preloader.c --replace /usr/local/ $out/ + substituteInPlace Makefile --replace /usr/local/ $out/ + ''; + + preInstall = '' + mkdir -p $out/bin $out/lib + ''; + + meta = with stdenv.lib; { + description = "IPv4 and IPv6 address rate limiting evasion tool"; + homepage = https://github.com/blechschmidt/freebind; + license = licenses.gpl3; + platforms = platforms.linux; + maintainers = with maintainers; [ volth ]; + }; +} |