aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@alpinelinux.org>2018-01-30 14:44:03 +0000
committerCarlo Landmeter <clandmeter@alpinelinux.org>2018-01-30 14:44:10 +0000
commit5d371c045d81d2bd535a6e5589300b7b77b8cbe3 (patch)
tree288cf3fb1637c145ca30051619e57ea46005fe26 /main
parent91f5b7e5c1e0aaf047de6c0f083f6942a4c4a4ea (diff)
downloadaports-5d371c045d81d2bd535a6e5589300b7b77b8cbe3.tar.bz2
aports-5d371c045d81d2bd535a6e5589300b7b77b8cbe3.tar.xz
main/transmission: upgrade to 2.93
Diffstat (limited to 'main')
-rw-r--r--main/transmission/APKBUILD31
-rw-r--r--main/transmission/libressl.patch20
2 files changed, 36 insertions, 15 deletions
diff --git a/main/transmission/APKBUILD b/main/transmission/APKBUILD
index 706e842a56..53b3957e6e 100644
--- a/main/transmission/APKBUILD
+++ b/main/transmission/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=transmission
-pkgver=2.92
-pkgrel=8
+pkgver=2.93
+pkgrel=0
pkgdesc="Lightweight GTK BitTorrent client"
url="http://www.transmissionbt.com"
install="transmission-daemon.pre-install transmission-daemon.post-upgrade"
@@ -15,7 +15,8 @@ makedepends="libressl-dev curl-dev gtk+3.0-dev intltool libevent-dev
bsd-compat-headers"
source="https://github.com/transmission/$pkgname-releases/raw/master/$pkgname-$pkgver.tar.xz
transmission-daemon.initd
- transmission-daemon.confd"
+ transmission-daemon.confd
+ libressl.patch"
subpackages="$pkgname-cli $pkgname-daemon $pkgname-doc $pkgname-lang"
options="!checkroot"
builddir="$srcdir/$pkgname-$pkgver"
@@ -34,8 +35,7 @@ build() {
--enable-utp \
--with-inotify \
--enable-cli \
- || return 1
- make || return 1
+ make
}
check() {
@@ -45,25 +45,25 @@ check() {
package() {
cd "$builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
}
daemon() {
pkgdesc="Lightweight BitTorrent client (daemon and webinterface)"
install -d "$subpkgdir"/usr/share \
- "$subpkgdir"/usr/bin || return 1
+ "$subpkgdir"/usr/bin
install -d -o transmission -g transmission \
"$subpkgdir"/var/lib/transmission \
- "$subpkgdir"/var/log/transmission || return 1
+ "$subpkgdir"/var/log/transmission
mv "$pkgdir"/usr/bin/transmission-daemon \
- "$subpkgdir"/usr/bin/ || return 1
+ "$subpkgdir"/usr/bin/
mv "$pkgdir"/usr/share/transmission \
- "$subpkgdir"/usr/share/ || return 1
+ "$subpkgdir"/usr/share/
install -D -m755 "$srcdir"/transmission-daemon.initd \
- "$subpkgdir"/etc/init.d/transmission-daemon || return 1
+ "$subpkgdir"/etc/init.d/transmission-daemon
install -D -m644 "$srcdir"/transmission-daemon.confd \
- "$subpkgdir"/etc/conf.d/transmission-daemon || return 1
+ "$subpkgdir"/etc/conf.d/transmission-daemon
}
cli() {
@@ -75,9 +75,10 @@ cli() {
"$pkgdir"/usr/bin/transmission-edit \
"$pkgdir"/usr/bin/transmission-show \
"$pkgdir"/usr/bin/transmission-remote \
- "$subpkgdir"/usr/bin/ || return 1
+ "$subpkgdir"/usr/bin/
}
-sha512sums="4d99476bee88cedcc4238a0eee64a4089016933cbfc1cfb1cca023ad4ebcfe46375c9e7651a17af4aeaaf1feb19cbd8166aa56ef7992d9e745a7bbcbe8efca11 transmission-2.92.tar.xz
+sha512sums="7565893f67fc10f1b683814fa4d365d841ec833bc8dfdab731432fe68f1a38daeb4c9100653763f16bfb4336fba11c9b0b9730a9817e17a140704a7c4aa5c087 transmission-2.93.tar.xz
d31275fba7eb322510f9667e66a186d626889a6e3143be2923aae87b9c35c5cf0c508639f1cb8c1b88b1e465bc082d80bb1101385ebde736a34d4eeeae0f6e15 transmission-daemon.initd
-a3b9ac2b7bbe30e33060c8b6a693dc7072d3c6ac44f92ddd567969d8f57a0bfc1a561e781ae167703ccb4b2fd5b0e6d8f8a66c5ba14fe01d8d89a501d4501474 transmission-daemon.confd"
+a3b9ac2b7bbe30e33060c8b6a693dc7072d3c6ac44f92ddd567969d8f57a0bfc1a561e781ae167703ccb4b2fd5b0e6d8f8a66c5ba14fe01d8d89a501d4501474 transmission-daemon.confd
+57b9968b851cd8727f17fba2a34e0a51efbdb091a148f17b24973b846a11cc16a1b2e971bc45b47bdef1e37acc926926930ed7bb2f6497e5a9966b2c7d673299 libressl.patch"
diff --git a/main/transmission/libressl.patch b/main/transmission/libressl.patch
new file mode 100644
index 0000000000..6d0d01cccc
--- /dev/null
+++ b/main/transmission/libressl.patch
@@ -0,0 +1,20 @@
+--- ./libtransmission/crypto-utils-openssl.c.orig
++++ ./libtransmission/crypto-utils-openssl.c
+@@ -147,7 +147,7 @@
+ ****
+ ***/
+
+-#if OPENSSL_VERSION_NUMBER < 0x0090802fL
++#if OPENSSL_VERSION_NUMBER < 0x0090802fL || defined(LIBRESSL_VERSION_NUMBER)
+
+ static EVP_CIPHER_CTX *
+ openssl_evp_cipher_context_new (void)
+@@ -230,7 +230,7 @@
+ ****
+ ***/
+
+-#if OPENSSL_VERSION_NUMBER < 0x10100000
++#if OPENSSL_VERSION_NUMBER < 0x10100000 || defined(LIBRESSL_VERSION_NUMBER)
+ static inline int
+ DH_set0_pqg (DH * dh,
+ BIGNUM * p,