summaryrefslogtreecommitdiff
path: root/security/nfsbug
diff options
context:
space:
mode:
authorhubertf <hubertf@pkgsrc.org>2006-03-28 22:07:18 +0000
committerhubertf <hubertf@pkgsrc.org>2006-03-28 22:07:18 +0000
commit3494ec62e2d6caa3d08d5b114d55c12ca07195a4 (patch)
tree539da410bfa37383af987907f3b12ef2255ebcf5 /security/nfsbug
parent10812c911b8f8b3cba1f6140897ae3a71f2928cb (diff)
downloadpkgsrc-3494ec62e2d6caa3d08d5b114d55c12ca07195a4.tar.gz
bump to 1.0nb1: make this build on NetBSD 2.0 and 3.0 after fsid_t's
implementation was changed then.
Diffstat (limited to 'security/nfsbug')
-rw-r--r--security/nfsbug/Makefile11
-rw-r--r--security/nfsbug/distinfo4
-rw-r--r--security/nfsbug/patches/patch-ac14
3 files changed, 13 insertions, 16 deletions
diff --git a/security/nfsbug/Makefile b/security/nfsbug/Makefile
index 14c4b09b638..c56318ba29c 100644
--- a/security/nfsbug/Makefile
+++ b/security/nfsbug/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.16 2006/03/04 21:30:35 jlam Exp $
+# $NetBSD: Makefile,v 1.17 2006/03/28 22:07:18 hubertf Exp $
DISTNAME= nfsshell-1.0
+PKGREVISION= 1
CATEGORIES= net security
MASTER_SITES= http://www.asmodeus.com/archive/Xnix/
DISTFILES= nfsBugFerret.tgz \
@@ -9,18 +10,10 @@ DISTFILES= nfsBugFerret.tgz \
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= NFS security verification suite
-BROKEN_IN= pkgsrc-2005Q4
-
EXTRACT_ONLY= nfsBugFerret.tgz
WRKSRC= ${WRKDIR}/nfsbug
-# Only works on 1.5B or greater on most platforms but will work on any x86
-# since struct pmap didn't get exposed through vm.h there.
-ONLY_FOR_PLATFORM= NetBSD-1.5[B-Z]-* NetBSD-1.5Z[A-Z]-*
-ONLY_FOR_PLATFORM+= NetBSD-1.6*-* NetBSD-[2-9]*-*
-ONLY_FOR_PLATFORM+= NetBSD-*-i386
-
INSTALLATION_DIRS= bin
post-extract:
diff --git a/security/nfsbug/distinfo b/security/nfsbug/distinfo
index 01f4be7ad77..178c15293fb 100644
--- a/security/nfsbug/distinfo
+++ b/security/nfsbug/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.5 2005/02/24 13:10:08 agc Exp $
+$NetBSD: distinfo,v 1.6 2006/03/28 22:07:18 hubertf Exp $
SHA1 (nfsBugFerret.tgz) = 6b0b2d25fadd3156cf0f8851d72b6d6070dc528c
RMD160 (nfsBugFerret.tgz) = e238e0a892bb8e46969278687ce6ec1944ae24c8
@@ -8,4 +8,4 @@ RMD160 (nfsShell.c) = 340454d35e6e67b87255cba7437186639f16cfa5
Size (nfsShell.c) = 47258 bytes
SHA1 (patch-aa) = b28b48831632d2ffe8e103589c9fbf5b3e840d02
SHA1 (patch-ab) = 92908f57337c9fd2857720f14027f426809c669a
-SHA1 (patch-ac) = fcf34bf55208f49215a219801b2be5c4ef55eded
+SHA1 (patch-ac) = 4a75568fc8bc5c2ea6059641d62188230387184a
diff --git a/security/nfsbug/patches/patch-ac b/security/nfsbug/patches/patch-ac
index ecc8bf2ceb1..95d00b597de 100644
--- a/security/nfsbug/patches/patch-ac
+++ b/security/nfsbug/patches/patch-ac
@@ -1,6 +1,6 @@
-$NetBSD: patch-ac,v 1.4 2000/10/11 16:02:45 wennmach Exp $
+$NetBSD: patch-ac,v 1.5 2006/03/28 22:07:18 hubertf Exp $
---- nfsbug.c.orig Fri Feb 17 00:57:27 1995
+--- nfsbug.c.orig 1995-02-17 06:57:27.000000000 +0100
+++ nfsbug.c
@@ -14,6 +14,7 @@
* - close sockets (?)
@@ -10,7 +10,7 @@ $NetBSD: patch-ac,v 1.4 2000/10/11 16:02:45 wennmach Exp $
#include <ctype.h>
#include <netdb.h>
#include <errno.h>
-@@ -25,18 +26,20 @@
+@@ -25,18 +26,24 @@
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
@@ -26,6 +26,10 @@ $NetBSD: patch-ac,v 1.4 2000/10/11 16:02:45 wennmach Exp $
#ifndef HPUX
+#ifdef __NetBSD__
+#include <ufs/ufs/dinode.h>
++# if __NetBSD_Version__ >= 200040000
++ /* at some point, fsid_t's "val" member was renamed to __fsid_val - HF */
++# define val __fsid_val
++# endif
+#else
#include <ufs/inode.h>
#endif
@@ -34,7 +38,7 @@ $NetBSD: patch-ac,v 1.4 2000/10/11 16:02:45 wennmach Exp $
#include "mount.h"
#include "nfs_prot.h"
-@@ -240,7 +245,7 @@
+@@ -240,7 +247,7 @@ nfsbug(host)
} else
proto = "TCP/IP";
@@ -43,7 +47,7 @@ $NetBSD: patch-ac,v 1.4 2000/10/11 16:02:45 wennmach Exp $
mntclient->cl_auth = create_unix_auth(0, 0);
if (mntclient->cl_auth == NULL) {
clnt_destroy(mntclient);
-@@ -277,7 +282,7 @@
+@@ -277,7 +284,7 @@ nfsbug(host)
} else
proto = "TCP/IP";