1PORTNAME= openvas 2DISTVERSION= 23.16.1 3DISTVERSIONPREFIX= v 4CATEGORIES= security 5 6MAINTAINER= ports@MidnightBSD.org 7COMMENT= Open vulnerability assessment scanner 8WWW= https://github.com/greenbone/openvas 9 10LICENSE= gpl2+ 11 12BUILD_DEPENDS= flex:textproc/flex 13LIB_DEPENDS= libgvm_base.so:security/gvm-libs \ 14 libgcrypt.so:security/libgcrypt \ 15 libgpg-error.so:security/libgpg-error \ 16 libpcap.so.1:net/libpcap \ 17 libksba.so:security/libksba \ 18 libgpgme.so:security/gpgme \ 19 libssh.so:security/libssh \ 20 libgnutls.so:security/gnutls \ 21 libnetsnmp.so:net-mgmt/net-snmp \ 22 libjson-glib-1.0.so:devel/json-glib \ 23 libcurl.so:ftp/curl 24RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}impacket>=0:net/py-impacket@${PY_FLAVOR} \ 25 ${PYTHON_PKGNAMEPREFIX}greenbone-feed-sync>0:security/py-greenbone-feed-sync@${PY_FLAVOR} \ 26 redis-server:databases/redis \ 27 snmpget:net-mgmt/net-snmp \ 28 rsync:net/rsync \ 29 nmap:security/nmap 30 31USES= bison cmake gnome gssapi:mit pkgconfig python ssl 32USE_GITHUB= yes 33GH_ACCOUNT= greenbone 34GH_PROJECT= ${PORTNAME}-scanner 35USE_GNOME= glib20 36 37CMAKE_ARGS+= -DINSTALL_OLD_SYNC_SCRIPT=OFF 38 39USERS= gvm 40GROUPS= ${USERS} 41 42.include <bsd.port.pre.mk> 43 44.if ${OPSYS} == FreeBSD 45CFLAGS+= -Wno-error=strict-prototypes -Wno-error=unused-but-set-variable -Wno-error=invalid-utf8 -Wno-implicit-function-declaration 46.endif 47 48# The struct this error is about is only ever accessed using bcopy() and memset(), 49# so the unaligned structure doesn't matter. Disable the error, but keep it as a 50# warning so we can see where it is. 51CFLAGS_armv6= -Wno-error=unaligned-access 52CFLAGS_armv7= -Wno-error=unaligned-access 53 54post-patch: 55 @${REINPLACE_CMD} -e 's|#include <bsd/unistd.h>||g' ${WRKSRC}/src/nasl_plugins.c 56 @${REINPLACE_CMD} -e 's|#include <bsd/unistd.h>|#include <unistd.h>|g' ${WRKSRC}/src/pluginload.c 57 @${REINPLACE_CMD} -e 's|vendor_version_get ()|vendor_version_get (void)|g' ${WRKSRC}/misc/vendorversion.c 58 59post-install: 60 @${MKDIR} /var/run/ospd 61 62.include <bsd.port.post.mk> 63