diff options
author | jlam <jlam@pkgsrc.org> | 2005-08-16 16:58:29 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2005-08-16 16:58:29 +0000 |
commit | 2e8a0d6f8efa900f747ca52c329f8259587332d7 (patch) | |
tree | f3a6c90d684f1e6cfc9b113235257a37a2119ee5 /security/openssl | |
parent | 49d670f340bf808b07644334a01510376f0938cf (diff) | |
download | pkgsrc-2e8a0d6f8efa900f747ca52c329f8259587332d7.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/openssl')
-rw-r--r-- | security/openssl/builtin.mk | 12 |
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."; \ |