diff options
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/lsof/Makefile | 4 | ||||
-rw-r--r-- | sysutils/lsof/distinfo | 4 | ||||
-rw-r--r-- | sysutils/lsof/patches/patch-ag | 61 |
3 files changed, 57 insertions, 12 deletions
diff --git a/sysutils/lsof/Makefile b/sysutils/lsof/Makefile index 2b297a7f5f7..27a438c4449 100644 --- a/sysutils/lsof/Makefile +++ b/sysutils/lsof/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.98 2008/05/29 16:52:59 tnn Exp $ +# $NetBSD: Makefile,v 1.99 2009/05/01 12:56:50 apb Exp $ DISTNAME= lsof_4.78 PKGNAME= ${DISTNAME:S/_/-/}.${OS_VERSION} -PKGREVISION= 3 +PKGREVISION= 4 CATEGORIES= sysutils MASTER_SITES= ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/ \ ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/NEW/ \ diff --git a/sysutils/lsof/distinfo b/sysutils/lsof/distinfo index 757cb7c8cc3..1e25e342b31 100644 --- a/sysutils/lsof/distinfo +++ b/sysutils/lsof/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.74 2008/05/17 23:53:29 christos Exp $ +$NetBSD: distinfo,v 1.75 2009/05/01 12:56:50 apb Exp $ SHA1 (lsof_4.78.tar.bz2) = 0379fc9f38a931ce19e8386e662314d96fc2a099 RMD160 (lsof_4.78.tar.bz2) = 50d71e500f1109cda717b73ce209c0e100a6dbe9 @@ -9,5 +9,5 @@ SHA1 (patch-ac) = dac0fcdfee97d42c8f23684a4321519b9f8698d9 SHA1 (patch-ad) = 4bd73dea4770c7f5a43be0d096c26e7d6728dd2c SHA1 (patch-ae) = 1d8c1c3baf9575631c23d3ced7b12fab1df95cd6 SHA1 (patch-af) = 7481b1d10b12b7c6216858db30b25a3b985e4d3d -SHA1 (patch-ag) = febdf5429228a921496d89bb6e589e22ee21e728 +SHA1 (patch-ag) = 2f14b7954976e3b3d43034e13bf31d14ca65e4e3 SHA1 (patch-ah) = 0ed8ca9cc34d85dc01b135e70077c922d26d8831 diff --git a/sysutils/lsof/patches/patch-ag b/sysutils/lsof/patches/patch-ag index eaa5c55e14c..c03995ea1a6 100644 --- a/sysutils/lsof/patches/patch-ag +++ b/sysutils/lsof/patches/patch-ag @@ -1,4 +1,4 @@ -$NetBSD: patch-ag,v 1.4 2007/12/28 16:15:40 adam Exp $ +$NetBSD: patch-ag,v 1.5 2009/05/01 12:56:50 apb Exp $ --- Configure.orig 2007-04-24 21:00:22.000000000 +0200 +++ Configure @@ -10,7 +10,19 @@ $NetBSD: patch-ag,v 1.4 2007/12/28 16:15:40 adam Exp $ # $LSOF_N_UNIXV *BSD system's kernel file # $LSOF_PL patch level # $LSOF_RANLIB randomizing command for the lsof library -@@ -2447,6 +2448,19 @@ return(0); } +@@ -2391,6 +2392,11 @@ return(0); } + # Validate the NetBSD version. + + case $LSOF_VSTR in # { ++ 0*|1.[01]*) ++ LSOF_VERS="1006000" ++ echo "!!!WARNING!!! Unsupported NetBSD version: $LSOF_VSTR" ++ echo "!!!WARNING!!! Configuring for NetBSD 1.2" ++ ;; + 1.2*) + LSOF_VERS="1002000" + ;; +@@ -2447,10 +2453,36 @@ return(0); } echo "!!!WARNING!!! Unsupported NetBSD version: $LSOF_VSTR" echo "!!!WARNING!!! Configuring for NetBSD 3.0" ;; @@ -27,19 +39,52 @@ $NetBSD: patch-ag,v 1.4 2007/12/28 16:15:40 adam Exp $ + echo "!!!WARNING!!! Unsupported NetBSD version: $LSOF_VSTR" + echo "!!!WARNING!!! Configuring for NetBSD 4.0" + ;; ++ 5.0*) ++ LSOF_TSTBIGF=" " ++ LSOF_VERS="5000000" ++ ;; ++ 5.99.*) ++ LSOF_TSTBIGF=" " ++ LSOF_VERS="5099000" ++ ;; ++ 5*) ++ LSOF_VERS="5000000" ++ echo "!!!WARNING!!! Unsupported NetBSD version: $LSOF_VSTR" ++ echo "!!!WARNING!!! Configuring for NetBSD 5.0" ++ ;; *) ++ LSOF_VERS="5000000" echo "Unknown NetBSD release: $LSOF_VSTR" - echo Assuming NetBSD 1.6 -@@ -2464,6 +2478,8 @@ return(0); } +- echo Assuming NetBSD 1.6 +- LSOF_VERS="1006000" ++ echo "!!!WARNING!!! Configuring for NetBSD 5.0" + ;; + esac # } + fi # } +@@ -2464,6 +2496,10 @@ return(0); } ;; 3000000|3099000) ;; + 4000000|4099000) + ;; ++ 5000000|5099000) ++ ;; *) echo "Unknown NetBSD version: $LSOF_VERS" rm -f $LSOF_HLP -@@ -2871,6 +2887,7 @@ return(0); } +@@ -2472,7 +2508,10 @@ return(0); } + esac # } + LSOF_CFGF="-DNETBSDV=$LSOF_VERS" + LSOF_TMP1="-DN_UNIXV=/netbsd" +- if test -r ${LSOF_INCLUDE}/util.h # { ++ if test -r /dev/ksyms # { ++ then ++ LSOF_TMP1="-DN_UNIXV=/dev/ksyms" ++ elif test -r ${LSOF_INCLUDE}/util.h # } { + then + grep -q getbootfile ${LSOF_INCLUDE}/util.h + if test $? -eq 0 # { +@@ -2871,6 +2910,7 @@ return(0); } fi # } LSOF_TMP2="sys/vnode.h" LSOF_NBSD_PTYFS=0 @@ -47,7 +92,7 @@ $NetBSD: patch-ag,v 1.4 2007/12/28 16:15:40 adam Exp $ if test -r ${LSOF_INCLUDE}/$LSOF_TMP2 # { then LSOF_TMP3="${LSOF_INCLUDE}/$LSOF_TMP2" -@@ -2948,6 +2965,24 @@ return(0); } +@@ -2948,6 +2988,24 @@ return(0); } fi # } fi # } fi # } @@ -72,7 +117,7 @@ $NetBSD: patch-ag,v 1.4 2007/12/28 16:15:40 adam Exp $ if test "X$NETBSD_UVM" = "X" # { then grep -q UVM $LSOF_TMP3 -@@ -3233,6 +3268,28 @@ return(0); } +@@ -3233,6 +3291,28 @@ return(0); } LSOF_CFGF="$LSOF_CFGF -I`pwd`/dialects/n+obsd/include" fi # } fi # } @@ -101,7 +146,7 @@ $NetBSD: patch-ag,v 1.4 2007/12/28 16:15:40 adam Exp $ LSOF_CFGL="$LSOF_CFGL -lkvm" LSOF_DIALECT_DIR=n+obsd ;; -@@ -4833,7 +4890,7 @@ fi # } +@@ -4833,7 +4913,7 @@ fi # } echo "" >> $LSOF_MKFC if test "X$LSOF_DEBUG" = "X" # { then |