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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Mar 20 16:02:06 2009 UTC (10 years, 11 months ago) by dertobi123
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump (#208165), Cleanup
(Portage version: 2.2_rc26/cvs/Linux x86_64)

1 # Copyright 1999-2007 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.01.ebuild,v 1.1 2007/12/28 10:48:14 dertobi123 Exp $
4
5 DESCRIPTION="Web Server vulnerability scanner."
6 HOMEPAGE="http://www.cirt.net/code/nikto.shtml"
7 SRC_URI="http://www.cirt.net/source/nikto/ARCHIVE/${P}.tar.bz2"
8
9 LICENSE="GPL-2"
10 SLOT="0"
11 KEYWORDS="~amd64 ~ppc ~sparc ~x86"
12 IUSE="ssl"
13
14 RDEPEND="dev-lang/perl
15 >=net-analyzer/nmap-3.00
16 ssl? (
17 dev-libs/openssl
18 dev-perl/Net-SSLeay
19 )"
20
21 src_compile() {
22 sed -i -e 's:config.txt:nikto.conf:' \
23 -i -e 's:"\$NIKTO{execdir}/kbase/nikto.kbase":"/var/nikto/kbase/nikto.kbase":' \
24 -i -e 's:\$NIKTO{configfile} = "nikto.conf":\$NIKTO{configfile} = "/etc/nikto/nikto.conf":' \
25 nikto.pl
26
27 mv config.txt nikto.conf
28
29 sed -i -e 's:/usr/local/bin/nmap:/usr/bin/nmap:' \
30 -i -e 's:# EXECDIR=/usr/local/nikto:EXECDIR=/usr/share/nikto:' \
31 nikto.conf
32 }
33
34 src_install() {
35 insinto /etc/nikto
36 doins nikto.conf
37
38 dodir /usr/bin
39 dobin nikto.pl
40 dosym /usr/bin/nikto.pl /usr/bin/nikto
41
42 dodir /usr/share/nikto/plugins
43 insinto /usr/share/nikto/plugins
44 doins plugins/*
45
46 dodir /usr/share/nikto/templates
47 insinto /usr/share/nikto/templates
48 doins templates/*
49
50 dodir /var/nikto/kbase
51
52 dodoc plugins/nikto_plugin_order.txt
53 cd docs
54 dodoc CHANGES.txt LICENSE.txt
55 dohtml nikto_manual.html
56 }

  ViewVC Help
Powered by ViewVC 1.1.20