openbsd-ports/sysutils/lsof/Makefile

76 lines
1.8 KiB
Makefile
Raw Normal View History

2000-06-29 18:30:20 -04:00
# $OpenBSD: Makefile,v 1.28 2000/06/29 22:30:20 angelos Exp $
1997-11-25 18:16:33 -05:00
2000-06-29 18:30:20 -04:00
DISTNAME= lsof_4.50_W
PKGNAME= lsof-4.50_W
1997-11-25 18:16:33 -05:00
CATEGORIES= sysutils
NEED_VERSION= 1.191
FAKE=No
2000-04-09 14:01:32 -04:00
MASTER_SITES= ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/ \
1999-04-18 16:34:28 -04:00
ftp://ftp.crc.doc.ca/packages/lsof/ \
ftp://ftp.sunet.se/pub/unix/admin/lsof/
1997-11-25 18:16:33 -05:00
1999-06-02 11:59:02 -04:00
NO_PACKAGE= "compile from source to set proper options"
1999-03-10 14:33:48 -05:00
1999-09-28 16:00:35 -04:00
1997-11-25 18:16:33 -05:00
MAINTAINER= angelos@openbsd.org
2000-02-12 01:29:49 -05:00
LICENSE_TYPE= BSD
PERMIT_PACKAGE_CDROM= YES
PERMIT_PACKAGE_FTP= YES
PERMIT_DISTFILES_CDROM= YES
PERMIT_DISTFILES_FTP= YES
2000-02-12 01:29:49 -05:00
1997-11-25 18:16:33 -05:00
HAS_CONFIGURE= yes
1999-04-18 16:34:28 -04:00
CONFIGURE_SCRIPT= Configure
1997-11-25 18:16:33 -05:00
CONFIGURE_ARGS= -n openbsd
SRCBALL_NAME= ${DISTNAME:S/_W$//}
2000-02-10 19:37:15 -05:00
WRKDIST= ${WRKDIR}/${SRCBALL_NAME}
.if ( ${MACHINE_ARCH} == "sparc" )
1998-08-05 18:33:35 -04:00
IS_INTERACTIVE= yes
.if defined( SUN4 )
CDEF=-DSUN4
.endif
.if defined( SUN4C )
CDEF=-DSUN4C
.endif
.if defined( SUN4M )
CDEF=-DSUN4M
.endif
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 "*** on the make command line"
@echo
.endif
.endif
1997-11-25 18:16:33 -05:00
post-extract:
1999-06-02 11:59:02 -04:00
@(cd ${WRKDIR} ; \
EXPMD5=`/usr/bin/grep MD5 README.${SRCBALL_NAME} | \
/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 ; \
1999-06-02 11:59:02 -04:00
${TAR} -xf ${SRCBALL_NAME}.tar \
1997-11-25 18:16:33 -05:00
)
@(cd ${WRKSRC}; echo "y" | ./Inventory || exit 1)
1997-11-25 18:16:33 -05:00
do-install:
${INSTALL_PROGRAM} -o ${BINOWN} -g ${BINGRP} -m 0755 \
${WRKSRC}/lsof ${PREFIX}/sbin
2000-04-22 16:32:13 -04:00
${INSTALL_MAN} ${WRKSRC}/lsof.man ${PREFIX}/man/cat8/lsof.8
${INSTALL_SCRIPT_DIR} ${PREFIX}/share/lsof
1997-11-25 18:16:33 -05:00
${INSTALL_SCRIPT} ${WRKSRC}/scripts/* ${PREFIX}/share/lsof
1999-09-28 16:00:35 -04:00
@${CHMOD} 0444 ${PREFIX}/share/lsof/00*
1997-11-25 18:16:33 -05:00
.include <bsd.port.mk>