pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/openssl For NetBSD's crippled OpenSSL distrib...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/837e54156de6
branches:  trunk
changeset: 498222:837e54156de6
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Tue Aug 16 16:58:29 2005 +0000

description:
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:

 security/openssl/builtin.mk |  12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diffs (40 lines):

diff -r 3bc35b19b36a -r 837e54156de6 security/openssl/builtin.mk
--- a/security/openssl/builtin.mk       Tue Aug 16 15:39:50 2005 +0000
+++ b/security/openssl/builtin.mk       Tue Aug 16 16:58:29 2005 +0000
@@ -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 @@
 #     (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-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 @@
                  ${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.";      \



Home | Main Index | Thread Index | Old Index