aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2012-12-31 13:35:10 +0100
committerCarlo Landmeter <clandmeter@gmail.com>2012-12-31 13:35:10 +0100
commitd0954689965cfd35164fa3d6f800ece45bbac13b (patch)
tree7ee4b1d418a8dc95d7241e1120dabc060da9c043
parent254f377023dde2cf6994036f74f053f7f5403cf0 (diff)
downloadaports-d0954689965cfd35164fa3d6f800ece45bbac13b.tar.bz2
aports-d0954689965cfd35164fa3d6f800ece45bbac13b.tar.xz
main/transmission: small fixes/cleanups and enable utp
-rw-r--r--main/transmission/APKBUILD34
1 files changed, 22 insertions, 12 deletions
diff --git a/main/transmission/APKBUILD b/main/transmission/APKBUILD
index 77300d5546..a31d7cce18 100644
--- a/main/transmission/APKBUILD
+++ b/main/transmission/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer:Carlo Landmeter
pkgname=transmission
pkgver=2.75
-pkgrel=0
+pkgrel=1
pkgdesc="Lightweight GTK BitTorrent client"
url="http://www.tansmissionbt.com"
install="transmission-daemon.pre-install transmission-daemon.post-upgrade"
@@ -36,26 +36,36 @@ build() {
cd "$_builddir"
./configure --prefix=/usr \
- --mandir=/usr/share/man
-
-make || return 1
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ --enable-utp \
+ --with-inotify \
+ || return 1
+ make || return 1
}
package() {
cd "$_builddir"
- make DESTDIR="$pkgdir" install
+ make DESTDIR="$pkgdir" install || return 1
}
daemon() {
pkgdesc="Lightweight BitTorrent client (daemon and webinterface)"
- install -d "$subpkgdir"/usr/share "$subpkgdir"/usr/bin
- install -d -o transmission -g transmission "$subpkgdir"/var/lib/transmission
- mv "$pkgdir"/usr/bin/transmission-daemon "$subpkgdir"/usr/bin/
- mv "$pkgdir"/usr/share/transmission "$subpkgdir"/usr/share/
+ install -d "$subpkgdir"/usr/share \
+ "$subpkgdir"/usr/bin || return 1
+ install -d -o transmission -g transmission \
+ "$subpkgdir"/var/lib/transmission \
+ "$subpkgdir"/var/log/transmission || return 1
+ mv "$pkgdir"/usr/bin/transmission-daemon \
+ "$subpkgdir"/usr/bin/ || return 1
+ mv "$pkgdir"/usr/share/transmission \
+ "$subpkgdir"/usr/share/ || return 1
install -D -m755 "$srcdir"/transmission-daemon.initd \
- "$subpkgdir"/etc/init.d/transmission-daemon
+ "$subpkgdir"/etc/init.d/transmission-daemon || return 1
install -D -m644 "$srcdir"/transmission-daemon.confd \
- "$subpkgdir"/etc/conf.d/transmission-daemon
+ "$subpkgdir"/etc/conf.d/transmission-daemon || return 1
}
cli() {
@@ -66,7 +76,7 @@ cli() {
"$pkgdir"/usr/bin/transmission-edit \
"$pkgdir"/usr/bin/transmission-show \
"$pkgdir"/usr/bin/transmission-remote \
- "$subpkgdir"/usr/bin/
+ "$subpkgdir"/usr/bin/ || return 1
}
md5sums="ae3a3e7532560c16324e6c8a6386ad22 transmission-2.75.tar.bz2