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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sat Mar 21 14:37:40 2015 UTC (4 years, 11 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +16 -19 lines
drop old; fix SLOT operators

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)

1 # Copyright 1999-2015 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.5.ebuild,v 1.5 2014/11/09 23:30:53 patrick Exp $
4
5 EAPI=5
6
7 inherit perl-module
8
9 DESCRIPTION="Web Server vulnerability scanner"
10 HOMEPAGE="http://www.cirt.net/Nikto2"
11 SRC_URI="http://www.cirt.net/nikto/${P}.tar.bz2"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~x86 ~amd64 ~ppc ~sparc ~amd64-linux ~x86-linux ~x86-macos"
16 IUSE="ssl"
17
18 RDEPEND="
19 dev-lang/perl
20 >=net-libs/libwhisker-2.5
21 ssl? (
22 dev-libs/openssl:0=
23 dev-perl/Net-SSLeay
24 )"
25
26 src_prepare() {
27 sed -i -e 's:config.txt:nikto.conf:g' plugins/* || die
28 sed -i -e 's:/etc/nikto.conf:/etc/nikto/nikto.conf:;
29 s:# EXECDIR=/usr/local/nikto:EXECDIR=/usr/share/nikto:;
30 s:# use LW2:use LW2:;
31 s:require "$CONFIGFILE{'\''PLUGINDIR'\''}/LW2.pm":# require "$CONFIGFILE{'\''PLUGINDIR'\''}/LW2.pm":;' nikto.pl || die
32 }
33
34 src_compile() { :; }
35
36 src_install() {
37 insinto /etc/nikto
38 doins nikto.conf
39
40 dobin nikto.pl
41 dosym nikto.pl /usr/bin/nikto
42
43 insinto /usr/share/nikto
44 doins -r plugins templates databases
45
46 NIKTO_PMS='JSON-PP.pm'
47 einfo "symlinking ${NIKTO_PMS} to ${VENDOR_LIB}"
48
49 for _PM in ${NIKTO_PMS}; do
50 _TARGET=${VENDOR_LIB}/${_PM}
51 dosym /usr/share/nikto/plugins/${_PM} ${_TARGET}
52 done
53
54 dodoc docs/*.txt
55 dohtml docs/nikto_manual.html
56 }

  ViewVC Help
Powered by ViewVC 1.1.20