2010-04-30 08:53:06 +02:00
|
|
|
# $NetBSD: Makefile,v 1.104 2010/04/30 06:53:06 sbd Exp $
|
1998-04-01 17:02:36 +02:00
|
|
|
|
2007-05-06 23:41:30 +02:00
|
|
|
DISTNAME= lsof_4.78
|
2005-05-17 06:45:08 +02:00
|
|
|
PKGNAME= ${DISTNAME:S/_/-/}.${OS_VERSION}
|
2009-08-11 22:53:06 +02:00
|
|
|
PKGREVISION= 5
|
1998-04-01 17:02:36 +02:00
|
|
|
CATEGORIES= sysutils
|
2009-05-30 13:10:56 +02:00
|
|
|
MASTER_SITES= ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/ \
|
|
|
|
ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/NEW/ \
|
|
|
|
ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/OLD/ \
|
|
|
|
ftp://ftp.sunet.se/pub/unix/admin/lsof/ \
|
2006-09-26 15:14:03 +02:00
|
|
|
http://ftp.sunet.se/pub/unix/admin/lsof/
|
2004-10-21 15:09:20 +02:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
1998-04-01 17:02:36 +02:00
|
|
|
|
2010-03-21 17:29:38 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2007-03-14 12:36:25 +01:00
|
|
|
HOMEPAGE= http://people.freebsd.org/~abe/
|
2001-02-17 18:42:09 +01:00
|
|
|
COMMENT= Lists information about open files
|
1998-04-01 17:02:36 +02:00
|
|
|
|
2008-05-29 18:52:59 +02:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2004-01-20 13:18:15 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/${SRCBALL_NAME}
|
1998-04-01 17:02:36 +02:00
|
|
|
HAS_CONFIGURE= yes
|
2000-03-27 10:54:53 +02:00
|
|
|
CONFIGURE_SCRIPT= ./Configure
|
2005-12-05 21:49:47 +01:00
|
|
|
CONFIGURE_ARGS+= -n ${LOWER_OPSYS}
|
2001-02-28 17:50:58 +01:00
|
|
|
CONFIGURE_ENV+= LSOF_CC="${CC} ${CFLAGS}"
|
2001-12-21 22:26:05 +01:00
|
|
|
MAKE_FLAGS+= LSOF_BLDCMT="NetBSD pkgsrc rocks!"
|
2002-03-04 00:45:41 +01:00
|
|
|
OSVERSION_SPECIFIC= yes
|
1998-04-01 17:02:36 +02:00
|
|
|
|
2003-05-04 12:28:30 +02:00
|
|
|
TMPWRK= ${WRKDIR}/${DISTNAME}
|
2002-01-23 02:34:36 +01:00
|
|
|
SRCBALL_NAME= ${DISTNAME}_src
|
1998-04-01 17:02:36 +02:00
|
|
|
|
2007-12-17 13:15:59 +01:00
|
|
|
REPLACE_PERL+= scripts/sort_res.perl5 scripts/count_pf.perl5 \
|
|
|
|
scripts/list_NULf.perl5 scripts/big_brother.perl5 \
|
|
|
|
scripts/identd.perl5 scripts/shared.perl5 \
|
|
|
|
scripts/idrlogin.perl5 scripts/count_pf.perl \
|
|
|
|
scripts/idrlogin.perl scripts/list_fields.perl \
|
|
|
|
scripts/watch_a_file.perl
|
2008-05-26 04:13:14 +02:00
|
|
|
USE_TOOLS+= gtar pax perl:run
|
2007-12-17 13:15:59 +01:00
|
|
|
|
2004-01-05 13:48:30 +01:00
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
|
1999-04-21 12:38:58 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
2010-04-30 08:53:06 +02:00
|
|
|
.include "options.mk"
|
1999-04-21 12:38:58 +02:00
|
|
|
|
2008-05-29 18:52:59 +02:00
|
|
|
REAL_GROUP= ${REAL_ROOT_GROUP}
|
1999-04-21 12:38:58 +02:00
|
|
|
.if ${OPSYS} == "NetBSD"
|
2008-05-29 18:52:59 +02:00
|
|
|
REAL_GROUP= kmem
|
2007-08-14 21:59:17 +02:00
|
|
|
CONFIGURE_ENV+= NETBSD_SYS="${NETBSDSRCDIR}/sys"
|
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
|
2007-01-07 10:13:46 +01:00
|
|
|
INSTALLATION_DIRS= ${PKGMANDIR}/man8 sbin
|
1999-04-21 12:38:58 +02:00
|
|
|
|
1998-04-01 17:02:36 +02:00
|
|
|
post-extract:
|
2002-01-23 02:34:36 +01:00
|
|
|
@(cd ${TMPWRK} ; \
|
2008-04-26 13:54:24 +02:00
|
|
|
EXPMD5=`${GREP} 'MD5 (' README.${DISTNAME} | ${SED} 's/^[ ]*//'` ; \
|
2001-03-07 17:07:31 +01:00
|
|
|
CALCMD5=`${DIGEST} MD5 ${SRCBALL_NAME}.tar` ; \
|
2000-04-06 15:17:09 +02:00
|
|
|
if [ "$${EXPMD5}"X != "$${CALCMD5}"X ]; then \
|
|
|
|
${ECHO} "Expected and calculated MD5 signatures don't agree." ; \
|
|
|
|
${ECHO} "($$EXPMD5 != $$CALCMD5)" ; \
|
2008-04-26 13:54:24 +02:00
|
|
|
exit 1 ; \
|
2000-04-06 15:17:09 +02:00
|
|
|
fi ; \
|
2005-05-16 05:04:44 +02:00
|
|
|
if [ X${EXTRACT_USING} = Xgtar ]; then \
|
2000-04-06 15:17:09 +02:00
|
|
|
${GTAR} -xf ${SRCBALL_NAME}.tar; \
|
|
|
|
else \
|
2008-05-26 04:13:14 +02:00
|
|
|
pax -O -r < ${SRCBALL_NAME}.tar; \
|
2000-04-06 15:17:09 +02:00
|
|
|
fi)
|
1998-04-02 11:35:38 +02:00
|
|
|
@( cd ${WRKSRC} ; ${ECHO} "y" | ./Inventory || exit 1 )
|
1998-04-01 17:02:36 +02:00
|
|
|
|
2008-05-29 18:52:59 +02:00
|
|
|
INSTALLATION_DIRS+= sbin ${PKGMANDIR}/man8 share/lsof
|
|
|
|
SPECIAL_PERMS+= ${PREFIX}/sbin/lsof ${REAL_ROOT_USER} ${REAL_GROUP} 2755
|
|
|
|
|
1998-04-01 17:02:36 +02:00
|
|
|
do-install:
|
2008-05-29 18:52:59 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/lsof ${DESTDIR}${PREFIX}/sbin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/lsof.8 \
|
|
|
|
${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/lsof.8
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/scripts/* ${DESTDIR}${PREFIX}/share/lsof
|
|
|
|
@${CHMOD} 0444 ${DESTDIR}${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"
|