mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-19 22:30:23 +00:00
nikto: 2.6.0 -> 2.6.1 (#563526)
This commit is contained in:
@@ -10,7 +10,7 @@ index 2cb07f9..323e666 100755
|
||||
|
||||
# Guess user's home directory -- to support Windows
|
||||
foreach my $var (split(/ /, "HOME USERPROFILE")) {
|
||||
@@ -280,8 +281,8 @@
|
||||
@@ -303,7 +304,7 @@
|
||||
# Priority: --config option > local configs > user home > system-wide
|
||||
push(@CF, "$VARIABLES{'configfile'}")
|
||||
if defined $VARIABLES{'configfile'} && $VARIABLES{'configfile'} ne "";
|
||||
@@ -18,5 +18,4 @@ index 2cb07f9..323e666 100755
|
||||
- push(@CF, File::Spec->catfile($NIKTODIR, "nikto.conf.default")) if defined $NIKTODIR;
|
||||
+ push(@CF, File::Spec->catfile($NIKTODIR, "etc", "nikto.conf")) if defined $NIKTODIR;
|
||||
+ push(@CF, File::Spec->catfile($NIKTODIR, "etc", "nikto.conf.default")) if defined $NIKTODIR;
|
||||
push(@CF, "nikto.conf");
|
||||
push(@CF, File::Spec->catfile($home, "nikto.conf")) if defined $home;
|
||||
|
||||
@@ -7,18 +7,15 @@
|
||||
installShellFiles,
|
||||
}:
|
||||
|
||||
let
|
||||
version = "2.6.0";
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "nikto";
|
||||
inherit version;
|
||||
version = "2.6.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "sullo";
|
||||
repo = "nikto";
|
||||
rev = version;
|
||||
sha256 = "sha256-iHOdMlfcKhvQCsCjWge6K+0h8kkgXa0Uii9o3YRQP5w=";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-jMbVJ35f1uPNQ7xmBnOhBMmh+u4Ewpd5GJFMg8ZKIxw=";
|
||||
};
|
||||
|
||||
# Nikto searches its configuration file based on its current path
|
||||
@@ -55,7 +52,7 @@ stdenv.mkDerivation rec {
|
||||
install -Dm 755 "program/nikto.pl" "$out/bin/nikto"
|
||||
install -Dm 644 program/nikto.conf.default "$out/etc/nikto.conf"
|
||||
installManPage documentation/nikto.1
|
||||
install -Dm 644 README.md "$out/share/doc/${pname}/README"
|
||||
install -Dm 644 README.md "$out/share/doc/${finalAttrs.pname}/README"
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
@@ -66,11 +63,11 @@ stdenv.mkDerivation rec {
|
||||
|
||||
meta = {
|
||||
description = "Web server scanner";
|
||||
mainProgram = "nikto";
|
||||
license = lib.licenses.gpl2Plus;
|
||||
homepage = "https://cirt.net/Nikto2";
|
||||
changelog = "https://github.com/sullo/nikto/releases/tag/${version}";
|
||||
changelog = "https://github.com/sullo/nikto/releases/tag/${finalAttrs.src.tag}";
|
||||
license = lib.licenses.gpl2Plus;
|
||||
maintainers = with lib.maintainers; [ tbutter ];
|
||||
mainProgram = "nikto";
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user