blob: 4bdb97d2932490814bd6e29ae90bbd65737779b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nikto/nikto-2.1.5.ebuild,v 1.3 2014/08/30 20:44:39 monsieurp Exp $
EAPI=5
inherit perl-module
DESCRIPTION="Web Server vulnerability scanner"
HOMEPAGE="http://www.cirt.net/Nikto2"
SRC_URI="http://www.cirt.net/nikto/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64 ~ppc ~sparc ~amd64-linux ~x86-linux ~x86-macos"
IUSE="ssl"
RDEPEND="dev-lang/perl
>=net-libs/libwhisker-2.5
ssl? (
dev-libs/openssl
dev-perl/Net-SSLeay
)"
src_prepare() {
sed -i -e 's:config.txt:nikto.conf:g' plugins/*
sed -i -e 's:/etc/nikto.conf:/etc/nikto/nikto.conf:;
s:# EXECDIR=/usr/local/nikto:EXECDIR=/usr/share/nikto:;
s:# use LW2:use LW2:;
s:require "$CONFIGFILE{'\''PLUGINDIR'\''}/LW2.pm":# require "$CONFIGFILE{'\''PLUGINDIR'\''}/LW2.pm":;' nikto.pl
}
src_compile() {
einfo "nothing to compile"
true
}
src_install() {
insinto /etc/nikto
doins nikto.conf
dobin nikto.pl
dosym /usr/bin/nikto.pl /usr/bin/nikto
dodir /usr/share/nikto
insinto /usr/share/nikto
doins -r plugins templates databases
NIKTO_PMS="LW2.pm JSON-PP.pm"
einfo "symlinking ${NIKTO_PMS} to ${VENDOR_LIB}"
for pm in ${NIKTO_PMS}; do
dosym /usr/share/nikto/plugins/${pm} ${VENDOR_LIB}/${pm}
done
unset ${NIKTO_PMS}
dodoc docs/*.txt
dohtml docs/nikto_manual.html
insinto ${VENDOR_PERL}
}
|