1 |
commit: 254e05ab36ca0924e22d1b5a3dd3252f25734334 |
2 |
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 26 20:21:25 2017 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 26 20:40:39 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=254e05ab |
7 |
|
8 |
net-p2p/transmission: remove old |
9 |
|
10 |
Package-Manager: Portage-2.3.3_p42, Repoman-2.3.1_p35 |
11 |
|
12 |
net-p2p/transmission/Manifest | 1 - |
13 |
net-p2p/transmission/transmission-2.84-r4.ebuild | 167 ---------------------- |
14 |
net-p2p/transmission/transmission-2.92-r1.ebuild | 164 --------------------- |
15 |
net-p2p/transmission/transmission-2.92.ebuild | 172 ----------------------- |
16 |
4 files changed, 504 deletions(-) |
17 |
|
18 |
diff --git a/net-p2p/transmission/Manifest b/net-p2p/transmission/Manifest |
19 |
index 11ea7ea..0accc80 100644 |
20 |
--- a/net-p2p/transmission/Manifest |
21 |
+++ b/net-p2p/transmission/Manifest |
22 |
@@ -1,2 +1 @@ |
23 |
-DIST transmission-2.84.tar.xz 3077836 SHA256 a9fc1936b4ee414acc732ada04e84339d6755cd0d097bcbd11ba2cfc540db9eb SHA512 d6c2b17e7f8180a41ac70f5b503dfdb0353c6419db25df1b393b18c987c56fda9e2fd4c3f4cda7f08c301877bd0b4711842c28121ceaaaae87f5792cc6c29a3d WHIRLPOOL 375f9c981d9d2ac308896e8b7d66d3643796c8e97d64a1e0d6fd2bffaafa55988b90ddb4eb98330edf062e835c0c5ce76749e7e66bf6806333673beb7569f342 |
24 |
DIST transmission-2.92.tar.xz 3378116 SHA256 3a8d045c306ad9acb7bf81126939b9594553a388482efa0ec1bfb67b22acd35f SHA512 4d99476bee88cedcc4238a0eee64a4089016933cbfc1cfb1cca023ad4ebcfe46375c9e7651a17af4aeaaf1feb19cbd8166aa56ef7992d9e745a7bbcbe8efca11 WHIRLPOOL a2eab113fd895001cf72cd79c4ac9a4767eb9fb756a3fb9b1d0db6aa283d19a6aec739b8681a3a5a26ef630cec68f004e14f8654221f0528e30927f37339887f |
25 |
|
26 |
diff --git a/net-p2p/transmission/transmission-2.84-r4.ebuild b/net-p2p/transmission/transmission-2.84-r4.ebuild |
27 |
deleted file mode 100644 |
28 |
index 504457b..00000000 |
29 |
--- a/net-p2p/transmission/transmission-2.84-r4.ebuild |
30 |
+++ /dev/null |
31 |
@@ -1,167 +0,0 @@ |
32 |
-# Copyright 1999-2015 Gentoo Foundation |
33 |
-# Distributed under the terms of the GNU General Public License v2 |
34 |
-# $Id$ |
35 |
- |
36 |
-EAPI=5 |
37 |
-inherit autotools eutils fdo-mime gnome2-utils qmake-utils systemd user |
38 |
- |
39 |
-DESCRIPTION="A Fast, Easy and Free BitTorrent client" |
40 |
-HOMEPAGE="http://www.transmissionbt.com/" |
41 |
-SRC_URI="http://download.transmissionbt.com/${PN}/files/${P}.tar.xz" |
42 |
- |
43 |
-# web/LICENSE is always GPL-2 whereas COPYING allows either GPL-2 or GPL-3 for the rest |
44 |
-# transmission in licenses/ is for mentioning OpenSSL linking exception |
45 |
-# MIT is in several libtransmission/ headers |
46 |
-LICENSE="|| ( GPL-2 GPL-3 Transmission-OpenSSL-exception ) GPL-2 MIT" |
47 |
-SLOT=0 |
48 |
-IUSE="ayatana gtk lightweight systemd qt4 qt5 xfs" |
49 |
-KEYWORDS="amd64 ~arm ~mips ppc ppc64 x86 ~x86-fbsd ~amd64-linux" |
50 |
- |
51 |
-RDEPEND=">=dev-libs/libevent-2.0.10:= |
52 |
- dev-libs/openssl: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 |
- systemd? ( sys-apps/systemd:= ) |
64 |
- qt4? ( |
65 |
- dev-qt/qtcore:4 |
66 |
- dev-qt/qtgui:4 |
67 |
- dev-qt/qtdbus:4 |
68 |
- ) |
69 |
- qt5? ( |
70 |
- dev-qt/qtcore:5 |
71 |
- dev-qt/qtdbus:5 |
72 |
- dev-qt/qtgui:5 |
73 |
- dev-qt/qtnetwork:5 |
74 |
- dev-qt/qtwidgets:5 |
75 |
- )" |
76 |
-DEPEND="${RDEPEND} |
77 |
- >=dev-libs/glib-2.32 |
78 |
- dev-util/intltool |
79 |
- sys-devel/gettext |
80 |
- virtual/os-headers |
81 |
- virtual/pkgconfig |
82 |
- qt5? ( dev-qt/linguist-tools:5 ) |
83 |
- xfs? ( sys-fs/xfsprogs )" |
84 |
- |
85 |
-REQUIRED_USE="ayatana? ( gtk ) ?? ( qt4 qt5 )" |
86 |
- |
87 |
-DOCS="AUTHORS NEWS qt/README.txt" |
88 |
- |
89 |
-pkg_setup() { |
90 |
- enewgroup ${PN} |
91 |
- enewuser ${PN} -1 -1 -1 ${PN} |
92 |
-} |
93 |
- |
94 |
-src_prepare() { |
95 |
- sed -i -e '/CFLAGS/s:-ggdb3::' configure.ac || die |
96 |
- # Trick to avoid automagic dependency |
97 |
- use ayatana || { sed -i -e '/^LIBAPPINDICATOR_MINIMUM/s:=.*:=9999:' configure.ac || die; } |
98 |
- # Pass our configuration dir to systemd unit file |
99 |
- sed -i '/ExecStart/ s|$| -g /var/lib/transmission/config|' daemon/${PN}-daemon.service || die |
100 |
- # http://trac.transmissionbt.com/ticket/4324 |
101 |
- sed -i -e 's|noinst\(_PROGRAMS = $(TESTS)\)|check\1|' lib${PN}/Makefile.am || die |
102 |
- # Fix for broken translations path |
103 |
- epatch "${FILESDIR}"/${PN}-2.80-translations-path-fix.patch |
104 |
- # http://trac.transmissionbt.com/ticket/5700 |
105 |
- sed -i -e '1iQMAKE_CXXFLAGS += -std=c++11' qt/qtr.pro || die |
106 |
- |
107 |
- epatch "${FILESDIR}/2.84-miniupnp14.patch" |
108 |
- epatch "${FILESDIR}/2.84-libevent-2.1.5.patch" |
109 |
- epatch "${FILESDIR}/2.84-node_alloc-segfault.patch" |
110 |
- |
111 |
- epatch_user |
112 |
- eautoreconf |
113 |
-} |
114 |
- |
115 |
-src_configure() { |
116 |
- export ac_cv_header_xfs_xfs_h=$(usex xfs) |
117 |
- |
118 |
- econf \ |
119 |
- --enable-external-natpmp \ |
120 |
- $(use_enable lightweight) \ |
121 |
- $(use_with systemd systemd-daemon) \ |
122 |
- $(use_with gtk) |
123 |
- |
124 |
- if use qt4 || use qt5; then |
125 |
- pushd qt >/dev/null || die |
126 |
- use qt4 && eqmake4 qtr.pro |
127 |
- use qt5 && eqmake5 qtr.pro |
128 |
- popd >/dev/null || die |
129 |
- fi |
130 |
-} |
131 |
- |
132 |
-src_compile() { |
133 |
- emake |
134 |
- |
135 |
- if use qt4 || use qt5; then |
136 |
- local qt_bindir |
137 |
- use qt4 && qt_bindir=$(qt4_get_bindir) |
138 |
- use qt5 && qt_bindir=$(qt5_get_bindir) |
139 |
- emake -C qt |
140 |
- "${qt_bindir}"/lrelease qt/translations/*.ts || die |
141 |
- fi |
142 |
-} |
143 |
- |
144 |
-src_install() { |
145 |
- default |
146 |
- |
147 |
- rm -f "${ED}"/usr/share/${PN}/web/LICENSE |
148 |
- |
149 |
- newinitd "${FILESDIR}"/${PN}-daemon.initd.9 ${PN}-daemon |
150 |
- newconfd "${FILESDIR}"/${PN}-daemon.confd.4 ${PN}-daemon |
151 |
- systemd_dounit daemon/${PN}-daemon.service |
152 |
- |
153 |
- keepdir /var/{lib/${PN}/{config,downloads},log/${PN}} |
154 |
- fowners -R ${PN}:${PN} /var/{lib/${PN}/{,config,downloads},log/${PN}} |
155 |
- |
156 |
- if use qt4 || use qt5; then |
157 |
- pushd qt >/dev/null || die |
158 |
- emake INSTALL_ROOT="${ED}"/usr install |
159 |
- |
160 |
- domenu ${PN}-qt.desktop |
161 |
- |
162 |
- local res |
163 |
- for res in 16 22 24 32 48 64 72 96 128 192 256; do |
164 |
- doicon -s ${res} icons/hicolor/${res}x${res}/${PN}-qt.png |
165 |
- done |
166 |
- doicon -s scalable icons/hicolor/scalable/${PN}-qt.svg |
167 |
- |
168 |
- use qt4 && insinto /usr/share/qt4/translations |
169 |
- use qt5 && insinto /usr/share/qt5/translations |
170 |
- doins translations/*.qm |
171 |
- popd >/dev/null || die |
172 |
- fi |
173 |
-} |
174 |
- |
175 |
-pkg_preinst() { |
176 |
- gnome2_icon_savelist |
177 |
-} |
178 |
- |
179 |
-pkg_postinst() { |
180 |
- fdo-mime_desktop_database_update |
181 |
- gnome2_icon_cache_update |
182 |
- |
183 |
- elog "If you use ${PN}-daemon, please, set 'rpc-username' and" |
184 |
- elog "'rpc-password' (in plain text, ${PN}-daemon will hash it on" |
185 |
- elog "start) in settings.json file located at /var/lib/${PN}/config or" |
186 |
- elog "any other appropriate config directory." |
187 |
- elog |
188 |
- elog "Since µTP is enabled by default, ${PN} needs large kernel buffers for" |
189 |
- elog "the UDP socket. You can append following lines into /etc/sysctl.conf:" |
190 |
- elog " net.core.rmem_max = 4194304" |
191 |
- elog " net.core.wmem_max = 1048576" |
192 |
- elog "and run sysctl -p" |
193 |
-} |
194 |
- |
195 |
-pkg_postrm() { |
196 |
- fdo-mime_desktop_database_update |
197 |
- gnome2_icon_cache_update |
198 |
-} |
199 |
|
200 |
diff --git a/net-p2p/transmission/transmission-2.92-r1.ebuild b/net-p2p/transmission/transmission-2.92-r1.ebuild |
201 |
deleted file mode 100644 |
202 |
index 9221015..00000000 |
203 |
--- a/net-p2p/transmission/transmission-2.92-r1.ebuild |
204 |
+++ /dev/null |
205 |
@@ -1,164 +0,0 @@ |
206 |
-# Copyright 1999-2016 Gentoo Foundation |
207 |
-# Distributed under the terms of the GNU General Public License v2 |
208 |
-# $Id$ |
209 |
- |
210 |
-EAPI=6 |
211 |
-inherit autotools fdo-mime flag-o-matic gnome2-utils qmake-utils systemd user |
212 |
- |
213 |
-DESCRIPTION="A Fast, Easy and Free BitTorrent client" |
214 |
-HOMEPAGE="http://www.transmissionbt.com/" |
215 |
-SRC_URI="http://download.transmissionbt.com/${PN}/files/${P}.tar.xz" |
216 |
- |
217 |
-# web/LICENSE is always GPL-2 whereas COPYING allows either GPL-2 or GPL-3 for the rest |
218 |
-# transmission in licenses/ is for mentioning OpenSSL linking exception |
219 |
-# MIT is in several libtransmission/ headers |
220 |
-LICENSE="|| ( GPL-2 GPL-3 Transmission-OpenSSL-exception ) GPL-2 MIT" |
221 |
-SLOT=0 |
222 |
-IUSE="ayatana gtk libressl lightweight systemd qt5 xfs" |
223 |
-KEYWORDS="amd64 ~arm ~mips ppc ppc64 x86 ~x86-fbsd ~amd64-linux" |
224 |
- |
225 |
-RDEPEND=">=dev-libs/libevent-2.0.10:= |
226 |
- !libressl? ( dev-libs/openssl:0= ) |
227 |
- libressl? ( dev-libs/libressl:0= ) |
228 |
- net-libs/libnatpmp |
229 |
- >=net-libs/miniupnpc-1.7:= |
230 |
- >=net-misc/curl-7.16.3[ssl] |
231 |
- sys-libs/zlib:= |
232 |
- gtk? ( |
233 |
- >=dev-libs/dbus-glib-0.100 |
234 |
- >=dev-libs/glib-2.32:2 |
235 |
- >=x11-libs/gtk+-3.4:3 |
236 |
- ayatana? ( >=dev-libs/libappindicator-0.4.90:3 ) |
237 |
- ) |
238 |
- qt5? ( |
239 |
- dev-qt/qtcore:5 |
240 |
- dev-qt/qtdbus:5 |
241 |
- dev-qt/qtgui:5 |
242 |
- dev-qt/qtnetwork:5 |
243 |
- dev-qt/qtwidgets:5 |
244 |
- ) |
245 |
- systemd? ( >=sys-apps/systemd-209:= )" |
246 |
-DEPEND="${RDEPEND} |
247 |
- >=dev-libs/glib-2.32 |
248 |
- dev-util/intltool |
249 |
- sys-devel/gettext |
250 |
- virtual/os-headers |
251 |
- virtual/pkgconfig |
252 |
- qt5? ( dev-qt/linguist-tools:5 ) |
253 |
- xfs? ( sys-fs/xfsprogs )" |
254 |
- |
255 |
-REQUIRED_USE="ayatana? ( gtk )" |
256 |
- |
257 |
-DOCS=( AUTHORS NEWS qt/README.txt ) |
258 |
- |
259 |
-PATCHES=( |
260 |
- "${FILESDIR}"/libsystemd.patch |
261 |
-) |
262 |
- |
263 |
-src_prepare() { |
264 |
- sed -i -e '/CFLAGS/s:-ggdb3::' configure.ac || die |
265 |
- |
266 |
- # Trick to avoid automagic dependency |
267 |
- if ! use ayatana ; then |
268 |
- sed -i -e '/^LIBAPPINDICATOR_MINIMUM/s:=.*:=9999:' configure.ac || die |
269 |
- fi |
270 |
- |
271 |
- # http://trac.transmissionbt.com/ticket/4324 |
272 |
- sed -i -e 's|noinst\(_PROGRAMS = $(TESTS)\)|check\1|' libtransmission/Makefile.am || die |
273 |
- |
274 |
- # Prevent m4_copy error when running aclocal |
275 |
- # m4_copy: won't overwrite defined macro: glib_DEFUN |
276 |
- rm m4/glib-gettext.m4 || die |
277 |
- |
278 |
- default |
279 |
- eautoreconf |
280 |
-} |
281 |
- |
282 |
-src_configure() { |
283 |
- export ac_cv_header_xfs_xfs_h=$(usex xfs) |
284 |
- |
285 |
- # https://bugs.gentoo.org/577528 |
286 |
- append-lfs-flags |
287 |
- |
288 |
- econf \ |
289 |
- --enable-external-natpmp \ |
290 |
- $(use_enable lightweight) \ |
291 |
- $(use_with systemd systemd-daemon) \ |
292 |
- $(use_with gtk) |
293 |
- |
294 |
- if use qt5; then |
295 |
- pushd qt >/dev/null || die |
296 |
- eqmake5 qtr.pro |
297 |
- popd >/dev/null || die |
298 |
- fi |
299 |
-} |
300 |
- |
301 |
-src_compile() { |
302 |
- emake |
303 |
- |
304 |
- if use qt5; then |
305 |
- emake -C qt |
306 |
- $(qt5_get_bindir)/lrelease qt/translations/*.ts || die |
307 |
- fi |
308 |
-} |
309 |
- |
310 |
-src_install() { |
311 |
- default |
312 |
- |
313 |
- rm "${ED%/}"/usr/share/transmission/web/LICENSE || die |
314 |
- |
315 |
- newinitd "${FILESDIR}"/transmission-daemon.initd.10 transmission-daemon |
316 |
- newconfd "${FILESDIR}"/transmission-daemon.confd.4 transmission-daemon |
317 |
- systemd_dounit daemon/transmission-daemon.service |
318 |
- systemd_install_serviced "${FILESDIR}"/transmission-daemon.service.conf |
319 |
- |
320 |
- if use qt5; then |
321 |
- pushd qt >/dev/null || die |
322 |
- emake INSTALL_ROOT="${ED%/}"/usr install |
323 |
- |
324 |
- domenu transmission-qt.desktop |
325 |
- |
326 |
- local res |
327 |
- for res in 16 22 24 32 48 64 72 96 128 192 256; do |
328 |
- doicon -s ${res} icons/hicolor/${res}x${res}/transmission-qt.png |
329 |
- done |
330 |
- doicon -s scalable icons/hicolor/scalable/transmission-qt.svg |
331 |
- |
332 |
- insinto /usr/share/qt5/translations |
333 |
- doins translations/*.qm |
334 |
- popd >/dev/null || die |
335 |
- fi |
336 |
-} |
337 |
- |
338 |
-pkg_preinst() { |
339 |
- gnome2_icon_savelist |
340 |
-} |
341 |
- |
342 |
-pkg_postinst() { |
343 |
- fdo-mime_desktop_database_update |
344 |
- gnome2_icon_cache_update |
345 |
- |
346 |
- enewgroup transmission |
347 |
- enewuser transmission -1 -1 /var/lib/transmission transmission |
348 |
- |
349 |
- if [[ ! -e "${EROOT%/}"/var/lib/transmission ]]; then |
350 |
- mkdir -p "${EROOT%/}"/var/lib/transmission || die |
351 |
- chown transmission:transmission "${EROOT%/}"/var/lib/transmission || die |
352 |
- fi |
353 |
- |
354 |
- elog "If you use transmission-daemon, please, set 'rpc-username' and" |
355 |
- elog "'rpc-password' (in plain text, transmission-daemon will hash it on" |
356 |
- elog "start) in settings.json file located at /var/lib/transmission/config or" |
357 |
- elog "any other appropriate config directory." |
358 |
- elog |
359 |
- elog "Since µTP is enabled by default, transmission needs large kernel buffers for" |
360 |
- elog "the UDP socket. You can append following lines into /etc/sysctl.conf:" |
361 |
- elog " net.core.rmem_max = 4194304" |
362 |
- elog " net.core.wmem_max = 1048576" |
363 |
- elog "and run sysctl -p" |
364 |
-} |
365 |
- |
366 |
-pkg_postrm() { |
367 |
- fdo-mime_desktop_database_update |
368 |
- gnome2_icon_cache_update |
369 |
-} |
370 |
|
371 |
diff --git a/net-p2p/transmission/transmission-2.92.ebuild b/net-p2p/transmission/transmission-2.92.ebuild |
372 |
deleted file mode 100644 |
373 |
index c87770a..00000000 |
374 |
--- a/net-p2p/transmission/transmission-2.92.ebuild |
375 |
+++ /dev/null |
376 |
@@ -1,172 +0,0 @@ |
377 |
-# Copyright 1999-2016 Gentoo Foundation |
378 |
-# Distributed under the terms of the GNU General Public License v2 |
379 |
-# $Id$ |
380 |
- |
381 |
-EAPI=6 |
382 |
-inherit autotools fdo-mime flag-o-matic gnome2-utils qmake-utils systemd user |
383 |
- |
384 |
-DESCRIPTION="A Fast, Easy and Free BitTorrent client" |
385 |
-HOMEPAGE="http://www.transmissionbt.com/" |
386 |
-SRC_URI="http://download.transmissionbt.com/${PN}/files/${P}.tar.xz" |
387 |
- |
388 |
-# web/LICENSE is always GPL-2 whereas COPYING allows either GPL-2 or GPL-3 for the rest |
389 |
-# transmission in licenses/ is for mentioning OpenSSL linking exception |
390 |
-# MIT is in several libtransmission/ headers |
391 |
-LICENSE="|| ( GPL-2 GPL-3 Transmission-OpenSSL-exception ) GPL-2 MIT" |
392 |
-SLOT=0 |
393 |
-IUSE="ayatana gtk libressl lightweight systemd qt4 qt5 xfs" |
394 |
-KEYWORDS="amd64 ~arm ~mips ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux" |
395 |
- |
396 |
-RDEPEND=">=dev-libs/libevent-2.0.10:= |
397 |
- !libressl? ( dev-libs/openssl:0= ) |
398 |
- libressl? ( dev-libs/libressl ) |
399 |
- net-libs/libnatpmp:= |
400 |
- >=net-libs/miniupnpc-1.7:= |
401 |
- >=net-misc/curl-7.16.3:=[ssl] |
402 |
- sys-libs/zlib:= |
403 |
- gtk? ( |
404 |
- >=dev-libs/dbus-glib-0.100:= |
405 |
- >=dev-libs/glib-2.32:2= |
406 |
- >=x11-libs/gtk+-3.4:3= |
407 |
- ayatana? ( >=dev-libs/libappindicator-0.4.90:3= ) |
408 |
- ) |
409 |
- systemd? ( >=sys-apps/systemd-209:= ) |
410 |
- qt4? ( |
411 |
- dev-qt/qtcore:4 |
412 |
- dev-qt/qtgui:4 |
413 |
- dev-qt/qtdbus:4 |
414 |
- ) |
415 |
- qt5? ( |
416 |
- dev-qt/qtcore:5 |
417 |
- dev-qt/qtdbus:5 |
418 |
- dev-qt/qtgui:5 |
419 |
- dev-qt/qtnetwork:5 |
420 |
- dev-qt/qtwidgets:5 |
421 |
- )" |
422 |
-DEPEND="${RDEPEND} |
423 |
- >=dev-libs/glib-2.32 |
424 |
- dev-util/intltool |
425 |
- sys-devel/gettext |
426 |
- virtual/os-headers |
427 |
- virtual/pkgconfig |
428 |
- qt5? ( dev-qt/linguist-tools:5 ) |
429 |
- xfs? ( sys-fs/xfsprogs )" |
430 |
- |
431 |
-REQUIRED_USE="ayatana? ( gtk ) ?? ( qt4 qt5 )" |
432 |
- |
433 |
-DOCS="AUTHORS NEWS qt/README.txt" |
434 |
- |
435 |
-PATCHES=( |
436 |
- "${FILESDIR}"/libsystemd.patch |
437 |
-) |
438 |
- |
439 |
-src_prepare() { |
440 |
- sed -i -e '/CFLAGS/s:-ggdb3::' configure.ac || die |
441 |
- |
442 |
- # Trick to avoid automagic dependency |
443 |
- use ayatana || { sed -i -e '/^LIBAPPINDICATOR_MINIMUM/s:=.*:=9999:' configure.ac || die; } |
444 |
- |
445 |
- # http://trac.transmissionbt.com/ticket/4324 |
446 |
- sed -i -e 's|noinst\(_PROGRAMS = $(TESTS)\)|check\1|' libtransmission/Makefile.am || die |
447 |
- |
448 |
- # Prevent m4_copy error when running aclocal |
449 |
- # m4_copy: won't overwrite defined macro: glib_DEFUN |
450 |
- rm m4/glib-gettext.m4 || die |
451 |
- |
452 |
- default |
453 |
- eautoreconf |
454 |
-} |
455 |
- |
456 |
-src_configure() { |
457 |
- export ac_cv_header_xfs_xfs_h=$(usex xfs) |
458 |
- |
459 |
- # https://bugs.gentoo.org/577528 |
460 |
- append-cppflags -D_LARGEFILE64_SOURCE=1 |
461 |
- |
462 |
- econf \ |
463 |
- --enable-external-natpmp \ |
464 |
- $(use_enable lightweight) \ |
465 |
- $(use_with systemd systemd-daemon) \ |
466 |
- $(use_with gtk) |
467 |
- |
468 |
- if use qt4 || use qt5; then |
469 |
- pushd qt >/dev/null || die |
470 |
- use qt4 && eqmake4 qtr.pro |
471 |
- use qt5 && eqmake5 qtr.pro |
472 |
- popd >/dev/null || die |
473 |
- fi |
474 |
-} |
475 |
- |
476 |
-src_compile() { |
477 |
- emake |
478 |
- |
479 |
- if use qt4 || use qt5; then |
480 |
- local qt_bindir |
481 |
- use qt4 && qt_bindir=$(qt4_get_bindir) |
482 |
- use qt5 && qt_bindir=$(qt5_get_bindir) |
483 |
- emake -C qt |
484 |
- "${qt_bindir}"/lrelease qt/translations/*.ts || die |
485 |
- fi |
486 |
-} |
487 |
- |
488 |
-src_install() { |
489 |
- default |
490 |
- |
491 |
- rm "${ED}"/usr/share/transmission/web/LICENSE || die |
492 |
- |
493 |
- newinitd "${FILESDIR}"/transmission-daemon.initd.10 transmission-daemon |
494 |
- newconfd "${FILESDIR}"/transmission-daemon.confd.4 transmission-daemon |
495 |
- systemd_dounit daemon/transmission-daemon.service |
496 |
- systemd_install_serviced "${FILESDIR}"/transmission-daemon.service.conf |
497 |
- |
498 |
- if use qt4 || use qt5; then |
499 |
- pushd qt >/dev/null || die |
500 |
- emake INSTALL_ROOT="${ED}"/usr install |
501 |
- |
502 |
- domenu transmission-qt.desktop |
503 |
- |
504 |
- local res |
505 |
- for res in 16 22 24 32 48 64 72 96 128 192 256; do |
506 |
- doicon -s ${res} icons/hicolor/${res}x${res}/transmission-qt.png |
507 |
- done |
508 |
- doicon -s scalable icons/hicolor/scalable/transmission-qt.svg |
509 |
- |
510 |
- use qt4 && insinto /usr/share/qt4/translations |
511 |
- use qt5 && insinto /usr/share/qt5/translations |
512 |
- doins translations/*.qm |
513 |
- popd >/dev/null || die |
514 |
- fi |
515 |
-} |
516 |
- |
517 |
-pkg_preinst() { |
518 |
- gnome2_icon_savelist |
519 |
-} |
520 |
- |
521 |
-pkg_postinst() { |
522 |
- fdo-mime_desktop_database_update |
523 |
- gnome2_icon_cache_update |
524 |
- |
525 |
- enewgroup transmission |
526 |
- enewuser transmission -1 -1 /var/lib/transmission transmission |
527 |
- |
528 |
- if [[ ! -e "${ROOT%/}"/var/lib/transmission ]]; then |
529 |
- mkdir -p "${ROOT%/}"/var/lib/transmission |
530 |
- chown transmission:transmission "${ROOT%/}"/var/lib/transmission |
531 |
- fi |
532 |
- |
533 |
- elog "If you use transmission-daemon, please, set 'rpc-username' and" |
534 |
- elog "'rpc-password' (in plain text, transmission-daemon will hash it on" |
535 |
- elog "start) in settings.json file located at /var/lib/transmission/config or" |
536 |
- elog "any other appropriate config directory." |
537 |
- elog |
538 |
- elog "Since µTP is enabled by default, transmission needs large kernel buffers for" |
539 |
- elog "the UDP socket. You can append following lines into /etc/sysctl.conf:" |
540 |
- elog " net.core.rmem_max = 4194304" |
541 |
- elog " net.core.wmem_max = 1048576" |
542 |
- elog "and run sysctl -p" |
543 |
-} |
544 |
- |
545 |
-pkg_postrm() { |
546 |
- fdo-mime_desktop_database_update |
547 |
- gnome2_icon_cache_update |
548 |
-} |