summaryrefslogtreecommitdiff
path: root/security/openssl/patches
diff options
context:
space:
mode:
authorerh <erh@pkgsrc.org>1999-11-25 18:51:47 +0000
committererh <erh@pkgsrc.org>1999-11-25 18:51:47 +0000
commitc11044fe629094efd415d170f992d4a32d41dc79 (patch)
treec32e3435ad52bc3d9b0a9e9835afbf64e73ba307 /security/openssl/patches
parent75d6a9d82da56f9909d1409a8b482d4076a03e26 (diff)
downloadpkgsrc-c11044fe629094efd415d170f992d4a32d41dc79.tar.gz
Update openssl to 0.9.4.
Diffstat (limited to 'security/openssl/patches')
-rw-r--r--security/openssl/patches/patch-aa33
-rw-r--r--security/openssl/patches/patch-ab179
-rw-r--r--security/openssl/patches/patch-ac8
-rw-r--r--security/openssl/patches/patch-ad29
-rw-r--r--security/openssl/patches/patch-ae14
-rw-r--r--security/openssl/patches/patch-af8
-rw-r--r--security/openssl/patches/patch-ag10
-rw-r--r--security/openssl/patches/patch-ah12
-rw-r--r--security/openssl/patches/patch-ai10
-rw-r--r--security/openssl/patches/patch-aj22
-rw-r--r--security/openssl/patches/patch-ak13
11 files changed, 208 insertions, 130 deletions
diff --git a/security/openssl/patches/patch-aa b/security/openssl/patches/patch-aa
index fb86a3cca39..ad1cd9e81f9 100644
--- a/security/openssl/patches/patch-aa
+++ b/security/openssl/patches/patch-aa
@@ -1,13 +1,13 @@
-$NetBSD: patch-aa,v 1.1.1.1 1999/04/30 15:19:13 tv Exp $
+$NetBSD: patch-aa,v 1.2 1999/11/25 18:51:47 erh Exp $
---- config.orig Sun Jan 17 09:20:20 1999
-+++ config Tue Apr 27 10:22:07 1999
-@@ -137,12 +137,16 @@
- echo "${MACHINE}-whatever-freebsd"; exit 0
- ;;
+--- config.orig Mon Aug 9 05:16:51 1999
++++ config Wed Oct 20 17:12:32 1999
+@@ -155,8 +155,12 @@
+ echo "${MACH}-${ARCH}-freebsd${VERS}"; exit 0
+ ;;
-- NetBSD:*:*:*486*)
-- echo "i486-whatever-netbsd"; exit 0
+- NetBSD:*:*:*386*)
+- echo "`sysctl -n hw.model | sed 's,.*\(.\)86-class.*,i\186,'`-whateve\r-netbsd"; exit 0
+ NetBSD:*:*:i386)
+ if echo __ELF__ | cc -E - | grep -q __ELF__; then
+ echo "i386-whatever-netbsd"; exit 0
@@ -17,20 +17,15 @@ $NetBSD: patch-aa,v 1.1.1.1 1999/04/30 15:19:13 tv Exp $
;;
NetBSD:*)
-- echo "${MACHINE}-whatever-netbsd"; exit 0
-+ echo "`sysctl -n hw.machine_arch`-whatever-netbsd"; exit 0
- ;;
-
- OpenBSD:*)
-@@ -310,9 +314,9 @@
- *-*-sunos4) OUT="sunos-$CC" ;;
- *-freebsd3) OUT="FreeBSD-elf" ;;
- *-freebsd) OUT="FreeBSD" ;;
+@@ -404,9 +408,9 @@
+ alpha*-*-freebsd*) OUT="FreeBSD-alpha" ;;
+ *-freebsd[3-9]*) OUT="FreeBSD-elf" ;;
+ *-freebsd[1-2]*) OUT="FreeBSD" ;;
- *86*-*-netbsd) OUT="NetBSD-x86" ;;
- sun3*-*-netbsd) OUT="NetBSD-m68" ;;
- *-*-netbsd) OUT="NetBSD-sparc" ;;
-+ i386elf-*-netbsd) OUT="NetBSD-i386elf" ;;
-+ mips-*-netbsd) OUT="NetBSD-mipsel" ;;
++ *86elf*-*-netbsd) OUT="NetBSD-i386elf" ;;
++ *86-*-netbsd) OUT="NetBSD-i386" ;;
+ *-netbsd) OUT="NetBSD-`sysctl -n hw.machine_arch`" ;;
*86*-*-openbsd) OUT="OpenBSD-x86" ;;
alpha*-*-openbsd) OUT="OpenBSD-alpha" ;;
diff --git a/security/openssl/patches/patch-ab b/security/openssl/patches/patch-ab
index c46b361fa4e..e77367280db 100644
--- a/security/openssl/patches/patch-ab
+++ b/security/openssl/patches/patch-ab
@@ -1,92 +1,147 @@
-$NetBSD: patch-ab,v 1.2 1999/10/19 04:09:19 erh Exp $
-
---- Configure.orig Mon Oct 18 21:46:47 1999
-+++ Configure Mon Oct 18 22:28:19 1999
-@@ -153,9 +153,6 @@
- "linux-aout", "gcc:-DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -m486 -Wall::BN_LLONG $x86_gcc_des $x86_gcc_opts:$x86_out_asm",
- "linux-mips", "gcc:-DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall
- -Wuninitialized:::BN_LLONG:",
--"NetBSD-sparc", "gcc:-DTERMIOS -O3 -fomit-frame-pointer -mv8 -Wall -DB_ENDIAN::BN_LLONG MD2_CHAR RC4_INDEX DES_UNROLL:::",
--"NetBSD-m68", "gcc:-DTERMIOS -O3 -fomit-frame-pointer -Wall -DB_ENDIAN::BN_LLONG MD2_CHAR RC4_INDEX DES_UNROLL:::",
--"NetBSD-x86", "gcc:-DTERMIOS -D_ANSI_SOURCE -O3 -fomit-frame-pointer -m486 -Wall::BN_LLONG $x86_gcc_des $x86_gcc_opts:",
- #"FreeBSD", "gcc:-DTERMIOS -DL_ENDIAN -D_ANSI_SOURCE -fomit-frame-pointer -O3 -m486 -Wall::BN_LLONG $x86_gcc_des $x86_gcc_opts:$x86_out_asm",
- "FreeBSD", "gcc:-DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O3 -m486 -Wall::BN_LLONG $x86_gcc_des $x86_gcc_opts:$x86_out_asm",
- "FreeBSD-elf", "gcc:-DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O3 -m486 -Wall::BN_LLONG $x86_gcc_des $x86_gcc_opts:$x86_elf_asm",
-@@ -172,6 +169,20 @@
- "aix-cc", "cc:-O -DAIX -DB_ENDIAN::BN_LLONG RC4_CHAR:::",
- "aix-gcc", "gcc:-O2 -DAIX -DB_ENDIAN::BN_LLONG RC4_CHAR:::",
+--- Configure.orig Wed Oct 20 18:41:27 1999
++++ Configure Thu Oct 21 00:05:25 1999
+@@ -82,8 +82,9 @@
+ # -DB_ENDIAN slows things down on a sparc for md5, but helps sha1.
+ # So the md5_locl.h file has an undef B_ENDIAN if sun is defined
+
+-#config-string CC : CFLAGS : LDFLAGS : special header file mods:bn_asm \
+-# des_asm:bf_asm
++#config-string CC : CFLAGS : unistd : thread cflag : LDFLAGS : \
++# bn_ops : bn_obj : des_obj : bf_obj : md5_obj : sha1_obj : cast_obj : \
++# rc4_obj : rmd160_obj : rc5_obj
+ my %table=(
+ #"b", "$tcc:$tflags::$tlib:$bits1:$tbn_mul::",
+ #"bl-4c-2c", "$tcc:$tflags::$tlib:${bits1}BN_LLONG RC4_CHAR MD2_CHAR:$tbn_mul::",
+@@ -208,9 +209,6 @@
+ "linux-aout", "gcc:-DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -m486 -Wall::(unknown)::BN_LLONG $x86_gcc_des $x86_gcc_opts:$x86_out_asm",
+ "linux-mips", "gcc:-DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::(unknown)::BN_LLONG:::",
+ "linux-ppc", "gcc:-DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::(unknown)::::",
+-"NetBSD-sparc", "gcc:-DTERMIOS -O3 -fomit-frame-pointer -mv8 -Wall -DB_ENDIAN::(unknown)::BN_LLONG MD2_CHAR RC4_INDEX DES_UNROLL:::",
+-"NetBSD-m68", "gcc:-DTERMIOS -O3 -fomit-frame-pointer -Wall -DB_ENDIAN::(unknown)::BN_LLONG MD2_CHAR RC4_INDEX DES_UNROLL:::",
+-"NetBSD-x86", "gcc:-DTERMIOS -O3 -fomit-frame-pointer -m486 -Wall::(unknown)::BN_LLONG $x86_gcc_des $x86_gcc_opts:",
+ "FreeBSD-elf", "gcc:-DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O3 -m486 -Wall::(unknown)::BN_LLONG $x86_gcc_des $x86_gcc_opts:$x86_elf_asm",
+ "FreeBSD", "gcc:-DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O3 -m486 -Wall::(unknown)::BN_LLONG $x86_gcc_des $x86_gcc_opts:$x86_out_asm",
+ "bsdi-gcc", "gcc:-O3 -ffast-math -DL_ENDIAN -DPERL5 -m486::(unknown)::RSA_LLONG $x86_gcc_des $x86_gcc_opts:$x86_bsdi_asm",
+@@ -228,6 +226,20 @@
+ "aix-cc", "cc:-O -DAIX -DB_ENDIAN::(unknown)::BN_LLONG RC4_CHAR:::",
+ "aix-gcc", "gcc:-O3 -DAIX -DB_ENDIAN::(unknown)::BN_LLONG RC4_CHAR:::",
+# NetBSD
-+"NetBSD-alpha", "gcc:-DTERMIOS -O3 -Wall::SIXTY_FOUR_BIT_LONG DES_INT DES_PTR DES_RISC2:::",
-+"NetBSD-arm32", "gcc:-DTERMIOS -O3 -Wall -DL_ENDIAN::BN_LLONG MD2_CHAR RC4_INDEX DES_UNROLL:::",
-+"NetBSD-i386", "gcc:-DTERMIOS -O3 -fomit-frame-pointer -m486 -Wall -DL_ENDIAN -DBN_ASM::BN_LLONG $x86_gcc_des $x86_gcc_opts:$x86_out_asm",
-+"NetBSD-i386elf", "gcc:-DTERMIOS -O3 -fomit-frame-pointer -m486 -Wall -DL_ENDIAN -DBN_ASM::BN_LLONG $x86_gcc_des $x86_gcc_opts:$x86_elf_asm",
-+"NetBSD-m68k", "gcc:-DTERMIOS -O3 -fomit-frame-pointer -Wall -DB_ENDIAN::BN_LLONG MD2_CHAR RC4_INDEX DES_UNROLL:::",
-+"NetBSD-mipseb", "gcc:-DTERMIOS -O3 -Wall -DB_ENDIAN::BN_LLONG MD2_CHAR RC4_INDEX DES_UNROLL:::",
-+"NetBSD-mipsel", "gcc:-DTERMIOS -O3 -Wall -DL_ENDIAN::BN_LLONG MD2_CHAR RC4_INDEX DES_UNROLL:::",
-+"NetBSD-ns32k", "gcc:-DTERMIOS -O3 -Wall -DL_ENDIAN::BN_LLONG MD2_CHAR RC4_INDEX DES_UNROLL:::",
-+"NetBSD-powerpc", "gcc:-DTERMIOS -O3 -Wall -DB_ENDIAN::BN_LLONG MD2_CHAR RC4_INDEX DES_UNROLL:::",
-+"NetBSD-sparc", "gcc:-DTERMIOS -O3 -fomit-frame-pointer -mv8 -Wall -DB_ENDIAN::BN_LLONG MD2_CHAR RC4_INDEX DES_UNROLL:::",
-+"NetBSD-sparc64", "gcc:-DTERMIOS -O3 -fomit-frame-pointer -Wall::SIXTY_FOUR_BIT_LONG DES_INT DES_PTR DES_RISC1:::",
-+"NetBSD-vax", "gcc:-DTERMIOS -O3 -Wall -DL_ENDIAN::BN_LLONG MD2_CHAR RC4_INDEX DES_UNROLL:::",
++"NetBSD-alpha", "gcc:-DTERMIOS -O3 -Wall::(unknown)::SIXTY_FOUR_BIT_LONG DES_INT DES_PTR DES_RISC2:",
++"NetBSD-arm32", "gcc:-DTERMIOS -O3 -Wall -DL_ENDIAN::(unknown)::BN_LLONG MD2_CHAR RC4_INDEX DES_UNROLL:",
++"NetBSD-i386", "gcc:-DBN_ASM -DL_ENDIAN -DTERMIOS -O3 -fomit-frame-pointer -m486 -Wall::(unknown)::BN_LLONG $x86_gcc_des $x86_gcc_opts:$x86_out_asm:",
++"NetBSD-i386elf", "gcc:-DBN_ASM -DL_ENDIAN -DTERMIOS -O3 -fomit-frame-pointer -m486 -Wall::(unknown)::BN_LLONG $x86_gcc_des $x86_gcc_opts:$x86_elf_asm:",
++"NetBSD-m68k", "gcc:-DTERMIOS -O3 -fomit-frame-pointer -Wall -DB_ENDIAN::(unknown)::BN_LLONG MD2_CHAR RC4_INDEX DES_UNROLL:",
++"NetBSD-mipseb", "gcc:-DTERMIOS -O3 -Wall -DB_ENDIAN::(unknown)::BN_LLONG MD2_CHAR RC4_INDEX DES_UNROLL:",
++"NetBSD-mipsel", "gcc:-DTERMIOS -O3 -Wall -DL_ENDIAN::(unknown)::BN_LLONG MD2_CHAR RC4_INDEX DES_UNROLL:",
++"NetBSD-ns32k", "gcc:-DTERMIOS -O3 -Wall -DL_ENDIAN::(unknown)::BN_LLONG MD2_CHAR RC4_INDEX DES_UNROLL:",
++"NetBSD-powerpc", "gcc:-DTERMIOS -O3 -Wall -DB_ENDIAN::(unknown)::BN_LLONG MD2_CHAR RC4_INDEX DES_UNROLL:",
++"NetBSD-sparc", "gcc:-DTERMIOS -O3 -fomit-frame-pointer -mv8 -Wall -DB_ENDIAN::(unknown)::BN_LLONG MD2_CHAR RC4_INDEX DES_UNROLL:",
++"NetBSD-sparc64", "gcc:-DTERMIOS -O3 -fomit-frame-pointer -Wall::(unknown)::SIXTY_FOUR_BIT_LONG DES_INT DES_PTR DES_RISC1:",
++"NetBSD-vax", "gcc:-DTERMIOS -O3 -Wall -DL_ENDIAN::(unknown)::BN_LLONG MD2_CHAR RC4_INDEX DES_UNROLL:",
+
#
# Cray T90 (SDSC)
# It's Big-endian, but the algorithms work properly when B_ENDIAN is NOT
-@@ -282,19 +293,23 @@
- my $flags="";
+@@ -345,6 +357,7 @@
+ my $depflags="";
my $libs="";
my $target="";
-+my $usersaref=0;
-+my $xmakelib=" cd .. && csh \${MAKELIB} libcrypto.so.1.0 libcrypto.a";
-+
++my $xmakelib="";
+ my $options="";
foreach (@ARGV)
{
- if ($_ =~ /^no-asm$/)
- { $no_asm=1; }
- elsif ($_ =~ /^-/)
+@@ -377,10 +390,11 @@
+ {
+ $libs.= "-lRSAglue -lrsaref ";
+ $flags.= "-DRSAref ";
++ $xmakelib=" libRSAglue.a";
+ }
+ elsif (/^[-+]/)
{
-- if ($_ =~ /^-[lL](.*)$/)
-+ if ($_ =~ /^-([lLR]|Wl,)(.*)$/)
+- if (/^-[lL](.*)$/)
++ if (/^-([lLR]|Wl,)(.*)$/)
{
$libs.=$_." ";
}
- elsif ($_ =~ /^-D(.*)$/)
- {
- $flags.=$_." ";
-+ $usersaref=1 if ($_ =~ /^-DRSAref(.*)$/);
- }
- elsif ($_ =~ /^-[fK](.*)$/)
- {
-@@ -321,6 +336,11 @@
- }
+@@ -524,13 +538,19 @@
+
+ if ($version =~ /(^[0-9]*)\.([0-9\.]*)/)
+ {
+- $major=$1;
+- $minor=$2;
++# XXX Openssl version is 0.9, not 1.0
++ $major=1;
++ $minor=0;
}
-+if ($usersaref == 1)
+ open(IN,'<Makefile.org') || die "unable to read Makefile.org:$!\n";
+ open(OUT,">$Makefile") || die "unable to create $Makefile:$!\n";
+ my $sdirs=0;
++my $is_elf="0";
++if ($target =~ /.*elf.*/)
+ {
-+ $xmakelib.=" libRSAglue.a";
++ $is_elf="1";
+ }
-+
- if (!defined($table{$target}))
+ while (<IN>)
{
- &bad_target;
-@@ -370,6 +390,19 @@
- # $rmd160_obj=$rmd160_enc;
- $cflags.=" -DRMD160_ASM";
- }
-+
+ chop;
+@@ -542,6 +562,7 @@
+ }
+ }
+ $sdirs = 0 unless /\\$/;
++ s/^IS_ELF=.*/IS_ELF=$is_elf/;
+ s/^VERSION=.*/VERSION=$version/;
+ s/^MAJOR=.*/MAJOR=$major/;
+ s/^MINOR=.*/MINOR=$minor/;
+@@ -571,6 +592,19 @@
+ close(IN);
+ close(OUT);
+
+rename("crypto/Makefile.ssl", "crypto/Makefile.org") unless -e "crypto/Makefile.org";
-+open(IN,'<crypto/Makefile.org') || die "unable to read crypto/Makefile.org:$!\n";
++open(IN, '<crypto/Makefile.org') || die "unable to read crypto/Makefile.org:$!\n";
+open(OUT,">crypto/Makefile.ssl") || die "unable to create crypto/Makefile.ssl:$!\n";
+
+while (<IN>)
+ {
+ chop;
-+ s/^ XMAKELIB$/$xmakelib/;
++ s/^(.*)\${MAKELIB}(.*)$/$&$xmakelib/;
+ print OUT $_."\n";
+ }
+close(IN);
+close(OUT);
++
+ print "CC =$cc\n";
+ print "CFLAG =$cflags\n";
+ print "EX_LIBS =$lflags\n";
+@@ -747,30 +781,6 @@
+ $pwd =`pwd`;
+ chop($pwd);
+ }
+-print <<EOF;
+-
+-NOTE: The OpenSSL header files have been moved from include/*.h
+-to include/openssl/*.h. To include OpenSSL header files, now
+-directives of the form
+- #include <openssl/foo.h>
+-should be used instead of #include <foo.h>.
+-These new file locations allow installing the OpenSSL header
+-files in /usr/local/include/openssl/ and should help avoid
+-conflicts with other libraries.
+-
+-To compile programs that use the old form <foo.h>,
+-usually an additional compiler option will suffice: E.g., add
+- -I$prefix/include/openssl
+-or
+- -I$pwd/include/openssl
+-to the CFLAGS in the Makefile of the program that you want to compile
+-(and leave all the original -I...'s in place!).
+-
+-Please make sure that no old OpenSSL header files are around:
+-The include directory should now be empty except for the openssl
+-subdirectory.
+-
+-EOF
+
+ print <<\EOF if (!$no_threads && !$threads);
- open(IN,'<Makefile.org') || die "unable to read Makefile.org:$!\n";
- open(OUT,">$Makefile") || die "unable to create $Makefile:$!\n";
diff --git a/security/openssl/patches/patch-ac b/security/openssl/patches/patch-ac
index 3921245b1a0..bede19e4b7d 100644
--- a/security/openssl/patches/patch-ac
+++ b/security/openssl/patches/patch-ac
@@ -1,8 +1,8 @@
-$NetBSD: patch-ac,v 1.1.1.1 1999/04/30 15:19:13 tv Exp $
+$NetBSD: patch-ac,v 1.2 1999/11/25 18:51:47 erh Exp $
---- crypto/bn/Makefile.ssl.orig Wed Dec 23 03:21:12 1998
-+++ crypto/bn/Makefile.ssl Tue Mar 16 10:30:01 1999
-@@ -81,6 +81,9 @@
+--- crypto/bn/Makefile.ssl.orig Sun Jul 25 17:25:11 1999
++++ crypto/bn/Makefile.ssl Wed Oct 20 17:12:41 1999
+@@ -82,6 +82,9 @@
# a.out
asm/bn86-out.o: asm/bn86unix.cpp
$(CPP) -DOUT asm/bn86unix.cpp | as -o asm/bn86-out.o
diff --git a/security/openssl/patches/patch-ad b/security/openssl/patches/patch-ad
index ab4dfe26d31..7e6abef381c 100644
--- a/security/openssl/patches/patch-ad
+++ b/security/openssl/patches/patch-ad
@@ -1,13 +1,28 @@
-$NetBSD: patch-ad,v 1.1.1.1 1999/04/30 15:19:13 tv Exp $
-
---- Makefile.org.orig Tue Apr 27 14:34:38 1999
-+++ Makefile.org Tue Apr 27 14:34:53 1999
-@@ -126,7 +126,7 @@
+--- Makefile.org.orig Wed Oct 20 19:34:31 1999
++++ Makefile.org Wed Oct 20 19:48:25 1999
+@@ -50,6 +50,7 @@
+ CC= gcc
+ #CFLAG= -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -m486 -Wall -Wuninitialized -DSHA1_ASM -DMD5_ASM -DRMD160_ASM
+ CFLAG= -DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O3 -m486 -Wall -DSHA1_ASM -DMD5_ASM -DRMD160_ASM
++IS_ELF=0
+ DEPFLAG=
+ PEX_LIBS= -L. -L.. -L../.. -L../../..
+ EX_LIBS=
+@@ -142,7 +143,7 @@
#RMD160_ASM_OBJ= asm/rm86-out.o # a.out, FreeBSD
#RMD160_ASM_OBJ= asm/rm86bsdi.o # bsdi
-DIRS= crypto ssl rsaref apps test tools
+DIRS= rsaref crypto ssl apps test tools
+ SHLIBDIRS= crypto ssl
+
# dirs in crypto to build
- SDIRS= \
- md2 md5 sha mdc2 hmac ripemd \
+@@ -178,7 +179,7 @@
+ @for i in $(DIRS) ;\
+ do \
+ (cd $$i && echo "making all in $$i..." && \
+- $(MAKE) CC='${CC}' PLATFORM='${PLATFORM}' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' BN_ASM='${BN_ASM}' DES_ENC='${DES_ENC}' BF_ENC='${BF_ENC}' CAST_ENC='${CAST_ENC}' RC4_ENC='${RC4_ENC}' RC5_ENC='${RC5_ENC}' SHA1_ASM_OBJ='${SHA1_ASM_OBJ}' MD5_ASM_OBJ='${MD5_ASM_OBJ}' RMD160_ASM_OBJ='${RMD160_ASM_OBJ}' SDIRS='${SDIRS}' AR='${AR}' PROCESSOR='${PROCESSOR}' PERL='${PERL}' RANLIB='${RANLIB}' all ) || exit 1; \
++ $(MAKE) CC='${CC}' PLATFORM='${PLATFORM}' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' BN_ASM='${BN_ASM}' DES_ENC='${DES_ENC}' BF_ENC='${BF_ENC}' CAST_ENC='${CAST_ENC}' RC4_ENC='${RC4_ENC}' RC5_ENC='${RC5_ENC}' SHA1_ASM_OBJ='${SHA1_ASM_OBJ}' MD5_ASM_OBJ='${MD5_ASM_OBJ}' RMD160_ASM_OBJ='${RMD160_ASM_OBJ}' SDIRS='${SDIRS}' AR='${AR}' PROCESSOR='${PROCESSOR}' PERL='${PERL}' RANLIB='${RANLIB}' MAJOR='${MAJOR}' MINOR='${MINOR}' IS_ELF='${IS_ELF}' all ) || exit 1; \
+ done
+ -@# cd perl; $(PERL) Makefile.PL; make
+
diff --git a/security/openssl/patches/patch-ae b/security/openssl/patches/patch-ae
index 680d85b1f64..7a3776129e8 100644
--- a/security/openssl/patches/patch-ae
+++ b/security/openssl/patches/patch-ae
@@ -1,12 +1,12 @@
-$NetBSD: patch-ae,v 1.2 1999/10/19 04:09:19 erh Exp $
+$NetBSD: patch-ae,v 1.3 1999/11/25 18:51:47 erh Exp $
---- crypto/Makefile.ssl.orig Mon Mar 22 06:21:17 1999
-+++ crypto/Makefile.ssl Mon Oct 18 22:19:47 1999
+--- crypto/Makefile.ssl.orig Mon Aug 2 16:44:47 1999
++++ crypto/Makefile.ssl Wed Oct 20 17:31:16 1999
@@ -48,6 +48,7 @@
@(cd ..; $(MAKE) DIRS=$(DIR) all)
- all: date.h lib subdirs
-+ XMAKELIB
+ all: buildinf.h lib subdirs
++ cd ${TOP} && csh ${MAKELIB} ${IS_ELF} libcrypto.so.${MAJOR}.${MINOR} libcrypto.a
- date.h: ../Makefile.ssl
- echo "#define DATE \"`date`\"" >date.h
+ buildinf.h: ../Makefile.ssl
+ ( echo "#ifndef MK1MF_BUILD"; \
diff --git a/security/openssl/patches/patch-af b/security/openssl/patches/patch-af
index 84e43ee686f..73dff8cc22d 100644
--- a/security/openssl/patches/patch-af
+++ b/security/openssl/patches/patch-af
@@ -1,12 +1,12 @@
-$NetBSD: patch-af,v 1.1.1.1 1999/04/30 15:19:13 tv Exp $
+$NetBSD: patch-af,v 1.2 1999/11/25 18:51:47 erh Exp $
---- ssl/Makefile.ssl.orig Tue Apr 27 14:38:06 1999
-+++ ssl/Makefile.ssl Tue Apr 27 14:38:21 1999
+--- ssl/Makefile.ssl.orig Fri May 21 06:16:45 1999
++++ ssl/Makefile.ssl Wed Oct 20 17:31:33 1999
@@ -52,6 +52,7 @@
(cd ..; $(MAKE) DIRS=$(DIR) all)
all: lib
-+ cd .. && csh ${MAKELIB} libssl.so.1.0 libssl.a
++ cd ${TOP} && csh ${MAKELIB} ${IS_ELF} libssl.so.${MAJOR}.${MINOR} libssl.a
lib: $(LIBOBJ)
$(AR) $(LIB) $(LIBOBJ)
diff --git a/security/openssl/patches/patch-ag b/security/openssl/patches/patch-ag
index c16b74ae570..0a32e455cbe 100644
--- a/security/openssl/patches/patch-ag
+++ b/security/openssl/patches/patch-ag
@@ -1,13 +1,13 @@
-$NetBSD: patch-ag,v 1.1.1.1 1999/04/30 15:19:13 tv Exp $
+$NetBSD: patch-ag,v 1.2 1999/11/25 18:51:47 erh Exp $
---- apps/Makefile.ssl.orig Tue Apr 27 14:38:49 1999
-+++ apps/Makefile.ssl Tue Apr 27 14:39:13 1999
-@@ -16,7 +16,7 @@
+--- apps/Makefile.ssl.orig Mon Jun 21 05:04:37 1999
++++ apps/Makefile.ssl Thu Oct 21 00:09:56 1999
+@@ -18,7 +18,7 @@
PEX_LIBS=
EX_LIBS=
-CFLAGS= -DMONOLITH $(INCLUDES) $(CFLAG)
+CFLAGS= -DMONOLITH $(INCLUDES) $(CFLAG:N*PIC)
- GENERAL=Makefile
+ GENERAL=Makefile makeapps.com install.com
diff --git a/security/openssl/patches/patch-ah b/security/openssl/patches/patch-ah
index 202475da9bd..72e9ff765c2 100644
--- a/security/openssl/patches/patch-ah
+++ b/security/openssl/patches/patch-ah
@@ -1,13 +1,13 @@
-$NetBSD: patch-ah,v 1.1.1.1 1999/04/30 15:19:13 tv Exp $
+$NetBSD: patch-ah,v 1.2 1999/11/25 18:51:47 erh Exp $
---- test/Makefile.ssl.orig Tue Apr 27 14:39:30 1999
-+++ test/Makefile.ssl Tue Apr 27 14:39:44 1999
-@@ -15,7 +15,7 @@
+--- test/Makefile.ssl.orig Thu Aug 5 06:50:18 1999
++++ test/Makefile.ssl Thu Oct 21 00:09:58 1999
+@@ -17,7 +17,7 @@
PEX_LIBS=
EX_LIBS= #-lnsl -lsocket
-CFLAGS= $(INCLUDES) $(CFLAG)
+CFLAGS= $(INCLUDES) $(CFLAG:N*PIC)
- GENERAL=Makefile.ssl
-
+ GENERAL=Makefile.ssl maketests.com \
+ tests.com testenc.com tx509.com trsa.com tcrl.com tsid.com treq.com \
diff --git a/security/openssl/patches/patch-ai b/security/openssl/patches/patch-ai
index 361ee9c6d80..e5749d1e7fe 100644
--- a/security/openssl/patches/patch-ai
+++ b/security/openssl/patches/patch-ai
@@ -1,12 +1,12 @@
-$NetBSD: patch-ai,v 1.1.1.1 1999/04/30 15:19:13 tv Exp $
+$NetBSD: patch-ai,v 1.2 1999/11/25 18:51:47 erh Exp $
---- apps/ca.c.orig Fri Apr 30 10:51:58 1999
-+++ apps/ca.c Fri Apr 30 10:52:06 1999
-@@ -83,7 +83,7 @@
+--- apps/ca.c.orig Fri Aug 6 16:47:09 1999
++++ apps/ca.c Wed Oct 20 17:49:43 1999
+@@ -98,7 +98,7 @@
#define PROG ca_main
#define BASE_SECTION "ca"
--#define CONFIG_FILE "lib/openssl.cnf"
+-#define CONFIG_FILE "openssl.cnf"
+#define CONFIG_FILE "etc/openssl.cnf"
#define ENV_DEFAULT_CA "default_ca"
diff --git a/security/openssl/patches/patch-aj b/security/openssl/patches/patch-aj
index 8e729c4500f..5579ea265d6 100644
--- a/security/openssl/patches/patch-aj
+++ b/security/openssl/patches/patch-aj
@@ -1,13 +1,13 @@
-$NetBSD: patch-aj,v 1.1 1999/05/01 17:12:00 tv Exp $
+$NetBSD: patch-aj,v 1.2 1999/11/25 18:51:47 erh Exp $
---- crypto/bn/bn_div.c.orig Sat May 1 13:10:52 1999
-+++ crypto/bn/bn_div.c Sat May 1 13:11:42 1999
-@@ -61,7 +61,7 @@
- #include "bn_lcl.h"
+--- e_os.h.orig Thu Jun 10 03:12:20 1999
++++ e_os.h Wed Oct 20 17:50:34 1999
+@@ -231,7 +231,7 @@
+ /* !defined VMS */
+ # include OPENSSL_UNISTD
- /* The old slow way */
--#if 0
-+#if defined(__NetBSD__) && defined(__m68k__) && (__GNUC_MINOR__ == 91)
- int BN_div(dv, rem, m, d,ctx)
- BIGNUM *dv;
- BIGNUM *rem;
+-# define OPENSSL_CONF "openssl.cnf"
++# define OPENSSL_CONF "etc/openssl.cnf"
+ # define SSLEAY_CONF OPENSSL_CONF
+ # define RFILE ".rnd"
+ # define LIST_SEPARATOR_CHAR ':'
diff --git a/security/openssl/patches/patch-ak b/security/openssl/patches/patch-ak
new file mode 100644
index 00000000000..ec3056952d6
--- /dev/null
+++ b/security/openssl/patches/patch-ak
@@ -0,0 +1,13 @@
+$NetBSD: patch-ak,v 1.1 1999/11/25 18:51:47 erh Exp $
+
+--- crypto/bn/bn_div.c.orig Tue Aug 3 05:18:27 1999
++++ crypto/bn/bn_div.c Wed Oct 20 17:12:41 1999
+@@ -62,7 +62,7 @@
+ #include "bn_lcl.h"
+
+ /* The old slow way */
+-#if 0
++#if defined(__NetBSD__) && defined(__m68k__) && (__GNUC_MINOR__ == 91)
+ int BN_div(BIGNUM *dv, BIGNUM *rem, BIGNUM *m, BIGNUM *d, BN_CTX *ctx)
+ {
+ int i,nm,nd;