diff options
| author | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2011-01-22 20:46:02 +0000 |
|---|---|---|
| committer | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2011-01-22 20:46:02 +0000 |
| commit | 6e22bdf1993d0efc32fd085a035050cdb96e847a (patch) | |
| tree | 05f4dab40edefb582441f1696c4b676cb8f37a8c | |
| parent | - Update to 2.8 (diff) | |
- Update to 4.85A
- Pet portlint
- Utilize SRC_BASE
- Minor cleanups
PR: ports/154125
Submitted by: Larry Rosenman <ler@lerctr.org> (maintainer)
Feature safe: yes
| -rw-r--r-- | sysutils/lsof/Makefile | 16 | ||||
| -rw-r--r-- | sysutils/lsof/distinfo | 5 | ||||
| -rw-r--r-- | sysutils/lsof/files/patch-Configure | 31 |
3 files changed, 39 insertions, 13 deletions
diff --git a/sysutils/lsof/Makefile b/sysutils/lsof/Makefile index d33f9a240b30..c421b3cd5191 100644 --- a/sysutils/lsof/Makefile +++ b/sysutils/lsof/Makefile @@ -7,7 +7,7 @@ # PORTNAME= lsof -PORTVERSION= 4.84A +PORTVERSION= 4.85A PORTEPOCH= 5 CATEGORIES= sysutils MASTER_SITES= http://www.SpringDaemons.com/stas/ \ @@ -26,6 +26,7 @@ MASTER_SITES= http://www.SpringDaemons.com/stas/ \ ftp://ftp.cert.dfn.de/pub/tools/admin/lsof/ \ ftp://ftp.cert.dfn.de/pub/tools/admin/lsof/NEW/ \ ftp://ftp.tau.ac.il/pub/unix/admin/ +DISTNAME= ${PORTNAME}_${PORTVERSION}${DISTNAME_SUFFIX} MAINTAINER= ler@lerctr.org COMMENT= Lists information about open files (similar to fstat(1)) @@ -33,26 +34,21 @@ COMMENT= Lists information about open files (similar to fstat(1)) #Please leave the below line in for the next clean up. FIXUP_RELEASE= YES .if defined(FIXUP_RELEASE) -DISTNAME= ${PORTNAME}_${PORTVERSION}.freebsd -.else -DISTNAME= ${PORTNAME}_${PORTVERSION} -.endif -.if defined(FIXUP_RELEASE) -WRKSRC= ${WRKDIR}/${DISTNAME} +DISTNAME_SUFFIX=.freebsd .else +SRCBALL_NAME= ${DISTNAME:S/_W$//}_src WRKSRC= ${WRKDIR}/${DISTNAME}/${SRCBALL_NAME} .endif + USE_BZIP2= yes HAS_CONFIGURE= yes CONFIGURE_SCRIPT= Configure CONFIGURE_ARGS= -n freebsd CONFIGURE_ENV= LSOF_CC="${CC}" -FREEBSD_SYS?= /usr/src/sys +FREEBSD_SYS?= ${SRC_BASE}/sys PLIST_FILES= sbin/lsof MAN8= lsof.8 -SRCBALL_NAME= ${DISTNAME:S/_W$//}_src - .if !defined(FIXUP_RELEASE) post-extract: @( cd ${WRKDIR}/${DISTNAME} ; \ diff --git a/sysutils/lsof/distinfo b/sysutils/lsof/distinfo index 3f046d78875a..a85ccdb1aed9 100644 --- a/sysutils/lsof/distinfo +++ b/sysutils/lsof/distinfo @@ -1,3 +1,2 @@ -MD5 (lsof_4.84A.freebsd.tar.bz2) = 972e700ebbf571275cd69cd0f9750765 -SHA256 (lsof_4.84A.freebsd.tar.bz2) = 73f27ecf4de44e6235cf09a6cd0a83786702e02d20547a35d362a2cc9104557b -SIZE (lsof_4.84A.freebsd.tar.bz2) = 473570 +SHA256 (lsof_4.85A.freebsd.tar.bz2) = 20ad3dc9b2d48ed74c4e3a60bb70d1ee6708bcf9acbc38c39c77f8c0df66e8fc +SIZE (lsof_4.85A.freebsd.tar.bz2) = 476130 diff --git a/sysutils/lsof/files/patch-Configure b/sysutils/lsof/files/patch-Configure new file mode 100644 index 000000000000..d4272c8e9d06 --- /dev/null +++ b/sysutils/lsof/files/patch-Configure @@ -0,0 +1,31 @@ +--- Configure.orig 2011-01-19 01:47:42.000000000 +0800 ++++ Configure 2011-01-23 04:40:04.000000000 +0800 +@@ -1576,6 +1576,10 @@ + LSOF_TSTBIGF=" " + LSOF_VERS=8000 + ;; ++ 8.1*) ++ LSOF_TSTBIGF=" " ++ LSOF_VERS=8010 ++ ;; + 8.2*) + LSOF_TSTBIGF=" " + LSOF_VERS=8020 +@@ -1601,7 +1605,7 @@ + # Clear LSOF_UNSUP message for supported versions of FreeBSD. + + case $LSOF_VERS in # { +- 4090|7000|7010|7020|7030|7040|8000|8020|9000) ++ 4090|7000|7010|7020|7030|7040|8000|8010|8020|9000) + LSOF_UNSUP="" + ;; + esac # } +@@ -1687,7 +1691,7 @@ + LSOF_CFGF="$LSOF_CFGF -DHASVMLOCKH" + fi # } + ;; +- 4000|4010|4020|4030|4040|4050|4060|4070|4080|4090|4100|4110|5000|5010|5020|5030|5040|5050|6000|6010|6020|6030|6040|7000|7010|7020|7030|7040|8000|8020|9000) ++ 4000|4010|4020|4030|4040|4050|4060|4070|4080|4090|4100|4110|5000|5010|5020|5030|5040|5050|6000|6010|6020|6030|6040|7000|7010|7020|7030|7040|8000|8010|8020|9000) + if test -r ${LSOF_INCLUDE}/nfs/rpcv2.h # { + then + LSOF_CFGF="$LSOF_CFGF -DHASRPCV2H" |
