openbsd-ports/sysutils/lsof/Makefile

73 lines
1.9 KiB
Makefile
Raw Normal View History

2002-01-24 19:58:18 -05:00
# $OpenBSD: Makefile,v 1.38 2002/01/25 00:58:18 pvalchev Exp $
COMMENT= "list information about open files"
1997-11-25 18:16:33 -05:00
2002-01-24 19:58:18 -05:00
VERSION= 4.61
DISTNAME= lsof_${VERSION}
PKGNAME= ${DISTNAME:S/_/-/}
1997-11-25 18:16:33 -05:00
CATEGORIES= sysutils
2002-01-24 19:58:18 -05:00
NEED_VERSION= 1.504
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/
1997-11-25 18:16:33 -05:00
2001-12-24 01:56:52 -05:00
HOMEPAGE= http://www-rcd.cc.purdue.edu/~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
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}
2000-09-01 23:26:56 -04:00
.if ${MACHINE_ARCH} == "sparc"
IS_INTERACTIVE= Yes
.if defined(SUN4) && ${SUN4:U} == YES
CDEF=-DSUN4
2000-09-01 23:26:56 -04:00
.elif defined(SUN4C) && ${SUN4C:U} == YES
CDEF=-DSUN4C
2000-09-01 23:26:56 -04:00
.elif defined(SUN4M) && ${SUN4M:U} == YES
CDEF=-DSUN4M
.endif
2000-09-01 23:26:56 -04:00
MAKE_ENV= CDEF="${CDEF}"
.if !defined(CDEF)
pre-build:
@echo
@echo "*** when building for a sparc you must specify one of"
2000-09-01 23:26:56 -04:00
@echo "*** SUN4=Yes, SUN4C=Yes, or SUN4M=Yes"
@echo "*** on the make command line"
@echo
.endif
.endif
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
do-install:
${INSTALL_SCRIPT_DIR} ${PREFIX}/share/lsof
2000-09-01 23:26:56 -04:00
${INSTALL_PROGRAM} ${WRKBUILD}/lsof ${PREFIX}/sbin
2000-09-09 18:35:37 -04:00
${INSTALL_MAN} ${WRKSRC}/lsof.man ${PREFIX}/man/cat8/lsof.0
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>