Edit

IABSD.fr/ports/sysutils/lsof/Makefile

Branch :

  • Show log

    Commit

  • Author : espie
    Date : 2013-03-11 11:35:43
    Hash : eae66e4a
    Message : PERMIT_* / REGRESS->TEST sweep

  • sysutils/lsof/Makefile
  • # $OpenBSD: Makefile,v 1.87 2013/03/11 11:41:31 espie Exp $
    
    COMMENT=	list information about open files
    
    VERSION=	4.83
    DISTNAME=	lsof_${VERSION}
    PKGNAME=	${DISTNAME:S/_/-/}
    REVISION=	8
    CATEGORIES=	sysutils
    MASTER_SITES=	http://www.mirrorservice.org/sites/vic.cc.purdue.edu/pub/tools/unix/lsof/OLD/ \
    		ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/ \
    		ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/OLD/ \
    		ftp://ftp.fu-berlin.de/pub/unix/tools/lsof/OLD/ \
    		ftp://ftp.fu-berlin.de/pub/unix/tools/lsof/ \
    		http://www.mirrorservice.org/sites/vic.cc.purdue.edu/pub/tools/unix/lsof/
    
    HOMEPAGE=	http://people.freebsd.org/~abe/
    
    MAINTAINER=     Peter Valchev <pvalchev@openbsd.org>
    
    PERMIT_PACKAGE_CDROM=	Yes
    WANTLIB=		c kvm>=13
    
    MAKE_FLAGS=	DEBUG="${CFLAGS}"
    
    CONFIGURE_STYLE= simple
    CONFIGURE_SCRIPT= Configure
    CONFIGURE_ARGS=	-n openbsd
    CONFIGURE_ENV=	LSOF_CC="${CC}"
    
    SRCBALL_NAME=	${DISTNAME}_src
    WRKDIST=	${WRKDIR}/${DISTNAME}/${SRCBALL_NAME}
    
    post-extract:
    	@(cd ${WRKDIST}/..; \
    	EXPMD5=`/usr/bin/grep "MD5 (" README.${DISTNAME} | \
    	    /usr/bin/sed 's/^[ ]*//'` ; \
    	CALCMD5=`md5 ${SRCBALL_NAME}.tar` ; \
    	if [ "$${EXPMD5}"X != "$${CALCMD5}"X ]; then \
    	    echo "Expected and calculated MD5 signatures don't agree." ; \
    	    echo "($$EXPMD5 != $$CALCMD5)" ; \
    	    exit 1 ; \
    	fi ; \
    	tar -xf ${SRCBALL_NAME}.tar)
    
    pre-configure:
    	@if [ ! -d /sys ]; then \
    	    echo ""; \
    	    echo "*** Error: Building this package requires the" ; \
    	    echo "*** kernel sources to be available under /sys" ; \
    	    echo ""; \
    	    exit 1; \
    	fi
    
    NO_TEST=	Yes
    
    do-install:
    	${INSTALL_SCRIPT_DIR} ${PREFIX}/share/lsof
    	${INSTALL_PROGRAM} ${WRKBUILD}/lsof ${PREFIX}/sbin
    	${INSTALL_MAN} ${WRKSRC}/lsof.8 ${PREFIX}/man/man8/lsof.8
    	${INSTALL_SCRIPT} ${WRKSRC}/scripts/* ${PREFIX}/share/lsof
    	@chmod 444 ${PREFIX}/share/lsof/00*
    
    .include <bsd.port.mk>