mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-03-21 11:33:24 +00:00
Pkgs/dirb/copy wordlists (#31652)
* dirb: copy wordlists also overwrite the hardcoded path to common.txt wordlist * dirb: nitpicks
This commit is contained in:
parent
33b7ff9ac8
commit
615a374c4b
|
@ -1,4 +1,4 @@
|
|||
{ fetchurl, stdenv, automake, autoconf, curl, autoreconfHook }:
|
||||
{ fetchurl, stdenv, autoreconfHook, curl }:
|
||||
|
||||
let
|
||||
major = "2";
|
||||
|
@ -6,19 +6,29 @@ let
|
|||
in stdenv.mkDerivation rec {
|
||||
name = "dirb-${version}";
|
||||
version = "${major}.${minor}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/dirb/${version}/dirb${major}${minor}.tar.gz";
|
||||
sha256 = "0b7wc2gvgnyp54rxf1n9arn6ymrvdb633v6b3ah138hw4gg8lx7k";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook ];
|
||||
buildInputs = [ curl ];
|
||||
|
||||
unpackPhase = ''
|
||||
tar -xf $src
|
||||
find . -exec chmod +x "{}" ";"
|
||||
export sourceRoot="dirb222"
|
||||
'';
|
||||
|
||||
buildInputs = [ automake autoconf curl ];
|
||||
preConfigure = "chmod +x configure";
|
||||
postPatch = ''
|
||||
sed -i "s#/usr#$out#" src/dirb.c
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/share/dirb/
|
||||
cp -r wordlists/ $out/share/dirb/
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "A web content scanner";
|
||||
|
|
Loading…
Reference in a new issue