diff options
author | Daniel de Oliveira <menelkir@itroll.org> | 2010-06-09 00:09:45 -0300 |
---|---|---|
committer | Daniel de Oliveira <menelkir@itroll.org> | 2010-06-09 00:09:45 -0300 |
commit | 1f3265d618709c64ca9ae07b6b6ad8c6bd6c5364 (patch) | |
tree | f5f9abfd1b873fa3695261ebc6058cf6bf03c8ae | |
parent | deleted: profiles/thirdpartymirrors (diff) | |
download | menelkir-1f3265d618709c64ca9ae07b6b6ad8c6bd6c5364.tar.gz menelkir-1f3265d618709c64ca9ae07b6b6ad8c6bd6c5364.tar.bz2 menelkir-1f3265d618709c64ca9ae07b6b6ad8c6bd6c5364.zip |
new file: net-p2p/transmission/ChangeLog
new file: net-p2p/transmission/Manifest
new file: net-p2p/transmission/files/transmission-daemon.confd.1
new file: net-p2p/transmission/files/transmission-daemon.initd.2
new file: net-p2p/transmission/metadata.xml
new file: net-p2p/transmission/transmission-9999.ebuild
-rw-r--r-- | net-p2p/transmission/ChangeLog | 9 | ||||
-rw-r--r-- | net-p2p/transmission/Manifest | 5 | ||||
-rw-r--r-- | net-p2p/transmission/files/transmission-daemon.confd.1 | 67 | ||||
-rw-r--r-- | net-p2p/transmission/files/transmission-daemon.initd.2 | 136 | ||||
-rw-r--r-- | net-p2p/transmission/metadata.xml | 12 | ||||
-rw-r--r-- | net-p2p/transmission/transmission-9999.ebuild | 118 |
6 files changed, 347 insertions, 0 deletions
diff --git a/net-p2p/transmission/ChangeLog b/net-p2p/transmission/ChangeLog new file mode 100644 index 0000000..9d7eb37 --- /dev/null +++ b/net-p2p/transmission/ChangeLog @@ -0,0 +1,9 @@ +# ChangeLog for net-p2p/transmission +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-p2p/transmission/ChangeLog,v 1.114 2010/05/18 09:26:34 pva Exp $ + +*transmission-2.00b2 (08 Jun 2010) + + 08 Jun 2010; Daniel de Oliveira <menelkir@itroll.org> +transmission-2.00b2.ebuild: + First Beta Release + diff --git a/net-p2p/transmission/Manifest b/net-p2p/transmission/Manifest new file mode 100644 index 0000000..8e5d88b --- /dev/null +++ b/net-p2p/transmission/Manifest @@ -0,0 +1,5 @@ +AUX transmission-daemon.confd.1 1519 RMD160 decaf106064e8c393fce35758d6dc63e8302cc5c SHA1 372fd7f999a1c2f14fb24a8fe40094013774f673 SHA256 45ed8e0b966267d671acaff7d130cd843ba7aeac6773db2564e2aa9b2cbc2149 +AUX transmission-daemon.initd.2 3953 RMD160 f78589fe9de1db4160aa7c6333cef1fc835c0888 SHA1 7ca57cd2135688d27401441667cc373e22434bd1 SHA256 0266ecb32e9a359b078a61c8ba40413d9d222b6622b6f7d5e8fc0a4e2ed7587d +EBUILD transmission-9999.ebuild 2726 RMD160 68120615b257c9291114d21d292c7362a5b21d85 SHA1 9ba1082c5fb4772a31c992390ee944e094b95c38 SHA256 2c6fca12abe4cf8bd770e2f3d1e27b20069006e81283022844eee5b1959a90a6 +MISC ChangeLog 357 RMD160 90cbb8ce3fafb3860bb23066f4c99eb1989051ae SHA1 bc19ffca1321863320041cb2e13e3695fd5f42cf SHA256 2c4f64ff74f25b52672f389a1aa1b7a9d4e9dfe6d98498df52c7c337303c8454 +MISC metadata.xml 337 RMD160 2aa52e192b9a415398483dea7e0fc6b6f850d1be SHA1 10ad3c58f3429af041cba26c44f9a9dbc8dde8b9 SHA256 ac01cda5fda387efbe57bdcd8783a2e897d4941f5dea4f2161eb5ca42df46d52 diff --git a/net-p2p/transmission/files/transmission-daemon.confd.1 b/net-p2p/transmission/files/transmission-daemon.confd.1 new file mode 100644 index 0000000..28674dd --- /dev/null +++ b/net-p2p/transmission/files/transmission-daemon.confd.1 @@ -0,0 +1,67 @@ +# This is the transmission-daemon config file +# Default settings are commented, uncomment and adapt as needed + +# Allowed IP addresses. +#allowed=127.0.0.1 + +# Enable peer blocklists (yes or no) +#blocklist=no + +# Directory to watch for new .torrent files (empty string to disable) +#watch_dir= + +# Where to look for configuration files +#config_dir=/var/transmission/config + +# RPC port +#port=9091 + +# Require authentication (yes or no) +#auth=no + +# Set username for authentication (only used when auth=yes) +#username= + +# Set password for authentication (only used when auth=yes) +#password= + +# Where to save downloaded data +#download_dir=/var/transmission/downloads + +# Port for incoming peers +#peerport=51413 + +# Enable portmapping via NAT-PMP or UPnP (yes or no) +#portmap=no + +# Maximum overall number of peers +#peerlimit_global=240 + +# Maximum number of peers per torrent +#peerlimit_torrent=60 + +# How to encrypt peer connections (required, preferred, tolerated) +#encryption=preferred + +# Where to listen for peer connections (ipv4 address) +#bind_address_ipv4= + +# Where to listen for peer connections (ipv6 address) +#bind_address_ipv6= + +# Where to listen for RPC connections +#rpc_bind_address= + +# Misc. settings + + +# Location of pidfile +#pidfile=/var/run/transmission.pid + +# Location of logfile +# (Note: works only on systems with sys-apps/openrc, leave unset otherwise) +#logfile= + +# Run daemon as another user (username or username:groupname) +# (Note: works only on systems with sys-apps/openrc, leave unset otherwise) +#runas_user= diff --git a/net-p2p/transmission/files/transmission-daemon.initd.2 b/net-p2p/transmission/files/transmission-daemon.initd.2 new file mode 100644 index 0000000..f68c3f6 --- /dev/null +++ b/net-p2p/transmission/files/transmission-daemon.initd.2 @@ -0,0 +1,136 @@ +#!/sbin/runscript +# Copyright 1999-2009 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.2,v 1.1 2009/06/20 12:55:37 ssuominen Exp $ + +# Read options from conf.d file, or set sensible defaults +allowed=${allowed:-127.0.0.1} +blocklist=${blocklist:-no} +watch_dir=${watch_dir:-} +config_dir=${config_dir:-/var/transmission/config} +port=${port:-9091} +auth=${auth:-no} +username=${username:-} +password=${password:-} +download_dir=${download_dir:=/var/transmission/downloads} +peerport=${peerport:-51413} +portmap=${portmap:-no} +peerlimit_global=${peerlimit_global:-240} +peerlimit_torrent=${peerlimit_torrent:-60} +encryption=${encryption:-preferred} +bind_address_ipv4=${bind_address_ipv4:-} +bind_address_ipv6=${bind_address_ipv6:-} +rpc_bind_address=${rpc_bind_address:-} + +# Misc options +pidfile=${pidfile:-/var/run/transmission.pid} +logfile=${logfile:-} +runas_user=${runas_user:-} + + +# Convert settings into stuff that transmission-daemon can grok as arguments +allowed_opt="--allowed ${allowed}" + +blocklist_opt="--no-blocklist" +if [ "x${blocklist}" = "xyes" ]; then + blocklist_opt="--blocklist" +fi + +watch_dir_opt="--no-watch-dir" +if [ -n "${watch_dir}" ]; then + watch_dir_opt="--watch-dir ${watch_dir}" +fi + +config_dir_opt="--config-dir ${config_dir}" + +port_opt="--port ${port}" + +auth_opt="--no-auth" +username_opt="" +password_opt="" +if [ "x${auth}" = "xyes" ]; then + auth_opt="--auth" + # Set username and password also + username_opt="--username ${username}" + password_opt="--password ${password}" +fi + +download_dir_opt="--download-dir ${download_dir}" + +peerport_opt="--peerport ${peerport}" + +portmap_opt="--no-portmap" +if [ "x${portmap}" = "xyes" ]; then + portmap_opt="--portmap" +fi + +peerlimit_global_opt="--peerlimit-global ${peerlimit_global}" + +peerlimit_torrent_opt="--peerlimit-torrent ${peerlimit_torrent}" + +case "${encryption}" in + 'required') encryption_opt="--encryption-required" ;; + 'tolerated') encryption_opt="--encryption-tolerated" ;; + *) encryption_opt="--encryption-preferred" ;; +esac + +bind_address_ipv4_opt="" +if [ -n "${bind_address_ipv4}" ]; then + bind_address_ipv4_opt="--bind-address-ipv4 ${bind_address_ipv4}" +fi + +bind_address_ipv6_opt="" +if [ -n "${bind_address_ipv6}" ]; then + bind_address_ipv6_opt="--bind-address-ipv6 ${bind_address_ipv6}" +fi + +rpc_bind_address_opt="" +if [ -n "${rpc_bind_address}" ]; then + rpc_bind_address_opt="--rpc-bind-address ${rpc_bind_address}" +fi + +# Note: works only on systems with sys-apps/openrc +logfile_opt="" +if [ -n "${logfile}" ]; then + logfile_opt="--stdout ${logfile} --stderr ${logfile}" +fi + +# Note: works only on systems with sys-apps/openrc +# This could be done in baselayout-1 with --chuid, but since +# openrc detection is vague at best (b.g.o #270646), just ignore it. +runas_user_opt="" +if [ -n "${runas_user}" ]; then + runas_user_opt="--user ${runas_user}" +fi + +# Actual init script stuff below this line + +opts="start stop" +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" + +depend() { + need net +} + +start() { + ebegin "Starting transmission daemon" + start-stop-daemon --start --quiet --background --make-pidfile \ + --pidfile ${pidfile} ${runas_user_opt} \ + ${logfile_opt} --exec \ + /usr/bin/transmission-daemon -- --foreground ${allowed_opt} \ + ${blocklist_opt} ${watch_dir_opt} ${config_dir_opt} ${port_opt} \ + ${auth_opt} ${username_opt} ${password_opt} ${download_dir_opt} \ + ${peerport_opt} ${portmap_opt} ${peerlimit_global_opt} \ + ${peerlimit_torrent_opt} ${encryption_opt} \ + ${bind_address_ipv4_opt} ${bind_address_ipv6_opt} ${rpc_bind_address_opt} + eend $? +} + +stop() { + ebegin "Stopping transmission daemon" + start-stop-daemon --stop --quiet --retry TERM/45/QUIT/15 \ + --pidfile ${pidfile} + eend $? +} diff --git a/net-p2p/transmission/metadata.xml b/net-p2p/transmission/metadata.xml new file mode 100644 index 0000000..82a8ab8 --- /dev/null +++ b/net-p2p/transmission/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>menelkir</herd> +<maintainer> + <email>menelkir@itroll.org</email> + <name>Daniel de Oliveira</name> +</maintainer> +<longdescription> +</longdescription> + A Fast, Easy and Free BitTorrent client. +</pkgmetadata> diff --git a/net-p2p/transmission/transmission-9999.ebuild b/net-p2p/transmission/transmission-9999.ebuild new file mode 100644 index 0000000..f19eddc --- /dev/null +++ b/net-p2p/transmission/transmission-9999.ebuild @@ -0,0 +1,118 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /home/menelkir/portage/net-p2p/transmission/transmission-2.00b2.ebuild,v 1.1 2010/06/08 23:26:34 menelkir Exp $ + +EAPI=2 +inherit autotools eutils fdo-mime gnome2-utils qt4-r2 subversion + +DESCRIPTION="A Fast, Easy and Free BitTorrent client" +HOMEPAGE="http://www.transmissionbt.com/" +ESVN_REPO_URI="svn://svn.transmissionbt.com/Transmission/trunk" +ESVN_PROJECT="Transmission" +ESVN_BOOTSTRAP="TZ=UTC svn log -v \"\${ESVN_REPO_URI}\" >\"\${S}\"/ChangeLog; NOCONFIGURE=1 ./autogen.sh" + + +LICENSE="MIT GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~x86 ~x86-fbsd" +IUSE="gnome gtk libnotify sound qt4" + +RDEPEND=" + sys-libs/zlib + >=dev-libs/libevent-1.4.11 + <dev-libs/libevent-2 + >=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 )" +DEPEND="${RDEPEND} + >=sys-devel/libtool-2.2.6b + sys-devel/gettext + >=dev-util/intltool-0.40 + dev-util/pkgconfig + sys-apps/sed" + +src_prepare() { + sed -i \ + -e 's:-g -O0::g' \ + -e 's:-g -O3::g' \ + -e 's:-ggdb3::g' \ + configure.ac || die + + sed -i \ + -e 's:$${TRANSMISSION_TOP}/third-party/libevent/.libs/libevent.a:-levent:' \ + qt/qtr.pro || die + + eautoreconf +} + +src_configure() { + local myconf="--disable-libnotify --disable-libcanberra --disable-libgconf" + + if use gtk; then + myconf="$(use_enable libnotify) + $(use_enable sound libcanberra) + $(use_enable gnome libgconf)" + fi + + # cli and daemon doesn't have external deps + econf \ + --disable-dependency-tracking \ + $(use_enable gtk) \ + --enable-cli \ + --enable-daemon \ + ${myconf} + + if use qt4; then + cd qt + eqmake4 qtr.pro + fi +} + +src_compile() { + emake || die + + if use qt4; then + cd qt + emake || die + fi +} + +src_install() { + emake DESTDIR="${D}" install || die + + dodoc AUTHORS NEWS qt/README.txt + rm -f "${D}"/usr/share/${PN}/web/LICENSE + + # these are likely outdated for 1.83 + newinitd "${FILESDIR}"/${PN}-daemon.initd.2 ${PN}-daemon || die + newconfd "${FILESDIR}"/${PN}-daemon.confd.1 ${PN}-daemon || die + + if use qt4; then + cd qt + emake INSTALL_ROOT="${D}/usr" install || die + make_desktop_entry qtr "Transmission Qt BitTorrent Client" ${PN} \ + "Network;FileTransfer;P2P;Qt" + use gtk || doicon qt/icons/transmission.png + fi +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + fdo-mime_desktop_database_update + gnome2_icon_cache_update +} + +pkg_postrm() { + fdo-mime_desktop_database_update + gnome2_icon_cache_update +} |