2000-03-27 10:54:53 +02:00
|
|
|
# $NetBSD: Makefile,v 1.28 2000/03/27 08:54:59 tron Exp $
|
1998-04-01 17:02:36 +02:00
|
|
|
# FreeBSD Id: Makefile,v 1.19 1998/03/08 06:44:48 obrien Exp
|
|
|
|
#
|
|
|
|
|
2000-02-23 00:29:21 +01:00
|
|
|
DISTNAME= lsof_4.49C.n+obsd
|
|
|
|
PKGNAME= lsof-4.49.3
|
1999-01-01 02:56:51 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${SRCBALL_NAME}
|
1998-04-01 17:02:36 +02:00
|
|
|
CATEGORIES= sysutils
|
|
|
|
MASTER_SITES= ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/ \
|
2000-02-19 04:58:23 +01:00
|
|
|
ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/NEW/ \
|
1998-04-01 17:02:36 +02:00
|
|
|
ftp://ftp.cert.dfn.de/pub/tools/admin/lsof/ \
|
|
|
|
ftp://ftp.auscert.org.au/pub/mirrors/vic.cc.purdue.edu/lsof/ \
|
|
|
|
ftp://ftp.web.ad.jp/pub/UNIX/tools/lsof/ \
|
1999-05-05 18:40:20 +02:00
|
|
|
ftp://ftp0.sunet.se/pub/unix/admin/lsof/
|
1998-04-01 17:02:36 +02:00
|
|
|
|
|
|
|
MAINTAINER= packages@netbsd.org
|
1998-11-18 14:04:24 +01:00
|
|
|
HOMEPAGE= http://www-rcd.cc.purdue.edu/~abe/
|
1998-04-01 17:02:36 +02:00
|
|
|
|
|
|
|
HAS_CONFIGURE= yes
|
2000-03-27 10:54:53 +02:00
|
|
|
CONFIGURE_SCRIPT= ./Configure
|
1999-07-08 10:06:59 +02:00
|
|
|
CONFIGURE_ARGS= -n ${LOWER_OPSYS}
|
1998-04-01 17:02:36 +02:00
|
|
|
|
|
|
|
SRCBALL_NAME= ${DISTNAME:S/_W$//}
|
|
|
|
|
1999-04-21 12:38:58 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
.if ${OPSYS} == "NetBSD"
|
1999-07-07 20:13:56 +02:00
|
|
|
REAL_GROUP= -g kmem
|
1999-04-21 12:38:58 +02:00
|
|
|
.elif ${OPSYS} == "SunOS"
|
1999-07-07 20:13:56 +02:00
|
|
|
MAKE_ENV+= CPPFLAGS=
|
1999-04-21 12:38:58 +02:00
|
|
|
.endif
|
|
|
|
|
1998-04-01 17:02:36 +02:00
|
|
|
post-extract:
|
2000-02-19 04:58:23 +01:00
|
|
|
# commented out for the pre-release 4.49.2, which doesn't support it
|
|
|
|
# @(cd ${WRKDIR} ; \
|
|
|
|
# EXPMD5=`${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)" ; \
|
|
|
|
# ${FALSE} ; \
|
|
|
|
# fi ; \
|
|
|
|
# if [ "X${EXTRACT_USING_PAX}" = "X" ]; then \
|
|
|
|
# ${GTAR} -xf ${SRCBALL_NAME}.tar; \
|
|
|
|
# else \
|
|
|
|
# ${PAX} -r < ${SRCBALL_NAME}.tar; \
|
|
|
|
# fi)
|
1998-04-02 11:35:38 +02:00
|
|
|
@( cd ${WRKSRC} ; ${ECHO} "y" | ./Inventory || exit 1 )
|
1998-04-01 17:02:36 +02:00
|
|
|
|
|
|
|
do-install:
|
1999-04-21 12:38:58 +02:00
|
|
|
${INSTALL} ${COPY} ${STRIP} -o ${BINOWN} -g ${BINGRP} -m 2755 ${REAL_GROUP} \
|
1998-04-01 17:02:36 +02:00
|
|
|
${WRKSRC}/lsof ${PREFIX}/sbin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/lsof.man ${PREFIX}/man/man1/lsof.1
|
|
|
|
@${MKDIR} ${PREFIX}/share/lsof
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/scripts/* ${PREFIX}/share/lsof
|
2000-03-16 15:02:26 +01:00
|
|
|
@${CHMOD} 0444 ${PREFIX}/share/lsof/00*
|
1998-04-01 17:02:36 +02:00
|
|
|
|
1998-04-15 12:38:15 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|