summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Volkov <pva@gentoo.org>2011-02-12 01:47:49 +0000
committerPeter Volkov <pva@gentoo.org>2011-02-12 01:47:49 +0000
commit809e078d1650c734d517a5ac9b43901ee73c8dc5 (patch)
treefd413fc98712dd345d90500e4cd76f0bbd849b00 /net-p2p
parentMasked =net-p2p/transmission-2.21 as it depends on libevent-2. (diff)
downloadhistorical-809e078d1650c734d517a5ac9b43901ee73c8dc5.tar.gz
historical-809e078d1650c734d517a5ac9b43901ee73c8dc5.tar.bz2
historical-809e078d1650c734d517a5ac9b43901ee73c8dc5.zip
Version bump, #351399, now it is compatible (actually depends) with libevent-2, thank Anthony Basile for report. Added possibility to use syslog, #349803, thank Maxime de Roucy for report and feedback. Added ewarn for dropping permissions until better solution will be found, #349867, thank Tony Levi for report.
Package-Manager: portage-2.1.9.39/cvs/Linux x86_64
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/transmission/ChangeLog12
-rw-r--r--net-p2p/transmission/Manifest6
-rw-r--r--net-p2p/transmission/files/transmission-daemon.confd.314
-rw-r--r--net-p2p/transmission/files/transmission-daemon.initd.672
-rw-r--r--net-p2p/transmission/transmission-2.21.ebuild137
5 files changed, 239 insertions, 2 deletions
diff --git a/net-p2p/transmission/ChangeLog b/net-p2p/transmission/ChangeLog
index 8f1d59d6fb3c..43b60fdbc059 100644
--- a/net-p2p/transmission/ChangeLog
+++ b/net-p2p/transmission/ChangeLog
@@ -1,6 +1,16 @@
# ChangeLog for net-p2p/transmission
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/transmission/ChangeLog,v 1.138 2011/01/29 14:10:41 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/transmission/ChangeLog,v 1.139 2011/02/12 01:47:49 pva Exp $
+
+*transmission-2.21 (12 Feb 2011)
+
+ 12 Feb 2011; Peter Volkov <pva@gentoo.org> +transmission-2.21.ebuild,
+ +files/transmission-daemon.confd.3, +files/transmission-daemon.initd.6:
+ Version bump, #351399, now it is compatible (actually depends) with
+ libevent-2, thank Anthony Basile for report. Added possibility to use syslog,
+ #349803, thank Maxime de Roucy for report and feedback. Added ewarn for
+ dropping permissions until better solution will be found, #349867, thank Tony
+ Levi for report.
29 Jan 2011; Samuli Suominen <ssuominen@gentoo.org> transmission-2.13.ebuild,
+files/transmission-2.13-libnotify-0.7.patch:
diff --git a/net-p2p/transmission/Manifest b/net-p2p/transmission/Manifest
index e48c2fcfc2fb..4ddec45495dc 100644
--- a/net-p2p/transmission/Manifest
+++ b/net-p2p/transmission/Manifest
@@ -1,13 +1,17 @@
AUX transmission-2.13-libnotify-0.7.patch 778 RMD160 38fd9d9805813c8f18ea69035cd2e894f34400a5 SHA1 fb4874be90afe7faa09f9a4b7ee6b893a5c70cfe SHA256 02e9b3e8fd7845aa2331d772c31298c1c265164a9a184747de97d3e9ec22fb0c
AUX transmission-daemon.confd.1 1519 RMD160 decaf106064e8c393fce35758d6dc63e8302cc5c SHA1 372fd7f999a1c2f14fb24a8fe40094013774f673 SHA256 45ed8e0b966267d671acaff7d130cd843ba7aeac6773db2564e2aa9b2cbc2149
AUX transmission-daemon.confd.2 656 RMD160 1d3a773fe7d8fc22ccda8737f70c677029484380 SHA1 8bb0ce3e739ec68e8f0b77ef341d25787e314efc SHA256 cc59f72d0048467aeac9199f1cc6a771a45176b65bc2e374bc9e1980faf3dcb8
+AUX transmission-daemon.confd.3 703 RMD160 482953d2bd8e9c69300af3389615764649954a63 SHA1 a4d16dde4e2408b48620cc89c4a8759b042797f2 SHA256 4b47acf195a14a322550cfcaa735a59aac38410d1c2c63ffa824ff131c55ca70
AUX transmission-daemon.initd.2 3953 RMD160 f78589fe9de1db4160aa7c6333cef1fc835c0888 SHA1 7ca57cd2135688d27401441667cc373e22434bd1 SHA256 0266ecb32e9a359b078a61c8ba40413d9d222b6622b6f7d5e8fc0a4e2ed7587d
AUX transmission-daemon.initd.5 2166 RMD160 0f1431b3abd6d3123357d3434413ab70a1737eff SHA1 8750d78adc26b7d80af3425799095386b40ce535 SHA256 b16a630667adb3f22446db0bbd626a52f8cd56309b49356e6bab75f0334501e1
+AUX transmission-daemon.initd.6 2209 RMD160 2ed6f67e83a04eef148b39204dc4a6281bff0680 SHA1 4c6c0ce20d71e398b7254332e3afef6349f1f8a0 SHA256 61ece2b8307b0ee7ce637428f6871176f03873eff1871f34baf8c2627982f36a
DIST transmission-2.04.tar.bz2 4264035 RMD160 977ff093125dbc692af1fa73c3a0729e0ed10d54 SHA1 301e22eeeb985782b61202deb1c36a883357fcc6 SHA256 c0010ee3f4d93d737da732bceb4e640dc404b0e7659980fb10dafb5bb0a83b4f
DIST transmission-2.12.tar.bz2 4224230 RMD160 cf37a24bb2dabf4ab29c1440d708ead4a19ad279 SHA1 aa1bbcd88b150cf00ff93b2fcb4f7e953aec04c5 SHA256 4aebc21454602629a98f34ca2eca94355fbc6141603c1caecd03468751e2d760
DIST transmission-2.13.tar.bz2 4268363 RMD160 bcb91ef86b800f2bb7227592e8955d2ab1885c5c SHA1 2b2fa73d1d02d9617ec9f589053901d09d4d0ba4 SHA256 73466cbfd12dca16b169d3acb5cf7177f740cffa6573a837a06c994245eeb7a2
+DIST transmission-2.21.tar.bz2 4807442 RMD160 aa6d3e49458ccfbd64c00db92c45b30e162aca09 SHA1 3ba31cf859082ab9466b0c1b601312f6c3a32892 SHA256 6f136a0c715389575ae556b4b9da459fe5ae706b91833bf9ccb35621f6d4daa9
EBUILD transmission-2.04-r1.ebuild 2301 RMD160 f20cf81c208c71ef638314e3a703cfab9695bed7 SHA1 699db7000faa7793193d12e3be5f52e715d03628 SHA256 5c19d06825fd88233e864a6cf25adf0d1812d447f0b2b88a5235c9169728e934
EBUILD transmission-2.12.ebuild 3688 RMD160 e161fb9a79f0556fab3add42edb491a1ac8502b2 SHA1 6d5d641dbfc3d36270a8834412e14829e4535a1d SHA256 a6e2d84323d86b8cddf01b773b9fef2d6b2f776c58e82d4c190744fc64ffd6e8
EBUILD transmission-2.13.ebuild 3739 RMD160 e85a98934c08897c21e1612e4348f50f0a55600a SHA1 3f4b8b8325d39176a2213b4b135f4f9c30e35fe6 SHA256 7f87bfd216fb2a184fc0b6e47cdb67579c811958fa41ab5c4dca41f1b961ce0a
-MISC ChangeLog 22289 RMD160 954c0e82b15e402e066891cafebdc5c2b3b6a6b2 SHA1 d8a9349be16d6f1b0ee54af78d7fe515ac40378f SHA256 5ce10bed41ec0b2cf79d1703acc1ce8c3f945034468f74ace5ee828f102be638
+EBUILD transmission-2.21.ebuild 3902 RMD160 72428a51e52ddd65bc925f72daaea587502f9251 SHA1 2b2bc4672587978db36cfde4f76f40e024ef0aea SHA256 940324d6ee141c6b30f7317de43abb699713aad526227915b7b3102e5963345f
+MISC ChangeLog 22787 RMD160 010ef68d97cff6158fae48df7c9511f7c58b1005 SHA1 a17fef5ac3ad0661ed1bab9b5683f7d4ae7714ad SHA256 0c7e0fb2d7eb69b129d4f197c8fac8f6cc82df50cdf648aaeaed207d40aa722c
MISC metadata.xml 364 RMD160 be00dd8262b7de7ff847c0b8924ad0187cdcfc77 SHA1 86255961e5a1afb9a40ee375d8e942925c472b67 SHA256 e50226e57b5eeb05c307c7fb9f728881f28241696ca8d0b1d42bc1faadde5e23
diff --git a/net-p2p/transmission/files/transmission-daemon.confd.3 b/net-p2p/transmission/files/transmission-daemon.confd.3
new file mode 100644
index 000000000000..fcf37c7912dc
--- /dev/null
+++ b/net-p2p/transmission/files/transmission-daemon.confd.3
@@ -0,0 +1,14 @@
+# This is the transmission-daemon configuration file. For other options and
+# better explanation, take a look at transmission-daemon manual page Note: it's
+# better to configure some settings (like username/password) in
+# /var/transmission/config/settings.json to avoid other users see it with `ps`
+
+TRANSMISSION_OPTIONS="--encryption-preferred"
+
+# Run daemon as another user (username or username:groupname)
+# If you change this setting, chown -R /var/transmission/config <and download directory, check web settings>
+#runas_user=transmission
+
+# Location of logfile (should be writeable for runas_user user)
+# Set logfile=syslog to use syslog for logging
+#logfile=/var/log/transmission/transmission.log
diff --git a/net-p2p/transmission/files/transmission-daemon.initd.6 b/net-p2p/transmission/files/transmission-daemon.initd.6
new file mode 100644
index 000000000000..dc7f1729ef03
--- /dev/null
+++ b/net-p2p/transmission/files/transmission-daemon.initd.6
@@ -0,0 +1,72 @@
+#!/sbin/runscript
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/transmission/files/transmission-daemon.initd.6,v 1.1 2011/02/12 01:47:49 pva Exp $
+
+opts="start stop reload"
+description="Transmission is a fast, easy and free bittorrent client"
+description_start="Start transmission-daemon server and web interface"
+description_stop="Stop transmission-daemon server and web interface"
+description_reload="Reload transmission-daemon settings"
+
+pidfile=/var/run/transmission/transmission.pid
+config_dir=/var/transmission/config
+download_dir=/var/transmission/downloads
+logfile=${logfile:-/var/log/transmission/transmission.log}
+runas_user=${runas_user:-transmission:transmission}
+
+SSD_OPTIONS=""
+
+depend() {
+ need net
+}
+
+check_config() {
+ if [ ! -d /var/run/transmission/ ]; then
+ mkdir /var/run/transmission/
+ if [ -n "${runas_user}" ]; then
+ chown -R ${runas_user} /var/run/transmission/
+ fi
+ fi
+
+ # In case no config directory option passed use default
+ if ! $(echo ${TRANSMISSION_OPTIONS} | grep -q -e '\B-g' -e '\B--config-dir'); then
+ TRANSMISSION_OPTIONS="${TRANSMISSION_OPTIONS} --config-dir ${config_dir}"
+ # put download dir location on first run (and take it from config later)
+ if [ ! -f ${config_dir}/settings.json ]; then
+ TRANSMISSION_OPTIONS="${TRANSMISSION_OPTIONS} --download-dir ${download_dir}"
+ fi
+ fi
+
+ if [ -n "${runas_user}" ]; then
+ if [ -f /etc/init.d/sysfs ]; then
+ SSD_OPTIONS="${SSD_OPTIONS} --user ${runas_user}"
+ else
+ SSD_OPTIONS="${SSD_OPTIONS} --chuid ${runas_user}"
+ fi
+ fi
+}
+
+start() {
+ check_config
+
+ ebegin "Starting transmission daemon"
+ start-stop-daemon --start --quiet --background --pidfile ${pidfile} ${SSD_OPTIONS} \
+ --exec /usr/bin/transmission-daemon -- --pid-file ${pidfile} \
+ $(test ${logfile} != "syslog" && echo --logfile ${logfile}) \
+ ${TRANSMISSION_OPTIONS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping transmission daemon"
+ start-stop-daemon --stop --quiet --retry TERM/45/QUIT/15 --pidfile ${pidfile}
+ eend $?
+}
+
+reload() {
+ ebegin "Reloading transmission configuration"
+ start-stop-daemon --signal HUP --pidfile ${pidfile}
+ eend $?
+}
+
diff --git a/net-p2p/transmission/transmission-2.21.ebuild b/net-p2p/transmission/transmission-2.21.ebuild
new file mode 100644
index 000000000000..5705226f4d08
--- /dev/null
+++ b/net-p2p/transmission/transmission-2.21.ebuild
@@ -0,0 +1,137 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/transmission/transmission-2.21.ebuild,v 1.1 2011/02/12 01:47:49 pva Exp $
+
+EAPI=2
+inherit eutils fdo-mime gnome2-utils qt4-r2
+
+DESCRIPTION="A Fast, Easy and Free BitTorrent client"
+HOMEPAGE="http://www.transmissionbt.com/"
+SRC_URI="http://download.transmissionbt.com/${PN}/files/${P}.tar.bz2"
+
+LICENSE="MIT GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~x86-fbsd"
+IUSE="gnome gtk kde libnotify sound qt4"
+
+RDEPEND="
+ sys-libs/zlib
+ >=dev-libs/libevent-2.0.10
+ >=dev-libs/openssl-0.9.4
+ || ( >=net-misc/curl-7.16.3[ssl]
+ >=net-misc/curl-7.16.3[gnutls] )
+ gtk? ( >=dev-libs/glib-2.15.5:2
+ >=x11-libs/gtk+-2.12:2
+ >=dev-libs/dbus-glib-0.70
+ gnome? ( >=gnome-base/gconf-2.20.0 )
+ libnotify? ( >=x11-libs/libnotify-0.4.3 )
+ sound? ( >=media-libs/libcanberra-0.10 ) )
+ qt4? ( x11-libs/qt-gui:4[dbus] )"
+DEPEND="${RDEPEND}
+ >=sys-devel/libtool-2.2.6b
+ sys-devel/gettext
+ >=dev-util/intltool-0.40
+ dev-util/pkgconfig
+ sys-apps/sed"
+
+pkg_setup() {
+ enewgroup transmission
+ enewuser transmission -1 -1 -1 transmission
+}
+
+src_prepare() {
+ sed -i -e 's:-ggdb3::g' configure || die
+ # Magnet link support
+ if use kde; then
+ cat > qt/transmission-magnet.protocol <<-EOF
+ [Protocol]
+ exec=transmission-qt '%u'
+ protocol=magnet
+ Icon=transmission
+ input=none
+ output=none
+ helper=true
+ listing=
+ reading=false
+ writing=false
+ makedir=false
+ deleting=false
+ EOF
+ fi
+}
+
+src_configure() {
+ # cli and daemon doesn't have external deps and are enabled by default
+ econf \
+ --disable-dependency-tracking \
+ $(use_enable gtk) \
+ $(use gtk && use_enable libnotify) \
+ $(use gtk && use_enable sound libcanberra) \
+ $(use gtk && use_enable gnome gconf2)
+
+ use qt4 && cd qt && eqmake4 qtr.pro
+}
+
+src_compile() {
+ emake || die
+ use qt4 && cd qt && { emake || die; }
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ dodoc AUTHORS NEWS qt/README.txt
+ rm -f "${D}"/usr/share/${PN}/web/LICENSE
+
+ newinitd "${FILESDIR}"/${PN}-daemon.initd.6 ${PN}-daemon || die
+ newconfd "${FILESDIR}"/${PN}-daemon.confd.3 ${PN}-daemon || die
+
+ keepdir /var/{transmission/{config,downloads},log/transmission}
+ fowners -R transmission:transmission /var/{transmission/{,config,downloads},log/transmission}
+
+ if use qt4; then
+ cd qt
+ emake INSTALL_ROOT="${D}/usr" install || die
+ insinto /usr/share/applications/
+ doins transmission-qt.desktop || die
+ mv icons/transmission{,-qt}.png
+ doicon icons/transmission-qt.png || die
+ if use kde; then
+ insinto /usr/share/kde4/services/
+ doins transmission-magnet.protocol || die
+ fi
+ fi
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ gnome2_icon_cache_update
+
+ # Keep default permissions on default dirs
+ einfo "Seting owners of /var/{transmission/{,config,downloads},log/transmission}"
+ chown -R transmission:transmission /var/{transmission/{,config,downloads},log/transmission}
+
+ ewarn "If you use transmission-daemon, please, set 'rpc-username' and"
+ ewarn "'rpc-password' (in plain text, transmission-daemon will hash it on"
+ ewarn "start) in settings.json file located at /var/transmission/config or"
+ ewarn "any other appropriate config directory."
+ ewarn
+ ewarn "You must change download location after you change a user daemon"
+ ewarn "starts as, or it'll refuse to start, see bug #349867 for details."
+
+ if use gtk; then
+ elog 'If you want magnet link support in gnome run this commands:'
+ elog 'gconftool-2 -t string -s /desktop/gnome/url-handlers/magnet/command "/usr/bin/transmission-gtk %s"'
+ elog 'gconftool-2 -s /desktop/gnome/url-handlers/magnet/needs_terminal false -t bool'
+ elog 'gconftool-2 -t bool -s /desktop/gnome/url-handlers/magnet/enabled true'
+ fi
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ gnome2_icon_cache_update
+}