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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Sun Nov 9 23:30:53 2014 UTC (5 years, 3 months ago) by patrick
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +3 -3 lines
Whitespace and quoting

(Portage version: 2.2.14/cvs/Linux x86_64, unsigned Manifest commit)

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-1.36.ebuild,v 1.6 2014/08/10 20:59:48 slyfox Exp $
4
5 DESCRIPTION="Web Server vulnerability scanner"
6 HOMEPAGE="http://www.cirt.net/Nikto2"
7 SRC_URI="http://www.cirt.net/source/nikto/ARCHIVE/${P}.tar.gz"
8
9 LICENSE="GPL-2"
10 SLOT="0"
11 KEYWORDS="~amd64 ~ppc sparc x86"
12 RDEPEND="dev-lang/perl
13 >=net-analyzer/nmap-3.00
14 ssl? ( dev-libs/openssl )"
15 IUSE="ssl"
16
17 src_compile() {
18 sed -i -e 's:config.txt:nikto.conf:' \
19 -i -e 's:\$CFG{configfile}="nikto.conf":\$CFG{configfile}="/etc/nikto/nikto.conf":' \
20 nikto.pl
21
22 mv config.txt nikto.conf
23
24 sed -i -e 's:^#NMAP:NMAP:' \
25 -i -e 's:^PROXYHOST:#PROXYHOST:' \
26 -i -e 's:^PROXYPORT:#PROXYPORT:' \
27 -i -e 's:^PROXYUSER:#PROXYUSER:' \
28 -i -e 's:^PROXYPASS:#PROXYPASS:' \
29 -i -e 's:# PLUGINDIR=/usr/local/nikto/plugins:PLUGINDIR=/usr/share/nikto/plugins:' \
30 nikto.conf
31
32 cp "${S}/docs/nikto-${PV}.man" "${WORKDIR}/${PN}.1"
33 }
34
35 src_install() {
36 insinto /etc/nikto
37 doins nikto.conf
38
39 dodir /usr/bin
40 dobin nikto.pl
41 dosym /usr/bin/nikto.pl /usr/bin/nikto
42
43 dodir /usr/share/nikto/plugins
44 insinto /usr/share/nikto/plugins
45 doins plugins/*
46
47 cd docs
48 dodoc CHANGES.txt LICENSE.txt README_plugins.txt nikto_usage.txt
49 dohtml nikto_usage.html
50 doman "${WORKDIR}/${PN}.1"
51 }

  ViewVC Help
Powered by ViewVC 1.1.20