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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Sat Aug 13 02:29:40 2005 UTC (14 years, 7 months ago) by metalgod
Branch: MAIN
Changes since 1.1: +2 -2 lines
Added ~amd64 Keywords. Closes bug #102302.
(Portage version: 2.0.51.22-r2)

1 mcummings 1.1 # Copyright 1999-2005 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 metalgod 1.2 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/nikto/nikto-1.35.ebuild,v 1.1 2005/05/30 14:24:07 mcummings Exp $
4 mcummings 1.1
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.gz"
8    
9     LICENSE="GPL-2"
10     SLOT="0"
11 metalgod 1.2 KEYWORDS="~amd64 ~ppc ~sparc ~x86"
12 mcummings 1.1 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-1.34.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