Annotation of pkgsrc/sysutils/lsof/Makefile, revision 1.79
1.79 ! atatat 1: # $NetBSD: Makefile,v 1.78 2004/10/21 13:09:20 atatat Exp $
1.1 frueauf 2: #
3:
1.78 atatat 4: DISTNAME= lsof_4.73
1.79 ! atatat 5: PKGREVISION= 1
1.62 salo 6: PKGNAME= ${DISTNAME:S/_/-/}
1.1 frueauf 7: CATEGORIES= sysutils
1.59 atatat 8: MASTER_SITES= ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/ \
9: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/NEW/ \
1.1 frueauf 10: ftp://ftp.cert.dfn.de/pub/tools/admin/lsof/ \
11: ftp://ftp.auscert.org.au/pub/mirrors/vic.cc.purdue.edu/lsof/ \
1.64 tron 12: ftp://ftp.sunet.se/pub/unix/admin/lsof/
1.78 atatat 13: EXTRACT_SUFX= .tar.bz2
1.1 frueauf 14:
1.65 grant 15: MAINTAINER= atatat@NetBSD.org
1.10 hubertf 16: HOMEPAGE= http://www-rcd.cc.purdue.edu/~abe/
1.35 wiz 17: COMMENT= Lists information about open files
1.1 frueauf 18:
1.73 agc 19: WRKSRC= ${WRKDIR}/${DISTNAME}/${SRCBALL_NAME}
1.1 frueauf 20: HAS_CONFIGURE= yes
1.28 tron 21: CONFIGURE_SCRIPT= ./Configure
1.22 agc 22: CONFIGURE_ARGS= -n ${LOWER_OPSYS}
1.38 jlam 23: CONFIGURE_ENV+= LSOF_CC="${CC} ${CFLAGS}"
1.49 atatat 24: MAKE_FLAGS+= LSOF_BLDCMT="NetBSD pkgsrc rocks!"
1.57 atatat 25: CPPFLAGS+= -DLSOF_MORE_SECURE=${LSOF_MORE_SECURE} \
26: -DLSOF_LESS_SECURE_SOCKETS=${LSOF_LESS_SECURE_SOCKETS}
1.51 hubertf 27: OSVERSION_SPECIFIC= yes
1.1 frueauf 28:
1.62 salo 29: TMPWRK= ${WRKDIR}/${DISTNAME}
1.50 atatat 30: SRCBALL_NAME= ${DISTNAME}_src
1.1 frueauf 31:
1.69 jlam 32: PKG_INSTALLATION_TYPES= overwrite pkgviews
33: USE_BUILDLINK3= yes
1.79 ! atatat 34: BUILDLINK_PASSTHRU_DIRS= /usr/src/sys
1.69 jlam 35:
1.16 agc 36: .include "../../mk/bsd.prefs.mk"
37:
38: .if ${OPSYS} == "NetBSD"
1.21 agc 39: REAL_GROUP= -g kmem
1.16 agc 40: .elif ${OPSYS} == "SunOS"
1.21 agc 41: MAKE_ENV+= CPPFLAGS=
1.16 agc 42: .endif
1.69 jlam 43: INSTALLATION_DIRS= man/man8 sbin
1.40 agc 44:
45: LSOF_MORE_SECURE?= 0
1.16 agc 46:
1.1 frueauf 47: post-extract:
1.50 atatat 48: @(cd ${TMPWRK} ; \
49: EXPMD5=`${GREP} MD5 README.${DISTNAME} | ${SED} 's/^[ ]*//'` ; \
1.39 agc 50: CALCMD5=`${DIGEST} MD5 ${SRCBALL_NAME}.tar` ; \
1.29 wiz 51: if [ "$${EXPMD5}"X != "$${CALCMD5}"X ]; then \
52: ${ECHO} "Expected and calculated MD5 signatures don't agree." ; \
53: ${ECHO} "($$EXPMD5 != $$CALCMD5)" ; \
54: ${FALSE} ; \
55: fi ; \
56: if [ "X${EXTRACT_USING_PAX}" = "X" ]; then \
57: ${GTAR} -xf ${SRCBALL_NAME}.tar; \
58: else \
1.60 grant 59: ${PAX} -O -r < ${SRCBALL_NAME}.tar; \
1.29 wiz 60: fi)
1.2 frueauf 61: @( cd ${WRKSRC} ; ${ECHO} "y" | ./Inventory || exit 1 )
1.1 frueauf 62:
63: do-install:
1.54 yyamano 64: ${INSTALL} ${COPY} ${_STRIPFLAG_INSTALL} -o ${BINOWN} -g ${BINGRP} -m 2755 ${REAL_GROUP} \
1.1 frueauf 65: ${WRKSRC}/lsof ${PREFIX}/sbin
1.66 atatat 66: ${INSTALL_MAN} ${WRKSRC}/lsof.8 ${PREFIX}/man/man8/lsof.8
1.36 hubertf 67: @${INSTALL_DATA_DIR} ${PREFIX}/share/lsof
1.1 frueauf 68: ${INSTALL_SCRIPT} ${WRKSRC}/scripts/* ${PREFIX}/share/lsof
1.27 wiz 69: @${CHMOD} 0444 ${PREFIX}/share/lsof/00*
1.1 frueauf 70:
1.3 agc 71: .include "../../mk/bsd.pkg.mk"
CVSweb <webmaster@jp.NetBSD.org>