nixpkgs-suyu/pkgs/tools/networking/dirb/default.nix

41 lines
912 B
Nix
Raw Normal View History

2021-01-15 10:19:50 +01:00
{ fetchurl, lib, stdenv, autoreconfHook, curl }:
2016-11-07 00:50:42 +01:00
let
major = "2";
minor = "22";
in stdenv.mkDerivation rec {
pname = "dirb";
2016-11-07 00:50:42 +01:00
version = "${major}.${minor}";
2016-11-07 00:50:42 +01:00
src = fetchurl {
url = "mirror://sourceforge/dirb/${version}/dirb${major}${minor}.tar.gz";
sha256 = "0b7wc2gvgnyp54rxf1n9arn6ymrvdb633v6b3ah138hw4gg8lx7k";
};
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ curl ];
2016-11-07 00:50:42 +01:00
unpackPhase = ''
tar -xf $src
find . -exec chmod +x "{}" ";"
export sourceRoot="dirb222"
'';
postPatch = ''
sed -i "s#/usr#$out#" src/dirb.c
'';
postInstall = ''
mkdir -p $out/share/dirb/
cp -r wordlists/ $out/share/dirb/
'';
2016-11-07 00:50:42 +01:00
meta = {
description = "A web content scanner";
homepage = "http://dirb.sourceforge.net/";
2021-01-15 10:19:50 +01:00
maintainers = with lib.maintainers; [ bennofs ];
license = with lib.licenses; [ gpl2 ];
platforms = lib.platforms.unix;
2016-11-07 00:50:42 +01:00
};
}