lol
fork

Configure Feed

Select the types of activity you want to include in your feed.

Pkgs/dirb/copy wordlists (#31652)

* dirb: copy wordlists

also overwrite the hardcoded path to common.txt wordlist

* dirb: nitpicks

authored by

Felix Richter and committed by
Jörg Thalheim
615a374c 33b7ff9a

+13 -3
+13 -3
pkgs/tools/networking/dirb/default.nix
··· 1 - { fetchurl, stdenv, automake, autoconf, curl, autoreconfHook }: 1 + { fetchurl, stdenv, autoreconfHook, curl }: 2 2 3 3 let 4 4 major = "2"; ··· 6 6 in stdenv.mkDerivation rec { 7 7 name = "dirb-${version}"; 8 8 version = "${major}.${minor}"; 9 + 9 10 src = fetchurl { 10 11 url = "mirror://sourceforge/dirb/${version}/dirb${major}${minor}.tar.gz"; 11 12 sha256 = "0b7wc2gvgnyp54rxf1n9arn6ymrvdb633v6b3ah138hw4gg8lx7k"; 12 13 }; 13 14 15 + nativeBuildInputs = [ autoreconfHook ]; 16 + buildInputs = [ curl ]; 17 + 14 18 unpackPhase = '' 15 19 tar -xf $src 16 20 find . -exec chmod +x "{}" ";" 17 21 export sourceRoot="dirb222" 18 22 ''; 19 23 20 - buildInputs = [ automake autoconf curl ]; 21 - preConfigure = "chmod +x configure"; 24 + postPatch = '' 25 + sed -i "s#/usr#$out#" src/dirb.c 26 + ''; 27 + 28 + postInstall = '' 29 + mkdir -p $out/share/dirb/ 30 + cp -r wordlists/ $out/share/dirb/ 31 + ''; 22 32 23 33 meta = { 24 34 description = "A web content scanner";