summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2004-12-21 08:57:48 +0000
committergrant <grant@pkgsrc.org>2004-12-21 08:57:48 +0000
commitdaa81e9135a608b513de7396151378a13f0e71b0 (patch)
tree66ee7bfa8152431af43864b5dcb107f192ca5922 /security
parent792d45b1cb187938566bcf8c8b4c58fc123f30bd (diff)
downloadpkgsrc-daa81e9135a608b513de7396151378a13f0e71b0.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