summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2020-07-03 11:53:09 +0200
committerJeroen Roovers <jer@gentoo.org>2020-07-03 11:55:03 +0200
commit8de80582707cc4fc79c6b0b028acbd5aa6e136a7 (patch)
tree80434c0825982c53ed03bbad238764a25bac5207
parentnet-analyzer/darkstat: Add live ebuild (diff)
downloadgentoo-8de80582707cc4fc79c6b0b028acbd5aa6e136a7.tar.gz
gentoo-8de80582707cc4fc79c6b0b028acbd5aa6e136a7.tar.bz2
gentoo-8de80582707cc4fc79c6b0b028acbd5aa6e136a7.zip
net-analyzer/darkstat: Update ROOT mangling for EAPI=7
Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: Jeroen Roovers <jer@gentoo.org>
-rw-r--r--net-analyzer/darkstat/darkstat-3.0.719-r1.ebuild4
-rw-r--r--net-analyzer/darkstat/darkstat-9999999.ebuild4
2 files changed, 6 insertions, 2 deletions
diff --git a/net-analyzer/darkstat/darkstat-3.0.719-r1.ebuild b/net-analyzer/darkstat/darkstat-3.0.719-r1.ebuild
index 8075830d412..dd21a625d20 100644
--- a/net-analyzer/darkstat/darkstat-3.0.719-r1.ebuild
+++ b/net-analyzer/darkstat/darkstat-3.0.719-r1.ebuild
@@ -60,7 +60,9 @@ pkg_preinst() {
pkg_postinst() {
# Workaround bug #141619
- DARKSTAT_CHROOT_DIR=`sed -n 's/^#CHROOT=\(.*\)/\1/p' "${ROOT}"etc/conf.d/darkstat`
+ DARKSTAT_CHROOT_DIR=$(
+ sed -n 's/^#CHROOT=\(.*\)/\1/p' "${ROOT}"/etc/conf.d/darkstat
+ )
chown darkstat:0 "${ROOT}${DARKSTAT_CHROOT_DIR}"
elog "To start different darkstat instances which will listen on a different"
diff --git a/net-analyzer/darkstat/darkstat-9999999.ebuild b/net-analyzer/darkstat/darkstat-9999999.ebuild
index a22c4018efb..c9d630ebf3f 100644
--- a/net-analyzer/darkstat/darkstat-9999999.ebuild
+++ b/net-analyzer/darkstat/darkstat-9999999.ebuild
@@ -60,7 +60,9 @@ pkg_preinst() {
pkg_postinst() {
# Workaround bug #141619
- DARKSTAT_CHROOT_DIR=`sed -n 's/^#CHROOT=\(.*\)/\1/p' "${ROOT}"etc/conf.d/darkstat`
+ DARKSTAT_CHROOT_DIR=$(
+ sed -n 's/^#CHROOT=\(.*\)/\1/p' "${ROOT}"/etc/conf.d/darkstat
+ )
chown darkstat:0 "${ROOT}${DARKSTAT_CHROOT_DIR}"
elog "To start different darkstat instances which will listen on a different"