forked from mirrors/nixpkgs
masscan: enable selftest and minor cleanups
This commit is contained in:
parent
31ffc50c57
commit
11175a4c8b
|
@ -19,23 +19,29 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper installShellFiles ];
|
nativeBuildInputs = [ makeWrapper installShellFiles ];
|
||||||
|
|
||||||
makeFlags = [ "PREFIX=$(out)" "GITVER=${version}" "CC=${stdenv.cc.targetPrefix}cc" ];
|
makeFlags = [
|
||||||
|
"PREFIX=$(out)"
|
||||||
|
"GITVER=${version}"
|
||||||
|
"CC=${stdenv.cc.targetPrefix}cc"
|
||||||
|
];
|
||||||
|
|
||||||
preInstall = ''
|
enableParallelBuilding = true;
|
||||||
mkdir -p $out/bin
|
|
||||||
'';
|
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
installManPage doc/masscan.8
|
installManPage doc/masscan.?
|
||||||
|
|
||||||
mkdir -p $out/share/{doc,licenses}/masscan
|
install -Dm444 -t $out/etc/masscan data/exclude.conf
|
||||||
mkdir -p $out/etc/masscan
|
install -Dm444 -t $out/share/doc/masscan doc/*.{html,js,md}
|
||||||
|
install -Dm444 -t $out/share/licenses/masscan LICENSE
|
||||||
|
|
||||||
cp data/exclude.conf $out/etc/masscan
|
wrapProgram $out/bin/masscan \
|
||||||
cp -t $out/share/doc/masscan doc/algorithm.js doc/howto-afl.md doc/bot.html
|
--prefix LD_LIBRARY_PATH : "${libpcap}/lib"
|
||||||
cp LICENSE $out/share/licenses/masscan/LICENSE
|
'';
|
||||||
|
|
||||||
wrapProgram $out/bin/masscan --prefix LD_LIBRARY_PATH : "${libpcap}/lib"
|
doInstallCheck = true;
|
||||||
|
|
||||||
|
installCheckPhase = ''
|
||||||
|
$out/bin/masscan --selftest
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in a new issue