upgrade to lsof 4.51

This commit is contained in:
brad 2000-09-02 03:26:56 +00:00
parent a75df11dfc
commit 94963db00f
8 changed files with 62 additions and 44 deletions

View File

@ -1,56 +1,53 @@
# $OpenBSD: Makefile,v 1.28 2000/06/29 22:30:20 angelos Exp $
# $OpenBSD: Makefile,v 1.29 2000/09/02 03:26:56 brad Exp $
DISTNAME= lsof_4.50_W
PKGNAME= lsof-4.50_W
DISTNAME= lsof_4.51_W
PKGNAME= lsof-4.51_W
CATEGORIES= sysutils
NEED_VERSION= 1.191
FAKE=No
NEED_VERSION= 1.322
MASTER_SITES= ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/ \
ftp://ftp.crc.doc.ca/packages/lsof/ \
ftp://ftp.sunet.se/pub/unix/admin/lsof/
NO_PACKAGE= "compile from source to set proper options"
MAINTAINER= angelos@openbsd.org
LICENSE_TYPE= BSD
PERMIT_PACKAGE_CDROM= YES
PERMIT_PACKAGE_FTP= YES
PERMIT_DISTFILES_CDROM= YES
PERMIT_DISTFILES_FTP= YES
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
HAS_CONFIGURE= yes
MAKE_FLAGS= DEBUG="${CFLAGS}"
CONFIGURE_STYLE= simple
CONFIGURE_SCRIPT= Configure
CONFIGURE_ARGS= -n openbsd
CONFIGURE_ENV= LSOF_CC="${CC}"
SRCBALL_NAME= ${DISTNAME:S/_W$//}
WRKDIST= ${WRKDIR}/${SRCBALL_NAME}
.if ( ${MACHINE_ARCH} == "sparc" )
IS_INTERACTIVE= yes
.if defined( SUN4 )
.if ${MACHINE_ARCH} == "sparc"
IS_INTERACTIVE= Yes
.if defined(SUN4) && ${SUN4:U} == YES
CDEF=-DSUN4
.endif
.if defined( SUN4C )
.elif defined(SUN4C) && ${SUN4C:U} == YES
CDEF=-DSUN4C
.endif
.if defined( SUN4M )
.elif defined(SUN4M) && ${SUN4M:U} == YES
CDEF=-DSUN4M
.endif
MAKE_ENV += "CDEF=${CDEF}"
.if !defined( CDEF )
MAKE_ENV= CDEF="${CDEF}"
.if !defined(CDEF)
pre-build:
@echo
@echo "*** when building for a sparc you must specify one of"
@echo "*** SUN4=YES, SUN4C=YES, or SUN4M=YES"
@echo "*** SUN4=Yes, SUN4C=Yes, or SUN4M=Yes"
@echo "*** on the make command line"
@echo
.endif
.endif
post-extract:
@(cd ${WRKDIR} ; \
@(cd ${WRKDIR}; \
EXPMD5=`/usr/bin/grep MD5 README.${SRCBALL_NAME} | \
/usr/bin/sed 's/^[ ]*//'` ; \
CALCMD5=`md5 ${SRCBALL_NAME}.tar` ; \
@ -59,17 +56,14 @@ post-extract:
echo "($$EXPMD5 != $$CALCMD5)" ; \
exit 1 ; \
fi ; \
${TAR} -xf ${SRCBALL_NAME}.tar \
)
tar -xf ${SRCBALL_NAME}.tar)
@(cd ${WRKSRC}; echo "y" | ./Inventory || exit 1)
do-install:
${INSTALL_PROGRAM} -o ${BINOWN} -g ${BINGRP} -m 0755 \
${WRKSRC}/lsof ${PREFIX}/sbin
${INSTALL_MAN} ${WRKSRC}/lsof.man ${PREFIX}/man/cat8/lsof.8
${INSTALL_SCRIPT_DIR} ${PREFIX}/share/lsof
${INSTALL_PROGRAM} ${WRKBUILD}/lsof ${PREFIX}/sbin
${INSTALL_MAN} ${WRKSRC}/lsof.man ${PREFIX}/man/cat8/lsof.8
${INSTALL_SCRIPT} ${WRKSRC}/scripts/* ${PREFIX}/share/lsof
@${CHMOD} 0444 ${PREFIX}/share/lsof/00*
@chmod 444 ${PREFIX}/share/lsof/00*
.include <bsd.port.mk>

View File

@ -1,3 +1,3 @@
MD5 (lsof_4.50_W.tar.gz) = 0d7c3cc23f7938015fe2266542809c0f
RMD160 (lsof_4.50_W.tar.gz) = ef2936bcc39c10d772715d4f449b7444110cbb7b
SHA1 (lsof_4.50_W.tar.gz) = a3ece3649f4699ddc25150637ce53f57639b1567
MD5 (lsof_4.51_W.tar.gz) = 10674b09649c19015134585c6dca3eee
RMD160 (lsof_4.51_W.tar.gz) = 57467a72b22cf5546a2e72adf765940ef4617086
SHA1 (lsof_4.51_W.tar.gz) = d447b6b353af61a28764df842d54783fa3797d56

View File

@ -0,0 +1,27 @@
--- Configure.orig Fri Sep 1 21:20:16 2000
+++ Configure Fri Sep 1 21:21:22 2000
@@ -2082,10 +2082,13 @@
2.7*)
LSOF_VERS=2070
;;
+ 2.8*)
+ LSOF_VERS=2080
+ ;;
2*)
- LSOF_VERS=2070
+ LSOF_VERS=2080
echo "!!!WARNING!!! Unsupported OpenBSD version: $LSOF_VSTR"
- echo "!!!WARNING!!! Configuring for OpenBSD 2.7"
+ echo "!!!WARNING!!! Configuring for OpenBSD 2.8"
;;
*)
echo "Unknown OpenBSD release: $LSOF_VSTR"
@@ -2098,7 +2101,7 @@
# Test for legal OpenBSD version.
case $LSOF_VERS in # {
- 1020|2000|2010|2020|2030|2040|2050|2060|2070)
+ 1020|2000|2010|2020|2030|2040|2050|2060|2070|2080)
;;
*)
echo "Unknown OpenBSD version: $LSOF_VERS"

View File

@ -3,5 +3,3 @@ running processes. An open file may be a regular file, a directory, a block
special file, a character special file, an executing text reference, a
library, a stream or a network file (Internet socket, NFS file or Unix domain
socket).
-- David (obrien@cs.ucdavis.edu)

View File

@ -1,7 +1,5 @@
*****
* If you wish to allow lsof to be used by other than root you must
* make it sgid to the group kmem. However, the code has NOT been
* audited... you have been warned.
*****
*****
* If you wish to allow lsof to be used by other than root you must
* make it sgid to the group kmem. However, the code has NOT been
* audited... you have been warned.
*****

View File

@ -1,3 +1,4 @@
@comment $OpenBSD: PLIST,v 1.6 2000/09/02 03:26:57 brad Exp $
man/cat8/lsof.8
sbin/lsof
share/lsof/00MANIFEST