2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, libnetfilter_queue, libnfnetlink }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "freebind";
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "IPv4 and IPv6 address rate limiting evasion tool";
|
|
|
|
homepage = "https://github.com/blechschmidt/freebind";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|