commit:     10368ffffe9a3f7b31a8966c162e2e7aa418cf81
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Mon Sep  2 18:40:17 2019 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Mon Sep  2 18:44:10 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10368fff

net-p2p/transmission: install sysctl.d snippet

Package-Manager: Portage-2.3.75_p2, Repoman-2.3.17_p44
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 net-p2p/transmission/files/60-transmission.conf |  2 ++
 net-p2p/transmission/transmission-9999.ebuild   | 21 +++------------------
 2 files changed, 5 insertions(+), 18 deletions(-)

diff --git a/net-p2p/transmission/files/60-transmission.conf 
b/net-p2p/transmission/files/60-transmission.conf
new file mode 100644
index 00000000000..bdf0de2064e
--- /dev/null
+++ b/net-p2p/transmission/files/60-transmission.conf
@@ -0,0 +1,2 @@
+net.core.rmem_max = 4194304
+net.core.wmem_max = 1048576

diff --git a/net-p2p/transmission/transmission-9999.ebuild 
b/net-p2p/transmission/transmission-9999.ebuild
index caaf7e9c6ee..32f0b5698ea 100644
--- a/net-p2p/transmission/transmission-9999.ebuild
+++ b/net-p2p/transmission/transmission-9999.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-inherit cmake-utils readme.gentoo-r1 systemd xdg-utils
+inherit cmake-utils systemd xdg-utils
 
 if [[ ${PV} == 9999 ]]; then
        inherit git-r3
@@ -114,21 +114,6 @@ src_configure() {
        cmake-utils_src_configure
 }
 
-DISABLE_AUTOFORMATTING=1
-DOC_CONTENTS="\
-If you use transmission-daemon, please, set 'rpc-username' and
-'rpc-password' (in plain text, transmission-daemon will hash it on
-start) in settings.json file located at /var/lib/transmission/config or
-any other appropriate config directory.
-
-Since µTP is enabled by default, transmission needs large kernel buffers for
-the UDP socket. You can append following lines into /etc/sysctl.conf:
-
-net.core.rmem_max = 4194304
-net.core.wmem_max = 1048576
-
-and run sysctl -p"
-
 src_install() {
        cmake-utils_src_install
 
@@ -137,7 +122,8 @@ src_install() {
        systemd_dounit daemon/transmission-daemon.service
        systemd_install_serviced "${FILESDIR}"/transmission-daemon.service.conf
 
-       readme.gentoo_create_doc
+       insinto /usr/lib/sysctl.d
+       doins "${FILESDIR}"/60-transmission.conf
 }
 
 pkg_postrm() {
@@ -152,5 +138,4 @@ pkg_postinst() {
                xdg_desktop_database_update
                xdg_icon_cache_update
        fi
-       readme.gentoo_print_elog
 }

Reply via email to