summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2013-09-06 18:21:46 +0000
committerPacho Ramos <pacho@gentoo.org>2013-09-06 18:21:46 +0000
commit7c18253b11914c5cd71b96316340e6ab071d31ab (patch)
tree86121de0a0624099dfa46747bfacd99c93320587 /net-p2p
parentNew package, based on the work by Mario Fetka and Michael Dwyer in the n4g ov... (diff)
downloadhistorical-7c18253b11914c5cd71b96316340e6ab071d31ab.tar.gz
historical-7c18253b11914c5cd71b96316340e6ab071d31ab.tar.bz2
historical-7c18253b11914c5cd71b96316340e6ab071d31ab.zip
Install upstream systemd unit file
Package-Manager: portage-2.2.1/cvs/Linux x86_64 Manifest-Sign-Key: 0xA188FBD4
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/transmission/ChangeLog9
-rw-r--r--net-p2p/transmission/Manifest14
-rw-r--r--net-p2p/transmission/transmission-2.81-r1.ebuild150
-rw-r--r--net-p2p/transmission/transmission-2.82-r1.ebuild105
4 files changed, 269 insertions, 9 deletions
diff --git a/net-p2p/transmission/ChangeLog b/net-p2p/transmission/ChangeLog
index 01ef09ec85f7..1772a58cd67c 100644
--- a/net-p2p/transmission/ChangeLog
+++ b/net-p2p/transmission/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-p2p/transmission
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/transmission/ChangeLog,v 1.239 2013/09/06 11:49:29 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/transmission/ChangeLog,v 1.240 2013/09/06 18:21:41 pacho Exp $
+
+*transmission-2.81-r1 (06 Sep 2013)
+*transmission-2.82-r1 (06 Sep 2013)
+
+ 06 Sep 2013; Pacho Ramos <pacho@gentoo.org> +transmission-2.81-r1.ebuild,
+ +transmission-2.82-r1.ebuild:
+ Install upstream systemd unit file
*transmission-2.82 (06 Sep 2013)
diff --git a/net-p2p/transmission/Manifest b/net-p2p/transmission/Manifest
index 3aa8f8902b70..71b2ca0c2089 100644
--- a/net-p2p/transmission/Manifest
+++ b/net-p2p/transmission/Manifest
@@ -9,18 +9,16 @@ DIST transmission-2.77.tar.xz 2953840 SHA256 55b1653fc18a10153ba9439f284bd7b2276
DIST transmission-2.81.tar.xz 3167816 SHA256 bbb571f5825466aa45e6ef4ad286176135a1a9c0234ffea3527ebd8001cc56ab SHA512 4b646b1c8498499e5557c3084e2a4350526b2e009e5f369ccf24f9d81dad8df05442744db17614486c8567c3bd90cef8567a564fad1f1f6f8b234740c7679dee WHIRLPOOL 1274a5a97ae82d7ebc29e0e40d02f3148546f25eb7aff8ab3298245447071b467802f6d518cb58f1842f576fe77c70b3c559a87620e0714fd724b7b75e08f020
DIST transmission-2.82.tar.xz 3172024 SHA256 3996651087df67a85f1e1b4a92b1b518ddefdd84c654b8df6fbccb0b91f03522 SHA512 05fbeda97e873b63f9d1fb15699f027112611346540da699e433e08763209b19278f5d5a513a0d4a24a9c4d0ff50115bb6a49b06d01fec8221ed91d60716d791 WHIRLPOOL bb50c1286d15ea0aa8b4bf00d4e4022bc0636c4c01091ed458bf3fd5ee7d80ed8cccec390dbf4686bbe6727c10e686233b081e17725da8001925ae4d95e91dca
EBUILD transmission-2.77-r1.ebuild 3333 SHA256 44fbeb1e2d1a26cb18569f0252dd367c4feb8fe5e056081ce8ffd6666e05dbfc SHA512 bc23405a1afea3b592a429ad80b4baa9095ae8271d0f015d90055a412c37b5e72570c602089905bcab056a428574e597f2817275501f3ca2bba80073586cd3b8 WHIRLPOOL e930f3c1a8df7de482ef8a4b51fa5fc29a726a426ff614f0578ef871c7dcbfa5dceca3fa1b8a15bc55ba79f4c26d3cb3c859aaa2d46b8d19e875636bcd812749
+EBUILD transmission-2.81-r1.ebuild 3714 SHA256 cc1abba185a2210f9f1880d363ee4eed25e1e66d5b4eaabb30d88df5e8cee47a SHA512 b5db7b988193deb9c4a9db66e462103b6c57e3232acf234e62cd6cdad10a699b4866b5b9f96371c161e41d159ebc85e7ec100071c8e4b2c8203dd30b87db3d94 WHIRLPOOL 2f0a6663c7091d34d0264051938ce12161e197a36e0715050e935172096655464a3abc4ad1dd7b692219bc721c86977b939b2f96ff572852793d5d6175089e44
EBUILD transmission-2.81.ebuild 3499 SHA256 9680092429724e2b865536e9668b84ea78a6f2bda6902fc6a99da90180788058 SHA512 4dfd72430679ded62763b3b30c075916cc8c6b9bc95994c2ecf9c1217932a8c30aa8b02955b21df9b53840dfd77e040ae90a2f47aa973049be42517410ce7a67 WHIRLPOOL 15785b2aac15d45e5c051e59ba3ad2ec59243275b5e49ec969fe658dc8f166f7bf6eb4cd1200b29300fd056cf0619abdaccb71d7209f3ac4f6efa00259eb6dec
+EBUILD transmission-2.82-r1.ebuild 2925 SHA256 20438aa5371fabcdc492c51dbf40db7dffb20c95b8d53a59385dd8fa53ee2fdd SHA512 e5e3b420a33d8b3f54cfcb4820bac4b7d3f2ec752a5ec22ed06effa945545c25fbc962626846aea0cee0299ee034487813acafd3a46dc181da5c985ba89cf6ad WHIRLPOOL ff5e79a0bfe0a98b37846ccf451a2d394edb372d6dd98e5c9099b4dbdab6b4eb21e0037ea024d9918dd95134d327e5e4c4d29b427924971127180416a6f92bf5
EBUILD transmission-2.82.ebuild 2709 SHA256 c9b7256996c304778055f4597349adb3d194c74af6ce54912a054f794a18e86c SHA512 9522fcc3046af8934bfc5a378f0cda18ba784f6c21a086374675efa4f12a5e80a15178c694c528d714e113c91c33a437441e74d56452b5711be9feec1e16680e WHIRLPOOL 00d97d29ecf6a4d99d9effca3c82eb2908cbf2ed13de29d27691b523cd4c66b81b944a1b467c68df2399b9362d5e2e5c31f5a7d42e10a2dc5da086d26bfb8265
-MISC ChangeLog 41138 SHA256 4d7e0a4f30d6ec57fdaeba25de2f76f9bc019f5a7f0cb7ec09dd275660bb0d2e SHA512 2858e29617128e9aaf23c7ea253aa4d9017e275f15b6f9e8ea226c9d2d4ee55eaab568eb7dfcff28e4e6e47f50922fde148829ee4826983807d9bc67a6b0b1ed WHIRLPOOL 564f7af8e9efd0bb147782cb2ffcec2e24d9df5c6d658b79058eb99d6a1df54387a00bea7257e651323d43154e3003cc7a3e39fab3d04da224f0871c12a0927c
+MISC ChangeLog 41353 SHA256 dd14be86cb6c4677f77e1bfa690603409131264b700815ad2f854c9fd3ed72c4 SHA512 5d5a6c21ff5478a983f4071a344bc62d18864106144584b4bdc1f31a009a98bcb8dc6228e59b8fdd490d77cb02798fac1ec1815cbe7c30dbe8deec89fc4ca1b1 WHIRLPOOL bff7bd318244904376124b6156fd2704ca730d1c7264c270f1dea69e0b93cce8cfc0941039c95d9507f9b01837b6da84b3752365b9018bfba7d353b6129837c7
MISC metadata.xml 566 SHA256 ee4ef67c4bf912c1b5e529965fc45eca1f41dbebf76bcf785c8fc7b38a602633 SHA512 60ee8ea3d363fa60f5a1f94ec9d8fe7653465cb2fc3de8c92d6945f5cb01468f7af580149ceefeb8fdd866af7b5ae2143b584853bf3aa5fcc69408a21e4566eb WHIRLPOOL b3b4ed16faa68d7abb0519e025607c55c68a1ba0462992ac1e8b3e7f775dca278039391041097abcb1063b6cc5fa3f8741ecd76587fb3533c437d780ce4b0423
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)
-iQEcBAEBCAAGBQJSKcEDAAoJEEdUh39IaPFNoJYH/2k5RAgKH8CJHVt7RCPIKfqi
-NFfk1Y1PymGgid+B/YmK442IcLq2sq3pkqwTnpY31K76wI8sheXVSGeKycksMg1I
-NY+5P9+csPtl/ARf09cjk3ynVUE03SHtkFV/yPcOsKMvmxkosrxuMcmFN7/Tq5cs
-ZaJK10/9ZJIgK5Q0kVsR58OQ6VjghKKO4745ogmcmpY987+PLOvuKmOc2U0de1Q7
-83qJuqjoEeffzAvDAg/fdgYBVMGL/pp10R8XYDLRUaTXP+PDY/uMuHO0rWfGwVYB
-vs+M8CjngRNZ9BE5IPod/AQe63XEuchWLCoi6Hewp0zQZL1oflU6Akw0CyMHrmc=
-=Rirp
+iEYEAREIAAYFAlIqHTYACgkQCaWpQKGI+9Qa+wCdGeFVceT3H7+Z1ZZqHz7Fp2/R
+hfcAnAoWl4PyrASFhsbF6t/v/25pZHIz
+=a3Lp
-----END PGP SIGNATURE-----
diff --git a/net-p2p/transmission/transmission-2.81-r1.ebuild b/net-p2p/transmission/transmission-2.81-r1.ebuild
new file mode 100644
index 000000000000..ca2f58cd9301
--- /dev/null
+++ b/net-p2p/transmission/transmission-2.81-r1.ebuild
@@ -0,0 +1,150 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/transmission/transmission-2.81-r1.ebuild,v 1.1 2013/09/06 18:21:41 pacho Exp $
+
+EAPI=5
+inherit autotools eutils fdo-mime gnome2-utils qt4-r2 systemd user
+
+DESCRIPTION="A Fast, Easy and Free BitTorrent client"
+HOMEPAGE="http://www.transmissionbt.com/"
+SRC_URI="http://download.transmissionbt.com/${PN}/files/${P}.tar.xz"
+
+LICENSE="GPL-2 MIT"
+SLOT=0
+IUSE="ayatana gtk lightweight systemd qt4 xfs"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux"
+
+RDEPEND="
+ >=dev-libs/libevent-2.0.10:=
+ dev-libs/openssl:0=
+ net-libs/libnatpmp:=
+ >=net-libs/miniupnpc-1.6.20120509:=
+ >=net-misc/curl-7.16.3:=[ssl]
+ sys-libs/zlib:=
+ gtk? (
+ >=dev-libs/dbus-glib-0.100:=
+ >=dev-libs/glib-2.36:2=
+ >=x11-libs/gtk+-3.4:3=
+ ayatana? ( >=dev-libs/libappindicator-0.4.90:3= )
+ )
+ systemd? ( sys-apps/systemd )
+ qt4? (
+ dev-qt/qtcore:4=
+ dev-qt/qtgui:4=
+ dev-qt/qtdbus:4=
+ )"
+
+DEPEND="${RDEPEND}
+ dev-libs/glib:2
+ dev-util/intltool
+ sys-devel/gettext
+ virtual/os-headers
+ virtual/pkgconfig
+ xfs? ( sys-fs/xfsprogs )"
+
+REQUIRED_USE="ayatana? ( gtk )"
+
+DOCS="AUTHORS NEWS qt/README.txt"
+
+pkg_setup() {
+ enewgroup ${PN}
+ enewuser ${PN} -1 -1 -1 ${PN}
+}
+
+src_prepare() {
+ sed -i -e '/CFLAGS/s:-ggdb3::' configure.ac || die
+ use ayatana || { sed -i -e '/^LIBAPPINDICATOR_MINIMUM/s:=.*:=9999:' configure.ac || die; }
+
+ # Pass our configuration dir to systemd unit file
+ sed -i '/ExecStart/ s|$| -g /var/transmission/config|' daemon/transmission-daemon.service || die
+
+ # http://trac.transmissionbt.com/ticket/4324
+ sed -i -e 's|noinst\(_PROGRAMS = $(TESTS)\)|check\1|' lib${PN}/Makefile.am || die
+
+ # fix for broken translations path
+ epatch "${FILESDIR}"/${PN}-2.80-translations-path-fix.patch
+
+ eautoreconf
+}
+
+src_configure() {
+ export ac_cv_header_xfs_xfs_h=$(usex xfs)
+
+ econf \
+ --enable-external-natpmp \
+ $(use_enable lightweight) \
+ $(use_with systemd systemd-daemon) \
+ $(use_with gtk)
+
+ if use qt4; then
+ pushd qt >/dev/null
+ eqmake4 qtr.pro
+ popd >/dev/null
+ fi
+}
+
+src_compile() {
+ emake
+
+ if use qt4; then
+ pushd qt >/dev/null
+ emake
+ lrelease translations/*.ts
+ popd >/dev/null
+ fi
+}
+
+src_install() {
+ default
+
+ rm -f "${ED}"/usr/share/${PN}/web/LICENSE
+
+ newinitd "${FILESDIR}"/${PN}-daemon.initd.8 ${PN}-daemon
+ newconfd "${FILESDIR}"/${PN}-daemon.confd.3 ${PN}-daemon
+ systemd_dounit "${S}/daemon/transmission-daemon.service"
+
+ keepdir /var/{${PN}/{config,downloads},log/${PN}}
+ fowners -R ${PN}:${PN} /var/{${PN}/{,config,downloads},log/${PN}}
+
+ if use qt4; then
+ pushd qt >/dev/null
+ emake INSTALL_ROOT="${ED}"/usr install
+
+ domenu ${PN}-qt.desktop
+
+ local res
+ for res in 16 22 24 32 48 64 72 96 128 192 256; do
+ doicon -s ${res} icons/hicolor/${res}x${res}/${PN}-qt.png
+ done
+ doicon -s scalable icons/hicolor/scalable/${PN}-qt.svg
+
+ insinto /usr/share/qt4/translations
+ doins translations/*.qm
+ popd >/dev/null
+ fi
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ gnome2_icon_cache_update
+
+ elog "If you use ${PN}-daemon, please, set 'rpc-username' and"
+ elog "'rpc-password' (in plain text, ${PN}-daemon will hash it on"
+ elog "start) in settings.json file located at /var/${PN}/config or"
+ elog "any other appropriate config directory."
+ elog
+ elog "Since µTP is enabled by default, ${PN} needs large kernel buffers for"
+ elog "the UDP socket. You can append following lines into /etc/sysctl.conf:"
+ elog " net.core.rmem_max = 4194304"
+ elog " net.core.wmem_max = 1048576"
+ elog "and run sysctl -p"
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ gnome2_icon_cache_update
+}
diff --git a/net-p2p/transmission/transmission-2.82-r1.ebuild b/net-p2p/transmission/transmission-2.82-r1.ebuild
new file mode 100644
index 000000000000..05bce7300b80
--- /dev/null
+++ b/net-p2p/transmission/transmission-2.82-r1.ebuild
@@ -0,0 +1,105 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/transmission/transmission-2.82-r1.ebuild,v 1.1 2013/09/06 18:21:41 pacho Exp $
+
+EAPI=5
+inherit autotools eutils fdo-mime gnome2-utils systemd user
+
+DESCRIPTION="A Fast, Easy and Free BitTorrent client"
+HOMEPAGE="http://www.transmissionbt.com/"
+SRC_URI="http://download.transmissionbt.com/${PN}/files/${P}.tar.xz"
+
+LICENSE="GPL-2 MIT"
+SLOT=0
+IUSE="ayatana gtk lightweight systemd xfs"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux"
+
+RDEPEND=">=dev-libs/libevent-2.0.10:=
+ dev-libs/openssl:0=
+ net-libs/libnatpmp:=
+ >=net-libs/miniupnpc-1.6.20120509:=
+ >=net-misc/curl-7.16.3:=[ssl]
+ sys-libs/zlib:=
+ gtk? (
+ >=dev-libs/dbus-glib-0.100:=
+ >=dev-libs/glib-2.32:2=
+ >=x11-libs/gtk+-3.4:3=
+ ayatana? ( >=dev-libs/libappindicator-0.4.90:3= )
+ )
+ systemd? ( sys-apps/systemd )"
+DEPEND="${RDEPEND}
+ dev-libs/glib:2
+ dev-util/intltool
+ sys-devel/gettext
+ virtual/os-headers
+ virtual/pkgconfig
+ xfs? ( sys-fs/xfsprogs )"
+
+REQUIRED_USE="ayatana? ( gtk )"
+
+DOCS="AUTHORS NEWS"
+
+pkg_setup() {
+ enewgroup ${PN}
+ enewuser ${PN} -1 -1 -1 ${PN}
+}
+
+src_prepare() {
+ sed -i -e '/CFLAGS/s:-ggdb3::' configure.ac || die
+ use ayatana || { sed -i -e '/^LIBAPPINDICATOR_MINIMUM/s:=.*:=9999:' configure.ac || die; }
+
+ # Pass our configuration dir to systemd unit file
+ sed -i '/ExecStart/ s|$| -g /var/transmission/config|' daemon/transmission-daemon.service || die
+
+ # http://trac.transmissionbt.com/ticket/4324
+ sed -i -e 's|noinst\(_PROGRAMS = $(TESTS)\)|check\1|' lib${PN}/Makefile.am || die
+ eautoreconf
+}
+
+src_configure() {
+ export ac_cv_header_xfs_xfs_h=$(usex xfs)
+
+ econf \
+ --enable-external-natpmp \
+ $(use_enable lightweight) \
+ $(use_with systemd systemd-daemon) \
+ $(use_with gtk)
+}
+
+src_install() {
+ default
+
+ rm -f "${ED}"/usr/share/${PN}/web/LICENSE
+
+ newinitd "${FILESDIR}"/${PN}-daemon.initd.8 ${PN}-daemon
+ newconfd "${FILESDIR}"/${PN}-daemon.confd.3 ${PN}-daemon
+ systemd_dounit "${S}/daemon/transmission-daemon.service"
+
+ keepdir /var/{${PN}/{config,downloads},log/${PN}}
+ fowners -R ${PN}:${PN} /var/{${PN}/{,config,downloads},log/${PN}}
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ gnome2_icon_cache_update
+
+ elog "If you use ${PN}-daemon, please, set 'rpc-username' and"
+ elog "'rpc-password' (in plain text, ${PN}-daemon will hash it on"
+ elog "start) in settings.json file located at /var/${PN}/config or"
+ elog "any other appropriate config directory."
+ elog
+ elog "Since µTP is enabled by default, ${PN} needs large kernel buffers for"
+ elog "the UDP socket. You can append following lines into /etc/sysctl.conf:"
+ elog " net.core.rmem_max = 4194304"
+ elog " net.core.wmem_max = 1048576"
+ elog "and run sysctl -p"
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ gnome2_icon_cache_update
+}