pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/lsof Add LFS support to lsof. Bump PKGREVISI...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1d9f187e106c
branches:  trunk
changeset: 466202:1d9f187e106c
user:      atatat <atatat%pkgsrc.org@localhost>
date:      Tue Jan 13 02:50:27 2004 +0000

description:
Add LFS support to lsof.  Bump PKGREVISION to 1, making this 4.69nb1.
This patch will be included in the next lsof release.

diffstat:

 sysutils/lsof/Makefile         |    3 +-
 sysutils/lsof/distinfo         |    4 +-
 sysutils/lsof/patches/patch-ab |   83 +++++++++++++++++++++
 sysutils/lsof/patches/patch-ac |  160 +++++++++++++++++++++++++++++++++++++++++
 4 files changed, 248 insertions(+), 2 deletions(-)

diffs (277 lines):

diff -r 7b20ffa7ba19 -r 1d9f187e106c sysutils/lsof/Makefile
--- a/sysutils/lsof/Makefile    Tue Jan 13 02:44:21 2004 +0000
+++ b/sysutils/lsof/Makefile    Tue Jan 13 02:50:27 2004 +0000
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.69 2004/01/05 12:48:30 jlam Exp $
+# $NetBSD: Makefile,v 1.70 2004/01/13 02:50:27 atatat Exp $
 #
 
 DISTNAME=              lsof_4.69
 PKGNAME=               ${DISTNAME:S/_/-/}
+PKGREVISION=           1
 WRKSRC=                        ${WRKDIR}/${DISTNAME}/${SRCBALL_NAME}
 CATEGORIES=            sysutils
 MASTER_SITES=          ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/  \
diff -r 7b20ffa7ba19 -r 1d9f187e106c sysutils/lsof/distinfo
--- a/sysutils/lsof/distinfo    Tue Jan 13 02:44:21 2004 +0000
+++ b/sysutils/lsof/distinfo    Tue Jan 13 02:50:27 2004 +0000
@@ -1,5 +1,7 @@
-$NetBSD: distinfo,v 1.34 2003/11/22 23:30:03 atatat Exp $
+$NetBSD: distinfo,v 1.35 2004/01/13 02:50:27 atatat Exp $
 
 SHA1 (lsof_4.69.tar.gz) = 2ed1fc88e5508dfc38dc0a70559b6e8ee78a0bae
 Size (lsof_4.69.tar.gz) = 969757 bytes
 SHA1 (patch-aa) = 36790019394b4088c226222d4aefaec50430bcf3
+SHA1 (patch-ab) = 03d22c9ab73484434f02b96ecf66ee41fde9baf2
+SHA1 (patch-ac) = ab439c1d1a7b5864ea8f593324471c6a724e5faf
diff -r 7b20ffa7ba19 -r 1d9f187e106c sysutils/lsof/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/lsof/patches/patch-ab    Tue Jan 13 02:50:27 2004 +0000
@@ -0,0 +1,83 @@
+$NetBSD: patch-ab,v 1.25 2004/01/13 02:50:28 atatat Exp $
+
+Support for LFS.
+
+--- Configure.orig     2003-10-15 16:30:40.000000000 -0400
++++ Configure
+@@ -2253,6 +2253,14 @@ kernel generation process.
+       fi      # }
+       LSOF_TMP1=1
+     fi        # }
++    if test -r ${LSOF_INCLUDE}/sys/vnode.h    # {
++    then
++      grep -q VT_LFS ${LSOF_INCLUDE}/sys/vnode.h
++      if test $? -eq 0   # {
++      then
++      LSOF_CFGF="$LSOF_CFGF -DHASLFS"
++      fi      # }
++    fi        # }
+     if test -r ${LSOF_INCLUDE}/miscfs/nullfs/null.h   # {
+     then
+       LSOF_CFGF="$LSOF_CFGF -DHASNULLFS"
+@@ -2619,11 +2627,15 @@ kernel generation process.
+       LSOF_TSTBIGF=" "
+       LSOF_VERS=3030
+       ;;
++      3.4*)
++      LSOF_TSTBIGF=" "
++      LSOF_VERS=3040
++      ;;
+       3*)
+       LSOF_TSTBIGF=" "
+-      LSOF_VERS=3020
++      LSOF_VERS=3030
+       echo "!!!WARNING!!!  Unsupported OpenBSD 3.x version: $LSOF_VSTR"
+-      echo "!!!WARNING!!!  Configuring for OpenBSD 3.2"
++      echo "!!!WARNING!!!  Configuring for OpenBSD 3.3"
+       ;;
+       *)
+       echo "Unknown OpenBSD release: $LSOF_VSTR"
+@@ -2636,7 +2648,7 @@ kernel generation process.
+     # Test for legal OpenBSD version.
+ 
+     case $LSOF_VERS in        # {
+-    1020|2050|2060|2070|2080|2090|3000|3010|3020|3030)
++    1020|2050|2060|2070|2080|2090|3000|3010|3020|3030|3040)
+       ;;
+     *)
+       echo "Unknown OpenBSD version: $LSOF_VERS"
+@@ -2680,6 +2692,14 @@ kernel generation process.
+       fi      # }
+       LSOF_TMP1=1
+     fi        # }
++    if test -r ${LSOF_INCLUDE}/sys/vnode.h    # {
++    then
++      grep -q VT_LFS ${LSOF_INCLUDE}/sys/vnode.h
++      if test $? -eq 0   # {
++      then
++      LSOF_CFGF="$LSOF_CFGF -DHASLFS"
++      fi      # }
++    fi        # }
+     if test -r ${LSOF_INCLUDE}/miscfs/nullfs/null.h   # {
+     then
+       LSOF_CFGF="$LSOF_CFGF -DHASNULLFS"
+@@ -2733,12 +2753,18 @@ kernel generation process.
+     grep -q VT_EXT2FS ${LSOF_INCLUDE}/sys/vnode.h
+     if test $? -eq 0  # {
+     then
+-      LSOF_CFGF="$LSOF_CFGF -DHASEXT2FS"
++      LSOF_TMP1=1
+       grep -q "*e2fs_din" ${LSOF_INCLUDE}/ufs/ufs/inode.h
+       if test $? -eq 0        # {
+       then
+       LSOF_CFGF="$LSOF_CFGF -DHASI_E2FS_PTR"
+       fi      # }
++      grep -q "^#define[      ]i_e2din" ${LSOF_INCLUDE}/ufs/ufs/inode.h
++      if test $? -eq 0        # {
++      then
++      LSOF_TMP1=2
++      fi      # }
++      LSOF_CFGF="$LSOF_CFGF -DHASEXT2FS=$LSOF_TMP1"
+     fi        # }
+     if test -r ${LSOF_INCLUDE}/sys/namei.h
+     then
diff -r 7b20ffa7ba19 -r 1d9f187e106c sysutils/lsof/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/lsof/patches/patch-ac    Tue Jan 13 02:50:27 2004 +0000
@@ -0,0 +1,160 @@
+$NetBSD: patch-ac,v 1.14 2004/01/13 02:50:28 atatat Exp $
+
+Support for LFS.
+
+--- dialects/n+obsd/dnode.c.orig       2003-10-15 07:34:21.000000000 -0400
++++ dialects/n+obsd/dnode.c
+@@ -528,6 +528,10 @@ process_overlaid_node:
+       case VT_EXT2FS:
+ #endif        /* defined(HASEXT2FS) */
+ 
++#if   defined(HASLFS)
++      case VT_LFS:
++#endif        /* defined(HASLFS) */
++
+       case VT_UFS:
+           if (!v->v_data
+           ||  kread((KA_T)v->v_data, (char *)&i, sizeof(i))) {
+@@ -546,7 +550,11 @@ process_overlaid_node:
+               &&  !kread((KA_T)i.i_din.e2fs_din, (char *)&ed, sizeof(ed)))
+                   edp = &ed;
+ # else        /* !defined(HASI_E2FS_PTR) */
++#  if HASEXT2FS<2
+               edp = &i.i_din.e2fs_din;
++#  else       /* HASEXT2FS>=2 */
++              edp = &i.i_e2din;
++#  endif      /* HASEXT2FS>=2 */
+ # endif       /* defined(HASI_E2FS_PTR) */
+ 
+           } else
+@@ -693,7 +701,11 @@ process_overlaid_node:
+                   rdevs = 1;
+               }
+ # else        /* !defined(HASI_E2FS_PTR) */
++#  if HASEXT2FS<2
+               rdev = i.i_din.e2fs_din.e2di_rdev;
++#  else       /* HASEXT2FS>=2 */
++              rdev = i.i_e2din.e2di_rdev;
++#  endif      /* HASEXT2FS>=2 */
+               rdevs = 1;
+ # endif       /* defined(HASI_E2FS_PTR) */
+ 
+@@ -895,13 +907,17 @@ process_overlaid_node:
+ 
+           case N_REGLR:
+               if (type == VREG || type == VDIR) {
+-                  if (nty == INODE) {
++                  switch (nty) {
++                  case INODE:
+ 
+ #if   defined(HASI_FFS)
++                      
+                       Lf->sz = (SZOFFTYPE)i.i_ffs_size;
+                       Lf->sz_def = 1;
++                      break;
+ #else /* !defined(HASI_FFS) */
+ # if  defined(HASI_FFS1)
++
+                       if (ffs == 1) {
+                           if (u1s) {
+                               Lf->sz = (SZOFFTYPE)u1.di_size;
+@@ -913,28 +929,30 @@ process_overlaid_node:
+                               Lf->sz_def = 1;
+                           }
+                       }
++                      break;
+ # else        /* !defined(HASI_FFS1) */
+                       Lf->sz = (SZOFFTYPE)i.i_size;
+                       Lf->sz_def = 1;
+ # endif       /* defined(HASI_FFS1) */
+ #endif        /* defined(HASI_FFS) */
+ 
+-                  }
++                      break;
++
+ 
+ #if   defined(HASMSDOSFS)
+-                  else if (nty == DOSNODE) {
++                  case DOSNODE:
+                       Lf->sz = (SZOFFTYPE)d.de_FileSize;
+                       Lf->sz_def = 1;
+-                  }
++                      break;
+ #endif        /* defined(HASMSDOSFS) */
+ 
+-                  else if (nty == MFSNODE) {
++                  case MFSNODE:
+                       Lf->sz = (SZOFFTYPE)m.mfs_size;
+                       Lf->sz_def = 1;
+-                  }
++                      break;
+ 
+ #if   defined(HASEXT2FS)
+-                  else if (nty == EXT2NODE) {
++                  case EXT2NODE:
+ # if  defined(HASI_E2FS_PTR)
+                       if (edp) {
+                           Lf->sz = (SZOFFTYPE)edp->e2di_size;
+@@ -944,11 +962,11 @@ process_overlaid_node:
+                       Lf->sz = (SZOFFTYPE)i.i_e2fs_size;
+                       Lf->sz_def = 1;
+ # endif       /* defined(HASI_E2FS_PTR) */
+-                  }
++                      break;
+ #endif        /* defined(HASEXT2FS) */
+ 
+-              }
+-              else if ((type == VCHR || type == VBLK) && !Fsize)
++                  }
++              } else if ((type == VCHR || type == VBLK) && !Fsize)
+                   Lf->off_def = 1;
+               break;
+           }
+@@ -984,7 +1002,8 @@ process_overlaid_node:
+               }
+               break;
+           case N_REGLR:
+-              if (nty == INODE) {
++              switch (nty) {
++              case INODE:
+ 
+ # if  defined(HASI_FFS)
+                   Lf->nlink = (long)i.i_ffs_nlink;
+@@ -1009,18 +1028,17 @@ process_overlaid_node:
+ # endif       /* defined(HASI_FFS) */
+ 
+                   Lf->nlink_def = 1;
+-              }
++                  break;
+ 
+ #if   defined(HASMSDOSFS)
+-              else if (nty == DOSNODE) {
++              case DOSNODE:
+                   Lf->nlink = (long)d.de_refcnt;
+                   Lf->nlink_def = 1;
+-              }
++                  break;
+ #endif        /* defined(HASMSDOSFS) */
+ 
+-
+ #if   defined(HASEXT2FS)
+-              else if (nty == EXT2NODE) {
++              case EXT2NODE:
+ # if  defined(HASI_E2FS_PTR)
+                   if (edp) {
+                       Lf->nlink = (long)edp->e2di_nlink;
+@@ -1030,9 +1048,12 @@ process_overlaid_node:
+                   Lf->nlink = (long)i.i_e2fs_nlink;
+                   Lf->nlink_def = 1;
+ # endif       /* defined(HASI_E2FS_PTR) */
+-              }
+-#endif        /* defined(HASEXT2FS) */
+ 
++                  break;
++      
++#endif        /* defined(HASEXT2FS) */
++              
++              }
+               break;
+           }
+           if (Lf->nlink_def && Nlink && (Lf->nlink < Nlink))



Home | Main Index | Thread Index | Old Index