mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-20 11:53:51 +00:00
knockknock: init
A simple but secure port knocking daemon and associated tool (NixOS modules upcoming)
This commit is contained in:
parent
0ca8ddc16e
commit
a8c7abdb8d
29
pkgs/tools/security/knockknock/default.nix
Normal file
29
pkgs/tools/security/knockknock/default.nix
Normal file
@ -0,0 +1,29 @@
|
||||
{ stdenv, fetchFromGitHub, buildPythonPackage, python, pycrypto, hping }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
rev = "bf14bbff";
|
||||
name = "knockknock-r${rev}";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
inherit rev;
|
||||
owner = "moxie0";
|
||||
repo = "knockknock";
|
||||
sha256 = "1chpfs3w2vkjrgay69pbdr116z1jldv53fi768a1i05fdqhy1px4";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pycrypto ];
|
||||
|
||||
patchPhase = ''
|
||||
substituteInPlace setup.py --replace "/etc" "$out/etc"
|
||||
substituteInPlace knockknock.py --replace 'existsInPath("hping3")' '"${hping}/bin/hping3"'
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Simple, secure port knocking daemon and client written in Python";
|
||||
homepage = "http://www.thoughtcrime.org/software/knockknock/";
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ copumpkin ];
|
||||
platforms = with platforms; linux;
|
||||
};
|
||||
}
|
||||
|
@ -1966,6 +1966,8 @@ let
|
||||
|
||||
kismet = callPackage ../applications/networking/sniffers/kismet { };
|
||||
|
||||
knockknock = callPackage ../tools/security/knockknock { inherit (pythonPackages) pycrypto; };
|
||||
|
||||
kpcli = callPackage ../tools/security/kpcli { };
|
||||
|
||||
kst = callPackage ../tools/graphics/kst { };
|
||||
|
Loading…
Reference in New Issue
Block a user