aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoromni <omni+alpine@hack.org>2021-06-17 08:35:08 +0000
committerLeo <thinkabit.ukim@gmail.com>2021-06-21 20:48:41 +0000
commit8bd60bbf3eb1371ae0338a5d3698c4a050b80353 (patch)
tree1efa41d2a756b6a076516fab82e0ddaadedef911
parent2cbed5bc4646cede14e620ff7a188284a194b915 (diff)
downloadaports-8bd60bbf3eb1371ae0338a5d3698c4a050b80353.tar.gz
aports-8bd60bbf3eb1371ae0338a5d3698c4a050b80353.tar.bz2
aports-8bd60bbf3eb1371ae0338a5d3698c4a050b80353.tar.xz
community/tor: security upgrade to 0.4.4.9
-rw-r--r--community/tor/APKBUILD44
1 files changed, 25 insertions, 19 deletions
diff --git a/community/tor/APKBUILD b/community/tor/APKBUILD
index bd6cb7d509..1c55b7158b 100644
--- a/community/tor/APKBUILD
+++ b/community/tor/APKBUILD
@@ -1,38 +1,48 @@
# Contributor: Christine Dodrill <me@christine.website>
-# Maintainer: Christine Dodrill <me@christine.website>
+# Maintainer: omni <omni+alpine@hack.org>
pkgname=tor
-pkgver=0.4.1.9
-pkgrel=1
+pkgver=0.4.4.9
+pkgrel=0
pkgdesc="Anonymous network connectivity"
url="https://www.torproject.org/"
arch="all"
license="BSD-3-Clause"
pkgusers="tor"
makedepends="linux-headers bash libevent-dev openssl-dev ca-certificates
- zlib-dev"
+ zlib-dev xz-dev"
install="$pkgname.post-upgrade $pkgname.pre-install"
subpackages="$pkgname-doc $pkgname-openrc"
-source="https://www.torproject.org/dist/$pkgname-$pkgver.tar.gz
+source="https://www.torproject.org/dist/tor-$pkgver.tar.gz
tor.initd
tor.confd
torrc.sample.patch"
-builddir="$srcdir/$pkgname-$pkgver"
+
+case "$CARCH" in
+ armhf) _zstd="--disable-zstd" ;;
+ * )
+ makedepends="$makedepends zstd-dev"
+ _zstd="--enable-zstd"
+ ;;
+esac
# secfixes:
-# 0.4.1.9-r0:
+# 0.4.4.9-r0:
# - CVE-2020-10592
# - CVE-2020-10593
+# - CVE-2021-28089
+# - CVE-2021-28090
+# - CVE-2021-34548
+# - CVE-2021-34549
+# - CVE-2021-34550
# 0.3.5.8-r0:
-# - CVE-2019-8955
+# - CVE-2019-8955
# 0.3.0.8-r0:
-# - CVE-2017-0376
+# - CVE-2017-0376
# 0.3.2.10-r0:
-# - CVE-2018-0490
-# - CVE-2018-0491
+# - CVE-2018-0490
+# - CVE-2018-0491
build() {
- cd "$builddir"
-
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -41,19 +51,15 @@ build() {
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
- --enable-transparent
+ $_zstd
make
}
check() {
- cd "$builddir"
-
make test
}
package() {
- cd "$builddir"
-
make DESTDIR="$pkgdir" install
install -dm755 -o $pkgusers \
@@ -66,7 +72,7 @@ package() {
"$pkgdir"/etc/conf.d/$pkgname
}
-sha512sums="368b132ea8e064582d174bd6f420b55d8b7e4f29fa026fb4336956d651420c456e4e8dfbcd1e426603d4dce1919a686f459c5cf2571d7e67d6269da8f5a623d6 tor-0.4.1.9.tar.gz
+sha512sums="c2864c8c81c5bf0c6825841bfd6be3c1879e29b4796921b12304f094c9e889fbc60c3e0c2ca23838ecc9e153b7c9ba47052f3d692ce2e0f408f0a7b708961877 tor-0.4.4.9.tar.gz
6de4ada16ba58264a247da70343eabd763e992d6b6683977fc1c67b7b4a9731748a7ec9751e869ad4b4ae9c72cf71b2e12dc289bb6e2aee499917f7663f4a735 tor.initd
2b0de119bfdf9eb57e13317b7392190b1b8272c8f96023c71d3fc29215d887e9a3d0ffcef37cdb50b18d34e4b2251f75a739e258e0bb72aabd3339418b22fd67 tor.confd
da386ff7e387312e647f04d360517a1f4cb1efbee36f4a3a6feb89a979bb12fa350fe6dfed49af0cb076ae30bb0c527b5d54127683eaa5aa45d6940dddd89dfb torrc.sample.patch"