/[gentoo-x86]/net-analyzer/nikto/nikto-2.1.4.ebuild
Gentoo

Contents of /net-analyzer/nikto/nikto-2.1.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sat Aug 30 17:48:49 2014 UTC (5 years, 6 months ago) by monsieurp
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
#489240: version bump to 2.1.5 + EAPI bump to 5

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

  ViewVC Help
Powered by ViewVC 1.1.20