summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-04-14 00:16:32 +0000
committerSam James <sam@gentoo.org>2021-04-14 00:27:26 +0000
commitdc2a03dedc0e1381301c33bbb44e74b2be9f1a08 (patch)
tree197991d4a085d9b8c97777c328e9eb28051b72e4 /net-analyzer/nagtrap/nagtrap-0.1.3-r1.ebuild
parentpackage.mask: Last rite x11-misc/superswitcher (diff)
downloadgentoo-dc2a03dedc0e1381301c33bbb44e74b2be9f1a08.tar.gz
gentoo-dc2a03dedc0e1381301c33bbb44e74b2be9f1a08.tar.bz2
gentoo-dc2a03dedc0e1381301c33bbb44e74b2be9f1a08.zip
net-analyzer/nagtrap: fix installation of config, ${D} usage
Closes: https://bugs.gentoo.org/782403 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-analyzer/nagtrap/nagtrap-0.1.3-r1.ebuild')
-rw-r--r--net-analyzer/nagtrap/nagtrap-0.1.3-r1.ebuild12
1 files 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 203d35be9af9..8f20f2c81674 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"
}