summaryrefslogtreecommitdiff
path: root/sysutils/lsof
diff options
context:
space:
mode:
authorapb <apb@pkgsrc.org>2008-04-26 11:54:24 +0000
committerapb <apb@pkgsrc.org>2008-04-26 11:54:24 +0000
commit2194d5bee639e229bed867a50eceae3a950c53f0 (patch)
tree31cfa9fcfbcc4c50105748f9cbd4542eb466b6a5 /sysutils/lsof
parent6a746608ee441d4338297124c955b2033f83f2c8 (diff)
downloadpkgsrc-2194d5bee639e229bed867a50eceae3a950c53f0.tar.gz
In post-extract, adjust the regexp used to search for an MD5 line in
README.${DISTNAME} so that it no longer matches some unwanted extra lines. Also make it an error for the MD5 to be wrong.
Diffstat (limited to 'sysutils/lsof')
-rw-r--r--sysutils/lsof/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysutils/lsof/Makefile b/sysutils/lsof/Makefile
index c68619141df..eedb2c55db0 100644
--- a/sysutils/lsof/Makefile
+++ b/sysutils/lsof/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.94 2007/12/17 12:15:59 tron Exp $
+# $NetBSD: Makefile,v 1.95 2008/04/26 11:54:24 apb Exp $
DISTNAME= lsof_4.78
PKGNAME= ${DISTNAME:S/_/-/}.${OS_VERSION}
@@ -52,12 +52,12 @@ LSOF_MORE_SECURE?= 0
post-extract:
@(cd ${TMPWRK} ; \
- EXPMD5=`${GREP} MD5 README.${DISTNAME} | ${SED} 's/^[ ]*//'` ; \
+ EXPMD5=`${GREP} 'MD5 (' README.${DISTNAME} | ${SED} 's/^[ ]*//'` ; \
CALCMD5=`${DIGEST} MD5 ${SRCBALL_NAME}.tar` ; \
if [ "$${EXPMD5}"X != "$${CALCMD5}"X ]; then \
${ECHO} "Expected and calculated MD5 signatures don't agree." ; \
${ECHO} "($$EXPMD5 != $$CALCMD5)" ; \
- ${FALSE} ; \
+ exit 1 ; \
fi ; \
if [ X${EXTRACT_USING} = Xgtar ]; then \
${GTAR} -xf ${SRCBALL_NAME}.tar; \