openbsd-ports/sysutils/lsof/Makefile

67 lines
1.7 KiB
Makefile
Raw Normal View History

1999-04-18 16:34:28 -04:00
# $OpenBSD: Makefile,v 1.12 1999/04/18 20:34:28 brad Exp $
1997-11-25 18:16:33 -05:00
1999-04-18 16:34:28 -04:00
DISTNAME= lsof_4.42_W
PKGNAME= lsof-4.42
1997-11-25 18:16:33 -05:00
CATEGORIES= sysutils
1999-04-18 16:34:28 -04:00
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
1999-03-10 14:33:48 -05:00
NO_PACKAGE= compile from source to set proper options
1997-11-25 18:16:33 -05:00
MAINTAINER= angelos@openbsd.org
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$//}
WRKSRC= ${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} ""
@false
.endif
.endif
1997-11-25 18:16:33 -05:00
post-extract:
@( cd ${WRKDIR} ; \
EXPMD5=`/usr/bin/grep MD5 README.${SRCBALL_NAME} | sed 's/^[ ]*//'` ; \
CALCMD5=`${MD5} ${SRCBALL_NAME}.tar` ; \
if [ "$${EXPMD5}"X != "$${CALCMD5}"X ]; then \
echo "Expected and calculated MD5 signatures don't agree." ; \
echo "($$EXPMD5 != $$CALCMD5)" ; \
exit 1 ; \
fi ; \
${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS:S/z//} ${SRCBALL_NAME}.tar \
)
@( cd ${WRKSRC} ; echo "y" | ./Inventory || exit 1 )
do-install:
1999-02-17 20:15:34 -05:00
${INSTALL} ${COPY} ${STRIP} -o ${BINOWN} -g ${BINGRP} -m 0755 ${WRKSRC}/lsof ${PREFIX}/sbin
1997-11-25 18:16:33 -05:00
${INSTALL_MAN} ${WRKSRC}/lsof.man ${PREFIX}/man/man1/lsof.1
@${MKDIR} ${PREFIX}/share/lsof
${INSTALL_SCRIPT} ${WRKSRC}/scripts/* ${PREFIX}/share/lsof
@/bin/chmod 0444 ${PREFIX}/share/lsof/00*
.include <bsd.port.mk>