openbsd-ports/sysutils/lsof/patches/patch-Configure

79 lines
2.2 KiB
Plaintext

$OpenBSD: patch-Configure,v 1.34 2012/03/15 21:36:44 sthen Exp $
--- Configure.orig Mon Jan 18 19:01:14 2010
+++ Configure Tue Jul 19 09:19:48 2011
@@ -3787,13 +3787,30 @@ return(0); }
3*)
LSOF_TSTBIGF=" "
LSOF_VERS=3090
- echo "!!!WARNING!!! Unsupported OpenBSD 3.x version: $LSOF_VSTR"
- echo "!!!WARNING!!! Configuring for OpenBSD 3.9"
+ echo "Unknown OpenBSD 3.x version: $LSOF_VSTR"
+ echo "Configuring for OpenBSD 3.9"
;;
+ 4.0|4.1|4.2|4.3|4.4|4.5|4.6)
+ LSOF_TSTBIGF=" "
+ LSOF_VERS=3090
+ ;;
+ 4*)
+ LSOF_TSTBIGF=" "
+ LSOF_VERS=4070
+ echo "Unknown OpenBSD 4.x version: $LSOF_VSTR"
+ echo "Configuring for OpenBSD 4.7"
+ ;;
+ 5*)
+ LSOF_TSTBIGF=" "
+ LSOF_VERS=5000
+ echo "Unknown OpenBSD 5.x version: $LSOF_VSTR"
+ echo "Configuring for OpenBSD 5.0"
+ ;;
*)
+ LSOF_TSTBIGF=" "
echo "Unknown OpenBSD release: $LSOF_VSTR"
- echo Assuming OpenBSD 3.9
- LSOF_VERS=3090
+ echo Assuming OpenBSD 5.0
+ LSOF_VERS=5000
;;
esac # }
fi # }
@@ -3801,7 +3818,7 @@ return(0); }
# Test for legal OpenBSD version.
case $LSOF_VERS in # {
- 1020|2050|2060|2070|2080|2090|3000|3010|3020|3030|3040|3050|3060|3070|3080|3090)
+ 1020|2050|2060|2070|2080|2090|3000|3010|3020|3030|3040|3050|3060|3070|3080|3090|4070|5000)
;;
*)
echo "Unknown OpenBSD version: $LSOF_VERS"
@@ -3863,11 +3880,6 @@ return(0); }
LSOF_TMP1=1
fi # }
fi # }
- if test -d ${OPENBSD_SYS}/miscfs/procfs # {
- then
- LSOF_CFGF="$LSOF_CFGF -DHASPROCFS"
- LSOF_TMP1=1
- fi # }
if test -d ${OPENBSD_SYS}/isofs/cd9660 # {
then
LSOF_CFGF="$LSOF_CFGF -DHAS9660FS=1"
@@ -4041,6 +4053,18 @@ return(0); }
if test -r ${LSOF_INCLUDE}/sys/pipe.h # {
then
LSOF_CFGF="$LSOF_CFGF -DHAS_SYS_PIPEH"
+ fi # }
+ if test -r ${LSOF_INCLUDE}/kvm.h # {
+ then
+ grep -q kvm_getproc2 ${LSOF_INCLUDE}/kvm.h
+ if test $? -eq 0 # {
+ then
+ LSOF_CFGF="$LSOF_CFGF -DHASKVMGETPROC2"
+ fi # }
+ fi # }
+ if test -r ${LSOF_INCLUDE}/kvm.h -a $LSOF_VERS -ge 5000 # {
+ then
+ LSOF_CFGF="$LSOF_CFGF -DHASKVMGETPROC2 -DHASKVMGETPROCS"
fi # }
LSOF_CFGL="$LSOF_CFGL -lkvm"
LSOF_DIALECT_DIR=n+obsd