pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/lsof In post-extract, adjust the regexp used ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/d2d0947d9be9
branches: trunk
changeset: 541849:d2d0947d9be9
user: apb <apb%pkgsrc.org@localhost>
date: Sat Apr 26 11:54:24 2008 +0000
description:
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:
sysutils/lsof/Makefile | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (24 lines):
diff -r 69aeaccd01d7 -r d2d0947d9be9 sysutils/lsof/Makefile
--- a/sysutils/lsof/Makefile Sat Apr 26 11:38:59 2008 +0000
+++ b/sysutils/lsof/Makefile Sat Apr 26 11:54:24 2008 +0000
@@ -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 @@
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; \
Home |
Main Index |
Thread Index |
Old Index