1 |
commit: 02ed95e134f8f086e627e8ba4fa59f1837afa16d |
2 |
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Sep 2 18:55:09 2019 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 2 19:11:43 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02ed95e1 |
7 |
|
8 |
net-p2p/transmission: keepdir /var/lib/transmission |
9 |
|
10 |
Package-Manager: Portage-2.3.75_p2, Repoman-2.3.17_p44 |
11 |
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> |
12 |
|
13 |
...ion-2.94.ebuild => transmission-2.94-r1.ebuild} | 24 +++++++++++----------- |
14 |
net-p2p/transmission/transmission-9999.ebuild | 11 ++++++++-- |
15 |
2 files changed, 21 insertions(+), 14 deletions(-) |
16 |
|
17 |
diff --git a/net-p2p/transmission/transmission-2.94.ebuild b/net-p2p/transmission/transmission-2.94-r1.ebuild |
18 |
similarity index 86% |
19 |
rename from net-p2p/transmission/transmission-2.94.ebuild |
20 |
rename to net-p2p/transmission/transmission-2.94-r1.ebuild |
21 |
index 745abf9221f..c2e85f5d064 100644 |
22 |
--- a/net-p2p/transmission/transmission-2.94.ebuild |
23 |
+++ b/net-p2p/transmission/transmission-2.94-r1.ebuild |
24 |
@@ -16,6 +16,10 @@ SLOT=0 |
25 |
IUSE="ayatana gtk libressl lightweight systemd qt5 xfs" |
26 |
KEYWORDS="amd64 ~arm ~arm64 ~mips ppc ppc64 x86 ~x86-fbsd ~amd64-linux" |
27 |
|
28 |
+ACCT_DEPEND=" |
29 |
+ acct-group/transmission |
30 |
+ acct-user/transmission |
31 |
+" |
32 |
COMMON_DEPEND=">=dev-libs/libevent-2.0.10:= |
33 |
!libressl? ( dev-libs/openssl:0= ) |
34 |
libressl? ( dev-libs/libressl:0= ) |
35 |
@@ -38,6 +42,7 @@ COMMON_DEPEND=">=dev-libs/libevent-2.0.10:= |
36 |
) |
37 |
systemd? ( >=sys-apps/systemd-209:= )" |
38 |
DEPEND="${COMMON_DEPEND} |
39 |
+ ${ACCT_DEPEND} |
40 |
>=dev-libs/glib-2.32 |
41 |
dev-util/intltool |
42 |
sys-devel/gettext |
43 |
@@ -46,7 +51,7 @@ DEPEND="${COMMON_DEPEND} |
44 |
qt5? ( dev-qt/linguist-tools:5 ) |
45 |
xfs? ( sys-fs/xfsprogs )" |
46 |
RDEPEND="${COMMON_DEPEND} |
47 |
- acct-user/transmission" |
48 |
+ ${ACCT_DEPEND}" |
49 |
|
50 |
REQUIRED_USE="ayatana? ( gtk )" |
51 |
|
52 |
@@ -113,6 +118,9 @@ src_install() { |
53 |
systemd_dounit daemon/transmission-daemon.service |
54 |
systemd_install_serviced "${FILESDIR}"/transmission-daemon.service.conf |
55 |
|
56 |
+ insinto /usr/lib/sysctl.d |
57 |
+ doins "${FILESDIR}"/60-transmission.conf |
58 |
+ |
59 |
if use qt5; then |
60 |
pushd qt >/dev/null || die |
61 |
emake INSTALL_ROOT="${ED%/}"/usr install |
62 |
@@ -129,6 +137,9 @@ src_install() { |
63 |
doins translations/*.qm |
64 |
popd >/dev/null || die |
65 |
fi |
66 |
+ |
67 |
+ diropts -o transmission -g transmission |
68 |
+ keepdir /var/lib/transmission |
69 |
} |
70 |
|
71 |
pkg_preinst() { |
72 |
@@ -138,17 +149,6 @@ pkg_preinst() { |
73 |
pkg_postinst() { |
74 |
xdg_desktop_database_update |
75 |
gnome2_icon_cache_update |
76 |
- |
77 |
- elog "If you use transmission-daemon, please, set 'rpc-username' and" |
78 |
- elog "'rpc-password' (in plain text, transmission-daemon will hash it on" |
79 |
- elog "start) in settings.json file located at /var/lib/transmission/config or" |
80 |
- elog "any other appropriate config directory." |
81 |
- elog |
82 |
- elog "Since µTP is enabled by default, transmission needs large kernel buffers for" |
83 |
- elog "the UDP socket. You can append following lines into /etc/sysctl.conf:" |
84 |
- elog " net.core.rmem_max = 4194304" |
85 |
- elog " net.core.wmem_max = 1048576" |
86 |
- elog "and run sysctl -p" |
87 |
} |
88 |
|
89 |
pkg_postrm() { |
90 |
|
91 |
diff --git a/net-p2p/transmission/transmission-9999.ebuild b/net-p2p/transmission/transmission-9999.ebuild |
92 |
index 32f0b5698ea..dc8e8148800 100644 |
93 |
--- a/net-p2p/transmission/transmission-9999.ebuild |
94 |
+++ b/net-p2p/transmission/transmission-9999.ebuild |
95 |
@@ -24,7 +24,11 @@ SLOT="0" |
96 |
IUSE="ayatana gtk libressl lightweight nls mbedtls qt5 systemd test" |
97 |
RESTRICT="!test? ( test )" |
98 |
|
99 |
-BDEPEND=" |
100 |
+ACCT_DEPEND=" |
101 |
+ acct-group/transmission |
102 |
+ acct-user/transmission |
103 |
+" |
104 |
+BDEPEND="${ACCT_DEPEND} |
105 |
virtual/pkgconfig |
106 |
nls? ( |
107 |
gtk? ( |
108 |
@@ -77,7 +81,7 @@ DEPEND="${COMMON_DEPEND} |
109 |
) |
110 |
" |
111 |
RDEPEND="${COMMON_DEPEND} |
112 |
- acct-user/transmission |
113 |
+ ${ACCT_DEPEND} |
114 |
" |
115 |
|
116 |
src_unpack() { |
117 |
@@ -124,6 +128,9 @@ src_install() { |
118 |
|
119 |
insinto /usr/lib/sysctl.d |
120 |
doins "${FILESDIR}"/60-transmission.conf |
121 |
+ |
122 |
+ diropts -o transmission -g transmission |
123 |
+ keepdir /var/lib/transmission |
124 |
} |
125 |
|
126 |
pkg_postrm() { |