Annotation of pkgsrc/sysutils/lsof/Makefile, revision 1.96

1.96    ! christos    1: # $NetBSD: Makefile,v 1.95 2008/04/26 11:54:24 apb Exp $
1.1       frueauf     2: 
1.92      christos    3: DISTNAME=              lsof_4.78
1.85      atatat      4: PKGNAME=               ${DISTNAME:S/_/-/}.${OS_VERSION}
1.96    ! christos    5: PKGREVISION=           3
1.1       frueauf     6: CATEGORIES=            sysutils
1.59      atatat      7: MASTER_SITES=          ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/  \
                      8:                        ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/NEW/ \
1.88      dsainty     9:                        ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/OLD/ \
                     10:                        ftp://ftp.sunet.se/pub/unix/admin/lsof/ \
                     11:                        http://ftp.sunet.se/pub/unix/admin/lsof/
1.78      atatat     12: EXTRACT_SUFX=          .tar.bz2
1.1       frueauf    13: 
1.65      grant      14: MAINTAINER=            atatat@NetBSD.org
1.90      markd      15: HOMEPAGE=              http://people.freebsd.org/~abe/
1.35      wiz        16: COMMENT=               Lists information about open files
1.1       frueauf    17: 
1.73      agc        18: WRKSRC=                        ${WRKDIR}/${DISTNAME}/${SRCBALL_NAME}
1.1       frueauf    19: HAS_CONFIGURE=         yes
1.28      tron       20: CONFIGURE_SCRIPT=      ./Configure
1.87      rillig     21: CONFIGURE_ARGS+=       -n ${LOWER_OPSYS}
1.38      jlam       22: CONFIGURE_ENV+=                LSOF_CC="${CC} ${CFLAGS}"
1.49      atatat     23: MAKE_FLAGS+=           LSOF_BLDCMT="NetBSD pkgsrc rocks!"
1.57      atatat     24: CPPFLAGS+=             -DLSOF_MORE_SECURE=${LSOF_MORE_SECURE} \
                     25:                        -DLSOF_LESS_SECURE_SOCKETS=${LSOF_LESS_SECURE_SOCKETS}
1.51      hubertf    26: OSVERSION_SPECIFIC=    yes
1.1       frueauf    27: 
1.62      salo       28: TMPWRK=                        ${WRKDIR}/${DISTNAME}
1.50      atatat     29: SRCBALL_NAME=          ${DISTNAME}_src
1.1       frueauf    30: 
1.94      tron       31: REPLACE_PERL+= scripts/sort_res.perl5 scripts/count_pf.perl5 \
                     32:                scripts/list_NULf.perl5 scripts/big_brother.perl5 \
                     33:                scripts/identd.perl5 scripts/shared.perl5 \
                     34:                scripts/idrlogin.perl5 scripts/count_pf.perl \
                     35:                scripts/idrlogin.perl scripts/list_fields.perl \
                     36:                scripts/watch_a_file.perl
                     37: USE_TOOLS+=    gtar perl:run
                     38: 
1.69      jlam       39: PKG_INSTALLATION_TYPES=        overwrite pkgviews
                     40: 
1.16      agc        41: .include "../../mk/bsd.prefs.mk"
                     42: 
                     43: .if ${OPSYS} == "NetBSD"
1.21      agc        44: REAL_GROUP=            -g kmem
1.93      veego      45: CONFIGURE_ENV+=                NETBSD_SYS="${NETBSDSRCDIR}/sys"
1.16      agc        46: .elif ${OPSYS} == "SunOS"
1.21      agc        47: MAKE_ENV+=             CPPFLAGS=
1.16      agc        48: .endif
1.89      rillig     49: INSTALLATION_DIRS=     ${PKGMANDIR}/man8 sbin
1.40      agc        50: 
                     51: LSOF_MORE_SECURE?= 0
1.16      agc        52: 
1.1       frueauf    53: post-extract:
1.50      atatat     54:        @(cd ${TMPWRK} ; \
1.95      apb        55:        EXPMD5=`${GREP} 'MD5 (' README.${DISTNAME} | ${SED} 's/^[ ]*//'` ; \
1.39      agc        56:        CALCMD5=`${DIGEST} MD5 ${SRCBALL_NAME}.tar` ; \
1.29      wiz        57:        if [ "$${EXPMD5}"X != "$${CALCMD5}"X ]; then \
                     58:                ${ECHO} "Expected and calculated MD5 signatures don't agree." ; \
                     59:                ${ECHO} "($$EXPMD5 != $$CALCMD5)" ; \
1.95      apb        60:                exit 1 ; \
1.29      wiz        61:        fi ; \
1.84      jlam       62:        if [ X${EXTRACT_USING} = Xgtar ]; then \
1.29      wiz        63:                ${GTAR} -xf ${SRCBALL_NAME}.tar; \
                     64:        else \
1.60      grant      65:                ${PAX} -O -r < ${SRCBALL_NAME}.tar; \
1.29      wiz        66:        fi)
1.2       frueauf    67:        @( cd ${WRKSRC} ; ${ECHO} "y" | ./Inventory || exit 1 )
1.1       frueauf    68: 
                     69: do-install:
1.54      yyamano    70:        ${INSTALL} ${COPY} ${_STRIPFLAG_INSTALL} -o ${BINOWN} -g ${BINGRP} -m 2755 ${REAL_GROUP} \
1.1       frueauf    71:                ${WRKSRC}/lsof ${PREFIX}/sbin
1.89      rillig     72:        ${INSTALL_MAN} ${WRKSRC}/lsof.8 ${PREFIX}/${PKGMANDIR}/man8/lsof.8
1.36      hubertf    73:        @${INSTALL_DATA_DIR} ${PREFIX}/share/lsof
1.1       frueauf    74:        ${INSTALL_SCRIPT} ${WRKSRC}/scripts/* ${PREFIX}/share/lsof
1.27      wiz        75:        @${CHMOD} 0444 ${PREFIX}/share/lsof/00*
1.1       frueauf    76: 
1.3       agc        77: .include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>