- add some patches from FreeBSD fixing LP64 issues and compatibility with
future compilers - use a specific userid, not "nobody"
This commit is contained in:
parent
60f129bce5
commit
e4d475dbda
@ -1,10 +1,10 @@
|
||||
# $OpenBSD: Makefile,v 1.17 2007/09/15 23:29:59 merdely Exp $
|
||||
# $OpenBSD: Makefile,v 1.18 2009/06/19 10:31:20 sthen Exp $
|
||||
# $FreeBSD: Makefile,v 1.1.1.1 1998/02/14 04:10:30 obrien Exp $
|
||||
|
||||
COMMENT= NetBIOS Auditing Tool / Security Kit
|
||||
|
||||
DISTNAME= nat10
|
||||
PKGNAME= nbaudit-1.0
|
||||
PKGNAME= nbaudit-1.0p0
|
||||
CATEGORIES= security net
|
||||
MASTER_SITES= ftp://ftp.auscert.org.au/pub/coast/mirrors/ftp.secnet.com/tools/nat10/ \
|
||||
${MASTER_SITE_PACKETSTORM:=NT/scanners/}
|
||||
@ -14,6 +14,10 @@ PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
MAKE_FLAGS= GUESTACCOUNT=_nbaudit
|
||||
|
||||
WANTLIB += c
|
||||
|
||||
NO_REGRESS= Yes
|
||||
|
||||
do-install:
|
||||
|
24
security/nbaudit/patches/patch-includes_h
Normal file
24
security/nbaudit/patches/patch-includes_h
Normal file
@ -0,0 +1,24 @@
|
||||
$OpenBSD: patch-includes_h,v 1.1 2009/06/19 10:31:20 sthen Exp $
|
||||
|
||||
fix LP64 issues.
|
||||
|
||||
--- includes.h.orig Fri Jun 19 11:08:47 2009
|
||||
+++ includes.h Fri Jun 19 11:08:50 2009
|
||||
@@ -461,6 +461,8 @@ char *mktemp(char *); /* No standard include */
|
||||
#define SIGNAL_CAST (void (*)())
|
||||
#define USE_DIRECT
|
||||
#define REPLACE_INNETGR
|
||||
+#define HAVE_BZERO
|
||||
+#define HAVE_MEMMOVE
|
||||
#endif
|
||||
|
||||
|
||||
@@ -1121,3 +1123,8 @@ void *memcpy_wrapped(void *d,void *s,int l,char *fname
|
||||
#endif
|
||||
|
||||
#endif
|
||||
+
|
||||
+
|
||||
+char * Get_Hostbyaddr (struct in_addr ip);
|
||||
+struct ipstr *parse_ip(char *);
|
||||
+
|
14
security/nbaudit/patches/patch-nat_c
Normal file
14
security/nbaudit/patches/patch-nat_c
Normal file
@ -0,0 +1,14 @@
|
||||
$OpenBSD: patch-nat_c,v 1.1 2009/06/19 10:31:20 sthen Exp $
|
||||
|
||||
fix LP64 issues.
|
||||
|
||||
--- nat.c.orig Fri Jun 19 11:08:56 2009
|
||||
+++ nat.c Fri Jun 19 11:09:02 2009
|
||||
@@ -13,6 +13,7 @@
|
||||
#include <varargs.h>
|
||||
#endif
|
||||
#include "parse_ip.h"
|
||||
+#include "includes.h"
|
||||
|
||||
extern char *optarg;
|
||||
extern int optind;
|
14
security/nbaudit/patches/patch-nmb_c
Normal file
14
security/nbaudit/patches/patch-nmb_c
Normal file
@ -0,0 +1,14 @@
|
||||
$OpenBSD: patch-nmb_c,v 1.1 2009/06/19 10:31:20 sthen Exp $
|
||||
|
||||
newer compilers won't like this
|
||||
|
||||
--- nmb.c.orig Fri Jun 19 11:18:31 2009
|
||||
+++ nmb.c Fri Jun 19 11:18:39 2009
|
||||
@@ -40,7 +40,6 @@ static fstring tbuf;
|
||||
#endif /* SCANNER */
|
||||
|
||||
int Debug1(char *, ...);
|
||||
-int Debug1();
|
||||
|
||||
int num_good_sends=0;
|
||||
int num_good_receives=0;
|
@ -1,3 +1,5 @@
|
||||
@comment $OpenBSD: PLIST,v 1.3 2004/09/15 18:36:00 espie Exp $
|
||||
bin/nbaudit
|
||||
@comment $OpenBSD: PLIST,v 1.4 2009/06/19 10:31:20 sthen Exp $
|
||||
@newgroup _nbaudit:633
|
||||
@newuser _nbaudit:633:_nbaudit::nbaudit user:/nonexistent:/sbin/nologin
|
||||
@bin bin/nbaudit
|
||||
@man man/man1/nbaudit.1
|
||||
|
Loading…
x
Reference in New Issue
Block a user