2018-12-13 20:17:43 +00:00
|
|
|
{ stdenv, fetchFromGitHub, libnetfilter_queue, libnfnetlink }:
|
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "freebind";
|
2018-12-13 20:17:43 +00:00
|
|
|
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";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/blechschmidt/freebind";
|
2018-12-13 20:17:43 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ volth ];
|
|
|
|
};
|
|
|
|
}
|