From ecca9860e12c2cf1c79b4c50c0990ab6f5d7571d Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Thu, 27 Apr 2006 01:49:36 +0000 Subject: Fix the build on FreeBSD 4.11. PR: 96356 Submitted by: Auster Vl. --- sysutils/lsof/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysutils/lsof') diff --git a/sysutils/lsof/Makefile b/sysutils/lsof/Makefile index cc6a2c03c8ab..c930ca60ab05 100644 --- a/sysutils/lsof/Makefile +++ b/sysutils/lsof/Makefile @@ -51,7 +51,7 @@ SRCBALL_NAME= ${DISTNAME:S/_W$//}_src .if !defined(FIXUP_RELEASE) post-extract: @( cd ${WRKDIR}/${DISTNAME} ; \ - EXPMD5=`${GREP} -m 1 MD5 README.${DISTNAME} | ${SED} 's/[ ]*//'` ; \ + EXPMD5=`${SED} -n 's/^[[:blank:]]*\(MD5*=*\)/\1/p' README.${DISTNAME}` ; \ CALCMD5=`${MD5} ${SRCBALL_NAME}.tar` ; \ if [ "$${EXPMD5}"X != "$${CALCMD5}"X ]; then \ ${ECHO} "Expected and calculated MD5 signatures don't agree." ; \ -- cgit v1.2.3