Annotation of pkgsrc/sysutils/lsof/Makefile, revision 1.107
1.107 ! sbd 1: # $NetBSD: Makefile,v 1.106 2010/04/30 07:30:28 sbd Exp $
1.1 frueauf 2:
1.107 ! sbd 3: DISTNAME= lsof_4.83
! 4: PKGNAME= ${DISTNAME:S/_/-/}
1.1 frueauf 5: CATEGORIES= sysutils
1.101 zafer 6: MASTER_SITES= ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/ \
7: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/NEW/ \
8: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/OLD/ \
1.106 sbd 9: ftp://ftp.cerias.purdue.edu/pub/tools/unix/sysutils/lsof/ \
10: ftp://ftp.cerias.purdue.edu/pub/tools/unix/sysutils/lsof/NEW/ \
11: ftp://ftp.cerias.purdue.edu/pub/tools/unix/sysutils/lsof/OLD/ \
12: ftp://ftp.fu-berlin.de/pub/unix/tools/lsof/ \
13: ftp://ftp.fu-berlin.de/pub/unix/tools/lsof/NEW/ \
14: ftp://ftp.fu-berlin.de/pub/unix/tools/lsof/OLD/ \
15: ftp://gd.tuwien.ac.at/utils/admin-tools/lsof/ \
16: ftp://gd.tuwien.ac.at/utils/admin-tools/lsof/NEW/ \
17: ftp://gd.tuwien.ac.at/utils/admin-tools/lsof/OLD/ \
18: ftp://sunsite.ualberta.ca/pub/Mirror/lsof/ \
19: ftp://sunsite.ualberta.ca/pub/Mirror/lsof/NEW/ \
20: ftp://sunsite.ualberta.ca/pub/Mirror/lsof/OLD/
1.78 atatat 21: EXTRACT_SUFX= .tar.bz2
1.1 frueauf 22:
1.103 wiz 23: MAINTAINER= pkgsrc-users@NetBSD.org
1.90 markd 24: HOMEPAGE= http://people.freebsd.org/~abe/
1.35 wiz 25: COMMENT= Lists information about open files
1.1 frueauf 26:
1.98 tnn 27: PKG_DESTDIR_SUPPORT= user-destdir
28:
1.73 agc 29: WRKSRC= ${WRKDIR}/${DISTNAME}/${SRCBALL_NAME}
1.1 frueauf 30: HAS_CONFIGURE= yes
1.28 tron 31: CONFIGURE_SCRIPT= ./Configure
1.87 rillig 32: CONFIGURE_ARGS+= -n ${LOWER_OPSYS}
1.38 jlam 33: CONFIGURE_ENV+= LSOF_CC="${CC} ${CFLAGS}"
1.49 atatat 34: MAKE_FLAGS+= LSOF_BLDCMT="NetBSD pkgsrc rocks!"
1.51 hubertf 35: OSVERSION_SPECIFIC= yes
1.1 frueauf 36:
1.62 salo 37: TMPWRK= ${WRKDIR}/${DISTNAME}
1.50 atatat 38: SRCBALL_NAME= ${DISTNAME}_src
1.1 frueauf 39:
1.94 tron 40: REPLACE_PERL+= scripts/sort_res.perl5 scripts/count_pf.perl5 \
41: scripts/list_NULf.perl5 scripts/big_brother.perl5 \
42: scripts/identd.perl5 scripts/shared.perl5 \
43: scripts/idrlogin.perl5 scripts/count_pf.perl \
44: scripts/idrlogin.perl scripts/list_fields.perl \
45: scripts/watch_a_file.perl
1.97 joerg 46: USE_TOOLS+= gtar pax perl:run
1.94 tron 47:
1.69 jlam 48: PKG_INSTALLATION_TYPES= overwrite pkgviews
49:
1.105 sbd 50: TEST_DIRS= tests
51: TEST_TARGET= test
52: INTERACTIVE_STAGE+= test
53:
1.16 agc 54: .include "../../mk/bsd.prefs.mk"
1.104 sbd 55: .include "options.mk"
1.16 agc 56:
1.98 tnn 57: REAL_GROUP= ${REAL_ROOT_GROUP}
1.16 agc 58: .if ${OPSYS} == "NetBSD"
1.98 tnn 59: REAL_GROUP= kmem
1.93 veego 60: CONFIGURE_ENV+= NETBSD_SYS="${NETBSDSRCDIR}/sys"
1.16 agc 61: .elif ${OPSYS} == "SunOS"
1.21 agc 62: MAKE_ENV+= CPPFLAGS=
1.16 agc 63: .endif
1.89 rillig 64: INSTALLATION_DIRS= ${PKGMANDIR}/man8 sbin
1.40 agc 65:
1.1 frueauf 66: post-extract:
1.50 atatat 67: @(cd ${TMPWRK} ; \
1.95 apb 68: EXPMD5=`${GREP} 'MD5 (' README.${DISTNAME} | ${SED} 's/^[ ]*//'` ; \
1.39 agc 69: CALCMD5=`${DIGEST} MD5 ${SRCBALL_NAME}.tar` ; \
1.29 wiz 70: if [ "$${EXPMD5}"X != "$${CALCMD5}"X ]; then \
71: ${ECHO} "Expected and calculated MD5 signatures don't agree." ; \
72: ${ECHO} "($$EXPMD5 != $$CALCMD5)" ; \
1.95 apb 73: exit 1 ; \
1.29 wiz 74: fi ; \
1.84 jlam 75: if [ X${EXTRACT_USING} = Xgtar ]; then \
1.29 wiz 76: ${GTAR} -xf ${SRCBALL_NAME}.tar; \
77: else \
1.97 joerg 78: pax -O -r < ${SRCBALL_NAME}.tar; \
1.29 wiz 79: fi)
1.2 frueauf 80: @( cd ${WRKSRC} ; ${ECHO} "y" | ./Inventory || exit 1 )
1.1 frueauf 81:
1.98 tnn 82: INSTALLATION_DIRS+= sbin ${PKGMANDIR}/man8 share/lsof
83: SPECIAL_PERMS+= ${PREFIX}/sbin/lsof ${REAL_ROOT_USER} ${REAL_GROUP} 2755
84:
1.1 frueauf 85: do-install:
1.98 tnn 86: ${INSTALL_PROGRAM} ${WRKSRC}/lsof ${DESTDIR}${PREFIX}/sbin
87: ${INSTALL_MAN} ${WRKSRC}/lsof.8 \
88: ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/lsof.8
89: ${INSTALL_SCRIPT} ${WRKSRC}/scripts/* ${DESTDIR}${PREFIX}/share/lsof
90: @${CHMOD} 0444 ${DESTDIR}${PREFIX}/share/lsof/00*
1.1 frueauf 91:
1.105 sbd 92: opt:
93: .for _dir_ in ${TEST_DIRS}
94: ${RUN}${_ULIMIT_CMD} \
95: cd ${WRKSRC} && cd ${_dir_} && \
96: ${TEST_MAKE_CMD} opt
97: .endfor
1.3 agc 98: .include "../../mk/bsd.pkg.mk"
CVSweb <webmaster@jp.NetBSD.org>