Merge pull request #139848 from peterhoeg/f/masscan
masscan: enable selftest and minor cleanups
This commit is contained in:
commit
03871bd03a
@ -19,23 +19,29 @@ stdenv.mkDerivation rec {
|
||||
|
||||
nativeBuildInputs = [ makeWrapper installShellFiles ];
|
||||
|
||||
makeFlags = [ "PREFIX=$(out)" "GITVER=${version}" "CC=${stdenv.cc.targetPrefix}cc" ];
|
||||
makeFlags = [
|
||||
"PREFIX=$(out)"
|
||||
"GITVER=${version}"
|
||||
"CC=${stdenv.cc.targetPrefix}cc"
|
||||
];
|
||||
|
||||
preInstall = ''
|
||||
mkdir -p $out/bin
|
||||
'';
|
||||
enableParallelBuilding = true;
|
||||
|
||||
postInstall = ''
|
||||
installManPage doc/masscan.8
|
||||
installManPage doc/masscan.?
|
||||
|
||||
mkdir -p $out/share/{doc,licenses}/masscan
|
||||
mkdir -p $out/etc/masscan
|
||||
install -Dm444 -t $out/etc/masscan data/exclude.conf
|
||||
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
|
||||
cp -t $out/share/doc/masscan doc/algorithm.js doc/howto-afl.md doc/bot.html
|
||||
cp LICENSE $out/share/licenses/masscan/LICENSE
|
||||
wrapProgram $out/bin/masscan \
|
||||
--prefix LD_LIBRARY_PATH : "${libpcap}/lib"
|
||||
'';
|
||||
|
||||
wrapProgram $out/bin/masscan --prefix LD_LIBRARY_PATH : "${libpcap}/lib"
|
||||
doInstallCheck = true;
|
||||
|
||||
installCheckPhase = ''
|
||||
$out/bin/masscan --selftest
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user