diff options
author | Mike Gilbert <floppym@gentoo.org> | 2019-09-02 14:40:17 -0400 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2019-09-02 14:44:10 -0400 |
commit | 10368ffffe9a3f7b31a8966c162e2e7aa418cf81 (patch) | |
tree | 6dfa5678d1dc0bfc14e9ce07badd74f7fb900d5b /net-p2p | |
parent | net-p2p/transmission: EAPI 7 (diff) | |
download | gentoo-10368ffffe9a3f7b31a8966c162e2e7aa418cf81.tar.gz gentoo-10368ffffe9a3f7b31a8966c162e2e7aa418cf81.tar.bz2 gentoo-10368ffffe9a3f7b31a8966c162e2e7aa418cf81.zip |
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@gentoo.org>
Diffstat (limited to 'net-p2p')
-rw-r--r-- | net-p2p/transmission/files/60-transmission.conf | 2 | ||||
-rw-r--r-- | 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 000000000000..bdf0de2064e1 --- /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 caaf7e9c6ee6..32f0b5698ea6 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 } |