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