commit:     dc2a03dedc0e1381301c33bbb44e74b2be9f1a08
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 14 00:16:32 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Apr 14 00:27:26 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc2a03de

net-analyzer/nagtrap: fix installation of config, ${D} usage

Closes: https://bugs.gentoo.org/782403
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-analyzer/nagtrap/nagtrap-0.1.3-r1.ebuild | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/net-analyzer/nagtrap/nagtrap-0.1.3-r1.ebuild 
b/net-analyzer/nagtrap/nagtrap-0.1.3-r1.ebuild
index 203d35be9af..8f20f2c8167 100644
--- a/net-analyzer/nagtrap/nagtrap-0.1.3-r1.ebuild
+++ b/net-analyzer/nagtrap/nagtrap-0.1.3-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -22,8 +22,8 @@ src_install() {
        dodoc ChangeLog THANKS
 
        dodir /usr/share/nagtrap
-       cp -r {db,nagtrap} "${D}"/usr/share/nagtrap/
-       fperms 640 "${D}"/usr/share/nagtrap/nagtrap/etc/config.ini.php-dist
+       cp -r {db,nagtrap} "${ED}"/usr/share/nagtrap/ || die
+       fperms 640 /usr/share/nagtrap/nagtrap/etc/config.ini.php-dist
 
        sed -i -e 's#use lib.*#use lib "/usr/lib/nagios/plugins";#g' \
                plugin/check_snmptraps.pl || die "sed failed"
@@ -35,10 +35,10 @@ src_install() {
 
 pkg_postinst() {
        elog "Before running NagTrap for the first time, you will need setup 
its configuration"
-       elog "/usr/share/nagtrap/nagtrap/etc/config.ini.php"
+       elog "${EROOT}/usr/share/nagtrap/nagtrap/etc/config.ini.php"
        elog "A sample is installed in"
-       elog "/usr/share/nagtrap/nagtrap/etc/config.ini.php-sample"
+       elog "${EROOT}/usr/share/nagtrap/nagtrap/etc/config.ini.php-sample"
        elog
        elog "NagTrap requires snmptt to write traps into a MySQL database."
-       elog "A database schema is available in {$D}usr/share/nagtrap/db"
+       elog "A database schema is available in ${EROOT}/usr/share/nagtrap/db"
 }

Reply via email to