aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-07-17 13:12:48 -0300
committerNatanael Copa <ncopa@alpinelinux.org>2020-11-25 09:21:48 +0100
commit2849fa38b9a76d1ef0a9df10aa70bafa00a5ab27 (patch)
treeb58520b0411263843b966bbb012e1567fe468907
parent98b16a027f2e7fd79ad212577ff548a2dabc9045 (diff)
downloadaports-3.12-stable.tar.gz
aports-3.12-stable.tar.bz2
aports-3.12-stable.tar.xz
community/tor: disable zstd on armhf3.12-stable
It fails to to run (cherry picked from commit ceb407392c233cc028b1646e49c658aa85d6fc23)
-rw-r--r--community/tor/APKBUILD13
1 files changed, 11 insertions, 2 deletions
diff --git a/community/tor/APKBUILD b/community/tor/APKBUILD
index b6e11f0dfe..062797e5ce 100644
--- a/community/tor/APKBUILD
+++ b/community/tor/APKBUILD
@@ -9,7 +9,7 @@ arch="all"
license="BSD-3-Clause"
pkgusers="tor"
makedepends="linux-headers bash libevent-dev openssl-dev ca-certificates
- zlib-dev zstd-dev xz-dev"
+ zlib-dev xz-dev"
install="$pkgname.post-upgrade $pkgname.pre-install"
subpackages="$pkgname-doc $pkgname-openrc"
source="https://www.torproject.org/dist/tor-$pkgver.tar.gz
@@ -17,6 +17,14 @@ source="https://www.torproject.org/dist/tor-$pkgver.tar.gz
tor.confd
torrc.sample.patch"
+case "$CARCH" in
+ armhf) _zstd="--disable-zstd" ;;
+ * )
+ makedepends="$makedepends zstd-dev"
+ _zstd="--enable-zstd"
+ ;;
+esac
+
# secfixes:
# 0.4.2.7-r0:
# - CVE-2020-10592
@@ -37,7 +45,8 @@ build() {
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
- --localstatedir=/var
+ --localstatedir=/var \
+ $_zstd
make
}