summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2023-02-08 20:04:47 -0500
committerMike Gilbert <floppym@gentoo.org>2023-02-08 20:06:07 -0500
commitd181b95e4090dda46f824b0b3233f980e728be37 (patch)
treebde88a78d9d3d0cdc16d660117350db79d5b7503 /net-p2p
parentsys-fs/bindfs: 1.17.2 (diff)
downloadgentoo-d181b95e4090dda46f824b0b3233f980e728be37.tar.gz
gentoo-d181b95e4090dda46f824b0b3233f980e728be37.tar.bz2
gentoo-d181b95e4090dda46f824b0b3233f980e728be37.zip
net-p2p/transmission: convert keepdir /var/lib/transmission to tmpfiles
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/transmission/files/transmission-daemon.tmpfiles1
-rw-r--r--net-p2p/transmission/transmission-4.0.0-r1.ebuild (renamed from net-p2p/transmission/transmission-4.0.0.ebuild)10
-rw-r--r--net-p2p/transmission/transmission-9999.ebuild10
3 files changed, 9 insertions, 12 deletions
diff --git a/net-p2p/transmission/files/transmission-daemon.tmpfiles b/net-p2p/transmission/files/transmission-daemon.tmpfiles
new file mode 100644
index 000000000000..4af3577ca6a0
--- /dev/null
+++ b/net-p2p/transmission/files/transmission-daemon.tmpfiles
@@ -0,0 +1 @@
+d /var/lib/transmission 0755 transmission transmission
diff --git a/net-p2p/transmission/transmission-4.0.0.ebuild b/net-p2p/transmission/transmission-4.0.0-r1.ebuild
index 4859dc49adb0..8fa84dfd5501 100644
--- a/net-p2p/transmission/transmission-4.0.0.ebuild
+++ b/net-p2p/transmission/transmission-4.0.0-r1.ebuild
@@ -3,7 +3,7 @@
EAPI=7
-inherit cmake systemd xdg-utils
+inherit cmake tmpfiles systemd xdg-utils
if [[ ${PV} == 9999 ]]; then
inherit git-r3
@@ -31,7 +31,7 @@ ACCT_DEPEND="
acct-group/transmission
acct-user/transmission
"
-BDEPEND="${ACCT_DEPEND}
+BDEPEND="
virtual/pkgconfig
nls? (
gtk? ( sys-devel/gettext )
@@ -124,10 +124,7 @@ src_install() {
insinto /usr/lib/sysctl.d
doins "${FILESDIR}"/60-transmission.conf
- if [[ ${EUID} == 0 ]]; then
- diropts -o transmission -g transmission
- fi
- keepdir /var/lib/transmission
+ newtmpfiles "${FILESDIR}"/transmission-daemon.tmpfiles transmission-daemon.conf
}
pkg_postrm() {
@@ -142,4 +139,5 @@ pkg_postinst() {
xdg_desktop_database_update
xdg_icon_cache_update
fi
+ tmpfiles_process transmission-daemon.conf
}
diff --git a/net-p2p/transmission/transmission-9999.ebuild b/net-p2p/transmission/transmission-9999.ebuild
index 4859dc49adb0..8fa84dfd5501 100644
--- a/net-p2p/transmission/transmission-9999.ebuild
+++ b/net-p2p/transmission/transmission-9999.ebuild
@@ -3,7 +3,7 @@
EAPI=7
-inherit cmake systemd xdg-utils
+inherit cmake tmpfiles systemd xdg-utils
if [[ ${PV} == 9999 ]]; then
inherit git-r3
@@ -31,7 +31,7 @@ ACCT_DEPEND="
acct-group/transmission
acct-user/transmission
"
-BDEPEND="${ACCT_DEPEND}
+BDEPEND="
virtual/pkgconfig
nls? (
gtk? ( sys-devel/gettext )
@@ -124,10 +124,7 @@ src_install() {
insinto /usr/lib/sysctl.d
doins "${FILESDIR}"/60-transmission.conf
- if [[ ${EUID} == 0 ]]; then
- diropts -o transmission -g transmission
- fi
- keepdir /var/lib/transmission
+ newtmpfiles "${FILESDIR}"/transmission-daemon.tmpfiles transmission-daemon.conf
}
pkg_postrm() {
@@ -142,4 +139,5 @@ pkg_postinst() {
xdg_desktop_database_update
xdg_icon_cache_update
fi
+ tmpfiles_process transmission-daemon.conf
}