Skip to content

Commit

Permalink
Merge pull request NixOS#51961 from volth/freebind
Browse files Browse the repository at this point in the history
freebind: init at 2017-12-27
  • Loading branch information
rasendubi authored Dec 13, 2018
2 parents feb6c54 + 0083685 commit 01c16e0
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
32 changes: 32 additions & 0 deletions pkgs/tools/networking/freebind/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2756,6 +2756,8 @@ in

freedroidrpg = callPackage ../games/freedroidrpg { };

freebind = callPackage ../tools/networking/freebind { };

freeipmi = callPackage ../tools/system/freeipmi {};

freetalk = callPackage ../applications/networking/instant-messengers/freetalk {
Expand Down

0 comments on commit 01c16e0

Please sign in to comment.