2016-02-19 12:12:11 +00:00
|
|
|
{ stdenv, fetchFromGitHub, buildPythonApplication, python, pycrypto, hping }:
|
2015-07-22 01:26:40 +00:00
|
|
|
|
2016-02-19 12:12:11 +00:00
|
|
|
buildPythonApplication rec {
|
2015-07-22 01:26:40 +00:00
|
|
|
rev = "bf14bbff";
|
|
|
|
name = "knockknock-r${rev}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit rev;
|
|
|
|
owner = "moxie0";
|
|
|
|
repo = "knockknock";
|
|
|
|
sha256 = "1chpfs3w2vkjrgay69pbdr116z1jldv53fi768a1i05fdqhy1px4";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ pycrypto ];
|
|
|
|
|
|
|
|
patchPhase = ''
|
2015-11-11 12:42:33 +00:00
|
|
|
sed -i '/build\//d' setup.py
|
2015-07-22 01:26:40 +00:00
|
|
|
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 ];
|
2015-11-17 20:29:29 +00:00
|
|
|
platforms = platforms.linux;
|
2015-07-22 01:26:40 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|