From 0e78ed82bfe660ac3ef7ff343527dc47d9536468 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benno=20F=C3=BCnfst=C3=BCck?= Date: Mon, 7 Nov 2016 00:50:42 +0100 Subject: [PATCH] dirb: init at 2.22 --- pkgs/tools/networking/dirb/default.nix | 30 ++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/tools/networking/dirb/default.nix diff --git a/pkgs/tools/networking/dirb/default.nix b/pkgs/tools/networking/dirb/default.nix new file mode 100644 index 000000000000..abb64d4d8968 --- /dev/null +++ b/pkgs/tools/networking/dirb/default.nix @@ -0,0 +1,30 @@ +{ fetchurl, stdenv, automake, autoconf, curl, autoreconfHook }: + +let + major = "2"; + minor = "22"; +in stdenv.mkDerivation rec { + name = "dirb-${version}"; + version = "${major}.${minor}"; + src = fetchurl { + url = "mirror://sourceforge/dirb/${version}/dirb${major}${minor}.tar.gz"; + sha256 = "0b7wc2gvgnyp54rxf1n9arn6ymrvdb633v6b3ah138hw4gg8lx7k"; + }; + + unpackPhase = '' + tar -xf $src + find . -exec chmod +x "{}" ";" + export sourceRoot="dirb222" + ''; + + buildInputs = [ automake autoconf curl ]; + preConfigure = "chmod +x configure"; + + meta = { + description = "A web content scanner"; + homepage = "http://dirb.sourceforge.net/"; + maintainers = with stdenv.lib.maintainers; [ bennofs ]; + license = with stdenv.lib.licenses; [ gpl2 ]; + platforms = stdenv.lib.platforms.unix; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a38f1c00ffb7..80b7aa702a8b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -790,6 +790,8 @@ in aspellDicts_en = aspellDicts.en; }; + dirb = callPackage ../tools/networking/dirb { }; + direnv = callPackage ../tools/misc/direnv { }; discount = callPackage ../tools/text/discount { };