1 |
commit: ad029930cb43b900dbe6c2ea0f655e160507151e |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Apr 2 09:29:44 2018 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Apr 2 09:48:26 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad029930 |
7 |
|
8 |
net-analyzer/nikto: Bump to ebuild from Pentoo overlay |
9 |
|
10 |
This also solves the bogus usage of net-libs/libwhisker, that is dead and is |
11 |
not really compatible with nikto (#533900 by Anton Bolshakov) |
12 |
|
13 |
Package-Manager: Portage-2.3.27, Repoman-2.3.9 |
14 |
|
15 |
net-analyzer/nikto/Manifest | 1 + |
16 |
net-analyzer/nikto/nikto-2.1.6_p20180122.ebuild | 53 +++++++++++++++++++++++++ |
17 |
2 files changed, 54 insertions(+) |
18 |
|
19 |
diff --git a/net-analyzer/nikto/Manifest b/net-analyzer/nikto/Manifest |
20 |
index e5ad7a507e4..7d02e06ffea 100644 |
21 |
--- a/net-analyzer/nikto/Manifest |
22 |
+++ b/net-analyzer/nikto/Manifest |
23 |
@@ -1,2 +1,3 @@ |
24 |
DIST nikto-1.36.tar.gz 206921 BLAKE2B ed6cc343ddccd8d35a7df566c5facb91b31fa9ec1697bb962fb7a0fdf3bc396a95c60997267fdca929b6af2e599f1535a223bf04ccb53da485ce409f8bc4391f SHA512 e340eebc8323a689b1fe8358626f90d822f4eea4aaeba44c64f68c758fccdec7c3d5896b93739128b1b53429967d4e66ccb08b880066e0c63bed4e2748f94a45 |
25 |
DIST nikto-2.1.5.tar.bz2 311580 BLAKE2B 5441953ed4f778efd06c784a5f608f4a00f61f1462a6fd637b5d490b84aecf4fc0d39cb2780469e00ba1a5c75c2ead63c2cb45a6f4b7c59ad243a671122264db SHA512 623b0fa923c05ecc4b69087321b544941f09b4d84fb7a32f6970e2ea42b2018f2c4e2d1cd0fabfc1c99a2ca7b57fd8c0d9f5f13c86e7eb102f00bdfd3062a95f |
26 |
+DIST nikto-2.1.6_p20180122.tar.gz 511615 BLAKE2B 0937a5a52ae79e00da5bc53b089166cb2fc5cdf8311c4db55e421ddb44c22e31a9a964b02d75995c74b144d8fe05046895c4e54cfa7500aecd5d36787105a417 SHA512 4b9cae08146cefcfe4e929385631062f27cd13f5e516ec50fa9f9804a677a4a8846bc0f5de99bc1a25ec58ea8e2889bfa5953f8ca9cd7152e7b95b05861cac91 |
27 |
|
28 |
diff --git a/net-analyzer/nikto/nikto-2.1.6_p20180122.ebuild b/net-analyzer/nikto/nikto-2.1.6_p20180122.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..167752e379b |
31 |
--- /dev/null |
32 |
+++ b/net-analyzer/nikto/nikto-2.1.6_p20180122.ebuild |
33 |
@@ -0,0 +1,53 @@ |
34 |
+# Copyright 1999-2018 Gentoo Foundation |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=6 |
38 |
+ |
39 |
+DESCRIPTION="Web server vulnerability scanner" |
40 |
+HOMEPAGE="http://www.cirt.net/Nikto2" |
41 |
+COMMIT="b8454661c4dc9249cb515311cb2a80906a0a4b7a" |
42 |
+MY_P="${PN}-${COMMIT}" |
43 |
+SRC_URI="https://github.com/sullo/nikto/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="GPL-2" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~x86 ~amd64 ~ppc ~sparc ~amd64-linux ~x86-linux ~x86-macos" |
48 |
+IUSE="ssl" |
49 |
+ |
50 |
+# nikto provie its own libwhisker, do no use net-libs/libwhisker[ssl] |
51 |
+# https://bugs.gentoo.org/533900 |
52 |
+RDEPEND=" |
53 |
+ dev-lang/perl |
54 |
+ virtual/perl-JSON-PP |
55 |
+ net-analyzer/nmap |
56 |
+ ssl? ( |
57 |
+ dev-libs/openssl:0= |
58 |
+ dev-perl/Net-SSLeay |
59 |
+ ) |
60 |
+" |
61 |
+DEPEND="" |
62 |
+ |
63 |
+S="${WORKDIR}/${MY_P}/program" |
64 |
+ |
65 |
+src_prepare() { |
66 |
+ sed -i -e 's:config.txt:nikto.conf:g' plugins/* || die |
67 |
+ sed -i -e 's:/etc/nikto.conf:/etc/nikto/nikto.conf:' nikto.pl || die |
68 |
+ sed -i -e 's:# EXECDIR=/opt/nikto:EXECDIR=/usr/share/nikto:' nikto.conf || die |
69 |
+ |
70 |
+ default |
71 |
+} |
72 |
+ |
73 |
+src_install() { |
74 |
+ insinto /etc/nikto |
75 |
+ doins nikto.conf |
76 |
+ |
77 |
+ dobin nikto.pl replay.pl |
78 |
+ dosym nikto.pl /usr/bin/nikto |
79 |
+ |
80 |
+ dodir /usr/share/nikto |
81 |
+ insinto /usr/share/nikto |
82 |
+ doins -r plugins templates databases |
83 |
+ |
84 |
+ dodoc docs/*.txt |
85 |
+ dodoc docs/nikto_manual.html |
86 |
+} |