diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-09-13 10:21:01 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-09-13 10:21:01 +0000 |
commit | c6a536a7c985a2e6da81c41190e6c565cf0c3e9d (patch) | |
tree | 1acb172981288a2a4a77ef26013c39e7f272a14b /x11 | |
parent | 2a02630ca1cf469862fc2ccfd7ffe0f2e3253fca (diff) | |
download | aports-c6a536a7c985a2e6da81c41190e6c565cf0c3e9d.tar.bz2 aports-c6a536a7c985a2e6da81c41190e6c565cf0c3e9d.tar.xz |
x11/transmission: moved from main. add gtk support
Diffstat (limited to 'x11')
-rw-r--r-- | x11/transmission/APKBUILD | 47 | ||||
-rw-r--r-- | x11/transmission/transmission-daemon.confd | 18 | ||||
-rw-r--r-- | x11/transmission/transmission-daemon.initd | 21 | ||||
-rw-r--r-- | x11/transmission/transmission.pre-install | 5 |
4 files changed, 91 insertions, 0 deletions
diff --git a/x11/transmission/APKBUILD b/x11/transmission/APKBUILD new file mode 100644 index 0000000000..e1a52ebcab --- /dev/null +++ b/x11/transmission/APKBUILD @@ -0,0 +1,47 @@ +# Maintainer:Carlo Landmeter +pkgname=transmission +pkgver=1.74 +pkgel=0 +pkgdesc="Lightweight GTK BitTorrent client" +url="http://www.tansmissionbt.com" +install="$pkgname.pre-install" +license="MIT" +depends= +makedepends="openssl-dev pkgconfig curl-dev gtk+-dev intltool" +source="http://download.m0k.org/transmission/files/transmission-$pkgver.tar.bz2 + transmission-daemon.initd + transmission-daemon.confd + " +subpackages="$pkgname-cli $pkgname-daemon $pkgname-doc" + +build() { + cd "$srcdir/$pkgname-$pkgver" + + ./configure --prefix=/usr \ + --mandir=/usr/share/man + make || return 1 + make DESTDIR="$pkgdir" install +} + +daemon() { + pkgdesc="Lightweight BitTorrent client (daemon and webinterface)" + install -d "$subpkgdir"/usr/share "$subpkgdir"/usr/bin + mv "$pkgdir"/usr/bin/transmission-daemon "$subpkgdir"/usr/bin/ + mv "$pkgdir"/usr/share/transmission "$subpkgdir"/usr/share/ + install -D -m755 "$srcdir"/transmission-daemon.initd \ + "$pkgdir"/etc/init.d/transmission-daemon + install -D -m644 "$srcdir"/transmission-daemon.confd \ + "$pkgdir"/etc/conf.d/transmission-daemon +} + +cli() { + pkgdesc="Lightweight BitTorrent client (cli and remote)" + install -d "$subpkgdir"/usr/bin + mv "$pkgdir"/usr/bin/transmission-remote \ + "$pkgdir"/usr/bin/transmissioncli \ + "$subpkgdir"/usr/bin/ +} + +md5sums="6b1080800c62308179cfc7a691c82d63 transmission-1.74.tar.bz2 +b3b921242bdc3b33a8ac05fc30653b6c transmission-daemon.initd +89478a70fcd93463e1dd8d751da994da transmission-daemon.confd" diff --git a/x11/transmission/transmission-daemon.confd b/x11/transmission/transmission-daemon.confd new file mode 100644 index 0000000000..c1f338f07c --- /dev/null +++ b/x11/transmission/transmission-daemon.confd @@ -0,0 +1,18 @@ +# +# transmission-daemon options +# +# -a --acl <list> Access Control List. (Default: +127.0.0.1) +# -b --blocklist Enable peer blocklists +# -B --no-blocklist Disable peer blocklists +# -f --foreground Run in the foreground instead of daemonizing +# -g --config-dir <path> Where to look for configuration files +# -p --port <port> RPC port (Default: 9091) +# -t --auth Require authentication +# -T --no-auth Don't require authentication +# -u --username <username> Set username for authentication +# -v --password <password> Set password for authentication +# -w --download-dir <path> Where to save downloaded data +# +# NOTE: webif does not work without the -f switch +# +TD_OPTS="-f -g /var/lib/transmission/.config -w /var/lib/transmission" diff --git a/x11/transmission/transmission-daemon.initd b/x11/transmission/transmission-daemon.initd new file mode 100644 index 0000000000..af9461cc60 --- /dev/null +++ b/x11/transmission/transmission-daemon.initd @@ -0,0 +1,21 @@ +#!/sbin/runscript + +depend() { + need net +} + +start() { + ebegin "Starting transmission-daemon" + start-stop-daemon --start --quiet --background --make-pidfile \ + --chuid transmission:transmission \ + --pidfile /var/run/transmission-daemon.pid \ + --exec /usr/bin/transmission-daemon -- ${TD_OPTS} + eend $? +} + +stop() { + ebegin "Stopping transmission-daemon" + start-stop-daemon --stop --quiet \ + --pidfile /var/run/transmission-daemon.pid \ + eend $? +} diff --git a/x11/transmission/transmission.pre-install b/x11/transmission/transmission.pre-install new file mode 100644 index 0000000000..44a14760f6 --- /dev/null +++ b/x11/transmission/transmission.pre-install @@ -0,0 +1,5 @@ +#!/bin/sh + +adduser -h /var/lib/transmission -s /bin/false -D transmission 2>/dev/null + +exit 0 |