aboutsummaryrefslogtreecommitdiffstats
path: root/security/nessus-libnasl
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2014-11-30 19:20:35 +0800
committerantoine <antoine@FreeBSD.org>2014-11-30 19:20:35 +0800
commit6bf158518f61291285f75be6d0b536f2c790901c (patch)
tree4f2575b21e1e56fb382ab5d276467a708cec2a64 /security/nessus-libnasl
parent45dbab86a091628fddbfe3f717788a5f39f93e75 (diff)
downloadfreebsd-ports-gnome-6bf158518f61291285f75be6d0b536f2c790901c.tar.gz
freebsd-ports-gnome-6bf158518f61291285f75be6d0b536f2c790901c.tar.zst
freebsd-ports-gnome-6bf158518f61291285f75be6d0b536f2c790901c.zip
Allow building with bison 3
PR: ports/194680
Diffstat (limited to 'security/nessus-libnasl')
-rw-r--r--security/nessus-libnasl/files/patch-nasl_nasl__grammar.y37
-rw-r--r--security/nessus-libnasl/pkg-plist2
2 files changed, 37 insertions, 2 deletions
diff --git a/security/nessus-libnasl/files/patch-nasl_nasl__grammar.y b/security/nessus-libnasl/files/patch-nasl_nasl__grammar.y
new file mode 100644
index 000000000000..702e88d2cf83
--- /dev/null
+++ b/security/nessus-libnasl/files/patch-nasl_nasl__grammar.y
@@ -0,0 +1,37 @@
+--- nasl/nasl_grammar.y.orig 2005-11-01 18:27:57 UTC
++++ nasl/nasl_grammar.y
+@@ -1,4 +1,6 @@
+ %pure_parser
++%parse-param {naslctxt * parm}
++%lex-param {naslctxt * parm}
+ %expect 1
+ %{
+ /* Nessus Attack Scripting Language version 2
+@@ -19,9 +21,6 @@
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+-#define YYPARSE_PARAM parm
+-#define YYLEX_PARAM parm
+-
+ #define LNB (((naslctxt*)parm)->line_nb)
+ #include "includes.h"
+ #include "nasl_tree.h"
+@@ -31,7 +30,7 @@
+ #include "nasl_lex_ctxt.h"
+ #include "nasl_debug.h"
+
+-static void naslerror(const char *);
++static void naslerror(naslctxt *, const char *);
+ #define YYERROR_VERBOSE
+ %}
+
+@@ -466,7 +465,7 @@ glob: GLOBAL arg_decl
+ #include <stdlib.h>
+
+ static void
+-naslerror(const char *s)
++naslerror(naslctxt *parm, const char *s)
+ {
+ fputs(s, stderr);
+ }
diff --git a/security/nessus-libnasl/pkg-plist b/security/nessus-libnasl/pkg-plist
index 2506dcaf0db3..3ca60aa85f94 100644
--- a/security/nessus-libnasl/pkg-plist
+++ b/security/nessus-libnasl/pkg-plist
@@ -8,5 +8,3 @@ lib/libnasl.so.2.2.9
man/man1/nasl.1.gz
man/man1/nasl-config.1.gz
var/nessus/nessus_org.pem
-@dirrmtry var/nessus
-@dirrmtry var