mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
Merge pull request #22438 from rnhmjoj/masscan
masscan: init at 2016-11-03
This commit is contained in:
commit
b3d1050cf2
2 changed files with 38 additions and 0 deletions
36
pkgs/tools/security/masscan/default.nix
Normal file
36
pkgs/tools/security/masscan/default.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{ stdenv, fetchFromGitHub, libpcap }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "masscan-${version}";
|
||||
version = "2016-11-03";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "robertdavidgraham";
|
||||
repo = "masscan";
|
||||
rev = "dc88677a11dc3d9a5f6aa55cc1377bc17dba1496";
|
||||
sha256 = "1mdjqkn4gnbwr5nci6i6xn7qzkjgq7dx37fzd6gghv87xgw7cdbg";
|
||||
};
|
||||
|
||||
buildInputs = [ libpcap ];
|
||||
|
||||
makeFlags = [ "PREFIX=$(out)" "CC=cc" "-j" ];
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/share/man/man8
|
||||
mkdir -p $out/share/{doc,licenses}/masscan
|
||||
mkdir -p $out/etc/masscan
|
||||
|
||||
cp data/exclude.conf $out/etc/masscan
|
||||
cp -t $out/share/doc/masscan doc/algorithm.js doc/howto-afl.md doc/bot.hml
|
||||
cp doc/masscan.8 $out/share/man/man8/masscan.8
|
||||
cp LICENSE $out/share/licenses/masscan/LICENSE
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Fast scan of the Internet";
|
||||
homepage = https://github.com/robertdavidgraham/masscan;
|
||||
license = licenses.agpl3;
|
||||
platforms = with platforms; allBut darwin;
|
||||
maintainers = with maintainers; [ rnhmjoj ];
|
||||
};
|
||||
}
|
|
@ -1004,6 +1004,8 @@ with pkgs;
|
|||
|
||||
mathics = pythonPackages.mathics;
|
||||
|
||||
masscan = callPackage ../tools/security/masscan { };
|
||||
|
||||
meson = callPackage ../development/tools/build-managers/meson { };
|
||||
|
||||
metricbeat = callPackage ../misc/logging/metricbeat { };
|
||||
|
|
Loading…
Reference in a new issue