summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorgrant <grant>2004-12-21 08:57:48 +0000
committergrant <grant>2004-12-21 08:57:48 +0000
commitb8c9d84bcf14224fbe97745836e562c3414c752c (patch)
tree66ee7bfa8152431af43864b5dcb107f192ca5922 /security
parent4dd0a115d3057c8cf1bdb782ae97dd0382e9528b (diff)
downloadpkgsrc-b8c9d84bcf14224fbe97745836e562c3414c752c.tar.gz
fix socklen_t hack by falling through to ${TRUE} if ${GREP} fails
(pattern not matched). ugh, bash. fixes build on Linux. reported by minskim@
Diffstat (limited to 'security')
-rw-r--r--security/libgcrypt/hacks.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/security/libgcrypt/hacks.mk b/security/libgcrypt/hacks.mk
index 6cc16cf046f..ccb3edf5f6b 100644
--- a/security/libgcrypt/hacks.mk
+++ b/security/libgcrypt/hacks.mk
@@ -1,4 +1,4 @@
-# $NetBSD: hacks.mk,v 1.1 2004/12/18 23:54:58 grant Exp $
+# $NetBSD: hacks.mk,v 1.2 2004/12/21 08:57:48 grant Exp $
# config.h #defines socklen_t if it is not defined, but libgcrypt does
# not propogate this to the installed gcrypt.h, so packages using it
@@ -6,7 +6,7 @@
#
# hack around this by using the same #define (if present) in gcrypt.h.
post-configure:
- socklen=`${GREP} '^#define socklen_t' ${WRKSRC}/config.h`; \
+ socklen=`${GREP} '^#define socklen_t' ${WRKSRC}/config.h || ${TRUE}`; \
${MV} ${WRKSRC}/src/gcrypt.h ${WRKSRC}/src/gcrypt.h.old; \
${SED} -e "s,^/\* socklen_t \*/,$$socklen," \
${WRKSRC}/src/gcrypt.h.old > ${WRKSRC}/src/gcrypt.h