Annotation of pkgsrc/sysutils/lsof/Makefile, revision 1.59
1.59 ! atatat 1: # $NetBSD: Makefile,v 1.58 2003/02/03 01:03:14 atatat Exp $
1.1 frueauf 2: #
3:
1.59 ! atatat 4: DISTNAME= lsof_4.67
1.55 atatat 5: PKGNAME= ${DISTNAME:S/_/-/}
1.50 atatat 6: TMPWRK= ${WRKDIR}/${DISTNAME}
7: WRKSRC= ${WRKDIR}/${DISTNAME}/${SRCBALL_NAME}
1.1 frueauf 8: CATEGORIES= sysutils
1.59 ! atatat 9: MASTER_SITES= ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/ \
! 10: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/NEW/ \
1.1 frueauf 11: ftp://ftp.cert.dfn.de/pub/tools/admin/lsof/ \
12: ftp://ftp.auscert.org.au/pub/mirrors/vic.cc.purdue.edu/lsof/ \
13: ftp://ftp.web.ad.jp/pub/UNIX/tools/lsof/ \
1.17 bad 14: ftp://ftp0.sunet.se/pub/unix/admin/lsof/
1.1 frueauf 15:
1.55 atatat 16: MAINTAINER= atatat@netbsd.org
1.10 hubertf 17: HOMEPAGE= http://www-rcd.cc.purdue.edu/~abe/
1.35 wiz 18: COMMENT= Lists information about open files
1.1 frueauf 19:
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.50 atatat 29: SRCBALL_NAME= ${DISTNAME}_src
1.1 frueauf 30:
1.16 agc 31: .include "../../mk/bsd.prefs.mk"
32:
33: .if ${OPSYS} == "NetBSD"
1.21 agc 34: REAL_GROUP= -g kmem
1.16 agc 35: .elif ${OPSYS} == "SunOS"
1.21 agc 36: MAKE_ENV+= CPPFLAGS=
1.16 agc 37: .endif
1.40 agc 38:
39: LSOF_MORE_SECURE?= 0
1.16 agc 40:
1.1 frueauf 41: post-extract:
1.50 atatat 42: @(cd ${TMPWRK} ; \
43: EXPMD5=`${GREP} MD5 README.${DISTNAME} | ${SED} 's/^[ ]*//'` ; \
1.39 agc 44: CALCMD5=`${DIGEST} MD5 ${SRCBALL_NAME}.tar` ; \
1.29 wiz 45: if [ "$${EXPMD5}"X != "$${CALCMD5}"X ]; then \
46: ${ECHO} "Expected and calculated MD5 signatures don't agree." ; \
47: ${ECHO} "($$EXPMD5 != $$CALCMD5)" ; \
48: ${FALSE} ; \
49: fi ; \
50: if [ "X${EXTRACT_USING_PAX}" = "X" ]; then \
51: ${GTAR} -xf ${SRCBALL_NAME}.tar; \
52: else \
53: ${PAX} -r < ${SRCBALL_NAME}.tar; \
54: fi)
1.2 frueauf 55: @( cd ${WRKSRC} ; ${ECHO} "y" | ./Inventory || exit 1 )
1.1 frueauf 56:
57: do-install:
1.54 yyamano 58: ${INSTALL} ${COPY} ${_STRIPFLAG_INSTALL} -o ${BINOWN} -g ${BINGRP} -m 2755 ${REAL_GROUP} \
1.1 frueauf 59: ${WRKSRC}/lsof ${PREFIX}/sbin
60: ${INSTALL_MAN} ${WRKSRC}/lsof.man ${PREFIX}/man/man1/lsof.1
1.36 hubertf 61: @${INSTALL_DATA_DIR} ${PREFIX}/share/lsof
1.1 frueauf 62: ${INSTALL_SCRIPT} ${WRKSRC}/scripts/* ${PREFIX}/share/lsof
1.27 wiz 63: @${CHMOD} 0444 ${PREFIX}/share/lsof/00*
1.1 frueauf 64:
1.3 agc 65: .include "../../mk/bsd.pkg.mk"
CVSweb <webmaster@jp.NetBSD.org>