Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/nikto/
Date: Thu, 28 Jan 2016 08:49:19
Message-Id: 1453970847.02a8926a970a3d1413a7f4acd85a5ab92233deb6.monsieurp@gentoo
1 commit: 02a8926a970a3d1413a7f4acd85a5ab92233deb6
2 Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 27 14:16:55 2016 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 28 08:47:27 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02a8926a
7
8 net-analyzer/nikto: Make use of the PN variable.
9
10 Package-Manager: portage-2.2.26
11 Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
12
13 net-analyzer/nikto/nikto-2.1.5.ebuild | 23 +++++++++++++----------
14 1 file changed, 13 insertions(+), 10 deletions(-)
15
16 diff --git a/net-analyzer/nikto/nikto-2.1.5.ebuild b/net-analyzer/nikto/nikto-2.1.5.ebuild
17 index 694c4af..94704c8 100644
18 --- a/net-analyzer/nikto/nikto-2.1.5.ebuild
19 +++ b/net-analyzer/nikto/nikto-2.1.5.ebuild
20 @@ -1,4 +1,4 @@
21 -# Copyright 1999-2015 Gentoo Foundation
22 +# Copyright 1999-2016 Gentoo Foundation
23 # Distributed under the terms of the GNU General Public License v2
24 # $Id$
25
26 @@ -34,21 +34,24 @@ src_prepare() {
27 src_compile() { :; }
28
29 src_install() {
30 - insinto /etc/nikto
31 - doins nikto.conf
32 + insinto "/etc/${PN}"
33 + doins "${PN}.conf"
34
35 - dobin nikto.pl
36 - dosym nikto.pl /usr/bin/nikto
37 + mv "${PN}.pl" "${PN}" || die
38 + dobin "${PN}"
39
40 insinto /usr/share/nikto
41 doins -r plugins templates databases
42
43 - NIKTO_PMS='JSON-PP.pm'
44 - einfo "symlinking ${NIKTO_PMS} to ${VENDOR_LIB}"
45 + local NIKTO_PMS=(
46 + JSON-PP.pm
47 + )
48
49 - for _PM in ${NIKTO_PMS}; do
50 - _TARGET=${VENDOR_LIB}/${_PM}
51 - dosym /usr/share/nikto/plugins/${_PM} ${_TARGET}
52 + einfo "Symlinking ${NIKTO_PMS[@]} to ${VENDOR_LIB}"
53 +
54 + for _PM in "${NIKTO_PMS[@]}"; do
55 + _TARGET="${VENDOR_LIB}/${_PM}"
56 + dosym "/usr/share/nikto/plugins/${_PM}" "${_TARGET}"
57 done
58
59 dodoc docs/*.txt