summaryrefslogtreecommitdiff
path: root/security/openvas/Makefile
diff options
context:
space:
mode:
authorJose Alonso Cardenas Marquez <acm@FreeBSD.org>2022-08-09 16:57:09 -0500
committerJose Alonso Cardenas Marquez <acm@FreeBSD.org>2022-08-09 16:58:26 -0500
commitfa18d9fd8fb4b12c97f012576938b6714c80a950 (patch)
tree4c6a80dd5f1b5da248e518eee3c49c1909d32ac2 /security/openvas/Makefile
parentscience/py-qiskit-ibm-experiment: New port: IBM Experiment submodule for Quis... (diff)
security/openvas: Fix build on some 13.x and 14-CURRENT
- Bump PORTREVISION Reported by: pkg-fallout
Diffstat (limited to 'security/openvas/Makefile')
-rw-r--r--security/openvas/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/security/openvas/Makefile b/security/openvas/Makefile
index 33e380328be1..96aa7f2dec3d 100644
--- a/security/openvas/Makefile
+++ b/security/openvas/Makefile
@@ -1,5 +1,6 @@
PORTNAME= openvas
DISTVERSION= 22.4.0
+PORTREVISION= 1
DISTVERSIONPREFIX= v
CATEGORIES= security
@@ -33,13 +34,17 @@ USE_GNOME= glib20
USERS= gvm
GROUPS= ${USERS}
+.include <bsd.port.pre.mk>
+
post-patch:
@${REINPLACE_CMD} -e 's|g_pattern_match_string|g_pattern_spec_match_string|g' ${WRKSRC}/misc/strutils.c
+.if ${OSVERSION} < 1301000
@${REINPLACE_CMD} -e 's|-Wunused-but-set-variable|-Wunused-variable|g' ${WRKSRC}/nasl/nasl_grammar.y
+.endif
@${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
post-install:
@${MKDIR} ${STAGEDIR}/var/run/ospd
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>