aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2021-08-07 12:52:18 -0400
committerLeo <thinkabit.ukim@gmail.com>2021-08-09 19:22:19 +0000
commit6588e08ebfd1348ede8c2b5806ca6255e86d5c40 (patch)
tree02c91cc7c27ce07f82917afec9357967aa2ed485
parent78ba0a7a0e36556fc0e03f21d320cac13a0b764d (diff)
downloadaports-6588e08ebfd1348ede8c2b5806ca6255e86d5c40.tar.gz
aports-6588e08ebfd1348ede8c2b5806ca6255e86d5c40.tar.bz2
aports-6588e08ebfd1348ede8c2b5806ca6255e86d5c40.tar.xz
community/dante: no bindresvport (fixes #12651)
-rw-r--r--community/dante/APKBUILD4
-rw-r--r--community/dante/dante-no-bindresvport.patch15
2 files changed, 18 insertions, 1 deletions
diff --git a/community/dante/APKBUILD b/community/dante/APKBUILD
index 52f2f6f522..525cf7beb8 100644
--- a/community/dante/APKBUILD
+++ b/community/dante/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Paul Kilar <pkilar@gmail.com>
pkgname=dante
pkgver=1.4.3
-pkgrel=0
+pkgrel=1
pkgdesc="Dante is SOCKS server and a SOCKS client"
url="https://www.inet.no/dante/"
arch="all"
@@ -12,6 +12,7 @@ install="$pkgname-server.pre-install"
subpackages="$pkgname-dev $pkgname-doc $pkgname-server"
source="http://www.inet.no/dante/files/dante-$pkgver.tar.gz
ifdev.patch
+ dante-no-bindresvport.patch
sockd.initd
sockd.confd
"
@@ -46,6 +47,7 @@ server() {
sha512sums="
c19675b2dee931366caf4a0dd4f44045ae731cc2f986e5d2e4bf498925c7d93a92a32088234d4a9443424f6dfb0796a1fa3fdc7c47e5aa11612c29a101f47888 dante-1.4.3.tar.gz
9fd824db09081e1ff81875e740c9ee4d529e986ce486cbb4270e02c061c0120898cbe57f70ed010cc6b81f1d700114732d8f84b2f055f43d5f3110f2f0e8ba23 ifdev.patch
+2317941ab62199d2b10b2cbc88de934d49c6f3c3d9e7be6367f1e478707390d42232ebd0821c5f09183076b6b63f5d3d0468406932408a93a09d101eae62387a dante-no-bindresvport.patch
9ec0c32f6bfb3fbd266f89ccb0ffff0356b88d679bf3099ff4c78e7f4ca78de9b8fb9f6ff136ca333f148c16f9fcb502ac3f5469c106494846e4aa3192d79c4e sockd.initd
09b744340c03369983a9b07e50215288e5a43d15497db479867132bee46f34a7a8e451c980e064f751ad50e5231d77fa5ae9fd5cf2efe3274ae50168bfceaa67 sockd.confd
"
diff --git a/community/dante/dante-no-bindresvport.patch b/community/dante/dante-no-bindresvport.patch
new file mode 100644
index 0000000000..191c185879
--- /dev/null
+++ b/community/dante/dante-no-bindresvport.patch
@@ -0,0 +1,15 @@
+diff -ru a/dlib/interposition.c b/dlib/interposition.c
+--- a/dlib/interposition.c 2020-11-11 11:11:56.000000000 -0500
++++ b/dlib/interposition.c 2021-08-07 12:47:57.546368583 -0400
+@@ -214,7 +214,11 @@
+ #if SOCKS_CLIENT
+ { SYMBOL_ACCEPT, LIBRARY_ACCEPT, NULL, NULL, NULL },
+ { SYMBOL_BIND, LIBRARY_BIND, NULL, NULL, NULL },
++
++#if HAVE_BINDRESVPORT
+ { SYMBOL_BINDRESVPORT, LIBRARY_BINDRESVPORT, NULL, NULL, NULL },
++#endif
++
+ { SYMBOL_CONNECT, LIBRARY_CONNECT, NULL, NULL, NULL },
+ { SYMBOL_GETPEERNAME, LIBRARY_GETPEERNAME, NULL, NULL, NULL },
+ { SYMBOL_GETSOCKNAME, LIBRARY_GETSOCKNAME, NULL, NULL, NULL },