openbsd-ports/sysutils/lsof/Makefile

68 lines
1.9 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.86 2012/03/15 21:39:53 sthen Exp $
COMMENT= list information about open files
1997-11-25 18:16:33 -05:00
VERSION= 4.83
2002-01-24 19:58:18 -05:00
DISTNAME= lsof_${VERSION}
2010-07-24 19:01:56 -04:00
PKGNAME= ${DISTNAME:S/_/-/}
REVISION= 8
1997-11-25 18:16:33 -05:00
CATEGORIES= sysutils
MASTER_SITES= http://www.mirrorservice.org/sites/vic.cc.purdue.edu/pub/tools/unix/lsof/OLD/ \
ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/ \
ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/OLD/ \
ftp://ftp.fu-berlin.de/pub/unix/tools/lsof/OLD/ \
ftp://ftp.fu-berlin.de/pub/unix/tools/lsof/ \
http://www.mirrorservice.org/sites/vic.cc.purdue.edu/pub/tools/unix/lsof/
2010-11-22 15:10:54 -05:00
HOMEPAGE= http://people.freebsd.org/~abe/
MAINTAINER= Peter Valchev <pvalchev@openbsd.org>
1997-11-25 18:16:33 -05:00
2000-09-01 23:26:56 -04:00
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c kvm>=13
2000-09-01 23:26:56 -04:00
MAKE_FLAGS= DEBUG="${CFLAGS}"
2000-02-12 01:29:49 -05:00
2000-09-01 23:26:56 -04:00
CONFIGURE_STYLE= simple
1999-04-18 16:34:28 -04:00
CONFIGURE_SCRIPT= Configure
1997-11-25 18:16:33 -05:00
CONFIGURE_ARGS= -n openbsd
2000-09-01 23:26:56 -04:00
CONFIGURE_ENV= LSOF_CC="${CC}"
1997-11-25 18:16:33 -05:00
2002-01-24 19:58:18 -05:00
SRCBALL_NAME= ${DISTNAME}_src
WRKDIST= ${WRKDIR}/${DISTNAME}/${SRCBALL_NAME}
1997-11-25 18:16:33 -05:00
post-extract:
2002-01-24 19:58:18 -05:00
@(cd ${WRKDIST}/..; \
EXPMD5=`/usr/bin/grep "MD5 (" README.${DISTNAME} | \
/usr/bin/sed 's/^[ ]*//'` ; \
CALCMD5=`md5 ${SRCBALL_NAME}.tar` ; \
1997-11-25 18:16:33 -05:00
if [ "$${EXPMD5}"X != "$${CALCMD5}"X ]; then \
echo "Expected and calculated MD5 signatures don't agree." ; \
echo "($$EXPMD5 != $$CALCMD5)" ; \
exit 1 ; \
1997-11-25 18:16:33 -05:00
fi ; \
2000-09-01 23:26:56 -04:00
tar -xf ${SRCBALL_NAME}.tar)
1997-11-25 18:16:33 -05:00
pre-configure:
@if [ ! -d /sys ]; then \
echo ""; \
echo "*** Error: Building this package requires the" ; \
echo "*** kernel sources to be available under /sys" ; \
echo ""; \
exit 1; \
fi
2002-10-28 14:53:43 -05:00
NO_REGRESS= Yes
1997-11-25 18:16:33 -05:00
do-install:
${INSTALL_SCRIPT_DIR} ${PREFIX}/share/lsof
2000-09-01 23:26:56 -04:00
${INSTALL_PROGRAM} ${WRKBUILD}/lsof ${PREFIX}/sbin
2011-07-03 20:39:07 -04:00
${INSTALL_MAN} ${WRKSRC}/lsof.8 ${PREFIX}/man/man8/lsof.8
1997-11-25 18:16:33 -05:00
${INSTALL_SCRIPT} ${WRKSRC}/scripts/* ${PREFIX}/share/lsof
2000-09-01 23:26:56 -04:00
@chmod 444 ${PREFIX}/share/lsof/00*
1997-11-25 18:16:33 -05:00
.include <bsd.port.mk>