2013-01-02 22:23:27 +01:00
|
|
|
# Created by: David O'Brien <obrien@FreeBSD.org>
|
1999-08-31 04:00:46 +02:00
|
|
|
# $FreeBSD$
|
1996-11-11 20:42:45 +01:00
|
|
|
|
2000-04-09 21:09:11 +02:00
|
|
|
PORTNAME= lsof
|
2013-03-27 20:23:50 +01:00
|
|
|
DISTVERSION= 4.88D
|
2013-01-02 22:22:12 +01:00
|
|
|
PORTEPOCH= 8
|
1996-11-11 20:42:45 +01:00
|
|
|
CATEGORIES= sysutils
|
2011-09-30 15:26:02 +02:00
|
|
|
MASTER_SITES= http://ftp.cerias.purdue.edu/pub/tools/unix/sysutils/lsof/ \
|
2006-08-17 00:05:01 +02:00
|
|
|
ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/ \
|
2003-12-17 01:16:26 +01:00
|
|
|
ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/NEW/ \
|
2008-04-13 14:49:55 +02:00
|
|
|
http://www.lerctr.org/lsof/ \
|
2003-10-20 02:12:06 +02:00
|
|
|
ftp://ftp.ayamura.org/pub/lsof/ \
|
|
|
|
ftp://ftp.ayamura.org/pub/lsof/NEW/ \
|
|
|
|
ftp://ftp.cerias.purdue.edu/pub/tools/unix/sysutils/lsof/ \
|
|
|
|
ftp://ftp.cerias.purdue.edu/pub/tools/unix/sysutils/lsof/NEW/ \
|
|
|
|
ftp://gd.tuwien.ac.at/utils/admin-tools/lsof/ \
|
|
|
|
ftp://gd.tuwien.ac.at/utils/admin-tools/lsof/NEW/ \
|
2000-07-16 23:14:48 +02:00
|
|
|
ftp://ftp.sunet.se/pub/unix/admin/lsof/ \
|
2003-10-20 02:12:06 +02:00
|
|
|
ftp://ftp.sunet.se/pub/unix/admin/lsof/NEW/ \
|
|
|
|
ftp://ftp.cert.dfn.de/pub/tools/admin/lsof/ \
|
|
|
|
ftp://ftp.cert.dfn.de/pub/tools/admin/lsof/NEW/ \
|
2008-04-17 22:38:25 +02:00
|
|
|
ftp://ftp.tau.ac.il/pub/unix/admin/
|
2012-07-25 07:37:55 +02:00
|
|
|
DISTNAME= ${PORTNAME}_${DISTVERSION}${DISTNAME_SUFFIX}
|
2007-09-12 03:01:34 +02:00
|
|
|
|
|
|
|
MAINTAINER= ler@lerctr.org
|
|
|
|
COMMENT= Lists information about open files (similar to fstat(1))
|
|
|
|
|
2009-04-13 14:12:12 +02:00
|
|
|
#Please leave the below line in for the next clean up.
|
2013-03-22 16:06:11 +01:00
|
|
|
FIXUP_RELEASE= YES
|
2002-05-25 05:04:45 +02:00
|
|
|
.if defined(FIXUP_RELEASE)
|
2011-01-22 21:46:02 +01:00
|
|
|
DISTNAME_SUFFIX=.freebsd
|
2002-05-25 05:04:45 +02:00
|
|
|
.else
|
2011-01-22 21:46:02 +01:00
|
|
|
SRCBALL_NAME= ${DISTNAME:S/_W$//}_src
|
2002-02-28 05:02:47 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/${SRCBALL_NAME}
|
2002-05-25 05:04:45 +02:00
|
|
|
.endif
|
2011-01-22 21:46:02 +01:00
|
|
|
|
2004-01-18 11:30:14 +01:00
|
|
|
USE_BZIP2= yes
|
1996-11-11 20:42:45 +01:00
|
|
|
HAS_CONFIGURE= yes
|
2012-05-22 08:01:59 +02:00
|
|
|
|
2013-09-21 01:05:58 +02:00
|
|
|
NO_STAGE= yes
|
2012-05-22 08:01:59 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2012-09-04 04:58:36 +02:00
|
|
|
.if ${ARCH} == "arm"
|
|
|
|
BROKEN= Does not compile on arm
|
|
|
|
.endif
|
|
|
|
|
1996-11-11 20:42:45 +01:00
|
|
|
CONFIGURE_SCRIPT= Configure
|
|
|
|
CONFIGURE_ARGS= -n freebsd
|
2011-03-29 21:04:45 +02:00
|
|
|
CONFIGURE_ENV= LSOF_CC="${CC}" FREEBSD_SYS="${SRC_BASE}/sys"
|
2004-07-16 01:14:29 +02:00
|
|
|
PLIST_FILES= sbin/lsof
|
1998-12-01 10:41:59 +01:00
|
|
|
MAN8= lsof.8
|
1996-11-11 20:42:45 +01:00
|
|
|
|
2012-04-15 17:03:19 +02:00
|
|
|
.if !exists(${SRC_BASE}/sys/kern/kern_lockf.c)
|
|
|
|
IGNORE= requires kernel sources
|
|
|
|
.endif
|
|
|
|
|
2001-09-02 00:00:47 +02:00
|
|
|
.if !defined(FIXUP_RELEASE)
|
1996-11-11 20:42:45 +01:00
|
|
|
post-extract:
|
2002-02-28 05:02:47 +01:00
|
|
|
@( cd ${WRKDIR}/${DISTNAME} ; \
|
2006-04-27 03:49:36 +02:00
|
|
|
EXPMD5=`${SED} -n 's/^[[:blank:]]*\(MD5*=*\)/\1/p' README.${DISTNAME}` ; \
|
1996-11-11 20:42:45 +01:00
|
|
|
CALCMD5=`${MD5} ${SRCBALL_NAME}.tar` ; \
|
|
|
|
if [ "$${EXPMD5}"X != "$${CALCMD5}"X ]; then \
|
1999-08-28 00:30:39 +02:00
|
|
|
${ECHO} "Expected and calculated MD5 signatures don't agree." ; \
|
|
|
|
${ECHO} "($$EXPMD5 != $$CALCMD5)" ; \
|
1996-11-11 20:42:45 +01:00
|
|
|
exit 1 ; \
|
|
|
|
fi ; \
|
2013-04-29 10:57:12 +02:00
|
|
|
${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${SRCBALL_NAME}.tar ${EXTRACT_AFTER_ARGS} \
|
1996-11-11 20:42:45 +01:00
|
|
|
)
|
2002-01-29 12:58:52 +01:00
|
|
|
@( cd ${WRKSRC} ; ${ECHO_CMD} "y" | ./Inventory || exit 1 )
|
2001-09-02 00:00:47 +02:00
|
|
|
.endif
|
1996-11-11 20:42:45 +01:00
|
|
|
|
|
|
|
do-install:
|
1998-09-16 06:14:27 +02:00
|
|
|
${INSTALL} ${COPY} ${STRIP} -o ${BINOWN} -m 2755 -g kmem ${WRKSRC}/lsof ${PREFIX}/sbin
|
2003-03-25 19:16:12 +01:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/lsof.8 ${MAN8PREFIX}/man/man8/lsof.8
|
1997-03-24 19:42:57 +01:00
|
|
|
@${MKDIR} ${PREFIX}/share/lsof
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/scripts/* ${PREFIX}/share/lsof
|
1999-08-22 21:01:07 +02:00
|
|
|
@${CHMOD} 0444 ${PREFIX}/share/lsof/00*
|
1997-03-24 19:42:57 +01:00
|
|
|
|
2004-07-16 01:14:29 +02:00
|
|
|
post-install:
|
|
|
|
cd ${PREFIX} && \
|
|
|
|
${FIND} -s share/lsof -type f -o -type l >>${TMPPLIST} ;\
|
|
|
|
${FIND} -d share/lsof -type d \
|
|
|
|
| ${SED} -e 's/^/@dirrm /g' >>${TMPPLIST}
|
|
|
|
|
2012-04-15 17:03:19 +02:00
|
|
|
.include <bsd.port.post.mk>
|