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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (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.4: +1 -1 lines
FILE REMOVED
drop old; fix SLOT operators

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

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.03.ebuild,v 1.4 2014/08/10 20:59:48 slyfox Exp $
4
5 EAPI="3"
6
7 DESCRIPTION="Web Server vulnerability scanner"
8 HOMEPAGE="http://www.cirt.net/Nikto2"
9 SRC_URI="http://www.cirt.net/source/nikto/${P}.tar.bz2"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-macos"
14 IUSE="ssl"
15
16 RDEPEND="dev-lang/perl
17 >=net-analyzer/nmap-3.00
18 ssl? (
19 dev-libs/openssl
20 dev-perl/Net-SSLeay
21 )"
22
23 S=${WORKDIR}/${PN}
24
25 src_prepare() {
26 mv config.txt nikto.conf
27
28 sed -i -e 's:config.txt:nikto.conf:g' \
29 plugins/* docs/nikto.1 nikto.pl || die
30
31 sed -i -e 's:config.txt:nikto.conf:' \
32 -i -e "s:\(\$NIKTO{configfile} = \)\"nikto.conf\":\1\"${EPREFIX}/etc/nikto/nikto.conf\":" \
33 nikto.pl || die
34
35 sed -i -e "s:/usr/local/bin/nmap:${EPREFIX}/usr/bin/nmap:" \
36 -i -e "s:# EXECDIR=/usr/local/nikto:EXECDIR=${EPREFIX}/usr/share/nikto:" \
37 nikto.conf || die
38
39 find -depth -name .svn -type d -exec rm -rf {} +
40 }
41
42 src_install() {
43 insinto /etc/nikto
44 doins nikto.conf || die
45
46 dobin nikto.pl || die
47 dosym nikto.pl /usr/bin/nikto || die
48
49 dodir /usr/share/nikto
50 insinto /usr/share/nikto
51 doins -r plugins templates || die
52
53 dodoc plugins/nikto_plugin_order.txt
54 dodoc docs/*.txt
55 dohtml docs/nikto_manual.html
56 }

  ViewVC Help
Powered by ViewVC 1.1.20