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