aboutsummaryrefslogtreecommitdiffstats
path: root/security/nbaudit
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2003-06-15 14:16:31 +0800
committerkris <kris@FreeBSD.org>2003-06-15 14:16:31 +0800
commitbeb7c068d5460b960279abd5ab1a6290a559fc89 (patch)
tree097dfa60e7f6c932196f322e67ad618324c3bf34 /security/nbaudit
parentec6dda5f38de4a1b66582debd19aba91965f30ab (diff)
downloadfreebsd-ports-graphics-beb7c068d5460b960279abd5ab1a6290a559fc89.tar.gz
freebsd-ports-graphics-beb7c068d5460b960279abd5ab1a6290a559fc89.tar.zst
freebsd-ports-graphics-beb7c068d5460b960279abd5ab1a6290a559fc89.zip
Fix compiler warnings to allow this to run on sparc64.
Bump PORTREVISION
Diffstat (limited to 'security/nbaudit')
-rw-r--r--security/nbaudit/Makefile1
-rw-r--r--security/nbaudit/files/patch-includes.h28
-rw-r--r--security/nbaudit/files/patch-nat.c11
-rw-r--r--security/nbaudit/files/patch-smb.h11
4 files changed, 51 insertions, 0 deletions
diff --git a/security/nbaudit/Makefile b/security/nbaudit/Makefile
index 7b09d95e5bf..e3f9ad31232 100644
--- a/security/nbaudit/Makefile
+++ b/security/nbaudit/Makefile
@@ -8,6 +8,7 @@
PORTNAME= nbaudit
PORTVERSION= 1.0
+PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= ftp://ftp.auscert.org.au/pub/coast/mirrors/ftp.secnet.com/tools/nat10/ \
${MASTER_SITE_PACKETSTORM}
diff --git a/security/nbaudit/files/patch-includes.h b/security/nbaudit/files/patch-includes.h
new file mode 100644
index 00000000000..5fd3874b4e4
--- /dev/null
+++ b/security/nbaudit/files/patch-includes.h
@@ -0,0 +1,28 @@
+diff -ru ../../work/nat10/includes.h ./includes.h
+--- includes.h.orig Sun Feb 16 19:18:04 1997
++++ includes.h Sat Jun 14 23:10:49 2003
+@@ -466,13 +466,15 @@
+
+
+ #ifdef FreeBSD
+-#include <strings.h>
++#include <string.h>
+ #include <netinet/tcp.h>
+ #include <netinet/in_systm.h>
+ #include <netinet/ip.h>
++#include <dirent.h>
+ #define SIGNAL_CAST (void (*)())
+-#define USE_DIRECT
+ #define REPLACE_INNETGR
++#define HAVE_MEMMOVE
++#define HAVE_BZERO
+ #endif
+
+
+@@ -1121,3 +1123,6 @@
+ #endif
+
+ #endif
++
++char * Get_Hostbyaddr (struct in_addr ip);
++struct ipstr *parse_ip(char *);
diff --git a/security/nbaudit/files/patch-nat.c b/security/nbaudit/files/patch-nat.c
new file mode 100644
index 00000000000..49004103d8c
--- /dev/null
+++ b/security/nbaudit/files/patch-nat.c
@@ -0,0 +1,11 @@
+diff -ru ../../work/nat10/nat.c ./nat.c
+--- nat.c.orig Sun Feb 16 19:18:04 1997
++++ nat.c Sat Jun 14 23:10:07 2003
+@@ -13,6 +13,7 @@
+ #include <varargs.h>
+ #endif
+ #include "parse_ip.h"
++#include "includes.h"
+
+ extern char *optarg;
+ extern int optind;
diff --git a/security/nbaudit/files/patch-smb.h b/security/nbaudit/files/patch-smb.h
new file mode 100644
index 00000000000..c375b709d8e
--- /dev/null
+++ b/security/nbaudit/files/patch-smb.h
@@ -0,0 +1,11 @@
+diff -ru ../../work/nat10/smb.h ./smb.h
+--- smb.h.orig Sun Feb 16 19:18:04 1997
++++ smb.h Sat Jun 14 23:02:35 2003
+@@ -733,7 +733,6 @@
+ int get_share_mode_byname(int cnum,char *fname,int *pid);
+ int get_share_mode_by_fnum(int cnum,int fnum,int *pid);
+ BOOL check_file_sharing(int cnum,char *fname);
+-char *StrCpy(char *dest,char *src);
+ int unix_error_packet(char *inbuf,char *outbuf,int def_class,uint32 def_code,int line);
+ time_t make_unix_date2(void *date_ptr);
+ int cached_error_packet(char *inbuf,char *outbuf,int fnum,int line);