summaryrefslogtreecommitdiff
path: root/security/openvas/Makefile
diff options
context:
space:
mode:
authorMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-06-09 22:09:10 +0200
committerMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-06-10 00:00:18 +0200
commitd15691df9cfb01d0881d61b6c2e086f991003873 (patch)
treef11346e061c95110c0fa33c249abea6cc4a9c949 /security/openvas/Makefile
parentdevel/radare2: Update version 5.8.6=>5.8.8 (diff)
security/openvas: Fix build with llvm15
- Add missing LIB_DEPENDS and USES - Pet portclippy Approved by: portmgr (blanket)
Diffstat (limited to 'security/openvas/Makefile')
-rw-r--r--security/openvas/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/security/openvas/Makefile b/security/openvas/Makefile
index c75024ec778a..a5febf2e4908 100644
--- a/security/openvas/Makefile
+++ b/security/openvas/Makefile
@@ -12,6 +12,7 @@ LICENSE= GPLv2+
BUILD_DEPENDS= flex:textproc/flex
LIB_DEPENDS= libgvm_base.so:security/gvm-libs \
libgcrypt.so:security/libgcrypt \
+ libgpg-error.so:security/libgpg-error \
libpcap.so.1:net/libpcap \
libksba.so:security/libksba \
libgpgme.so:security/gpgme \
@@ -24,11 +25,11 @@ RUN_DEPENDS= redis-server:databases/redis \
rsync:net/rsync \
nmap:security/nmap \
${PYTHON_PKGNAMEPREFIX}impacket>=0:net/py-impacket@${PY_FLAVOR}
+
+USES= bison cmake gnome pkgconfig python:3.5+ ssl
USE_GITHUB= yes
GH_ACCOUNT= greenbone
GH_PROJECT= ${PORTNAME}-scanner
-
-USES= bison cmake gnome pkgconfig python:3.5+
USE_GNOME= glib20
USERS= gvm
@@ -36,10 +37,14 @@ GROUPS= ${USERS}
.include <bsd.port.pre.mk>
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
+CFLAGS+= -Wno-error=strict-prototypes -Wno-error=unused-but-set-variable -Wno-error=invalid-utf8
+.endif
+
post-patch:
- @${REINPLACE_CMD} -e 's|g_pattern_match_string|g_pattern_spec_match_string|g' ${WRKSRC}/misc/strutils.c
@${REINPLACE_CMD} -e 's|#include <bsd/unistd.h>||g' ${WRKSRC}/src/attack.c ${WRKSRC}/src/nasl_plugins.c
@${REINPLACE_CMD} -e 's|#include <bsd/unistd.h>|#include <unistd.h>|g' ${WRKSRC}//src/pluginload.c
+ @${REINPLACE_CMD} -e 's|vendor_version_get ()|vendor_version_get (void)|g' ${WRKSRC}/misc/vendorversion.c
post-install:
@${MKDIR} ${STAGEDIR}/var/run/ospd