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
|
2000-03-24 17:11:32 -05:00
|
|
|
NEED_VERSION= 1.191
|
2000-04-09 13:35:57 -04:00
|
|
|
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
|
2000-02-15 00:03:51 -05:00
|
|
|
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}
|
1999-02-18 14:27:35 -05:00
|
|
|
|
1998-07-25 17:21:20 -04:00
|
|
|
.if ( ${MACHINE_ARCH} == "sparc" )
|
1998-08-05 18:33:35 -04:00
|
|
|
IS_INTERACTIVE= yes
|
1998-07-25 17:21:20 -04:00
|
|
|
.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 )
|
1998-08-25 01:15:14 -04:00
|
|
|
pre-build:
|
2000-01-28 02:47:35 -05:00
|
|
|
@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
|
1998-07-25 17:21:20 -04:00
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
1997-11-25 18:16:33 -05:00
|
|
|
post-extract:
|
1999-06-02 11:59:02 -04:00
|
|
|
@(cd ${WRKDIR} ; \
|
2000-01-28 02:47:35 -05:00
|
|
|
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 \
|
2000-01-28 02:47:35 -05:00
|
|
|
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
|
|
|
)
|
2000-01-28 02:47:35 -05:00
|
|
|
@(cd ${WRKSRC}; echo "y" | ./Inventory || exit 1)
|
1997-11-25 18:16:33 -05:00
|
|
|
|
|
|
|
|
|
|
|
do-install:
|
2000-01-28 02:47:35 -05:00
|
|
|
${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
|
2000-01-28 02:47:35 -05:00
|
|
|
${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>
|