diff --git a/security/openvas/Makefile b/security/openvas/Makefile index e168d5da7f0f..66aa8eda7d75 100644 --- a/security/openvas/Makefile +++ b/security/openvas/Makefile @@ -1,62 +1,63 @@ PORTNAME= openvas DISTVERSION= 23.14.0 +PORTREVISION= 1 DISTVERSIONPREFIX= v CATEGORIES= security MAINTAINER= acm@FreeBSD.org COMMENT= Open vulnerability assessment scanner WWW= https://github.com/greenbone/openvas 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 \ libssh.so:security/libssh \ libgnutls.so:security/gnutls \ libnetsnmp.so:net-mgmt/net-snmp \ libjson-glib-1.0.so:devel/json-glib \ libcurl.so:ftp/curl RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}impacket>=0:net/py-impacket@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}greenbone-feed-sync>0:security/py-greenbone-feed-sync@${PY_FLAVOR} \ redis-server:databases/redis \ snmpget:net-mgmt/net-snmp \ rsync:net/rsync \ nmap:security/nmap -USES= bison cmake gnome gssapi:heimdal pkgconfig python ssl +USES= bison cmake gnome gssapi:mit pkgconfig python ssl USE_GITHUB= yes GH_ACCOUNT= greenbone GH_PROJECT= ${PORTNAME}-scanner USE_GNOME= glib20 CMAKE_ARGS+= -DINSTALL_OLD_SYNC_SCRIPT=OFF USERS= gvm GROUPS= ${USERS} .include .if ${OPSYS} == FreeBSD CFLAGS+= -Wno-error=strict-prototypes -Wno-error=unused-but-set-variable -Wno-error=invalid-utf8 -Wno-implicit-function-declaration .endif # The struct this error is about is only ever accessed using bcopy() and memset(), # so the unaligned structure doesn't matter. Disable the error, but keep it as a # warning so we can see where it is. CFLAGS_armv6= -Wno-error=unaligned-access CFLAGS_armv7= -Wno-error=unaligned-access post-patch: @${REINPLACE_CMD} -e 's|#include ||g' ${WRKSRC}/src/nasl_plugins.c @${REINPLACE_CMD} -e 's|#include |#include |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 .include diff --git a/security/openvas/files/patch-misc_openvas-krb5.c b/security/openvas/files/patch-misc_openvas-krb5.c deleted file mode 100644 index 6ef5d3b20d07..000000000000 --- a/security/openvas/files/patch-misc_openvas-krb5.c +++ /dev/null @@ -1,14 +0,0 @@ ---- misc/openvas-krb5.c 2024-12-22 00:19:01.961816000 -0800 -+++ misc/openvas-krb5.c 2024-12-22 00:20:50.556489000 -0800 -@@ -3,7 +3,11 @@ - #include - #include - #include -+#if defined(__FreeBSD__) -+#include -+#else - #include -+#endif - #include - #include - #include diff --git a/security/openvas/files/patch-misc_openvas-krb5.h b/security/openvas/files/patch-misc_openvas-krb5.h deleted file mode 100644 index 35ba9b8109a9..000000000000 --- a/security/openvas/files/patch-misc_openvas-krb5.h +++ /dev/null @@ -1,11 +0,0 @@ ---- misc/openvas-krb5.h 2024-12-22 00:19:13.309593000 -0800 -+++ misc/openvas-krb5.h 2024-12-22 00:20:45.473987000 -0800 -@@ -1,4 +1,8 @@ -+#if defined(__FreeBSD__) -+#include -+#else - #include -+#endif - #include - #ifndef OPENVAS_KRB5 - #define OPENVAS_KRB5 1