1 |
commit: 81c08d8e3979fc5ba5a87b7c031dec42bc68e2d4 |
2 |
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 27 23:14:03 2018 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 27 23:14:03 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=81c08d8e |
7 |
|
8 |
net-p2p/transmission: bump to 2.94 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/656586 |
11 |
Package-Manager: Portage-2.3.40_p4, Repoman-2.3.9_p236 |
12 |
|
13 |
net-p2p/transmission/Manifest | 1 + |
14 |
net-p2p/transmission/transmission-2.94.ebuild | 163 ++++++++++++++++++++++++++ |
15 |
2 files changed, 164 insertions(+) |
16 |
|
17 |
diff --git a/net-p2p/transmission/Manifest b/net-p2p/transmission/Manifest |
18 |
index 9768d963f68..ce243d76192 100644 |
19 |
--- a/net-p2p/transmission/Manifest |
20 |
+++ b/net-p2p/transmission/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST transmission-2.92.tar.xz 3378116 BLAKE2B 8929a2eab8a1617db44ca8a081fd7de786daef92e891ac86d4690451c0f4fa0d4e1ea03692c59babea6e9aee5dcfef57bd81e5c72a0bb4fe9efbd436ff006104 SHA512 4d99476bee88cedcc4238a0eee64a4089016933cbfc1cfb1cca023ad4ebcfe46375c9e7651a17af4aeaaf1feb19cbd8166aa56ef7992d9e745a7bbcbe8efca11 |
23 |
DIST transmission-2.93.tar.xz 3363868 BLAKE2B 786a8daec548d96b05d90c238cc7b67d402dc0d828860bb1a79b8059c687de309288be17fd12fd51abeafa28d9630fd19be9513c76cbf091f81ce9a181596042 SHA512 7565893f67fc10f1b683814fa4d365d841ec833bc8dfdab731432fe68f1a38daeb4c9100653763f16bfb4336fba11c9b0b9730a9817e17a140704a7c4aa5c087 |
24 |
+DIST transmission-2.94.tar.xz 3365952 BLAKE2B d0215a2c595dd3ebb2ed5c94cc3d380c78f62b98388557620534b88b9e2304bb6ac91960395541267f82d70800c4860d0e58125bca33dd158da992d19b4c0def SHA512 ee411743940f2897aa0bbc351ce79f11d860075d2e9e399d60301eae8cfc453e20426ef553fc62ee43019a07c052d512f5d7972cc4411fb57b1312c2c1558da7 |
25 |
|
26 |
diff --git a/net-p2p/transmission/transmission-2.94.ebuild b/net-p2p/transmission/transmission-2.94.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..37645783a92 |
29 |
--- /dev/null |
30 |
+++ b/net-p2p/transmission/transmission-2.94.ebuild |
31 |
@@ -0,0 +1,163 @@ |
32 |
+# Copyright 1999-2018 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=6 |
36 |
+inherit autotools flag-o-matic gnome2-utils qmake-utils systemd user xdg-utils |
37 |
+ |
38 |
+DESCRIPTION="A Fast, Easy and Free BitTorrent client" |
39 |
+HOMEPAGE="http://www.transmissionbt.com/" |
40 |
+SRC_URI="https://github.com/transmission/transmission-releases/raw/master/${P}.tar.xz" |
41 |
+ |
42 |
+# web/LICENSE is always GPL-2 whereas COPYING allows either GPL-2 or GPL-3 for the rest |
43 |
+# transmission in licenses/ is for mentioning OpenSSL linking exception |
44 |
+# MIT is in several libtransmission/ headers |
45 |
+LICENSE="|| ( GPL-2 GPL-3 Transmission-OpenSSL-exception ) GPL-2 MIT" |
46 |
+SLOT=0 |
47 |
+IUSE="ayatana gtk libressl lightweight systemd qt5 xfs" |
48 |
+KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux" |
49 |
+ |
50 |
+RDEPEND=">=dev-libs/libevent-2.0.10:= |
51 |
+ !libressl? ( dev-libs/openssl:0= ) |
52 |
+ libressl? ( dev-libs/libressl:0= ) |
53 |
+ net-libs/libnatpmp |
54 |
+ >=net-libs/miniupnpc-1.7:= |
55 |
+ >=net-misc/curl-7.16.3[ssl] |
56 |
+ sys-libs/zlib:= |
57 |
+ gtk? ( |
58 |
+ >=dev-libs/dbus-glib-0.100 |
59 |
+ >=dev-libs/glib-2.32:2 |
60 |
+ >=x11-libs/gtk+-3.4:3 |
61 |
+ ayatana? ( >=dev-libs/libappindicator-0.4.90:3 ) |
62 |
+ ) |
63 |
+ qt5? ( |
64 |
+ dev-qt/qtcore:5 |
65 |
+ dev-qt/qtdbus:5 |
66 |
+ dev-qt/qtgui:5 |
67 |
+ dev-qt/qtnetwork:5 |
68 |
+ dev-qt/qtwidgets:5 |
69 |
+ ) |
70 |
+ systemd? ( >=sys-apps/systemd-209:= )" |
71 |
+DEPEND="${RDEPEND} |
72 |
+ >=dev-libs/glib-2.32 |
73 |
+ dev-util/intltool |
74 |
+ sys-devel/gettext |
75 |
+ virtual/os-headers |
76 |
+ virtual/pkgconfig |
77 |
+ qt5? ( dev-qt/linguist-tools:5 ) |
78 |
+ xfs? ( sys-fs/xfsprogs )" |
79 |
+ |
80 |
+REQUIRED_USE="ayatana? ( gtk )" |
81 |
+ |
82 |
+DOCS=( AUTHORS NEWS qt/README.txt ) |
83 |
+ |
84 |
+PATCHES=( |
85 |
+ "${FILESDIR}"/libsystemd.patch |
86 |
+) |
87 |
+ |
88 |
+src_prepare() { |
89 |
+ sed -i -e '/CFLAGS/s:-ggdb3::' configure.ac || die |
90 |
+ |
91 |
+ # Trick to avoid automagic dependency |
92 |
+ if ! use ayatana ; then |
93 |
+ sed -i -e '/^LIBAPPINDICATOR_MINIMUM/s:=.*:=9999:' configure.ac || die |
94 |
+ fi |
95 |
+ |
96 |
+ # http://trac.transmissionbt.com/ticket/4324 |
97 |
+ sed -i -e 's|noinst\(_PROGRAMS = $(TESTS)\)|check\1|' libtransmission/Makefile.am || die |
98 |
+ |
99 |
+ # Prevent m4_copy error when running aclocal |
100 |
+ # m4_copy: won't overwrite defined macro: glib_DEFUN |
101 |
+ rm m4/glib-gettext.m4 || die |
102 |
+ |
103 |
+ default |
104 |
+ eautoreconf |
105 |
+} |
106 |
+ |
107 |
+src_configure() { |
108 |
+ export ac_cv_header_xfs_xfs_h=$(usex xfs) |
109 |
+ |
110 |
+ # https://bugs.gentoo.org/577528 |
111 |
+ append-lfs-flags |
112 |
+ |
113 |
+ econf \ |
114 |
+ --enable-external-natpmp \ |
115 |
+ $(use_enable lightweight) \ |
116 |
+ $(use_with systemd systemd-daemon) \ |
117 |
+ $(use_with gtk) |
118 |
+ |
119 |
+ if use qt5; then |
120 |
+ pushd qt >/dev/null || die |
121 |
+ eqmake5 qtr.pro |
122 |
+ popd >/dev/null || die |
123 |
+ fi |
124 |
+} |
125 |
+ |
126 |
+src_compile() { |
127 |
+ emake |
128 |
+ |
129 |
+ if use qt5; then |
130 |
+ emake -C qt |
131 |
+ $(qt5_get_bindir)/lrelease qt/translations/*.ts || die |
132 |
+ fi |
133 |
+} |
134 |
+ |
135 |
+src_install() { |
136 |
+ default |
137 |
+ |
138 |
+ rm "${ED%/}"/usr/share/transmission/web/LICENSE || die |
139 |
+ |
140 |
+ newinitd "${FILESDIR}"/transmission-daemon.initd.10 transmission-daemon |
141 |
+ newconfd "${FILESDIR}"/transmission-daemon.confd.4 transmission-daemon |
142 |
+ systemd_dounit daemon/transmission-daemon.service |
143 |
+ systemd_install_serviced "${FILESDIR}"/transmission-daemon.service.conf |
144 |
+ |
145 |
+ if use qt5; then |
146 |
+ pushd qt >/dev/null || die |
147 |
+ emake INSTALL_ROOT="${ED%/}"/usr install |
148 |
+ |
149 |
+ domenu transmission-qt.desktop |
150 |
+ |
151 |
+ local res |
152 |
+ for res in 16 22 24 32 48 64 72 96 128 192 256; do |
153 |
+ doicon -s ${res} icons/hicolor/${res}x${res}/transmission-qt.png |
154 |
+ done |
155 |
+ doicon -s scalable icons/hicolor/scalable/transmission-qt.svg |
156 |
+ |
157 |
+ insinto /usr/share/qt5/translations |
158 |
+ doins translations/*.qm |
159 |
+ popd >/dev/null || die |
160 |
+ fi |
161 |
+} |
162 |
+ |
163 |
+pkg_preinst() { |
164 |
+ gnome2_icon_savelist |
165 |
+} |
166 |
+ |
167 |
+pkg_postinst() { |
168 |
+ xdg_desktop_database_update |
169 |
+ gnome2_icon_cache_update |
170 |
+ |
171 |
+ enewgroup transmission |
172 |
+ enewuser transmission -1 -1 /var/lib/transmission transmission |
173 |
+ |
174 |
+ if [[ ! -e "${EROOT%/}"/var/lib/transmission ]]; then |
175 |
+ mkdir -p "${EROOT%/}"/var/lib/transmission || die |
176 |
+ chown transmission:transmission "${EROOT%/}"/var/lib/transmission || die |
177 |
+ fi |
178 |
+ |
179 |
+ elog "If you use transmission-daemon, please, set 'rpc-username' and" |
180 |
+ elog "'rpc-password' (in plain text, transmission-daemon will hash it on" |
181 |
+ elog "start) in settings.json file located at /var/lib/transmission/config or" |
182 |
+ elog "any other appropriate config directory." |
183 |
+ elog |
184 |
+ elog "Since µTP is enabled by default, transmission needs large kernel buffers for" |
185 |
+ elog "the UDP socket. You can append following lines into /etc/sysctl.conf:" |
186 |
+ elog " net.core.rmem_max = 4194304" |
187 |
+ elog " net.core.wmem_max = 1048576" |
188 |
+ elog "and run sysctl -p" |
189 |
+} |
190 |
+ |
191 |
+pkg_postrm() { |
192 |
+ xdg_desktop_database_update |
193 |
+ gnome2_icon_cache_update |
194 |
+} |