aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2021-07-22 09:52:54 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2021-07-22 09:53:03 +0000
commit426c0efca9f0077e2ce01d73ed890edfffb3989a (patch)
tree589a2f300e264115307b91601393cfa268549115
parent4f62d3170cfcef5198a0eba031e54a029ce8efa5 (diff)
downloadports-426c0efca9f0077e2ce01d73ed890edfffb3989a.tar.gz
ports-426c0efca9f0077e2ce01d73ed890edfffb3989a.zip
security/distcache: unbreak the build when using OpenSSL from ports
While appropriate --with-ssl=${OPENSSLBASE} switch is passed to the configure script, the SSLeay_version -> OpenSSL_version adjustment was performed not relative to ${OPENSSLINC}, which is wrong. Also, this check cannot be executed at `post-patch' because OpenSSL from ports is not yet available at this early stage. PR: 236820
-rw-r--r--security/distcache/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/security/distcache/Makefile b/security/distcache/Makefile
index ab15fa121028..28688e72397c 100644
--- a/security/distcache/Makefile
+++ b/security/distcache/Makefile
@@ -23,8 +23,8 @@ PORTDOCS= ANNOUNCE BUGS CHANGES FAQ README
OPTIONS_DEFINE= DOCS
-post-patch:
- @${GREP} -q 'define SSLeay_version' /usr/include/openssl/crypto.h \
+pre-configure: # yes, post-patch won't work in this case
+ @${GREP} -q 'define SSLeay_version' ${OPENSSLINC}/openssl/crypto.h \
&& ${REINPLACE_CMD} -e 's,SSLeay_version,OpenSSL_version,' \
${WRKSRC}/ssl/configure || :