summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2016-04-23 14:05:37 -0400
committerMike Gilbert <floppym@gentoo.org>2016-04-23 14:06:08 -0400
commitff7c2b479cd5485f64c70c244ecfcec75e89c036 (patch)
tree101c6551291fe30804b5e3a10aaae98bc16814a7 /net-p2p
parentwww-client/chromium: use readme.gentoo-r1 eclass (diff)
downloadgentoo-ff7c2b479cd5485f64c70c244ecfcec75e89c036.tar.gz
gentoo-ff7c2b479cd5485f64c70c244ecfcec75e89c036.tar.bz2
gentoo-ff7c2b479cd5485f64c70c244ecfcec75e89c036.zip
net-p2p/transmission: Create /var/lib/transmission in postinst
The openrc init script normally creates this, but this does not work for systemd users. Bug: https://bugs.gentoo.org/580932 Package-Manager: portage-2.2.28_p70
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/transmission/transmission-2.92.ebuild7
1 files changed, 6 insertions, 1 deletions
diff --git a/net-p2p/transmission/transmission-2.92.ebuild b/net-p2p/transmission/transmission-2.92.ebuild
index 7a402d1a15f..4ae6553f1c3 100644
--- a/net-p2p/transmission/transmission-2.92.ebuild
+++ b/net-p2p/transmission/transmission-2.92.ebuild
@@ -149,7 +149,12 @@ pkg_postinst() {
gnome2_icon_cache_update
enewgroup transmission
- enewuser transmission -1 -1 -1 transmission
+ enewuser transmission -1 -1 /var/lib/transmission transmission
+
+ if [[ ! -e "${ROOT%/}"/var/lib/transmission ]]; then
+ mkdir -p "${ROOT%/}"/var/lib/transmission
+ chown transmission:transmission "${ROOT%/}"/var/lib/transmission
+ fi
elog "If you use transmission-daemon, please, set 'rpc-username' and"
elog "'rpc-password' (in plain text, transmission-daemon will hash it on"