summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authoratatat <atatat>2004-07-13 13:42:41 +0000
committeratatat <atatat>2004-07-13 13:42:41 +0000
commit6acbdbc89a8622c96d596399aa151e49f0602d0c (patch)
treea50271092a1b25e44cde11cfd555cab0a3ba02d3 /sysutils
parent514dcc652e9c128511126b3e8f32e5512e21076d (diff)
downloadpkgsrc-6acbdbc89a8622c96d596399aa151e49f0602d0c.tar.gz
Upgrade to lsof version 4.72. Changes related to or affecting NetBSD
(or pkgsrc) from the 00DIST file: 4.72 July 13, 2004 ... Added support for NetBSD 2.0 with patches supplied by Andrew Brown <atatat@atatdot.net>. Andrew also provided two test systems. ...
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/lsof/Makefile5
-rw-r--r--sysutils/lsof/distinfo9
-rw-r--r--sysutils/lsof/patches/patch-ab47
-rw-r--r--sysutils/lsof/patches/patch-ac55
-rw-r--r--sysutils/lsof/patches/patch-ad34
5 files changed, 5 insertions, 145 deletions
diff --git a/sysutils/lsof/Makefile b/sysutils/lsof/Makefile
index 3ba77d2c7d4..d860d9e051f 100644
--- a/sysutils/lsof/Makefile
+++ b/sysutils/lsof/Makefile
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.75 2004/04/29 04:19:22 atatat Exp $
+# $NetBSD: Makefile,v 1.76 2004/07/13 13:42:41 atatat Exp $
#
-DISTNAME= lsof_4.71
-PKGREVISION= 1
+DISTNAME= lsof_4.72
PKGNAME= ${DISTNAME:S/_/-/}
CATEGORIES= sysutils
MASTER_SITES= ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/ \
diff --git a/sysutils/lsof/distinfo b/sysutils/lsof/distinfo
index eadc50c5b47..6d76b8501d0 100644
--- a/sysutils/lsof/distinfo
+++ b/sysutils/lsof/distinfo
@@ -1,8 +1,5 @@
-$NetBSD: distinfo,v 1.40 2004/04/29 04:19:22 atatat Exp $
+$NetBSD: distinfo,v 1.41 2004/07/13 13:42:41 atatat Exp $
-SHA1 (lsof_4.71.tar.bz2) = 20f63f6122f5a9a55cf3396e32d33ed4325271ba
-Size (lsof_4.71.tar.bz2) = 701281 bytes
+SHA1 (lsof_4.72.tar.bz2) = 11437772c12cfd566db5176bf23b5615445dfe6e
+Size (lsof_4.72.tar.bz2) = 716577 bytes
SHA1 (patch-aa) = 36790019394b4088c226222d4aefaec50430bcf3
-SHA1 (patch-ab) = f321acb9a1f8cacb4fc9aa8da40d0c60a07e59b9
-SHA1 (patch-ac) = 941b149d31d0bf59192a11b53989d53c9111305b
-SHA1 (patch-ad) = 3d0037bf0a31b108e8adaf8c93b6fa72aa44dfb2
diff --git a/sysutils/lsof/patches/patch-ab b/sysutils/lsof/patches/patch-ab
deleted file mode 100644
index 64053583060..00000000000
--- a/sysutils/lsof/patches/patch-ab
+++ /dev/null
@@ -1,47 +0,0 @@
-$NetBSD: patch-ab,v 1.28 2004/04/29 04:19:22 atatat Exp $
-
-Make lsof compile on and properly report 2.0. Make lsof use statvfs
-on NetBSD where available.
-
---- Configure.orig 2004-03-10 18:41:04.000000000 -0500
-+++ Configure
-@@ -2218,6 +2218,15 @@ return(0); }
- echo "!!!WARNING!!! Unsupported NetBSD version: $LSOF_VSTR"
- echo "!!!WARNING!!! Configuring for NetBSD 1.6"
- ;;
-+ 2.0*)
-+ LSOF_TSTBIGF=" "
-+ LSOF_VERS="2000"
-+ ;;
-+ 2*)
-+ LSOF_VERS=2000
-+ echo "!!!WARNING!!! Unsupported NetBSD version: $LSOF_VSTR"
-+ echo "!!!WARNING!!! Configuring for NetBSD 2.0"
-+ ;;
- *)
- echo "Unknown NetBSD release: $LSOF_VSTR"
- echo Assuming NetBSD 1.0
-@@ -2229,7 +2238,7 @@ return(0); }
- # Test for legal NetBSD version.
-
- case $LSOF_VERS in # {
-- 1000|1010|1020|1030|1040|1050|1060)
-+ 1000|1010|1020|1030|1040|1050|1060|2000)
- ;;
- *)
- echo "Unknown NetBSD version: $LSOF_VERS"
-@@ -2505,6 +2514,14 @@ return(0); }
- then
- LSOF_CFGF="$LSOF_CFGF -DHAS_SYS_PIPEH"
- fi # }
-+ if test -r ${LSOF_INCLUDE}/sys/statvfs.h # {
-+ then
-+ grep -q '^struct statvfs {' ${LSOF_INCLUDE}/sys/statvfs.h
-+ if test $? -eq 0 # {
-+ then
-+ LSOF_CFGF="$LSOF_CFGF -DHASSTATVFS"
-+ fi # }
-+ fi # }
- if test -r ${LSOF_INCLUDE}/kvm.h # {
- then
- grep -q kvm_getproc2 ${LSOF_INCLUDE}/kvm.h
diff --git a/sysutils/lsof/patches/patch-ac b/sysutils/lsof/patches/patch-ac
deleted file mode 100644
index 84141d440f9..00000000000
--- a/sysutils/lsof/patches/patch-ac
+++ /dev/null
@@ -1,55 +0,0 @@
-$NetBSD: patch-ac,v 1.16 2004/04/29 04:19:22 atatat Exp $
-
-Make lsof use statvfs on NetBSD where available.
-
---- dialects/n+obsd/dmnt.c.orig 2002-06-16 21:44:17.000000000 -0400
-+++ dialects/n+obsd/dmnt.c
-@@ -56,7 +56,6 @@ readmnt()
- {
- char *dn = (char *)NULL;
- char *ln;
-- struct statfs *mb = (struct statfs *)NULL;
- struct mounts *mtp;
- int n;
- struct stat sb;
-@@ -65,6 +64,12 @@ readmnt()
- unsigned char procfs = 0;
- #endif /* defined(HASPROCFS) */
-
-+#if defined(HASSTATVFS)
-+ struct statvfs *mb = (struct statvfs *)NULL;
-+#else /* !defined(HASSTATVFS) */
-+ struct statfs *mb = (struct statfs *)NULL;
-+#endif /* defined(HASSTATVFS) */
-+
- if (Lmi || Lmist)
- return(Lmi);
- /*
-@@ -123,7 +128,13 @@ no_space_for_mount:
- " Output information may be incomplete.\n");
- }
- (void) bzero((char *)&sb, sizeof(sb));
-+
-+#if defined(HASSTATVFS)
-+ sb.st_dev = (dev_t)mb->f_fsid;
-+#else /* !defined(HASSTATVFS) */
- sb.st_dev = (dev_t)mb->f_fsid.val[0];
-+#endif /* defined(HASSTATVFS) */
-+
- sb.st_mode = S_IFDIR | 0777;
- if (!Fwarn) {
- (void) fprintf(stderr,
-@@ -222,7 +233,13 @@ readvfs(vm)
- Exit(1);
- }
- vp->addr = vm;
-+
-+#if defined(HASSTATVFS)
-+ vp->fsid = m.m_stat.f_fsidx;
-+#else /* !defined(HASSTATVFS) */
- vp->fsid = m.m_stat.f_fsid;
-+#endif /* defined(HASSTATVFS) */
-+
- (void) snpf(vp->type, sizeof(vp->type), "%s", m.m_stat.f_fstypename);
- vp->next = Lvfs;
- Lvfs = vp;
diff --git a/sysutils/lsof/patches/patch-ad b/sysutils/lsof/patches/patch-ad
deleted file mode 100644
index 28a5d5b435d..00000000000
--- a/sysutils/lsof/patches/patch-ad
+++ /dev/null
@@ -1,34 +0,0 @@
-$NetBSD: patch-ad,v 1.7 2004/04/29 04:19:23 atatat Exp $
-
-Make lsof use statvfs on NetBSD where available.
-
---- dialects/n+obsd/dnode.c.orig 2004-01-14 06:29:19.000000000 -0500
-+++ dialects/n+obsd/dnode.c
-@@ -745,7 +745,13 @@ process_overlaid_node:
- #if defined(HASKERNFS)
- case KERNFSNODE:
- if (vfs) {
-+
-+# if defined(HASSTATVFS)
-+ dev = (dev_t)vfs->fsid.__fsid_val[0];
-+# else /* !defined(HASSTATVFS) */
- dev = (dev_t)vfs->fsid.val[0];
-+# endif /* defined(HASSTATVFS) */
-+
- devs = 1;
- }
- break;
-@@ -1069,7 +1075,13 @@ process_overlaid_node:
- *
- */
- if (nvfs) {
-+
-+# if defined(HASSTATVFS)
-+ dev = nvfs->fsid.__fsid_val[0];
-+# else /* !defined(HASSTATVFS) */
- dev = nvfs->fsid.val[0];
-+# endif /* defined(HASSTATVFS) */
-+
- devs = 1;
- }
- #endif /* defined(HASNULLFS) */