summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-05-05 02:35:00 +0100
committerSam James <sam@gentoo.org>2022-05-05 02:35:00 +0100
commit4ab9acecb1933be12a68032aa6d1fba06c4c642e (patch)
tree4ecce560911bff81a80621022364847aa7c0dad4 /net-analyzer/darkstat
parentsci-mathematics/octave: fix Java dependency (diff)
downloadgentoo-4ab9acecb1933be12a68032aa6d1fba06c4c642e.tar.gz
gentoo-4ab9acecb1933be12a68032aa6d1fba06c4c642e.tar.bz2
gentoo-4ab9acecb1933be12a68032aa6d1fba06c4c642e.zip
net-analyzer/darkstat: simplify chroot logic
It's easier to just print the default value and let the user handle the rest. Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-analyzer/darkstat')
-rw-r--r--net-analyzer/darkstat/darkstat-3.0.721-r1.ebuild (renamed from net-analyzer/darkstat/darkstat-3.0.721.ebuild)12
1 files changed, 2 insertions, 10 deletions
diff --git a/net-analyzer/darkstat/darkstat-3.0.721.ebuild b/net-analyzer/darkstat/darkstat-3.0.721-r1.ebuild
index dcd53be61eb1..3f38088b33e0 100644
--- a/net-analyzer/darkstat/darkstat-3.0.721.ebuild
+++ b/net-analyzer/darkstat/darkstat-3.0.721-r1.ebuild
@@ -61,20 +61,12 @@ src_install() {
}
pkg_postinst() {
- # Workaround bug #141619
- DARKSTAT_CHROOT_DIR=$(
- sed -n 's/^#CHROOT=\(.*\)/\1/p' "${EROOT}"/etc/conf.d/darkstat
- )
-
- if [[ -n "${DARKSTAT_CHROOT_DIR}" ]] && [[ "${DARKSTAT_CHROOT_DIR}" != "${EROOT:-/}" ]] ; then
- chown darkstat:0 "${EROOT}/${DARKSTAT_CHROOT_DIR#/}/"
- fi
-
elog "To start different darkstat instances which will listen on a different"
elog "interface, create within the ${EROOT}/etc/init.d directory a 'darkstat.if' symlink to"
elog "darkstat script where 'if' is the name of the interface."
elog "Also in the ${EROOT}/etc/conf.d directory, copy darkstat to darkstat.if"
elog "and edit it to change default values."
elog
- elog "darkstat's default chroot directory is: ${EROOT}/${DARKSTAT_CHROOT_DIR#/}"
+ elog "darkstat's default chroot directory is: ${EROOT}/var/lib/darkstat."
+ elog "Please chown it to darkstat:0 (or a different directory if you change it)."
}