commit: 02a8926a970a3d1413a7f4acd85a5ab92233deb6
Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 27 14:16:55 2016 +0000
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Thu Jan 28 08:47:27 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02a8926a
net-analyzer/nikto: Make use of the PN variable.
Package-Manager: portage-2.2.26
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
net-analyzer/nikto/nikto-2.1.5.ebuild | 23 +++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/net-analyzer/nikto/nikto-2.1.5.ebuild
b/net-analyzer/nikto/nikto-2.1.5.ebuild
index 694c4af..94704c8 100644
--- a/net-analyzer/nikto/nikto-2.1.5.ebuild
+++ b/net-analyzer/nikto/nikto-2.1.5.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
@@ -34,21 +34,24 @@ src_prepare() {
src_compile() { :; }
src_install() {
- insinto /etc/nikto
- doins nikto.conf
+ insinto "/etc/${PN}"
+ doins "${PN}.conf"
- dobin nikto.pl
- dosym nikto.pl /usr/bin/nikto
+ mv "${PN}.pl" "${PN}" || die
+ dobin "${PN}"
insinto /usr/share/nikto
doins -r plugins templates databases
- NIKTO_PMS='JSON-PP.pm'
- einfo "symlinking ${NIKTO_PMS} to ${VENDOR_LIB}"
+ local NIKTO_PMS=(
+ JSON-PP.pm
+ )
- for _PM in ${NIKTO_PMS}; do
- _TARGET=${VENDOR_LIB}/${_PM}
- dosym /usr/share/nikto/plugins/${_PM} ${_TARGET}
+ einfo "Symlinking ${NIKTO_PMS[@]} to ${VENDOR_LIB}"
+
+ for _PM in "${NIKTO_PMS[@]}"; do
+ _TARGET="${VENDOR_LIB}/${_PM}"
+ dosym "/usr/share/nikto/plugins/${_PM}" "${_TARGET}"
done
dodoc docs/*.txt