Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/transmission/, net-p2p/transmission/files/
Date: Mon, 02 Sep 2019 18:45:30
Message-Id: 1567449850.10368ffffe9a3f7b31a8966c162e2e7aa418cf81.floppym@gentoo
1 commit: 10368ffffe9a3f7b31a8966c162e2e7aa418cf81
2 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 2 18:40:17 2019 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 2 18:44:10 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10368fff
7
8 net-p2p/transmission: install sysctl.d snippet
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 net-p2p/transmission/files/60-transmission.conf | 2 ++
14 net-p2p/transmission/transmission-9999.ebuild | 21 +++------------------
15 2 files changed, 5 insertions(+), 18 deletions(-)
16
17 diff --git a/net-p2p/transmission/files/60-transmission.conf b/net-p2p/transmission/files/60-transmission.conf
18 new file mode 100644
19 index 00000000000..bdf0de2064e
20 --- /dev/null
21 +++ b/net-p2p/transmission/files/60-transmission.conf
22 @@ -0,0 +1,2 @@
23 +net.core.rmem_max = 4194304
24 +net.core.wmem_max = 1048576
25
26 diff --git a/net-p2p/transmission/transmission-9999.ebuild b/net-p2p/transmission/transmission-9999.ebuild
27 index caaf7e9c6ee..32f0b5698ea 100644
28 --- a/net-p2p/transmission/transmission-9999.ebuild
29 +++ b/net-p2p/transmission/transmission-9999.ebuild
30 @@ -3,7 +3,7 @@
31
32 EAPI=7
33
34 -inherit cmake-utils readme.gentoo-r1 systemd xdg-utils
35 +inherit cmake-utils systemd xdg-utils
36
37 if [[ ${PV} == 9999 ]]; then
38 inherit git-r3
39 @@ -114,21 +114,6 @@ src_configure() {
40 cmake-utils_src_configure
41 }
42
43 -DISABLE_AUTOFORMATTING=1
44 -DOC_CONTENTS="\
45 -If you use transmission-daemon, please, set 'rpc-username' and
46 -'rpc-password' (in plain text, transmission-daemon will hash it on
47 -start) in settings.json file located at /var/lib/transmission/config or
48 -any other appropriate config directory.
49 -
50 -Since µTP is enabled by default, transmission needs large kernel buffers for
51 -the UDP socket. You can append following lines into /etc/sysctl.conf:
52 -
53 -net.core.rmem_max = 4194304
54 -net.core.wmem_max = 1048576
55 -
56 -and run sysctl -p"
57 -
58 src_install() {
59 cmake-utils_src_install
60
61 @@ -137,7 +122,8 @@ src_install() {
62 systemd_dounit daemon/transmission-daemon.service
63 systemd_install_serviced "${FILESDIR}"/transmission-daemon.service.conf
64
65 - readme.gentoo_create_doc
66 + insinto /usr/lib/sysctl.d
67 + doins "${FILESDIR}"/60-transmission.conf
68 }
69
70 pkg_postrm() {
71 @@ -152,5 +138,4 @@ pkg_postinst() {
72 xdg_desktop_database_update
73 xdg_icon_cache_update
74 fi
75 - readme.gentoo_print_elog
76 }