Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/nikto/
Date: Mon, 28 Sep 2020 11:34:34
Message-Id: 1601291819.c42fef2a7d24eb6598be35fc0a2e218406532b5b.juippis@gentoo
1 commit: c42fef2a7d24eb6598be35fc0a2e218406532b5b
2 Author: Quentin Retornaz <gentoo <AT> retornaz <DOT> com>
3 AuthorDate: Mon Sep 7 21:25:11 2020 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 28 11:16:59 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c42fef2a
7
8 net-analyzer/nikto: new package
9
10 - nikto is a web server vulnerability scanner.
11
12 Package-Manager: Portage-3.0.4, Repoman-3.0.1
13 Signed-off-by: Quentin Retornaz <gentoo <AT> retornaz.com>
14 Closes: https://github.com/gentoo/gentoo/pull/17460
15 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
16
17 net-analyzer/nikto/Manifest | 1 +
18 net-analyzer/nikto/metadata.xml | 12 +++++++
19 net-analyzer/nikto/nikto-2.1.6_p20200901.ebuild | 46 +++++++++++++++++++++++++
20 3 files changed, 59 insertions(+)
21
22 diff --git a/net-analyzer/nikto/Manifest b/net-analyzer/nikto/Manifest
23 new file mode 100644
24 index 00000000000..be93f585da6
25 --- /dev/null
26 +++ b/net-analyzer/nikto/Manifest
27 @@ -0,0 +1 @@
28 +DIST nikto-2.1.6_p20200901.tar.gz 521285 BLAKE2B 243f0baf5835e5586b8270fc9dd1005c08e903f478666359c34bb0d30c0645f5ab9a19109718dbbd2f6015dcb64c3a98b832b5412c9151720dedd102fb1936d1 SHA512 88b9e681ce4588e3473f90c93ea41d46fc99a54b895185465cfe1a28152ad944edbadfcf5cee4540b4ec48eb78ca73a1952637c3da9038e52d837c0de5d0260c
29
30 diff --git a/net-analyzer/nikto/metadata.xml b/net-analyzer/nikto/metadata.xml
31 new file mode 100644
32 index 00000000000..91f5940d4d0
33 --- /dev/null
34 +++ b/net-analyzer/nikto/metadata.xml
35 @@ -0,0 +1,12 @@
36 +<?xml version="1.0" encoding="UTF-8"?>
37 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
38 +<pkgmetadata>
39 + <maintainer type="person">
40 + <email>gentoo@××××××××.com</email>
41 + <name>Quentin Retornaz</name>
42 + </maintainer>
43 + <maintainer type="project">
44 + <email>proxy-maint@g.o</email>
45 + <name>Proxy Maintainers</name>
46 + </maintainer>
47 +</pkgmetadata>
48
49 diff --git a/net-analyzer/nikto/nikto-2.1.6_p20200901.ebuild b/net-analyzer/nikto/nikto-2.1.6_p20200901.ebuild
50 new file mode 100644
51 index 00000000000..5d64088ea89
52 --- /dev/null
53 +++ b/net-analyzer/nikto/nikto-2.1.6_p20200901.ebuild
54 @@ -0,0 +1,46 @@
55 +# Copyright 1999-2020 Gentoo Authors
56 +# Distributed under the terms of the GNU General Public License v2
57 +
58 +EAPI=7
59 +
60 +DESCRIPTION="Web server vulnerability scanner"
61 +HOMEPAGE="https://www.cirt.net/Nikto2"
62 +COMMIT="fb2655b8316097723d4977c792817a21117b2736"
63 +MY_P="${PN}-${COMMIT}"
64 +SRC_URI="https://github.com/sullo/nikto/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
65 +
66 +LICENSE="GPL-2"
67 +SLOT="0"
68 +KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-macos"
69 +
70 +# nikto provides its own libwhisker, do no use net-libs/libwhisker[ssl]
71 +# https://bugs.gentoo.org/533900
72 +RDEPEND="
73 + dev-lang/perl
74 + dev-perl/Net-SSLeay
75 + net-analyzer/nmap
76 + virtual/perl-JSON-PP
77 +"
78 +
79 +S="${WORKDIR}/${MY_P}/program"
80 +
81 +src_prepare() {
82 + sed -i -e 's:/etc/nikto.conf:/etc/nikto/nikto.conf:' nikto.pl || die
83 + sed -i -e 's:# EXECDIR=/opt/nikto:EXECDIR=/usr/share/nikto:' nikto.conf.default || die
84 +
85 + default
86 +}
87 +
88 +src_install() {
89 + insinto /etc/nikto
90 + newins nikto.conf.default nikto.conf
91 +
92 + dobin nikto.pl replay.pl
93 + dosym nikto.pl /usr/bin/nikto
94 +
95 + insinto /usr/share/nikto
96 + doins -r plugins templates databases
97 +
98 + dodoc docs/*.txt
99 + dodoc docs/nikto_manual.html
100 +}