From e8abb760a6703b527a8d9794c591713ce27240c3 Mon Sep 17 00:00:00 2001 From: Cecil Hugh Watson <knoppmyth@gmail.com> Date: Tue, 3 Feb 2009 17:05:30 -0800 Subject: Bittorent CLI client. --- .../community/transmission-cli/ChangeLog | 60 ++++++++++++++++++++++ .../community/transmission-cli/PKGBUILD | 35 +++++++++++++ .../transmission-cli/transmission-cli.install | 9 ++++ .../community/transmission-cli/transmissiond | 37 +++++++++++++ .../community/transmission-cli/transmissiond.conf | 1 + 5 files changed, 142 insertions(+) create mode 100644 abs/extra-testing/community/transmission-cli/ChangeLog create mode 100644 abs/extra-testing/community/transmission-cli/PKGBUILD create mode 100644 abs/extra-testing/community/transmission-cli/transmission-cli.install create mode 100644 abs/extra-testing/community/transmission-cli/transmissiond create mode 100644 abs/extra-testing/community/transmission-cli/transmissiond.conf diff --git a/abs/extra-testing/community/transmission-cli/ChangeLog b/abs/extra-testing/community/transmission-cli/ChangeLog new file mode 100644 index 0000000..57a8a01 --- /dev/null +++ b/abs/extra-testing/community/transmission-cli/ChangeLog @@ -0,0 +1,60 @@ +2008-12-27 Alexander Fehr <pizzapunk gmail com> + + * transmission-cli-1.42-1: + New upstream release. + +2008-11-26 Alexander Fehr <pizzapunk gmail com> + + * transmission-cli-1.40-1: + New upstream release. + Enabled web client. + +2008-09-17 Alexander Fehr <pizzapunk gmail com> + + * transmission-cli-1.34-1: + New upstream release. + +2008-08-23 Alexander Fehr <pizzapunk gmail com> + + * transmission-cli-1.33-1: + New upstream release. + +2008-08-09 Alexander Fehr <pizzapunk gmail com> + + * transmission-cli-1.32-1: + New upstream release. + +2008-08-07 Alexander Fehr <pizzapunk gmail com> + + * transmission-cli-1.31-1: + New upstream release. + Replaced transmission-remote -q with kill in init script. + Removed install message on upgrade. + +2008-07-20 Alexander Fehr <pizzapunk gmail com> + + * transmission-cli-1.22-1: + New upstream release. + Renamed from transmission to transmission-cli. + New maintainer. + Split out GTK+ GUI into transmission-gtk. + Changed url. + Added make dependency on intltool. + Cleaned up init script. + Cleaned up install file. + +2008-01-07 Varun Acharya <varun@archlinux.org> + + * transmission-1.00-1: + Adopted and moved to extra. + +2007-06-26 Alessio 'mOLOk' Bolognino <themolok@gmail.com> + + * transmission-0.72-4: + I had to use gentoo's sources because the tarball provided by the official site is broken. + transmission-{daemon,remote} are back. + +2007-06-19 Alessio 'mOLOk' Bolognino <themolok@gmail.com> + + * transmission-0.72-3: + Rebuild against libevent-1.3b. diff --git a/abs/extra-testing/community/transmission-cli/PKGBUILD b/abs/extra-testing/community/transmission-cli/PKGBUILD new file mode 100644 index 0000000..a3791fc --- /dev/null +++ b/abs/extra-testing/community/transmission-cli/PKGBUILD @@ -0,0 +1,35 @@ +# $Id: PKGBUILD 23076 2009-01-02 11:33:41Z alexanderf $ +# Maintainer: Alexander Fehr <pizzapunk gmail com> +# Contributor: Alessio 'mOLOk' Bolognino <themolok@gmail.com> + +pkgname=transmission-cli +pkgver=1.42 +pkgrel=1 +pkgdesc="Fast, easy, and free BitTorrent client (CLI tools, daemon and web client)" +arch=('i686' 'x86_64') +url="http://www.transmissionbt.com/" +license=('MIT') +depends=('curl') +makedepends=('intltool') +replaces=('transmission') +backup=('etc/conf.d/transmissiond') +install=transmission-cli.install +source=(http://mirrors.m0k.org/transmission/files/transmission-$pkgver.tar.bz2 + transmissiond + transmissiond.conf) +md5sums=('c083bdcb01426466e80ee339bccd9351' + 'e2326d412e25b4449ff663a5d4015e1a' + '7b019a710493ec4f8b54a1f528e1981d') + +build() { + cd "$srcdir/transmission-$pkgver" + + ./configure --prefix=/usr --disable-gtk --disable-wx || return 1 + make || return 1 + make DESTDIR="$pkgdir" install || return 1 + + install -D -m755 "$srcdir/transmissiond" "$pkgdir/etc/rc.d/transmissiond" || return 1 + install -D -m644 "$srcdir/transmissiond.conf" "$pkgdir/etc/conf.d/transmissiond" || return 1 + + install -D -m644 COPYING "$pkgdir/usr/share/licenses/transmission-cli/COPYING" || return 1 +} diff --git a/abs/extra-testing/community/transmission-cli/transmission-cli.install b/abs/extra-testing/community/transmission-cli/transmission-cli.install new file mode 100644 index 0000000..cb6bf60 --- /dev/null +++ b/abs/extra-testing/community/transmission-cli/transmission-cli.install @@ -0,0 +1,9 @@ +post_install() { + cat << _EOF + + If you want to run the Transmission daemon at boot, + add transmissiond to the DAEMONS array in /etc/rc.conf. + You have to set the user in /etc/conf.d/transmissiond. + +_EOF +} diff --git a/abs/extra-testing/community/transmission-cli/transmissiond b/abs/extra-testing/community/transmission-cli/transmissiond new file mode 100644 index 0000000..b2c9322 --- /dev/null +++ b/abs/extra-testing/community/transmission-cli/transmissiond @@ -0,0 +1,37 @@ +#!/bin/bash + +. /etc/rc.conf +. /etc/rc.d/functions +. /etc/conf.d/transmissiond + +PID=`pidof -o %PPID /usr/bin/transmission-daemon` +case "$1" in + start) + stat_busy "Starting Transmission Daemon" + [ -z "$PID" ] && su -l -c "/usr/bin/transmission-daemon" $TRANS_USER + if [ $? -gt 0 ]; then + stat_fail + else + add_daemon transmissiond + stat_done + fi + ;; + stop) + stat_busy "Stopping Transmission Daemon" + [ ! -z "$PID" ] && kill $PID &> /dev/null + if [ $? -gt 0 ]; then + stat_fail + else + rm_daemon transmissiond + stat_done + fi + ;; + restart) + $0 stop + sleep 1 + $0 start + ;; + *) + echo "usage: $0 {start|stop|restart}" +esac +exit 0 diff --git a/abs/extra-testing/community/transmission-cli/transmissiond.conf b/abs/extra-testing/community/transmission-cli/transmissiond.conf new file mode 100644 index 0000000..8f1275b --- /dev/null +++ b/abs/extra-testing/community/transmission-cli/transmissiond.conf @@ -0,0 +1 @@ +TRANS_USER="" -- cgit v0.12