summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorjlam <jlam>2005-08-16 16:58:29 +0000
committerjlam <jlam>2005-08-16 16:58:29 +0000
commitbeb3d680cddbe28eda44306670f3def2e07364a4 (patch)
treef3a6c90d684f1e6cfc9b113235257a37a2119ee5 /security
parent1690b46a81eb88a0594b8250cf3e88727fb1775b (diff)
downloadpkgsrc-beb3d680cddbe28eda44306670f3def2e07364a4.tar.gz
For NetBSD's crippled OpenSSL distribution, create an <openssl/des_old.h>
header in the buildlink directory that just pulls in /usr/include/des.h. This should allow packages that purposely include <openssl/des_old.h> on post-0.9.7 versions of OpenSSL to find it on NetBSD.
Diffstat (limited to 'security')
-rw-r--r--security/openssl/builtin.mk12
1 files changed, 10 insertions, 2 deletions
diff --git a/security/openssl/builtin.mk b/security/openssl/builtin.mk
index e1ef8195aec..ba3b66e70c5 100644
--- a/security/openssl/builtin.mk
+++ b/security/openssl/builtin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: builtin.mk,v 1.14 2005/06/09 06:07:29 jlam Exp $
+# $NetBSD: builtin.mk,v 1.15 2005/08/16 16:58:29 jlam Exp $
BUILTIN_PKG:= openssl
@@ -152,7 +152,8 @@ WRAPPER_REORDER_CMDS+= reorder:l:des:crypto
# (b) If it's NetBSD's Special(TM) one that stripped out the old DES
# support into a separate library and header (-ldes, <des.h>),
# then we create a new header <openssl/des.h> that includes the
-# system one and <des.h>.
+# system one and <des.h>, and we create an <openssl/des_old.h>
+# that just includes <des.h>.
#
BUILDLINK_TARGETS+= buildlink-openssl-des-h
. if !target(buildlink-openssl-des-h)
@@ -160,6 +161,7 @@ BUILDLINK_TARGETS+= buildlink-openssl-des-h
buildlink-openssl-des-h:
${_PKG_SILENT}${_PKG_DEBUG} \
bl_odes_h="${BUILDLINK_DIR}/include/openssl/des.h"; \
+ bl_odes_old_h="${BUILDLINK_DIR}/include/openssl/des_old.h"; \
odes_h="${BUILDLINK_PREFIX.openssl}/include/openssl/des.h"; \
odes_old_h="${BUILDLINK_PREFIX.openssl}/include/openssl/des_old.h"; \
des_h="${BUILDLINK_PREFIX.openssl}/include/des.h"; \
@@ -177,6 +179,12 @@ buildlink-openssl-des-h:
${ECHO} "#include \"$$odes_h\""; \
${ECHO} "#include \"$$des_h\""; \
) > $$bl_odes_h; \
+ ${ECHO_BUILDLINK_MSG} "Creating $$bl_odes_old_h"; \
+ ${RM} -f $$bl_odes_old_h; \
+ ${MKDIR} `${DIRNAME} $$bl_odes_old_h`; \
+ ( ${ECHO} "/* Created by openssl/builtin.mk:${.TARGET} */"; \
+ ${ECHO} "#include \"$$des_h\""; \
+ ) > $$bl_odes_old_h; \
exit 0; \
else \
${ECHO} "Unable to find headers for old DES API."; \