aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2021-04-18 18:32:40 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2021-04-18 18:32:51 +0000
commit1822495400d6a1a6fa8ced5e04d250c2e85d743c (patch)
tree1552dfc49fbd4447f1a0f001396633c4604ef866
parent084773548076bf8ed7c7e2502f6129d11a8505b0 (diff)
downloadaports-1822495400d6a1a6fa8ced5e04d250c2e85d743c.tar.gz
aports-1822495400d6a1a6fa8ced5e04d250c2e85d743c.tar.bz2
aports-1822495400d6a1a6fa8ced5e04d250c2e85d743c.tar.xz
community/openvas: fixed build for arch different from x86_64
-rw-r--r--community/openvas/APKBUILD7
-rw-r--r--community/openvas/tcp_mss_include.patch24
2 files changed, 29 insertions, 2 deletions
diff --git a/community/openvas/APKBUILD b/community/openvas/APKBUILD
index 862afa8713..7089348ac9 100644
--- a/community/openvas/APKBUILD
+++ b/community/openvas/APKBUILD
@@ -3,7 +3,7 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=openvas
pkgver=21.4.0
-pkgrel=0
+pkgrel=1
pkgdesc="Open Vulnerability Assessment Scanner"
url="https://openvas.org/"
arch="all !x86 !armhf !armv7" # Fails to build, see #12616
@@ -14,12 +14,14 @@ pkgusers="gvm"
checkdepends="cppcheck"
makedepends="cmake bison gvm-libs-dev glib-dev libgcrypt-dev
doxygen xmltoman graphviz libpcap-dev gpgme-dev
- clang-dev libssh-dev libksba-dev net-snmp-dev"
+ clang-dev libssh-dev libksba-dev net-snmp-dev openvas-smb-dev
+ linux-headers glibmm-dev"
subpackages="$pkgname-doc $pkgname-config"
source="$pkgname-$pkgver.tar.gz::https://github.com/greenbone/openvas/archive/v$pkgver.tar.gz
greenbone-nvt-sync.cron
execinfo-musl-fix.patch
malloc-trim.patch
+ tcp_mss_include.patch
openvas-sysctl.conf"
options="!check" # dependency tree not available outside x86
builddir="$srcdir"/$pkgname-scanner-$pkgver
@@ -66,4 +68,5 @@ sha512sums="698b6ce01c5d92c9deb1085e63f104907cf22e784d5b1e4e3fea0c24b1346ce3e83a
da53e5c5e3ab70749249c2bf6c4fe0e0d17a2afb39d4519eb7fdf873c3fedf925183db050ab5395a3fe7f1ce79d95bf4f55c69611205d00dc519ce15418bd915 greenbone-nvt-sync.cron
ffb2b6798eec54f39727e71ddc8e709c06b4dc8be37f05a87676233be3f0dd6701bdea6f61367af56b9d4342ec5e80489830d611ebe85861d7dda625941e785b execinfo-musl-fix.patch
ae4f35ba0705eb16e98765f370a3225bbca6de4bcffeff20cde1d6d1a3487036ff5f683d9e38f0df3308770656876e240fc75c62ba9e2bb1d2e4998ac80e6395 malloc-trim.patch
+1401172c36bdafd16d4eb5189c322a945b872f6768d1fc1368e49a2da25f7eec1b65ea020069174dd9c9d64d77e31b7acdaf9c46609255063031ff275ebf3da5 tcp_mss_include.patch
1b85a5511e73a79bc2c9e11e773fee4d641a2f55760eb8e3f4a41cc0d73007e2f6300832c35dd2408838eb42efef54ba6e238a0ed551e34d21becc2aef499991 openvas-sysctl.conf"
diff --git a/community/openvas/tcp_mss_include.patch b/community/openvas/tcp_mss_include.patch
new file mode 100644
index 0000000000..835111eda2
--- /dev/null
+++ b/community/openvas/tcp_mss_include.patch
@@ -0,0 +1,24 @@
+diff --git a/nasl/nasl_packet_forgery_v6.c b/nasl/nasl_packet_forgery_v6.c
+index a93302c..c255b0f 100644
+--- a/nasl/nasl_packet_forgery_v6.c
++++ b/nasl/nasl_packet_forgery_v6.c
+@@ -75,6 +75,7 @@
+ #define UNFIX(n) ntohs (n)
+ #endif
+
++#define TCP_MSS_DESIRED 1220U /* IPv6 (tunneled), EDNS0 (RFC3226) */
+ /*--------------[ cksum ]-----------------------------------------*/
+
+ /*
+diff --git a/nasl/nasl_packet_forgery.c b/nasl/nasl_packet_forgery.c
+index 7d185df..c0a5ffb 100644
+--- a/nasl/nasl_packet_forgery.c
++++ b/nasl/nasl_packet_forgery.c
+@@ -52,6 +52,7 @@
+ #define UNFIX(n) ntohs (n)
+ #endif
+
++#define TCP_MSS_DEFAULT 536U /* IPv4 (RFC1122, RFC2581) */
+ /*--------------[ cksum ]-----------------------------------------*/
+
+ /*