Gentoo Archives: gentoo-commits

From: "Jonathan Callen (abcd)" <abcd@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-analyzer/nikto: nikto-2.03.ebuild ChangeLog
Date: Wed, 26 May 2010 16:39:03
Message-Id: 20100526163856.42FEF2CEE0@corvid.gentoo.org
1 abcd 10/05/26 16:38:56
2
3 Modified: nikto-2.03.ebuild ChangeLog
4 Log:
5 Bump to EAPI=3, add prefix keywords, cleanup QA issues
6 (Portage version: 2.2_rc67/cvs/Linux i686)
7
8 Revision Changes Path
9 1.2 net-analyzer/nikto/nikto-2.03.ebuild
10
11 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nikto/nikto-2.03.ebuild?rev=1.2&view=markup
12 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nikto/nikto-2.03.ebuild?rev=1.2&content-type=text/plain
13 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nikto/nikto-2.03.ebuild?r1=1.1&r2=1.2
14
15 Index: nikto-2.03.ebuild
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/net-analyzer/nikto/nikto-2.03.ebuild,v
18 retrieving revision 1.1
19 retrieving revision 1.2
20 diff -u -r1.1 -r1.2
21 --- nikto-2.03.ebuild 20 Mar 2009 16:02:06 -0000 1.1
22 +++ nikto-2.03.ebuild 26 May 2010 16:38:56 -0000 1.2
23 @@ -1,6 +1,8 @@
24 -# Copyright 1999-2009 Gentoo Foundation
25 +# Copyright 1999-2010 Gentoo Foundation
26 # Distributed under the terms of the GNU General Public License v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nikto/nikto-2.03.ebuild,v 1.1 2009/03/20 16:02:06 dertobi123 Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nikto/nikto-2.03.ebuild,v 1.2 2010/05/26 16:38:56 abcd Exp $
29 +
30 +EAPI="3"
31
32 DESCRIPTION="Web Server vulnerability scanner."
33 HOMEPAGE="http://www.cirt.net/code/nikto.shtml"
34 @@ -8,7 +10,7 @@
35
36 LICENSE="GPL-2"
37 SLOT="0"
38 -KEYWORDS="~amd64 ~ppc ~sparc ~x86"
39 +KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-macos"
40 IUSE="ssl"
41
42 RDEPEND="dev-lang/perl
43 @@ -18,37 +20,35 @@
44 dev-perl/Net-SSLeay
45 )"
46
47 -src_compile() {
48 - cd nikto
49 +S=${WORKDIR}/${PN}
50
51 +src_prepare() {
52 mv config.txt nikto.conf
53
54 sed -i -e 's:config.txt:nikto.conf:g' \
55 - plugins/* docs/nikto.1 nikto.pl
56 + plugins/* docs/nikto.1 nikto.pl || die
57
58 sed -i -e 's:config.txt:nikto.conf:' \
59 - -i -e 's:\($NIKTO{configfile} = \)"nikto.conf":\1"/etc/nikto/nikto.conf":' \
60 - nikto.pl
61 + -i -e "s:\(\$NIKTO{configfile} = \)\"nikto.conf\":\1\"${EPREFIX}/etc/nikto/nikto.conf\":" \
62 + nikto.pl || die
63
64 - sed -i -e 's:/usr/local/bin/nmap:/usr/bin/nmap:' \
65 - -i -e 's:# EXECDIR=/usr/local/nikto:EXECDIR=/usr/share/nikto:' \
66 - nikto.conf
67 + sed -i -e "s:/usr/local/bin/nmap:${EPREFIX}/usr/bin/nmap:" \
68 + -i -e "s:# EXECDIR=/usr/local/nikto:EXECDIR=${EPREFIX}/usr/share/nikto:" \
69 + nikto.conf || die
70
71 - rm -rf $(find -name .svn -type d)
72 + find -depth -name .svn -type d -exec rm -rf {} +
73 }
74
75 src_install() {
76 - cd nikto
77 -
78 insinto /etc/nikto
79 - doins nikto.conf
80 + doins nikto.conf || die
81
82 - dobin nikto.pl
83 - dosym /usr/bin/nikto.pl /usr/bin/nikto
84 + dobin nikto.pl || die
85 + dosym nikto.pl /usr/bin/nikto || die
86
87 dodir /usr/share/nikto
88 insinto /usr/share/nikto
89 - doins -r plugins templates
90 + doins -r plugins templates || die
91
92 dodoc plugins/nikto_plugin_order.txt
93 dodoc docs/*.txt
94
95
96
97 1.25 net-analyzer/nikto/ChangeLog
98
99 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nikto/ChangeLog?rev=1.25&view=markup
100 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nikto/ChangeLog?rev=1.25&content-type=text/plain
101 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nikto/ChangeLog?r1=1.24&r2=1.25
102
103 Index: ChangeLog
104 ===================================================================
105 RCS file: /var/cvsroot/gentoo-x86/net-analyzer/nikto/ChangeLog,v
106 retrieving revision 1.24
107 retrieving revision 1.25
108 diff -u -r1.24 -r1.25
109 --- ChangeLog 20 Mar 2009 16:02:06 -0000 1.24
110 +++ ChangeLog 26 May 2010 16:38:56 -0000 1.25
111 @@ -1,6 +1,9 @@
112 # ChangeLog for net-analyzer/nikto
113 -# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
114 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nikto/ChangeLog,v 1.24 2009/03/20 16:02:06 dertobi123 Exp $
115 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
116 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nikto/ChangeLog,v 1.25 2010/05/26 16:38:56 abcd Exp $
117 +
118 + 26 May 2010; Jonathan Callen <abcd@g.o> nikto-2.03.ebuild:
119 + Bump to EAPI=3, add prefix keywords, cleanup QA issues
120
121 *nikto-2.03 (20 Mar 2009)