mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-07 05:10:20 +00:00
openssl-1.0.0: Add recipes for openssl_1.0.0d
Delete 1.0.0c recipes Add patches from debian Remove recipes for openssl-native use BBCLASSEXTEND instead Drop libdeps-first.patch it would not let openssl-native build on ubuntu 11.10 Delete debian.patch, all changes in it are now provided by patches under debian dir Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
@@ -1,515 +0,0 @@
|
|||||||
Index: openssl-1.0.0/Makefile
|
|
||||||
===================================================================
|
|
||||||
--- openssl-1.0.0.orig/Makefile
|
|
||||||
+++ openssl-1.0.0/Makefile
|
|
||||||
@@ -26,10 +26,10 @@ HERE=.
|
|
||||||
# for, say, /usr/ and yet have everything installed to /tmp/somedir/usr/.
|
|
||||||
# Normally it is left empty.
|
|
||||||
INSTALL_PREFIX=
|
|
||||||
-INSTALLTOP=/usr/local/ssl
|
|
||||||
+INSTALLTOP=/usr
|
|
||||||
|
|
||||||
# Do not edit this manually. Use Configure --openssldir=DIR do change this!
|
|
||||||
-OPENSSLDIR=/usr/local/ssl
|
|
||||||
+OPENSSLDIR=/usr/lib/ssl
|
|
||||||
|
|
||||||
# NO_IDEA - Define to build without the IDEA algorithm
|
|
||||||
# NO_RC4 - Define to build without the RC4 algorithm
|
|
||||||
@@ -133,12 +133,13 @@ TESTS = alltests
|
|
||||||
|
|
||||||
MAKEFILE= Makefile
|
|
||||||
|
|
||||||
-MANDIR=$(OPENSSLDIR)/man
|
|
||||||
+MANDIR=/usr/share/man
|
|
||||||
MAN1=1
|
|
||||||
MAN3=3
|
|
||||||
-MANSUFFIX=
|
|
||||||
+MANSUFFIX=ssl
|
|
||||||
+MANSECTION=SSL
|
|
||||||
HTMLSUFFIX=html
|
|
||||||
-HTMLDIR=$(OPENSSLDIR)/html
|
|
||||||
+HTMLDIR=/usr/share/doc/openssl/html
|
|
||||||
SHELL=/bin/sh
|
|
||||||
|
|
||||||
TOP= .
|
|
||||||
@@ -149,8 +150,8 @@ LIBS= libcrypto.a libssl.a
|
|
||||||
SHARED_CRYPTO=libcrypto$(SHLIB_EXT)
|
|
||||||
SHARED_SSL=libssl$(SHLIB_EXT)
|
|
||||||
SHARED_LIBS=
|
|
||||||
-SHARED_LIBS_LINK_EXTS=
|
|
||||||
-SHARED_LDFLAGS=
|
|
||||||
+SHARED_LIBS_LINK_EXTS=.so
|
|
||||||
+SHARED_LDFLAGS=-m64 -Wl,--version-script=openssl.ld
|
|
||||||
|
|
||||||
GENERAL= Makefile
|
|
||||||
BASENAME= openssl
|
|
||||||
@@ -324,7 +325,8 @@ libcrypto.pc: Makefile
|
|
||||||
echo 'Description: OpenSSL cryptography library'; \
|
|
||||||
echo 'Version: '$(VERSION); \
|
|
||||||
echo 'Requires: '; \
|
|
||||||
- echo 'Libs: -L$${libdir} -lcrypto $(EX_LIBS)'; \
|
|
||||||
+ echo 'Libs: -L$${libdir} -lcrypto'; \
|
|
||||||
+ echo 'Libs.private: $(EX_LIBS)'; \
|
|
||||||
echo 'Cflags: -I$${includedir} $(KRB5_INCLUDES)' ) > libcrypto.pc
|
|
||||||
|
|
||||||
libssl.pc: Makefile
|
|
||||||
@@ -337,7 +339,8 @@ libssl.pc: Makefile
|
|
||||||
echo 'Description: Secure Sockets Layer and cryptography libraries'; \
|
|
||||||
echo 'Version: '$(VERSION); \
|
|
||||||
echo 'Requires: '; \
|
|
||||||
- echo 'Libs: -L$${libdir} -lssl -lcrypto $(EX_LIBS)'; \
|
|
||||||
+ echo 'Libs: -L$${libdir} -lssl'; \
|
|
||||||
+ echo 'Libs.private: -lcrypto $(EX_LIBS)'; \
|
|
||||||
echo 'Cflags: -I$${includedir} $(KRB5_INCLUDES)' ) > libssl.pc
|
|
||||||
|
|
||||||
openssl.pc: Makefile
|
|
||||||
@@ -350,7 +353,8 @@ openssl.pc: Makefile
|
|
||||||
echo 'Description: Secure Sockets Layer and cryptography libraries and tools'; \
|
|
||||||
echo 'Version: '$(VERSION); \
|
|
||||||
echo 'Requires: '; \
|
|
||||||
- echo 'Libs: -L$${libdir} -lssl -lcrypto $(EX_LIBS)'; \
|
|
||||||
+ echo 'Libs: -L$${libdir} -lssl -lcrypto'; \
|
|
||||||
+ echo 'Libs.private: $(EX_LIBS)'; \
|
|
||||||
echo 'Cflags: -I$${includedir} $(KRB5_INCLUDES)' ) > openssl.pc
|
|
||||||
|
|
||||||
Makefile: Makefile.org Configure config
|
|
||||||
@@ -499,7 +503,7 @@ install: all install_docs install_sw
|
|
||||||
install_sw:
|
|
||||||
@$(PERL) $(TOP)/util/mkdir-p.pl $(INSTALL_PREFIX)$(INSTALLTOP)/bin \
|
|
||||||
$(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR) \
|
|
||||||
- $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines \
|
|
||||||
+ $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/ssl/engines \
|
|
||||||
$(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/pkgconfig \
|
|
||||||
$(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl \
|
|
||||||
$(INSTALL_PREFIX)$(OPENSSLDIR)/misc \
|
|
||||||
@@ -608,7 +612,7 @@ install_docs:
|
|
||||||
echo "installing man$$sec/$$fn.$${sec}$(MANSUFFIX)"; \
|
|
||||||
(cd `$(PERL) util/dirname.pl $$i`; \
|
|
||||||
sh -c "$$pod2man \
|
|
||||||
- --section=$$sec --center=OpenSSL \
|
|
||||||
+ --section=$${sec}$(MANSECTION) --center=OpenSSL \
|
|
||||||
--release=$(VERSION) `basename $$i`") \
|
|
||||||
> $(INSTALL_PREFIX)$(MANDIR)/man$$sec/$$fn.$${sec}$(MANSUFFIX); \
|
|
||||||
$(PERL) util/extract-names.pl < $$i | \
|
|
||||||
@@ -625,7 +629,7 @@ install_docs:
|
|
||||||
echo "installing man$$sec/$$fn.$${sec}$(MANSUFFIX)"; \
|
|
||||||
(cd `$(PERL) util/dirname.pl $$i`; \
|
|
||||||
sh -c "$$pod2man \
|
|
||||||
- --section=$$sec --center=OpenSSL \
|
|
||||||
+ --section=$${sec}$(MANSECTION) --center=OpenSSL \
|
|
||||||
--release=$(VERSION) `basename $$i`") \
|
|
||||||
> $(INSTALL_PREFIX)$(MANDIR)/man$$sec/$$fn.$${sec}$(MANSUFFIX); \
|
|
||||||
$(PERL) util/extract-names.pl < $$i | \
|
|
||||||
Index: openssl-1.0.0/Configure
|
|
||||||
===================================================================
|
|
||||||
--- openssl-1.0.0.orig/Configure
|
|
||||||
+++ openssl-1.0.0/Configure
|
|
||||||
@@ -1,4 +1,4 @@
|
|
||||||
-:
|
|
||||||
+#!/usr/local/bin/perl
|
|
||||||
eval 'exec perl -S $0 ${1+"$@"}'
|
|
||||||
if $running_under_some_shell;
|
|
||||||
##
|
|
||||||
@@ -331,6 +331,44 @@ my %table=(
|
|
||||||
"osf1-alpha-cc", "cc:-std1 -tune host -O4 -readonly_strings::(unknown):::SIXTY_FOUR_BIT_LONG RC4_CHUNK:${alpha_asm}:dlfcn:alpha-osf1-shared:::.so",
|
|
||||||
"tru64-alpha-cc", "cc:-std1 -tune host -fast -readonly_strings::-pthread:::SIXTY_FOUR_BIT_LONG RC4_CHUNK:${alpha_asm}:dlfcn:alpha-osf1-shared::-msym:.so",
|
|
||||||
|
|
||||||
+# Debian GNU/* (various architectures)
|
|
||||||
+"debian-alpha","gcc:-DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_RISC1 DES_UNROLL:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
|
||||||
+"debian-alpha-ev4","gcc:-DTERMIO -O3 -Wa,--noexecstack -mcpu=ev4 -g -Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_RISC1 DES_UNROLL:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
|
||||||
+"debian-alpha-ev5","gcc:-DTERMIO -O3 -Wa,--noexecstack -mcpu=ev5 -g -Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_RISC1 DES_UNROLL:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
|
||||||
+"debian-arm","gcc:-DL_ENDIAN -DTERMIO -O2 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1:::::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
|
||||||
+"debian-armeb","gcc:-DB_ENDIAN -DTERMIO -O2 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1:::::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
|
||||||
+"debian-armel","gcc:-DL_ENDIAN -DTERMIO -O2 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1:::::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
|
||||||
+"debian-amd64", "gcc:-m64 -DL_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall -DMD32_REG_T=int::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK RC4_CHAR BF_PTR2 DES_INT DES_UNROLL:${x86_64_asm}:dlfcn:linux-shared:-fPIC:-m64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
|
||||||
+"debian-kfreebsd-amd64","gcc:-m64 -DL_ENDIAN -DTERMIOS -O3 -Wa,--noexecstack -Wall -DMD32_REG_T=int::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK BF_PTR2 DES_INT DES_UNROLL:${x86_64_asm}:dlfcn:linux-shared:-fPIC:-m64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
|
||||||
+"debian-kfreebsd-i386","gcc:-DL_ENDIAN -DTERMIOS -O3 -Wa,--noexecstack -g -m486 -Wall::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
|
||||||
+"debian-hppa","gcc:-DB_ENDIAN -DTERMIO -O2 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG MD2_CHAR RC4_INDEX:::::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
|
||||||
+"debian-hurd-i386","gcc:-DL_ENDIAN -DTERMIOS -O3 -Wa,--noexecstack -g -m486 -Wall::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
|
||||||
+"debian-ia64","gcc:-DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK RC4_CHAR:${ia64_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
|
||||||
+"debian-i386","gcc:-DL_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:::::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
|
||||||
+"debian-i386-i486","gcc:-DL_ENDIAN -DTERMIO -fexpensive-optimizations -frename-registers -fomit-frame-pointer -O2 -ggdb3 -Wall::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
|
||||||
+"debian-i386-i586","gcc:-DL_ENDIAN -DTERMIO -O3 -march=i586 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
|
||||||
+"debian-i386-i686/cmov","gcc:-DL_ENDIAN -DTERMIO -O3 -march=i686 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
|
||||||
+"debian-m68k","gcc:-DB_ENDIAN -DTERMIO -O2 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG MD2_CHAR RC4_INDEX:::::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
|
||||||
+"debian-mips", "gcc:-DB_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG RC2_CHAR RC4_INDEX DES_INT DES_UNROLL DES_RISC2:::::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
|
||||||
+"debian-mipsel", "gcc:-DL_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG RC2_CHAR RC4_INDEX DES_INT DES_UNROLL DES_RISC2:::::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
|
||||||
+"debian-netbsd-i386", "gcc:-DL_ENDIAN -DTERMIOS -O3 -Wa,--noexecstack -g -m486 -Wall::(unknown):::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:::::::::::::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
|
||||||
+"debian-netbsd-m68k", "gcc:-DB_ENDIAN -DTERMIOS -O3 -Wa,--noexecstack -g -Wall::(unknown):::BN_LLONG MD2_CHAR RC4_INDEX DES_UNROLL:::::::::::::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
|
||||||
+"debian-netbsd-sparc", "gcc:-DB_ENDIAN -DTERMIOS -O3 -Wa,--noexecstack -g -mv8 -Wall::(unknown):::BN_LLONG MD2_CHAR RC4_INDEX DES_UNROLL:::::::::::::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
|
||||||
+"debian-openbsd-alpha","gcc:-DTERMIOS -O3 -Wa,--noexecstack -g::(unknown):::SIXTY_FOUR_BIT_LONG DES_INT DES_PTR DES_RISC2:::::::::::::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
|
||||||
+"debian-openbsd-i386", "gcc:-DL_ENDIAN -DTERMIOS -O3 -Wa,--noexecstack -g -m486::(unknown):::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
|
||||||
+"debian-openbsd-mips","gcc:-O2 -Wa,--noexecstack -g -DL_ENDIAN::(unknown)::BN_LLONG MD2_CHAR RC4_INDEX RC4_CHAR DES_UNROLL DES_RISC2 DES_PTR BF_PTR::::::::::::::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
|
||||||
+"debian-powerpc","gcc:-DB_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_UNROLL DES_RISC2 DES_PTR MD2_CHAR RC4_INDEX::linux_ppc32.o:::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
|
||||||
+"debian-ppc64","gcc:-m64 -DB_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_RISC1 DES_UNROLL::linux_ppc64.o:::::::::::::dlfcn:linux-shared:-fPIC:-m64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
|
||||||
+"debian-s390","gcc:-DB_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG:::::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
|
||||||
+"debian-sh3", "gcc:-DL_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG:::::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
|
||||||
+"debian-sh4", "gcc:-DL_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG:::::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
|
||||||
+"debian-sh3eb", "gcc:-DB_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG:::::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
|
||||||
+"debian-sh4eb", "gcc:-DB_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG:::::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
|
||||||
+"debian-m32r","gcc:-DB_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG:::::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
|
||||||
+"debian-sparc","gcc:-DB_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:::::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
|
||||||
+"debian-sparc-v8","gcc:-DB_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -mcpu=v8 -g -Wall -DBN_DIV2W::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR::sparcv8.o:des_enc-sparc.o fcrypt_b.o::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
|
||||||
+"debian-sparc-v9","gcc:-DB_ENDIAN -DTERMIO -O3 -mcpu=v9 -Wa,--noexecstack -Wa,-Av8plus -g -Wall -DULTRASPARC -DBN_DIV2W::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR::sparcv8plus.o:des_enc-sparc.o fcrypt_b.o:::md5-sparcv8plus.o:::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
|
||||||
+
|
|
||||||
####
|
|
||||||
#### Variety of LINUX:-)
|
|
||||||
####
|
|
||||||
@@ -529,7 +567,7 @@ my %table=(
|
|
||||||
# Cygwin
|
|
||||||
"Cygwin-pre1.3", "gcc:-DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O3 -m486 -Wall::(unknown):CYGWIN32::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${no_asm}:win32",
|
|
||||||
"Cygwin", "gcc:-DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O3 -march=i486 -Wall:::CYGWIN32::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_asm}:coff:dlfcn:cygwin-shared:-D_WINDLL:-shared:.dll.a",
|
|
||||||
-"debug-Cygwin", "gcc:-DTERMIOS -DL_ENDIAN -march=i486 -Wall -DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DOPENSSL_NO_ASM -g -Wformat -Wshadow -Wmissing-prototypes -Wmissing-declarations -Werror:::CYGWIN32:::${no_asm}:dlfcn:cygwin-shared:-D_WINDLL:-shared:.dll.a",
|
|
||||||
+-"debug-Cygwin", "gcc:-DTERMIOS -DL_ENDIAN -march=i486 -Wall -DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DOPENSSL_NO_ASM -g -Wformat -Wshadow -Wmissing-prototypes -Wmissing-declarations -Werror:::CYGWIN32:::${no_asm}:dlfcn:cygwin-shared:-D_WINDLL:-shared:.dll.a",
|
|
||||||
|
|
||||||
# NetWare from David Ward (dsward@novell.com)
|
|
||||||
# requires either MetroWerks NLM development tools, or gcc / nlmconv
|
|
||||||
@@ -1465,6 +1503,8 @@ if ($strict_warnings)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
+$shared_ldflag .= " -Wl,--version-script=openssl.ld";
|
|
||||||
+
|
|
||||||
open(IN,'<Makefile.org') || die "unable to read Makefile.org:$!\n";
|
|
||||||
unlink("$Makefile.new") || die "unable to remove old $Makefile.new:$!\n" if -e "$Makefile.new";
|
|
||||||
open(OUT,">$Makefile.new") || die "unable to create $Makefile.new:$!\n";
|
|
||||||
@@ -1555,7 +1595,8 @@ while (<IN>)
|
|
||||||
elsif ($shared_extension ne "" && $shared_extension =~ /^\.s([ol])\.[^\.]*\.[^\.]*$/)
|
|
||||||
{
|
|
||||||
my $sotmp = $1;
|
|
||||||
- s/^SHARED_LIBS_LINK_EXTS=.*/SHARED_LIBS_LINK_EXTS=.s$sotmp.\$(SHLIB_MAJOR) .s$sotmp/;
|
|
||||||
+# s/^SHARED_LIBS_LINK_EXTS=.*/SHARED_LIBS_LINK_EXTS=.s$sotmp.\$(SHLIB_MAJOR) .s$sotmp/;
|
|
||||||
+ s/^SHARED_LIBS_LINK_EXTS=.*/SHARED_LIBS_LINK_EXTS=.s$sotmp/;
|
|
||||||
}
|
|
||||||
elsif ($shared_extension ne "" && $shared_extension =~ /^\.[^\.]*\.[^\.]*\.dylib$/)
|
|
||||||
{
|
|
||||||
@@ -1683,7 +1724,7 @@ while (<IN>)
|
|
||||||
}
|
|
||||||
elsif (/^#define\s+ENGINESDIR/)
|
|
||||||
{
|
|
||||||
- my $foo = "$prefix/$libdir/engines";
|
|
||||||
+ my $foo = "$prefix/lib/ssl/engines";
|
|
||||||
$foo =~ s/\\/\\\\/g;
|
|
||||||
print OUT "#define ENGINESDIR \"$foo\"\n";
|
|
||||||
}
|
|
||||||
Index: openssl-1.0.0/config
|
|
||||||
===================================================================
|
|
||||||
--- openssl-1.0.0.orig/config
|
|
||||||
+++ openssl-1.0.0/config
|
|
||||||
@@ -170,8 +170,8 @@ case "${SYSTEM}:${RELEASE}:${VERSION}:${
|
|
||||||
echo "${MACHINE}-whatever-linux1"; exit 0
|
|
||||||
;;
|
|
||||||
|
|
||||||
- GNU*)
|
|
||||||
- echo "hurd-x86"; exit 0;
|
|
||||||
+ GNU:*|GNU/*:*)
|
|
||||||
+ echo "${MACHINE}-gnuish"; exit 0;
|
|
||||||
;;
|
|
||||||
|
|
||||||
LynxOS:*)
|
|
||||||
Index: openssl-1.0.0/Makefile.org
|
|
||||||
===================================================================
|
|
||||||
--- openssl-1.0.0.orig/Makefile.org
|
|
||||||
+++ openssl-1.0.0/Makefile.org
|
|
||||||
@@ -131,12 +131,13 @@ TESTS = alltests
|
|
||||||
|
|
||||||
MAKEFILE= Makefile
|
|
||||||
|
|
||||||
-MANDIR=$(OPENSSLDIR)/man
|
|
||||||
+MANDIR=/usr/share/man
|
|
||||||
MAN1=1
|
|
||||||
MAN3=3
|
|
||||||
-MANSUFFIX=
|
|
||||||
+MANSUFFIX=ssl
|
|
||||||
+MANSECTION=SSL
|
|
||||||
HTMLSUFFIX=html
|
|
||||||
-HTMLDIR=$(OPENSSLDIR)/html
|
|
||||||
+HTMLDIR=/usr/share/doc/openssl/html
|
|
||||||
SHELL=/bin/sh
|
|
||||||
|
|
||||||
TOP= .
|
|
||||||
@@ -322,7 +323,8 @@ libcrypto.pc: Makefile
|
|
||||||
echo 'Description: OpenSSL cryptography library'; \
|
|
||||||
echo 'Version: '$(VERSION); \
|
|
||||||
echo 'Requires: '; \
|
|
||||||
- echo 'Libs: -L$${libdir} -lcrypto $(EX_LIBS)'; \
|
|
||||||
+ echo 'Libs: -L$${libdir} -lcrypto'; \
|
|
||||||
+ echo 'Libs.private: $(EX_LIBS)'; \
|
|
||||||
echo 'Cflags: -I$${includedir} $(KRB5_INCLUDES)' ) > libcrypto.pc
|
|
||||||
|
|
||||||
libssl.pc: Makefile
|
|
||||||
@@ -335,7 +337,8 @@ libssl.pc: Makefile
|
|
||||||
echo 'Description: Secure Sockets Layer and cryptography libraries'; \
|
|
||||||
echo 'Version: '$(VERSION); \
|
|
||||||
echo 'Requires: '; \
|
|
||||||
- echo 'Libs: -L$${libdir} -lssl -lcrypto $(EX_LIBS)'; \
|
|
||||||
+ echo 'Libs: -L$${libdir} -lssl'; \
|
|
||||||
+ echo 'Libs.private: -lcrypto $(EX_LIBS)'; \
|
|
||||||
echo 'Cflags: -I$${includedir} $(KRB5_INCLUDES)' ) > libssl.pc
|
|
||||||
|
|
||||||
openssl.pc: Makefile
|
|
||||||
@@ -348,7 +351,8 @@ openssl.pc: Makefile
|
|
||||||
echo 'Description: Secure Sockets Layer and cryptography libraries and tools'; \
|
|
||||||
echo 'Version: '$(VERSION); \
|
|
||||||
echo 'Requires: '; \
|
|
||||||
- echo 'Libs: -L$${libdir} -lssl -lcrypto $(EX_LIBS)'; \
|
|
||||||
+ echo 'Libs: -L$${libdir} -lssl -lcrypto'; \
|
|
||||||
+ echo 'Libs.private: $(EX_LIBS)'; \
|
|
||||||
echo 'Cflags: -I$${includedir} $(KRB5_INCLUDES)' ) > openssl.pc
|
|
||||||
|
|
||||||
Makefile: Makefile.org Configure config
|
|
||||||
@@ -497,7 +501,7 @@ install: all install_docs install_sw
|
|
||||||
install_sw:
|
|
||||||
@$(PERL) $(TOP)/util/mkdir-p.pl $(INSTALL_PREFIX)$(INSTALLTOP)/bin \
|
|
||||||
$(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR) \
|
|
||||||
- $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines \
|
|
||||||
+ $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/ssl/engines \
|
|
||||||
$(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/pkgconfig \
|
|
||||||
$(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl \
|
|
||||||
$(INSTALL_PREFIX)$(OPENSSLDIR)/misc \
|
|
||||||
@@ -606,7 +610,7 @@ install_docs:
|
|
||||||
echo "installing man$$sec/$$fn.$${sec}$(MANSUFFIX)"; \
|
|
||||||
(cd `$(PERL) util/dirname.pl $$i`; \
|
|
||||||
sh -c "$$pod2man \
|
|
||||||
- --section=$$sec --center=OpenSSL \
|
|
||||||
+ --section=$${sec}$(MANSECTION) --center=OpenSSL \
|
|
||||||
--release=$(VERSION) `basename $$i`") \
|
|
||||||
> $(INSTALL_PREFIX)$(MANDIR)/man$$sec/$$fn.$${sec}$(MANSUFFIX); \
|
|
||||||
$(PERL) util/extract-names.pl < $$i | \
|
|
||||||
@@ -623,7 +627,7 @@ install_docs:
|
|
||||||
echo "installing man$$sec/$$fn.$${sec}$(MANSUFFIX)"; \
|
|
||||||
(cd `$(PERL) util/dirname.pl $$i`; \
|
|
||||||
sh -c "$$pod2man \
|
|
||||||
- --section=$$sec --center=OpenSSL \
|
|
||||||
+ --section=$${sec}$(MANSECTION) --center=OpenSSL \
|
|
||||||
--release=$(VERSION) `basename $$i`") \
|
|
||||||
> $(INSTALL_PREFIX)$(MANDIR)/man$$sec/$$fn.$${sec}$(MANSUFFIX); \
|
|
||||||
$(PERL) util/extract-names.pl < $$i | \
|
|
||||||
Index: openssl-1.0.0/openssl.ld
|
|
||||||
===================================================================
|
|
||||||
--- /dev/null
|
|
||||||
+++ openssl-1.0.0/openssl.ld
|
|
||||||
@@ -0,0 +1,5 @@
|
|
||||||
+OPENSSL_0.9.8 {
|
|
||||||
+ global:
|
|
||||||
+ *;
|
|
||||||
+};
|
|
||||||
+
|
|
||||||
Index: openssl-1.0.0/engines/openssl.ld
|
|
||||||
===================================================================
|
|
||||||
--- /dev/null
|
|
||||||
+++ openssl-1.0.0/engines/openssl.ld
|
|
||||||
@@ -0,0 +1,5 @@
|
|
||||||
+OPENSSL_0.9.8 {
|
|
||||||
+ global:
|
|
||||||
+ *;
|
|
||||||
+};
|
|
||||||
+
|
|
||||||
Index: openssl-1.0.0/doc/Makefile
|
|
||||||
===================================================================
|
|
||||||
--- /dev/null
|
|
||||||
+++ openssl-1.0.0/doc/Makefile
|
|
||||||
@@ -0,0 +1,40 @@
|
|
||||||
+VERSION =
|
|
||||||
+
|
|
||||||
+#PODS = $(wildcard *.pod)
|
|
||||||
+#MANS = $(addsuffix .man, $(basename $(PODS)))
|
|
||||||
+
|
|
||||||
+MANS = openssl.1 ssl.3 crypto.3
|
|
||||||
+
|
|
||||||
+P2M = pod2man --center='OpenSSL Documentation' --release="OpenSSL $(VERSION)"
|
|
||||||
+
|
|
||||||
+all: manpages
|
|
||||||
+
|
|
||||||
+.PHONY: manpages
|
|
||||||
+
|
|
||||||
+manpages: openssl.1 crypto.3 ssl.3
|
|
||||||
+
|
|
||||||
+openssl.1:
|
|
||||||
+ $(P2M) --section=1 openssl.pod > openssl.1
|
|
||||||
+
|
|
||||||
+crypto.3:
|
|
||||||
+ $(P2M) --section=3 crypto.pod > crypto.3
|
|
||||||
+
|
|
||||||
+ssl.3:
|
|
||||||
+ $(P2M) --section=3 ssl.pod > ssl.3
|
|
||||||
+
|
|
||||||
+.PHONY: install
|
|
||||||
+install:
|
|
||||||
+ mkdir -p $(INSTALL_PREFIX)$(INSTALLTOP)/share/man/man1
|
|
||||||
+ mkdir -p $(INSTALL_PREFIX)$(INSTALLTOP)/share/man/man3
|
|
||||||
+ install -m 644 -p openssl.1 $(INSTALL_PREFIX)$(INSTALLTOP)/share/man/man1
|
|
||||||
+ install -m 644 -p crypto.3 $(INSTALL_PREFIX)$(INSTALLTOP)/share/man/man3
|
|
||||||
+ install -m 644 -p ssl.3 $(INSTALL_PREFIX)$(INSTALLTOP)/share/man/man3
|
|
||||||
+ rm -f $(MANS)
|
|
||||||
+
|
|
||||||
+.PHONY: clean
|
|
||||||
+clean:
|
|
||||||
+ rm -f $(MANS)
|
|
||||||
+
|
|
||||||
+.PHONY: realclean
|
|
||||||
+realclean:
|
|
||||||
+ -$(MAKE) clean
|
|
||||||
Index: openssl-1.0.0/doc/apps/c_rehash.pod
|
|
||||||
===================================================================
|
|
||||||
--- /dev/null
|
|
||||||
+++ openssl-1.0.0/doc/apps/c_rehash.pod
|
|
||||||
@@ -0,0 +1,55 @@
|
|
||||||
+
|
|
||||||
+=pod
|
|
||||||
+
|
|
||||||
+=head1 NAME
|
|
||||||
+
|
|
||||||
+c_rehash - Create symbolic links to files named by the hash values
|
|
||||||
+
|
|
||||||
+=head1 SYNOPSIS
|
|
||||||
+
|
|
||||||
+B<c_rehash>
|
|
||||||
+[directory] ...
|
|
||||||
+
|
|
||||||
+=head1 DESCRIPTION
|
|
||||||
+
|
|
||||||
+c_rehash scans directories and takes a hash value of each .pem and .crt file in the directory. It then creates symbolic links for each of the files named by the hash value. This is useful as many programs require directories to be set up like this in order to find the certificates they require.
|
|
||||||
+
|
|
||||||
+If any directories are named on the command line then these directories are processed in turn. If not then and the environment variable SSL_CERT_DIR is defined then that is consulted. This variable should be a colon (:) separated list of directories, all of which will be processed. If neither of these conditions are true then /usr/lib/ssl/certs is processed.
|
|
||||||
+
|
|
||||||
+For each directory that is to be processed he user must have write permissions on the directory, if they do not then nothing will be printed for that directory.
|
|
||||||
+
|
|
||||||
+Note that this program deletes all the symbolic links that look like ones that it creates before processing a directory. Beware that if you run the program on a directory that contains symbolic links for other purposes that are named in the same format as those created by this program they will be lost.
|
|
||||||
+
|
|
||||||
+The hashes for certificate files are of the form <hash>.<n> where n is an integer. If the hash value already exists then n will be incremented, unless the file is a duplicate. Duplicates are detected using the fingerprint of the certificate. A warning will be printed if a duplicate is detected. The hashes for CRL files are of the form <hash>.r<n> and have the same behavior.
|
|
||||||
+
|
|
||||||
+The program will also warn if there are files with extension .pem which are not certificate or CRL files.
|
|
||||||
+
|
|
||||||
+The program uses the openssl program to compute the hashes and fingerprints. It expects the executable to be named openssl and be on the PATH, or in the /usr/lib/ssl/bin directory. If the OPENSSL environment variable is defined then this is used instead as the executable that provides the hashes and fingerprints. When called as $OPENSSL x509 -hash -fingerprint -noout -in $file it must output the hash of $file on the first line followed by the fingerprint on the second line, optionally prefixed with some text and an equals sign (=).
|
|
||||||
+
|
|
||||||
+=head1 OPTIONS
|
|
||||||
+
|
|
||||||
+None
|
|
||||||
+
|
|
||||||
+=head1 ENVIRONMENT
|
|
||||||
+
|
|
||||||
+=over 4
|
|
||||||
+
|
|
||||||
+=item B<OPENSSL>
|
|
||||||
+
|
|
||||||
+The name (and path) of an executable to use to generate hashes and fingerprints (see above).
|
|
||||||
+
|
|
||||||
+=item B<SSL_CERT_DIR>
|
|
||||||
+
|
|
||||||
+Colon separated list of directories to operate on. Ignored if directories are listed on the command line.
|
|
||||||
+
|
|
||||||
+=head1 SEE ALSO
|
|
||||||
+
|
|
||||||
+L<openssl(1)|openssl(1)>, L<x509(1)|x509(1)>
|
|
||||||
+
|
|
||||||
+=back
|
|
||||||
+
|
|
||||||
+=head1 BUGS
|
|
||||||
+
|
|
||||||
+No known bugs
|
|
||||||
+
|
|
||||||
+=cut
|
|
||||||
Index: openssl-1.0.0/crypto/opensslconf.h
|
|
||||||
===================================================================
|
|
||||||
--- openssl-1.0.0.orig/crypto/opensslconf.h
|
|
||||||
+++ openssl-1.0.0/crypto/opensslconf.h
|
|
||||||
@@ -11,6 +11,9 @@
|
|
||||||
#ifndef OPENSSL_NO_JPAKE
|
|
||||||
# define OPENSSL_NO_JPAKE
|
|
||||||
#endif
|
|
||||||
+#ifndef OPENSSL_NO_IDEA
|
|
||||||
+# define OPENSSL_NO_IDEA
|
|
||||||
+#endif
|
|
||||||
#ifndef OPENSSL_NO_KRB5
|
|
||||||
# define OPENSSL_NO_KRB5
|
|
||||||
#endif
|
|
||||||
@@ -44,6 +47,9 @@
|
|
||||||
# if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
|
|
||||||
# define NO_JPAKE
|
|
||||||
# endif
|
|
||||||
+# if defined(OPENSSL_NO_IDEA) && !defined(NO_IDEA)
|
|
||||||
+# define NO_IDEA
|
|
||||||
+# endif
|
|
||||||
# if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
|
|
||||||
# define NO_KRB5
|
|
||||||
# endif
|
|
||||||
@@ -68,8 +74,8 @@
|
|
||||||
|
|
||||||
#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
|
|
||||||
#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
|
|
||||||
-#define ENGINESDIR "/usr/local/ssl/lib/engines"
|
|
||||||
-#define OPENSSLDIR "/usr/local/ssl"
|
|
||||||
+#define ENGINESDIR "/usr/lib/ssl/engines"
|
|
||||||
+#define OPENSSLDIR "/usr/lib/ssl"
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
@@ -100,14 +106,14 @@
|
|
||||||
* - Intel P6 because partial register stalls are very expensive;
|
|
||||||
* - elder Alpha because it lacks byte load/store instructions;
|
|
||||||
*/
|
|
||||||
-#define RC4_INT unsigned int
|
|
||||||
+#define RC4_INT unsigned char
|
|
||||||
#endif
|
|
||||||
#if !defined(RC4_CHUNK)
|
|
||||||
/*
|
|
||||||
* This enables code handling data aligned at natural CPU word
|
|
||||||
* boundary. See crypto/rc4/rc4_enc.c for further details.
|
|
||||||
*/
|
|
||||||
-#undef RC4_CHUNK
|
|
||||||
+#define RC4_CHUNK unsigned long
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
@@ -115,7 +121,7 @@
|
|
||||||
/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
|
|
||||||
* %20 speed up (longs are 8 bytes, int's are 4). */
|
|
||||||
#ifndef DES_LONG
|
|
||||||
-#define DES_LONG unsigned long
|
|
||||||
+#define DES_LONG unsigned int
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
@@ -126,9 +132,9 @@
|
|
||||||
/* Should we define BN_DIV2W here? */
|
|
||||||
|
|
||||||
/* Only one for the following should be defined */
|
|
||||||
-#undef SIXTY_FOUR_BIT_LONG
|
|
||||||
+#define SIXTY_FOUR_BIT_LONG
|
|
||||||
#undef SIXTY_FOUR_BIT
|
|
||||||
-#define THIRTY_TWO_BIT
|
|
||||||
+#undef THIRTY_TWO_BIT
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
|
|
||||||
@@ -140,7 +146,7 @@
|
|
||||||
|
|
||||||
#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
|
|
||||||
#define CONFIG_HEADER_BF_LOCL_H
|
|
||||||
-#undef BF_PTR
|
|
||||||
+#define BF_PTR2
|
|
||||||
#endif /* HEADER_BF_LOCL_H */
|
|
||||||
|
|
||||||
#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
|
|
||||||
@@ -170,7 +176,7 @@ YOU SHOULD NOT HAVE BOTH DES_RISC1 AND D
|
|
||||||
/* Unroll the inner loop, this sometimes helps, sometimes hinders.
|
|
||||||
* Very mucy CPU dependant */
|
|
||||||
#ifndef DES_UNROLL
|
|
||||||
-#undef DES_UNROLL
|
|
||||||
+#define DES_UNROLL
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* These default values were supplied by
|
|
||||||
Index: openssl-1.0.0/crypto/sha/sha.h
|
|
||||||
===================================================================
|
|
||||||
--- openssl-1.0.0.orig/crypto/sha/sha.h
|
|
||||||
+++ openssl-1.0.0/crypto/sha/sha.h
|
|
||||||
@@ -59,6 +59,7 @@
|
|
||||||
#ifndef HEADER_SHA_H
|
|
||||||
#define HEADER_SHA_H
|
|
||||||
|
|
||||||
+#include <stddef.h>
|
|
||||||
#include <openssl/e_os2.h>
|
|
||||||
#include <stddef.h>
|
|
||||||
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
Links to previously staged 0.9.8* easily otherwise
|
|
||||||
|
|
||||||
Index: openssl-1.0.0/Makefile.shared
|
|
||||||
===================================================================
|
|
||||||
--- openssl-1.0.0.orig/Makefile.shared
|
|
||||||
+++ openssl-1.0.0/Makefile.shared
|
|
||||||
@@ -96,7 +96,7 @@
|
|
||||||
LIBPATH=`for x in $$LIBDEPS; do echo $$x; done | sed -e 's/^ *-L//;t' -e d | uniq`; \
|
|
||||||
LIBPATH=`echo $$LIBPATH | sed -e 's/ /:/g'`; \
|
|
||||||
LD_LIBRARY_PATH=$$LIBPATH:$$LD_LIBRARY_PATH \
|
|
||||||
- $${LDCMD} $${LDFLAGS} -o $${APPNAME:=$(APPNAME)} $(OBJECTS) $${LIBDEPS} )
|
|
||||||
+ $${LDCMD} $${LIBDEPS} $${LDFLAGS} -o $${APPNAME:=$(APPNAME)} $(OBJECTS) )
|
|
||||||
|
|
||||||
LINK_SO= \
|
|
||||||
( $(SET_X); \
|
|
||||||
@@ -106,9 +106,9 @@
|
|
||||||
LIBPATH=`for x in $$LIBDEPS; do echo $$x; done | sed -e 's/^ *-L//;t' -e d | uniq`; \
|
|
||||||
LIBPATH=`echo $$LIBPATH | sed -e 's/ /:/g'`; \
|
|
||||||
LD_LIBRARY_PATH=$$LIBPATH:$$LD_LIBRARY_PATH \
|
|
||||||
- $${SHAREDCMD} $${SHAREDFLAGS} \
|
|
||||||
+ $${SHAREDCMD} $$LIBDEPS $${SHAREDFLAGS} \
|
|
||||||
-o $$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX \
|
|
||||||
- $$ALLSYMSFLAGS $$SHOBJECTS $$NOALLSYMSFLAGS $$LIBDEPS \
|
|
||||||
+ $$ALLSYMSFLAGS $$SHOBJECTS $$NOALLSYMSFLAGS \
|
|
||||||
) && $(SYMLINK_SO)
|
|
||||||
|
|
||||||
SYMLINK_SO= \
|
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
From 83f318d68bbdab1ca898c94576a838cc97df4700 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Ludwig Nussel <ludwig.nussel@suse.de>
|
||||||
|
Date: Wed, 21 Apr 2010 15:52:10 +0200
|
||||||
|
Subject: [PATCH] also create old hash for compatibility
|
||||||
|
|
||||||
|
---
|
||||||
|
tools/c_rehash.in | 8 +++++++-
|
||||||
|
1 files changed, 7 insertions(+), 1 deletions(-)
|
||||||
|
|
||||||
|
Index: openssl-1.0.0c/tools/c_rehash.in
|
||||||
|
===================================================================
|
||||||
|
--- openssl-1.0.0c.orig/tools/c_rehash.in 2010-04-14 16:07:28.000000000 -0700
|
||||||
|
+++ openssl-1.0.0c/tools/c_rehash.in 2011-08-12 23:06:41.976664773 -0700
|
||||||
|
@@ -83,6 +83,7 @@
|
||||||
|
next;
|
||||||
|
}
|
||||||
|
link_hash_cert($fname) if($cert);
|
||||||
|
+ link_hash_cert_old($fname) if($cert);
|
||||||
|
link_hash_crl($fname) if($crl);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@@ -116,8 +117,9 @@
|
||||||
|
|
||||||
|
sub link_hash_cert {
|
||||||
|
my $fname = $_[0];
|
||||||
|
+ my $hashopt = $_[1] || '-subject_hash';
|
||||||
|
$fname =~ s/'/'\\''/g;
|
||||||
|
- my ($hash, $fprint) = `"$openssl" x509 -hash -fingerprint -noout -in "$fname"`;
|
||||||
|
+ my ($hash, $fprint) = `"$openssl" x509 $hashopt -fingerprint -noout -in "$fname"`;
|
||||||
|
chomp $hash;
|
||||||
|
chomp $fprint;
|
||||||
|
$fprint =~ s/^.*=//;
|
||||||
|
@@ -147,6 +149,10 @@
|
||||||
|
$hashlist{$hash} = $fprint;
|
||||||
|
}
|
||||||
|
|
||||||
|
+sub link_hash_cert_old {
|
||||||
|
+ link_hash_cert($_[0], '-subject_hash_old');
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
# Same as above except for a CRL. CRL links are of the form <hash>.r<n>
|
||||||
|
|
||||||
|
sub link_hash_crl {
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
Index: openssl-0.9.8m/apps/CA.pl.in
|
||||||
|
===================================================================
|
||||||
|
--- openssl-0.9.8m.orig/apps/CA.pl.in 2006-04-28 00:28:51.000000000 +0000
|
||||||
|
+++ openssl-0.9.8m/apps/CA.pl.in 2010-02-27 00:36:51.000000000 +0000
|
||||||
|
@@ -65,6 +65,7 @@
|
||||||
|
foreach (@ARGV) {
|
||||||
|
if ( /^(-\?|-h|-help)$/ ) {
|
||||||
|
print STDERR "usage: CA -newcert|-newreq|-newreq-nodes|-newca|-sign|-verify\n";
|
||||||
|
+ print STDERR "usage: CA -signcert certfile keyfile|-newcert|-newreq|-newca|-sign|-verify\n";
|
||||||
|
exit 0;
|
||||||
|
} elsif (/^-newcert$/) {
|
||||||
|
# create a certificate
|
||||||
|
@@ -165,6 +166,7 @@
|
||||||
|
} else {
|
||||||
|
print STDERR "Unknown arg $_\n";
|
||||||
|
print STDERR "usage: CA -newcert|-newreq|-newreq-nodes|-newca|-sign|-verify\n";
|
||||||
|
+ print STDERR "usage: CA -signcert certfile keyfile|-newcert|-newreq|-newca|-sign|-verify\n";
|
||||||
|
exit 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,52 @@
|
|||||||
|
Index: openssl-1.0.0c/Configure
|
||||||
|
===================================================================
|
||||||
|
--- openssl-1.0.0c.orig/Configure 2010-12-12 17:27:02.000000000 +0100
|
||||||
|
+++ openssl-1.0.0c/Configure 2010-12-12 17:34:47.000000000 +0100
|
||||||
|
@@ -331,6 +331,47 @@
|
||||||
|
"osf1-alpha-cc", "cc:-std1 -tune host -O4 -readonly_strings::(unknown):::SIXTY_FOUR_BIT_LONG RC4_CHUNK:${alpha_asm}:dlfcn:alpha-osf1-shared:::.so",
|
||||||
|
"tru64-alpha-cc", "cc:-std1 -tune host -fast -readonly_strings::-pthread:::SIXTY_FOUR_BIT_LONG RC4_CHUNK:${alpha_asm}:dlfcn:alpha-osf1-shared::-msym:.so",
|
||||||
|
|
||||||
|
+# Debian GNU/* (various architectures)
|
||||||
|
+"debian-alpha","gcc:-DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_RISC1 DES_UNROLL:${alpha_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
+"debian-alpha-ev4","gcc:-DTERMIO -O3 -Wa,--noexecstack -mcpu=ev4 -g -Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_RISC1 DES_UNROLL:${alpha_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
+"debian-alpha-ev5","gcc:-DTERMIO -O3 -Wa,--noexecstack -mcpu=ev5 -g -Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_RISC1 DES_UNROLL:${alpha_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
+"debian-armeb","gcc:-DB_ENDIAN -DTERMIO -O2 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL BF_PTR:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
+"debian-armel","gcc:-DL_ENDIAN -DTERMIO -O2 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL BF_PTR:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
+"debian-armhf","gcc:-DL_ENDIAN -DTERMIO -O2 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL BF_PTR:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
+"debian-amd64", "gcc:-m64 -DL_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall -DMD32_REG_T=int::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT DES_UNROLL:${x86_64_asm}:elf:dlfcn:linux-shared:-fPIC:-m64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR):::",
|
||||||
|
+"debian-avr32", "gcc:-DB_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -fomit-frame-pointer -g -Wall::-D_REENTRANT::-ldl:BN_LLONG_BF_PTR:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
+"debian-kfreebsd-amd64","gcc:-m64 -DL_ENDIAN -DTERMIOS -O3 -Wa,--noexecstack -g -Wall -DMD32_REG_T=int::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT DES_UNROLL:${x86_64_asm}:elf:dlfcn:linux-shared:-fPIC:-m64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
+"debian-kfreebsd-i386","gcc:-DL_ENDIAN -DTERMIOS -O3 -Wa,--noexecstack -g -march=i486 -Wall::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
+"debian-hppa","gcc:-DB_ENDIAN -DTERMIO -O2 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG MD2_CHAR RC4_INDEX:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
+"debian-hurd-i386","gcc:-DL_ENDIAN -DTERMIOS -O3 -Wa,--noexecstack -g -mtune=i486 -Wall::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
+"debian-ia64","gcc:-DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_UNROLL DES_INT:${ia64_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
+"debian-i386","gcc:-DL_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
+"debian-i386-i486","gcc:-DL_ENDIAN -DTERMIO -O3 -march=i486 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
+"debian-i386-i586","gcc:-DL_ENDIAN -DTERMIO -O3 -march=i586 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
+"debian-i386-i686/cmov","gcc:-DL_ENDIAN -DTERMIO -O3 -march=i686 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
+"debian-m68k","gcc:-DB_ENDIAN -DTERMIO -O2 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG MD2_CHAR RC4_INDEX:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
+"debian-mips", "gcc:-DB_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG RC2_CHAR RC4_INDEX DES_INT DES_UNROLL DES_RISC2:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
+"debian-mipsel", "gcc:-DL_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG RC2_CHAR RC4_INDEX DES_INT DES_UNROLL DES_RISC2:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
+"debian-netbsd-i386", "gcc:-DL_ENDIAN -DTERMIOS -O3 -Wa,--noexecstack -g -m486 -Wall::(unknown):::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${no_asm}:dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
+"debian-netbsd-m68k", "gcc:-DB_ENDIAN -DTERMIOS -O3 -Wa,--noexecstack -g -Wall::(unknown):::BN_LLONG MD2_CHAR RC4_INDEX DES_UNROLL:${no_asm}:dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
+"debian-netbsd-sparc", "gcc:-DB_ENDIAN -DTERMIOS -O3 -Wa,--noexecstack -g -mv8 -Wall::(unknown):::BN_LLONG MD2_CHAR RC4_INDEX DES_UNROLL:${no_asm}:dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
+"debian-openbsd-alpha","gcc:-DTERMIOS -O3 -Wa,--noexecstack -g::(unknown):::SIXTY_FOUR_BIT_LONG DES_INT DES_PTR DES_RISC2:${no_asm}:dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
+"debian-openbsd-i386", "gcc:-DL_ENDIAN -DTERMIOS -O3 -Wa,--noexecstack -g -m486::(unknown):::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_asm}:a.out:dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
+"debian-openbsd-mips","gcc:-O2 -Wa,--noexecstack -g -DL_ENDIAN::(unknown)::BN_LLONG MD2_CHAR RC4_INDEX RC4_CHAR DES_UNROLL DES_RISC2 DES_PTR BF_PTR:${no_asm}:dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
+"debian-powerpc","gcc:-DB_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_RISC1 DES_UNROLL:${ppc32_asm}:linux32:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
+"debian-powerpcspe","gcc:-DB_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_RISC1 DES_UNROLL:${ppc32_asm}:linux32:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
+"debian-ppc64","gcc:-m64 -DB_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_RISC1 DES_UNROLL:${ppc64_asm}:linux64:dlfcn:linux-shared:-fPIC:-m64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
+"debian-s390","gcc:-DB_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
+"debian-sh3", "gcc:-DL_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
+"debian-sh4", "gcc:-DL_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
+"debian-sh3eb", "gcc:-DB_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
+"debian-sh4eb", "gcc:-DB_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
+"debian-m32r","gcc:-DB_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
+"debian-sparc","gcc:-DB_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
+"debian-sparc-v8","gcc:-DB_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -mcpu=v8 -g -Wall -DBN_DIV2W::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:${sparcv8_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
+"debian-sparc-v9","gcc:-DB_ENDIAN -DTERMIO -O3 -mcpu=v9 -Wa,--noexecstack -Wa,-Av8plus -g -Wall -DULTRASPARC -DBN_DIV2W::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:${sparcv9_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
+"debian-sparc64","gcc:-m64 -DB_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall -DULTRASPARC -DBN_DIV2W::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_INT DES_PTR DES_RISC1 DES_UNROLL BF_PTR:${sparcv9_asm}:dlfcn:linux-shared:-fPIC:-m64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
+
|
||||||
|
####
|
||||||
|
#### Variety of LINUX:-)
|
||||||
|
####
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
Index: openssl-1.0.0c/Makefile.org
|
||||||
|
===================================================================
|
||||||
|
--- openssl-1.0.0c.orig/Makefile.org 2010-12-12 16:10:12.000000000 +0100
|
||||||
|
+++ openssl-1.0.0c/Makefile.org 2010-12-12 16:11:27.000000000 +0100
|
||||||
|
@@ -109,7 +109,7 @@
|
||||||
|
ZLIB_INCLUDE=
|
||||||
|
LIBZLIB=
|
||||||
|
|
||||||
|
-DIRS= crypto ssl engines apps test tools
|
||||||
|
+DIRS= crypto ssl engines apps tools
|
||||||
|
ENGDIRS= ccgost
|
||||||
|
SHLIBDIRS= crypto ssl
|
||||||
|
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
Index: openssl-1.0.0c/Makefile.org
|
||||||
|
===================================================================
|
||||||
|
--- openssl-1.0.0c.orig/Makefile.org 2010-12-12 16:11:27.000000000 +0100
|
||||||
|
+++ openssl-1.0.0c/Makefile.org 2010-12-12 16:11:37.000000000 +0100
|
||||||
|
@@ -131,7 +131,7 @@
|
||||||
|
|
||||||
|
MAKEFILE= Makefile
|
||||||
|
|
||||||
|
-MANDIR=$(OPENSSLDIR)/man
|
||||||
|
+MANDIR=/usr/share/man
|
||||||
|
MAN1=1
|
||||||
|
MAN3=3
|
||||||
|
MANSUFFIX=
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
Index: openssl-1.0.0c/Makefile.org
|
||||||
|
===================================================================
|
||||||
|
--- openssl-1.0.0c.orig/Makefile.org 2010-12-12 16:11:37.000000000 +0100
|
||||||
|
+++ openssl-1.0.0c/Makefile.org 2010-12-12 16:13:28.000000000 +0100
|
||||||
|
@@ -134,7 +134,8 @@
|
||||||
|
MANDIR=/usr/share/man
|
||||||
|
MAN1=1
|
||||||
|
MAN3=3
|
||||||
|
-MANSUFFIX=
|
||||||
|
+MANSUFFIX=ssl
|
||||||
|
+MANSECTION=SSL
|
||||||
|
HTMLSUFFIX=html
|
||||||
|
HTMLDIR=$(OPENSSLDIR)/html
|
||||||
|
SHELL=/bin/sh
|
||||||
|
@@ -606,7 +607,7 @@
|
||||||
|
echo "installing man$$sec/$$fn.$${sec}$(MANSUFFIX)"; \
|
||||||
|
(cd `$(PERL) util/dirname.pl $$i`; \
|
||||||
|
sh -c "$$pod2man \
|
||||||
|
- --section=$$sec --center=OpenSSL \
|
||||||
|
+ --section=$${sec}$(MANSECTION) --center=OpenSSL \
|
||||||
|
--release=$(VERSION) `basename $$i`") \
|
||||||
|
> $(INSTALL_PREFIX)$(MANDIR)/man$$sec/$$fn.$${sec}$(MANSUFFIX); \
|
||||||
|
$(PERL) util/extract-names.pl < $$i | \
|
||||||
|
@@ -623,7 +624,7 @@
|
||||||
|
echo "installing man$$sec/$$fn.$${sec}$(MANSUFFIX)"; \
|
||||||
|
(cd `$(PERL) util/dirname.pl $$i`; \
|
||||||
|
sh -c "$$pod2man \
|
||||||
|
- --section=$$sec --center=OpenSSL \
|
||||||
|
+ --section=$${sec}$(MANSECTION) --center=OpenSSL \
|
||||||
|
--release=$(VERSION) `basename $$i`") \
|
||||||
|
> $(INSTALL_PREFIX)$(MANDIR)/man$$sec/$$fn.$${sec}$(MANSUFFIX); \
|
||||||
|
$(PERL) util/extract-names.pl < $$i | \
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
Index: openssl-1.0.0c/Makefile.shared
|
||||||
|
===================================================================
|
||||||
|
--- openssl-1.0.0c.orig/Makefile.shared 2010-08-21 13:36:49.000000000 +0200
|
||||||
|
+++ openssl-1.0.0c/Makefile.shared 2010-12-12 16:13:36.000000000 +0100
|
||||||
|
@@ -153,7 +153,7 @@
|
||||||
|
NOALLSYMSFLAGS='-Wl,--no-whole-archive'; \
|
||||||
|
SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared -Wl,-Bsymbolic -Wl,-soname=$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX"
|
||||||
|
|
||||||
|
-DO_GNU_APP=LDFLAGS="$(CFLAGS) -Wl,-rpath,$(LIBRPATH)"
|
||||||
|
+DO_GNU_APP=LDFLAGS="$(CFLAGS)"
|
||||||
|
|
||||||
|
#This is rather special. It's a special target with which one can link
|
||||||
|
#applications without bothering with any features that have anything to
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
Index: openssl-1.0.0c/Makefile.shared
|
||||||
|
===================================================================
|
||||||
|
--- openssl-1.0.0c.orig/Makefile.shared 2010-12-12 16:13:36.000000000 +0100
|
||||||
|
+++ openssl-1.0.0c/Makefile.shared 2010-12-12 16:13:44.000000000 +0100
|
||||||
|
@@ -151,7 +151,7 @@
|
||||||
|
SHLIB_SUFFIX=; \
|
||||||
|
ALLSYMSFLAGS='-Wl,--whole-archive'; \
|
||||||
|
NOALLSYMSFLAGS='-Wl,--no-whole-archive'; \
|
||||||
|
- SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared -Wl,-Bsymbolic -Wl,-soname=$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX"
|
||||||
|
+ SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared -Wl,-soname=$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX"
|
||||||
|
|
||||||
|
DO_GNU_APP=LDFLAGS="$(CFLAGS)"
|
||||||
|
|
||||||
@@ -0,0 +1,240 @@
|
|||||||
|
Index: openssl-1.0.0c/crypto/Makefile
|
||||||
|
===================================================================
|
||||||
|
--- openssl-1.0.0c.orig/crypto/Makefile 2010-07-27 00:09:59.000000000 +0200
|
||||||
|
+++ openssl-1.0.0c/crypto/Makefile 2010-12-12 18:05:36.000000000 +0100
|
||||||
|
@@ -58,7 +58,7 @@
|
||||||
|
echo " #define DATE \"`LC_ALL=C LC_TIME=C date`\""; \
|
||||||
|
echo '#endif' ) >buildinf.h
|
||||||
|
|
||||||
|
-x86cpuid.s: x86cpuid.pl perlasm/x86asm.pl
|
||||||
|
+x86cpuid.S: x86cpuid.pl perlasm/x86asm.pl
|
||||||
|
$(PERL) x86cpuid.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@
|
||||||
|
|
||||||
|
applink.o: $(TOP)/ms/applink.c
|
||||||
|
@@ -70,7 +70,7 @@
|
||||||
|
uplink-cof.s: $(TOP)/ms/uplink.pl
|
||||||
|
$(PERL) $(TOP)/ms/uplink.pl coff > $@
|
||||||
|
|
||||||
|
-x86_64cpuid.s: x86_64cpuid.pl
|
||||||
|
+x86_64cpuid.S: x86_64cpuid.pl
|
||||||
|
$(PERL) x86_64cpuid.pl $(PERLASM_SCHEME) > $@
|
||||||
|
ia64cpuid.s: ia64cpuid.S
|
||||||
|
$(CC) $(CFLAGS) -E ia64cpuid.S > $@
|
||||||
|
Index: openssl-1.0.0c/crypto/x86_64cpuid.pl
|
||||||
|
===================================================================
|
||||||
|
--- openssl-1.0.0c.orig/crypto/x86_64cpuid.pl 2010-04-14 21:25:09.000000000 +0200
|
||||||
|
+++ openssl-1.0.0c/crypto/x86_64cpuid.pl 2010-12-12 18:05:36.000000000 +0100
|
||||||
|
@@ -14,7 +14,11 @@
|
||||||
|
print<<___;
|
||||||
|
.extern OPENSSL_cpuid_setup
|
||||||
|
.section .init
|
||||||
|
+#ifdef OPENSSL_PIC
|
||||||
|
+ call OPENSSL_cpuid_setup\@PLT
|
||||||
|
+#else
|
||||||
|
call OPENSSL_cpuid_setup
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
.text
|
||||||
|
|
||||||
|
Index: openssl-1.0.0c/crypto/des/asm/desboth.pl
|
||||||
|
===================================================================
|
||||||
|
--- openssl-1.0.0c.orig/crypto/des/asm/desboth.pl 2001-10-24 23:20:56.000000000 +0200
|
||||||
|
+++ openssl-1.0.0c/crypto/des/asm/desboth.pl 2010-12-12 18:05:36.000000000 +0100
|
||||||
|
@@ -16,6 +16,11 @@
|
||||||
|
|
||||||
|
&push("edi");
|
||||||
|
|
||||||
|
+ &call (&label("pic_point0"));
|
||||||
|
+ &set_label("pic_point0");
|
||||||
|
+ &blindpop("ebp");
|
||||||
|
+ &add ("ebp", "\$_GLOBAL_OFFSET_TABLE_+[.-" . &label("pic_point0") . "]");
|
||||||
|
+
|
||||||
|
&comment("");
|
||||||
|
&comment("Load the data words");
|
||||||
|
&mov($L,&DWP(0,"ebx","",0));
|
||||||
|
@@ -47,15 +52,21 @@
|
||||||
|
&mov(&swtmp(2), (DWC(($enc)?"1":"0")));
|
||||||
|
&mov(&swtmp(1), "eax");
|
||||||
|
&mov(&swtmp(0), "ebx");
|
||||||
|
- &call("DES_encrypt2");
|
||||||
|
+ &exch("ebx", "ebp");
|
||||||
|
+ &call("DES_encrypt2\@PLT");
|
||||||
|
+ &exch("ebx", "ebp");
|
||||||
|
&mov(&swtmp(2), (DWC(($enc)?"0":"1")));
|
||||||
|
&mov(&swtmp(1), "edi");
|
||||||
|
&mov(&swtmp(0), "ebx");
|
||||||
|
- &call("DES_encrypt2");
|
||||||
|
+ &exch("ebx", "ebp");
|
||||||
|
+ &call("DES_encrypt2\@PLT");
|
||||||
|
+ &exch("ebx", "ebp");
|
||||||
|
&mov(&swtmp(2), (DWC(($enc)?"1":"0")));
|
||||||
|
&mov(&swtmp(1), "esi");
|
||||||
|
&mov(&swtmp(0), "ebx");
|
||||||
|
- &call("DES_encrypt2");
|
||||||
|
+ &exch("ebx", "ebp");
|
||||||
|
+ &call("DES_encrypt2\@PLT");
|
||||||
|
+ &exch("ebx", "ebp");
|
||||||
|
|
||||||
|
&stack_pop(3);
|
||||||
|
&mov($L,&DWP(0,"ebx","",0));
|
||||||
|
Index: openssl-1.0.0c/crypto/rc4/Makefile
|
||||||
|
===================================================================
|
||||||
|
--- openssl-1.0.0c.orig/crypto/rc4/Makefile 2009-02-11 11:01:36.000000000 +0100
|
||||||
|
+++ openssl-1.0.0c/crypto/rc4/Makefile 2010-12-12 18:05:36.000000000 +0100
|
||||||
|
@@ -44,7 +44,7 @@
|
||||||
|
rc4-586.s: asm/rc4-586.pl ../perlasm/x86asm.pl
|
||||||
|
$(PERL) asm/rc4-586.pl $(PERLASM_SCHEME) $(CFLAGS) > $@
|
||||||
|
|
||||||
|
-rc4-x86_64.s: asm/rc4-x86_64.pl
|
||||||
|
+rc4-x86_64.S: asm/rc4-x86_64.pl
|
||||||
|
$(PERL) asm/rc4-x86_64.pl $(PERLASM_SCHEME) > $@
|
||||||
|
|
||||||
|
rc4-ia64.S: asm/rc4-ia64.pl
|
||||||
|
Index: openssl-1.0.0c/crypto/rc4/asm/rc4-x86_64.pl
|
||||||
|
===================================================================
|
||||||
|
--- openssl-1.0.0c.orig/crypto/rc4/asm/rc4-x86_64.pl 2009-04-27 21:31:04.000000000 +0200
|
||||||
|
+++ openssl-1.0.0c/crypto/rc4/asm/rc4-x86_64.pl 2010-12-12 18:05:36.000000000 +0100
|
||||||
|
@@ -279,7 +279,11 @@
|
||||||
|
xor %r10,%r10
|
||||||
|
xor %r11,%r11
|
||||||
|
|
||||||
|
+#ifdef OPENSSL_PIC
|
||||||
|
+ mov OPENSSL_ia32cap_P\@GOTPCREL(%rip),$idx#d
|
||||||
|
+#else
|
||||||
|
mov OPENSSL_ia32cap_P(%rip),$idx#d
|
||||||
|
+#endif
|
||||||
|
bt \$20,$idx#d
|
||||||
|
jnc .Lw1stloop
|
||||||
|
bt \$30,$idx#d
|
||||||
|
@@ -346,7 +350,11 @@
|
||||||
|
.align 16
|
||||||
|
RC4_options:
|
||||||
|
lea .Lopts(%rip),%rax
|
||||||
|
+#ifdef OPENSSL_PIC
|
||||||
|
+ mov OPENSSL_ia32cap_P\@GOTPCREL(%rip),%edx
|
||||||
|
+#else
|
||||||
|
mov OPENSSL_ia32cap_P(%rip),%edx
|
||||||
|
+#endif
|
||||||
|
bt \$20,%edx
|
||||||
|
jnc .Ldone
|
||||||
|
add \$12,%rax
|
||||||
|
Index: openssl-1.0.0c/crypto/perlasm/cbc.pl
|
||||||
|
===================================================================
|
||||||
|
--- openssl-1.0.0c.orig/crypto/perlasm/cbc.pl 2005-05-09 23:48:00.000000000 +0200
|
||||||
|
+++ openssl-1.0.0c/crypto/perlasm/cbc.pl 2010-12-12 18:05:36.000000000 +0100
|
||||||
|
@@ -122,7 +122,11 @@
|
||||||
|
&mov(&DWP($data_off,"esp","",0), "eax"); # put in array for call
|
||||||
|
&mov(&DWP($data_off+4,"esp","",0), "ebx"); #
|
||||||
|
|
||||||
|
- &call($enc_func);
|
||||||
|
+ &call (&label("pic_point0"));
|
||||||
|
+ &set_label("pic_point0");
|
||||||
|
+ &blindpop("ebx");
|
||||||
|
+ &add ("ebx", "\$_GLOBAL_OFFSET_TABLE_+[.-" . &label("pic_point0") . "]");
|
||||||
|
+ &call("$enc_func\@PLT");
|
||||||
|
|
||||||
|
&mov("eax", &DWP($data_off,"esp","",0));
|
||||||
|
&mov("ebx", &DWP($data_off+4,"esp","",0));
|
||||||
|
@@ -187,7 +191,11 @@
|
||||||
|
&mov(&DWP($data_off,"esp","",0), "eax"); # put in array for call
|
||||||
|
&mov(&DWP($data_off+4,"esp","",0), "ebx"); #
|
||||||
|
|
||||||
|
- &call($enc_func);
|
||||||
|
+ &call (&label("pic_point1"));
|
||||||
|
+ &set_label("pic_point1");
|
||||||
|
+ &blindpop("ebx");
|
||||||
|
+ &add ("ebx", "\$_GLOBAL_OFFSET_TABLE_+[.-" . &label("pic_point1") . "]");
|
||||||
|
+ &call("$enc_func\@PLT");
|
||||||
|
|
||||||
|
&mov("eax", &DWP($data_off,"esp","",0));
|
||||||
|
&mov("ebx", &DWP($data_off+4,"esp","",0));
|
||||||
|
@@ -220,7 +228,11 @@
|
||||||
|
&mov(&DWP($data_off,"esp","",0), "eax"); # put back
|
||||||
|
&mov(&DWP($data_off+4,"esp","",0), "ebx"); #
|
||||||
|
|
||||||
|
- &call($dec_func);
|
||||||
|
+ &call (&label("pic_point2"));
|
||||||
|
+ &set_label("pic_point2");
|
||||||
|
+ &blindpop("ebx");
|
||||||
|
+ &add ("ebx", "\$_GLOBAL_OFFSET_TABLE_+[.-" . &label("pic_point2") . "]");
|
||||||
|
+ &call("$dec_func\@PLT");
|
||||||
|
|
||||||
|
&mov("eax", &DWP($data_off,"esp","",0)); # get return
|
||||||
|
&mov("ebx", &DWP($data_off+4,"esp","",0)); #
|
||||||
|
@@ -263,7 +275,11 @@
|
||||||
|
&mov(&DWP($data_off,"esp","",0), "eax"); # put back
|
||||||
|
&mov(&DWP($data_off+4,"esp","",0), "ebx"); #
|
||||||
|
|
||||||
|
- &call($dec_func);
|
||||||
|
+ &call (&label("pic_point3"));
|
||||||
|
+ &set_label("pic_point3");
|
||||||
|
+ &blindpop("ebx");
|
||||||
|
+ &add ("ebx", "\$_GLOBAL_OFFSET_TABLE_+[.-" . &label("pic_point3") . "]");
|
||||||
|
+ &call("$dec_func\@PLT");
|
||||||
|
|
||||||
|
&mov("eax", &DWP($data_off,"esp","",0)); # get return
|
||||||
|
&mov("ebx", &DWP($data_off+4,"esp","",0)); #
|
||||||
|
Index: openssl-1.0.0c/crypto/perlasm/x86_64-xlate.pl
|
||||||
|
===================================================================
|
||||||
|
--- openssl-1.0.0c.orig/crypto/perlasm/x86_64-xlate.pl 2010-12-12 18:05:36.000000000 +0100
|
||||||
|
+++ openssl-1.0.0c/crypto/perlasm/x86_64-xlate.pl 2010-12-12 18:05:36.000000000 +0100
|
||||||
|
@@ -638,7 +638,7 @@
|
||||||
|
|
||||||
|
chomp($line);
|
||||||
|
|
||||||
|
- $line =~ s|[#!].*$||; # get rid of asm-style comments...
|
||||||
|
+# $line =~ s|[#!].*$||; # get rid of asm-style comments...
|
||||||
|
$line =~ s|/\*.*\*/||; # ... and C-style comments...
|
||||||
|
$line =~ s|^\s+||; # ... and skip white spaces in beginning
|
||||||
|
|
||||||
|
Index: openssl-1.0.0c/crypto/perlasm/x86gas.pl
|
||||||
|
===================================================================
|
||||||
|
--- openssl-1.0.0c.orig/crypto/perlasm/x86gas.pl 2008-12-17 20:56:47.000000000 +0100
|
||||||
|
+++ openssl-1.0.0c/crypto/perlasm/x86gas.pl 2010-12-12 18:05:36.000000000 +0100
|
||||||
|
@@ -209,7 +209,17 @@
|
||||||
|
if ($::elf)
|
||||||
|
{ $initseg.=<<___;
|
||||||
|
.section .init
|
||||||
|
+#ifdef OPENSSL_PIC
|
||||||
|
+ pushl %ebx
|
||||||
|
+ call .pic_point0
|
||||||
|
+.pic_point0:
|
||||||
|
+ popl %ebx
|
||||||
|
+ addl \$_GLOBAL_OFFSET_TABLE_+[.-.pic_point0],%ebx
|
||||||
|
+ call $f\@PLT
|
||||||
|
+ popl %ebx
|
||||||
|
+#else
|
||||||
|
call $f
|
||||||
|
+#endif
|
||||||
|
jmp .Linitalign
|
||||||
|
.align $align
|
||||||
|
.Linitalign:
|
||||||
|
Index: openssl-1.0.0c/crypto/aes/asm/aes-x86_64.pl
|
||||||
|
===================================================================
|
||||||
|
--- openssl-1.0.0c.orig/crypto/aes/asm/aes-x86_64.pl 2008-12-27 14:32:21.000000000 +0100
|
||||||
|
+++ openssl-1.0.0c/crypto/aes/asm/aes-x86_64.pl 2010-12-12 18:05:36.000000000 +0100
|
||||||
|
@@ -1669,7 +1669,11 @@
|
||||||
|
lea .LAES_Td(%rip),$sbox
|
||||||
|
.Lcbc_picked_te:
|
||||||
|
|
||||||
|
+#ifdef OPENSSL_PIC
|
||||||
|
+ mov OPENSSL_ia32cap_P\@GOTPCREL(%rip),%r10d
|
||||||
|
+#else
|
||||||
|
mov OPENSSL_ia32cap_P(%rip),%r10d
|
||||||
|
+#endif
|
||||||
|
cmp \$$speed_limit,%rdx
|
||||||
|
jb .Lcbc_slow_prologue
|
||||||
|
test \$15,%rdx
|
||||||
|
Index: openssl-1.0.0c/crypto/aes/Makefile
|
||||||
|
===================================================================
|
||||||
|
--- openssl-1.0.0c.orig/crypto/aes/Makefile 2010-12-12 18:15:06.000000000 +0100
|
||||||
|
+++ openssl-1.0.0c/crypto/aes/Makefile 2010-12-12 18:15:30.000000000 +0100
|
||||||
|
@@ -51,7 +51,7 @@
|
||||||
|
aes-586.s: asm/aes-586.pl ../perlasm/x86asm.pl
|
||||||
|
$(PERL) asm/aes-586.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@
|
||||||
|
|
||||||
|
-aes-x86_64.s: asm/aes-x86_64.pl
|
||||||
|
+aes-x86_64.S: asm/aes-x86_64.pl
|
||||||
|
$(PERL) asm/aes-x86_64.pl $(PERLASM_SCHEME) > $@
|
||||||
|
|
||||||
|
aes-sparcv9.s: asm/aes-sparcv9.pl
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
Index: openssl-1.0.0c/Makefile.org
|
||||||
|
===================================================================
|
||||||
|
--- openssl-1.0.0c.orig/Makefile.org 2010-12-12 16:13:28.000000000 +0100
|
||||||
|
+++ openssl-1.0.0c/Makefile.org 2010-12-12 17:01:49.000000000 +0100
|
||||||
|
@@ -323,7 +323,8 @@
|
||||||
|
echo 'Description: OpenSSL cryptography library'; \
|
||||||
|
echo 'Version: '$(VERSION); \
|
||||||
|
echo 'Requires: '; \
|
||||||
|
- echo 'Libs: -L$${libdir} -lcrypto $(EX_LIBS)'; \
|
||||||
|
+ echo 'Libs: -L$${libdir} -lcrypto'; \
|
||||||
|
+ echo 'Libs.private: $(EX_LIBS)'; \
|
||||||
|
echo 'Cflags: -I$${includedir} $(KRB5_INCLUDES)' ) > libcrypto.pc
|
||||||
|
|
||||||
|
libssl.pc: Makefile
|
||||||
|
@@ -336,7 +337,8 @@
|
||||||
|
echo 'Description: Secure Sockets Layer and cryptography libraries'; \
|
||||||
|
echo 'Version: '$(VERSION); \
|
||||||
|
echo 'Requires: '; \
|
||||||
|
- echo 'Libs: -L$${libdir} -lssl -lcrypto $(EX_LIBS)'; \
|
||||||
|
+ echo 'Libs: -L$${libdir} -lssl'; \
|
||||||
|
+ echo 'Libs.private: -lcrypto $(EX_LIBS)'; \
|
||||||
|
echo 'Cflags: -I$${includedir} $(KRB5_INCLUDES)' ) > libssl.pc
|
||||||
|
|
||||||
|
openssl.pc: Makefile
|
||||||
|
@@ -349,7 +351,8 @@
|
||||||
|
echo 'Description: Secure Sockets Layer and cryptography libraries and tools'; \
|
||||||
|
echo 'Version: '$(VERSION); \
|
||||||
|
echo 'Requires: '; \
|
||||||
|
- echo 'Libs: -L$${libdir} -lssl -lcrypto $(EX_LIBS)'; \
|
||||||
|
+ echo 'Libs: -L$${libdir} -lssl -lcrypto'; \
|
||||||
|
+ echo 'Libs.private: $(EX_LIBS)'; \
|
||||||
|
echo 'Cflags: -I$${includedir} $(KRB5_INCLUDES)' ) > openssl.pc
|
||||||
|
|
||||||
|
Makefile: Makefile.org Configure config
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,20 @@
|
|||||||
|
Upstream-Status: Submitted
|
||||||
|
|
||||||
|
fix the parallel build regarding shared libraries.
|
||||||
|
|
||||||
|
Signed-off-by: Qing He <qing.he@intel.com>
|
||||||
|
|
||||||
|
Index: openssl-1.0.0d/Makefile.org
|
||||||
|
===================================================================
|
||||||
|
--- openssl-1.0.0d.orig/Makefile.org 2010-01-27 08:06:58.000000000 -0800
|
||||||
|
+++ openssl-1.0.0d/Makefile.org 2011-08-06 17:51:04.448556931 -0700
|
||||||
|
@@ -258,6 +258,9 @@
|
||||||
|
build_testapps:
|
||||||
|
@dir=crypto; target=testapps; $(BUILD_ONE_CMD)
|
||||||
|
|
||||||
|
+libcrypto.a: build_crypto
|
||||||
|
+ libssl.a: build_ssl
|
||||||
|
+
|
||||||
|
libcrypto$(SHLIB_EXT): libcrypto.a
|
||||||
|
@if [ "$(SHLIB_TARGET)" != "" ]; then \
|
||||||
|
$(MAKE) SHLIBDIRS=crypto build-shared; \
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
require openssl.inc
|
|
||||||
|
|
||||||
inherit pkgconfig native
|
|
||||||
|
|
||||||
SRC_URI[src.md5sum] = "ff8fb85610aef328315a9decbb2712e4"
|
|
||||||
SRC_URI[src.sha256sum] = "f731b36de3edaa361179ae6f449668b248a360e34e31e92902d976e9b9d604eb"
|
|
||||||
PR = "${INC_PR}.0"
|
|
||||||
|
|
||||||
DEFAULT_PREFERENCE = "-1"
|
|
||||||
|
|
||||||
export DIRS = "crypto ssl apps engines"
|
|
||||||
|
|
||||||
# This flag can contain target options (e.g -mfpu=neon for armv7-a systems)
|
|
||||||
export FULL_OPTIMIZATION = " "
|
|
||||||
export BUILD_OPTIMIZATION = " "
|
|
||||||
|
|
||||||
SRC_URI += "file://configure-targets.patch \
|
|
||||||
file://shared-libs.patch \
|
|
||||||
file://debian.patch \
|
|
||||||
file://libdeps-first.patch \
|
|
||||||
"
|
|
||||||
|
|
||||||
PARALLEL_MAKE = ""
|
|
||||||
|
|
||||||
CFLAG += " -Wa,--noexecstack "
|
|
||||||
|
|
||||||
NATIVE_INSTALL_WORKS = "1"
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
inherit pkgconfig
|
|
||||||
|
|
||||||
require openssl.inc
|
|
||||||
|
|
||||||
# For target side versions of openssl enable support for OCF Linux driver
|
|
||||||
# if they are available.
|
|
||||||
DEPENDS += "ocf-linux"
|
|
||||||
CFLAG += "-DHAVE_CRYPTODEV -DUSE_CRYPTODEV_DIGESTS"
|
|
||||||
|
|
||||||
SRC_URI[src.md5sum] = "ff8fb85610aef328315a9decbb2712e4"
|
|
||||||
SRC_URI[src.sha256sum] = "f731b36de3edaa361179ae6f449668b248a360e34e31e92902d976e9b9d604eb"
|
|
||||||
|
|
||||||
PR = "${INC_PR}.2"
|
|
||||||
|
|
||||||
DEFAULT_PREFERENCE = "-1"
|
|
||||||
|
|
||||||
export DIRS = "crypto ssl apps engines"
|
|
||||||
export OE_LDFLAGS="${LDFLAGS}"
|
|
||||||
|
|
||||||
SRC_URI += "file://configure-targets.patch \
|
|
||||||
file://shared-libs.patch \
|
|
||||||
file://debian.patch \
|
|
||||||
file://oe-ldflags.patch \
|
|
||||||
file://libdeps-first.patch \
|
|
||||||
file://engines-install-in-libdir-ssl.patch \
|
|
||||||
"
|
|
||||||
|
|
||||||
PARALLEL_MAKE = ""
|
|
||||||
|
|
||||||
PACKAGES += " \
|
|
||||||
${PN}-engines \
|
|
||||||
${PN}-engines-dbg \
|
|
||||||
"
|
|
||||||
|
|
||||||
FILES_${PN}-engines = "${libdir}/ssl/engines/*.so"
|
|
||||||
FILES_${PN}-engines-dbg = "${libdir}/ssl/engines/.debug"
|
|
||||||
@@ -0,0 +1,47 @@
|
|||||||
|
require recipes-connectivity/openssl/openssl.inc
|
||||||
|
|
||||||
|
# For target side versions of openssl enable support for OCF Linux driver
|
||||||
|
# if they are available.
|
||||||
|
DEPENDS += "ocf-linux"
|
||||||
|
|
||||||
|
CFLAG += "-DHAVE_CRYPTODEV -DUSE_CRYPTODEV_DIGESTS"
|
||||||
|
|
||||||
|
PR = "${INC_PR}.0"
|
||||||
|
#- * Copyright (c) 1998-2008 The OpenSSL Project. All rights reserved.
|
||||||
|
#+ * Copyright (c) 1998-2011 The OpenSSL Project. All rights reserved.
|
||||||
|
|
||||||
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=f9a8f968107345e0b75aa8c2ecaa7ec8"
|
||||||
|
|
||||||
|
SRC_URI[src.md5sum] = "40b6ea380cc8a5bf9734c2f8bf7e701e"
|
||||||
|
SRC_URI[src.sha256sum] = "92511d1f0caaa298dba250426f8e7d5d00b271847886d1adc62422778d6320db"
|
||||||
|
|
||||||
|
DEFAULT_PREFERENCE = "-1"
|
||||||
|
|
||||||
|
export DIRS = "crypto ssl apps engines"
|
||||||
|
export OE_LDFLAGS="${LDFLAGS}"
|
||||||
|
|
||||||
|
SRC_URI += "file://configure-targets.patch \
|
||||||
|
file://shared-libs.patch \
|
||||||
|
file://oe-ldflags.patch \
|
||||||
|
file://engines-install-in-libdir-ssl.patch \
|
||||||
|
file://debian/version-script.patch \
|
||||||
|
file://debian/pic.patch \
|
||||||
|
file://debian/c_rehash-compat.patch \
|
||||||
|
file://debian/ca.patch \
|
||||||
|
file://debian/make-targets.patch \
|
||||||
|
file://debian/no-rpath.patch \
|
||||||
|
file://debian/man-dir.patch \
|
||||||
|
file://debian/man-section.patch \
|
||||||
|
file://debian/pkg-config.patch \
|
||||||
|
file://debian/no-symbolic.patch \
|
||||||
|
file://debian/debian-targets.patch \
|
||||||
|
"
|
||||||
|
|
||||||
|
PACKAGES += " \
|
||||||
|
${PN}-engines \
|
||||||
|
${PN}-engines-dbg \
|
||||||
|
"
|
||||||
|
|
||||||
|
PARALLEL_MAKE = ""
|
||||||
|
FILES_${PN}-engines = "${libdir}/ssl/engines/*.so"
|
||||||
|
FILES_${PN}-engines-dbg = "${libdir}/ssl/engines/.debug"
|
||||||
Reference in New Issue
Block a user