summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2019-11-13 10:20:34 -0500
committerMike Gilbert <floppym@gentoo.org>2019-11-13 10:20:34 -0500
commit8ba6fc4ede27b84788115dbe9bd9dfa42e4b08ac (patch)
treed8be7e2ba4afda304e60fc155ab78c24b6b4c91f /net-p2p
parentsys-cluster/spark-bin: Drop 2.3.1, 2.4.4 (diff)
downloadgentoo-8ba6fc4ede27b84788115dbe9bd9dfa42e4b08ac.tar.gz
gentoo-8ba6fc4ede27b84788115dbe9bd9dfa42e4b08ac.tar.bz2
gentoo-8ba6fc4ede27b84788115dbe9bd9dfa42e4b08ac.zip
net-p2p/transmission: skip diropts when not running as root
Closes: https://bugs.gentoo.org/699616 Package-Manager: Portage-2.3.78_p18, Repoman-2.3.17_p114 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/transmission/transmission-2.94-r1.ebuild4
-rw-r--r--net-p2p/transmission/transmission-9999.ebuild4
2 files changed, 6 insertions, 2 deletions
diff --git a/net-p2p/transmission/transmission-2.94-r1.ebuild b/net-p2p/transmission/transmission-2.94-r1.ebuild
index f82f46f2b050..86c72f12f62b 100644
--- a/net-p2p/transmission/transmission-2.94-r1.ebuild
+++ b/net-p2p/transmission/transmission-2.94-r1.ebuild
@@ -138,7 +138,9 @@ src_install() {
popd >/dev/null || die
fi
- diropts -o transmission -g transmission
+ if [[ ${EUID} == 0 ]]; then
+ diropts -o transmission -g transmission
+ fi
keepdir /var/lib/transmission
}
diff --git a/net-p2p/transmission/transmission-9999.ebuild b/net-p2p/transmission/transmission-9999.ebuild
index c3356d081423..b15f594478bb 100644
--- a/net-p2p/transmission/transmission-9999.ebuild
+++ b/net-p2p/transmission/transmission-9999.ebuild
@@ -129,7 +129,9 @@ src_install() {
insinto /usr/lib/sysctl.d
doins "${FILESDIR}"/60-transmission.conf
- diropts -o transmission -g transmission
+ if [[ ${EUID} == 0 ]]; then
+ diropts -o transmission -g transmission
+ fi
keepdir /var/lib/transmission
}