net-analyzer/nikto: Make use of the PN variable.
authorPatrice Clement <monsieurp@gentoo.org>
Wed, 27 Jan 2016 14:16:55 +0000 (14:16 +0000)
committerPatrice Clement <monsieurp@gentoo.org>
Thu, 28 Jan 2016 08:47:27 +0000 (08:47 +0000)
Package-Manager: portage-2.2.26
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
net-analyzer/nikto/nikto-2.1.5.ebuild

index 694c4affa5d62b2d57d4fcc3e97adc81f31b9868..94704c8d4d643a4639ae4ee0bcf4c8e3f9544219 100644 (file)
@@ -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