[DEV] build openSSL (not finished)

This commit is contained in:
Edouard DUPIN 2016-05-10 21:43:48 +02:00
parent 9a68f2f96f
commit 83407ae280
23 changed files with 950 additions and 65 deletions

View File

@ -97,7 +97,7 @@ extern "C" {
# endif
#endif
#define OPENSSL_CPUID_OBJ
//#define OPENSSL_CPUID_OBJ
/* crypto/opensslconf.h.in */

View File

@ -26,6 +26,7 @@ def get_version():
return [1,0,2]
"""
basic:
/usr/bin/perl ../util/mkbuildinf.pl "gcc -Iopenssl/crypto -Iopenssl -Iopenssl/include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -Wa,--noexecstack -m64 -DL_ENDIAN -O3 -Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM" "linux-x86_64" >buildinf.h
-Iopenssl/crypto -Iopenssl -Iopenssl/include
-DOPENSSL_THREADS
@ -50,6 +51,23 @@ def get_version():
-DGHASH_ASM
"""
"""
with no ASM :
-DOPENSSL_NO_DEPRECATED
-DOPENSSL_NO_EC_NISTP_64_GCC_128
-DOPENSSL_NO_GMP
-DOPENSSL_NO_JPAKE
-DOPENSSL_NO_MD2
-DOPENSSL_NO_RC5
-DOPENSSL_NO_RFC3779
-DOPENSSL_NO_SCTP
-DOPENSSL_NO_SSL2
-DOPENSSL_NO_STORE
-DOPENSSL_NO_UNIT_TEST
-DOPENSSL_NO_WEAK_SSL_CIPHERS
"""
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
"""
@ -118,6 +136,7 @@ def create(target, module_name):
])
my_module.add_src_file([
'openssl/crypto/whrlpool/wp_dgst.c',
'openssl/crypto/whrlpool/wp_block.c',# add if no asm
])
#/usr/bin/perl openssl/crypto/whrlpool/asm/wp-x86_64.pl elf > wp-x86_64.s
my_module.add_src_file([
@ -149,6 +168,8 @@ def create(target, module_name):
'openssl/crypto/des/read2pwd.c',
])
my_module.add_src_file([
'openssl/crypto/aes/aes_core.c', # add if no asm
'openssl/crypto/aes/aes_cbc.c', # add if no asm
'openssl/crypto/aes/aes_misc.c',
'openssl/crypto/aes/aes_ecb.c',
'openssl/crypto/aes/aes_cfb.c',
@ -171,6 +192,8 @@ def create(target, module_name):
])
my_module.add_src_file([
'openssl/crypto/rc4/rc4_utl.c',
'openssl/crypto/rc4/rc4_skey.c', # add if no asm
'openssl/crypto/rc4/rc4_enc.c', # add if no asm
])
#/usr/bin/perl openssl/crypto/rc4/asm/rc4-x86_64.pl elf > rc4-x86_64.s
#/usr/bin/perl openssl/crypto/rc4/asm/rc4-md5-x86_64.pl elf > rc4-md5-x86_64.s
@ -196,6 +219,8 @@ def create(target, module_name):
'openssl/crypto/cast/c_ofb64.c',
])
my_module.add_src_file([
'openssl/crypto/camellia/camellia.c', # add if no asm
'openssl/crypto/camellia/cmll_cbc.c', # add if no asm
'openssl/crypto/camellia/cmll_ecb.c',
'openssl/crypto/camellia/cmll_ofb.c',
'openssl/crypto/camellia/cmll_cfb.c',

View File

@ -0,0 +1,45 @@
#!/usr/bin/python
import lutin.module as module
import lutin.tools as tools
import os
def get_type():
return "BINARY"
def get_desc():
return "open SSL crypto library"
def get_licence():
return "BSD like + notif"
def get_compagny_type():
return "org"
def get_compagny_name():
return "openssl"
def get_maintainer():
return ["XXX XXX<rt@openssl.org>"]
def get_version():
return [1,0,2]
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
my_module.add_src_file([
'openssl/apps/apps.c',
'openssl/apps/asn1pars.c',
])
my_module.compile_flags('link', [
'-ldl',
])
my_module.compile_version("c", 1989, gnu=True)
my_module.add_module_depend('openssl')
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl", "apps"))
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl/crypto"))
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl"))
return my_module

46
lutin_openssl-apps-crl.py Normal file
View File

@ -0,0 +1,46 @@
#!/usr/bin/python
import lutin.module as module
import lutin.tools as tools
import os
def get_type():
return "BINARY"
def get_desc():
return "open SSL crypto library"
def get_licence():
return "BSD like + notif"
def get_compagny_type():
return "org"
def get_compagny_name():
return "openssl"
def get_maintainer():
return ["XXX XXX<rt@openssl.org>"]
def get_version():
return [1,0,2]
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
my_module.add_src_file([
'openssl/apps/apps.c',
'openssl/apps/app_rand.c',
'openssl/apps/crl.c',
])
my_module.compile_flags('link', [
'-ldl',
])
my_module.compile_version("c", 1989, gnu=True)
my_module.add_module_depend('openssl')
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl", "apps"))
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl/crypto"))
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl"))
return my_module

View File

@ -0,0 +1,46 @@
#!/usr/bin/python
import lutin.module as module
import lutin.tools as tools
import os
def get_type():
return "BINARY"
def get_desc():
return "open SSL crypto library"
def get_licence():
return "BSD like + notif"
def get_compagny_type():
return "org"
def get_compagny_name():
return "openssl"
def get_maintainer():
return ["XXX XXX<rt@openssl.org>"]
def get_version():
return [1,0,2]
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
my_module.add_src_file([
'openssl/apps/apps.c',
'openssl/apps/app_rand.c',
'openssl/apps/crl2p7.c',
])
my_module.compile_flags('link', [
'-ldl',
])
my_module.compile_version("c", 1989, gnu=True)
my_module.add_module_depend('openssl')
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl", "apps"))
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl/crypto"))
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl"))
return my_module

47
lutin_openssl-apps-dh.py Normal file
View File

@ -0,0 +1,47 @@
#!/usr/bin/python
import lutin.module as module
import lutin.tools as tools
import os
def get_type():
return "BINARY"
def get_desc():
return "open SSL crypto library"
def get_licence():
return "BSD like + notif"
def get_compagny_type():
return "org"
def get_compagny_name():
return "openssl"
def get_maintainer():
return ["XXX XXX<rt@openssl.org>"]
def get_version():
return [1,0,2]
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
my_module.add_src_file([
'openssl/apps/apps.c',
'openssl/apps/app_rand.c',
#'openssl/apps/genpkey.c',
'openssl/apps/dh.c',
])
my_module.compile_flags('link', [
'-ldl',
])
my_module.compile_version("c", 1989, gnu=True)
my_module.add_module_depend('openssl')
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl", "apps"))
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl/crypto"))
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl"))
return my_module

View File

@ -0,0 +1,46 @@
#!/usr/bin/python
import lutin.module as module
import lutin.tools as tools
import os
def get_type():
return "BINARY"
def get_desc():
return "open SSL crypto library"
def get_licence():
return "BSD like + notif"
def get_compagny_type():
return "org"
def get_compagny_name():
return "openssl"
def get_maintainer():
return ["XXX XXX<rt@openssl.org>"]
def get_version():
return [1,0,2]
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
my_module.add_src_file([
'openssl/apps/apps.c',
'openssl/apps/app_rand.c',
'openssl/apps/dhparam.c',
])
my_module.compile_flags('link', [
'-ldl',
])
my_module.compile_version("c", 1989, gnu=True)
my_module.add_module_depend('openssl')
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl", "apps"))
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl/crypto"))
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl"))
return my_module

46
lutin_openssl-apps-dsa.py Normal file
View File

@ -0,0 +1,46 @@
#!/usr/bin/python
import lutin.module as module
import lutin.tools as tools
import os
def get_type():
return "BINARY"
def get_desc():
return "open SSL crypto library"
def get_licence():
return "BSD like + notif"
def get_compagny_type():
return "org"
def get_compagny_name():
return "openssl"
def get_maintainer():
return ["XXX XXX<rt@openssl.org>"]
def get_version():
return [1,0,2]
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
my_module.add_src_file([
'openssl/apps/apps.c',
'openssl/apps/app_rand.c',
'openssl/apps/dsa.c',
])
my_module.compile_flags('link', [
'-ldl',
])
my_module.compile_version("c", 1989, gnu=True)
my_module.add_module_depend('openssl')
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl", "apps"))
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl/crypto"))
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl"))
return my_module

View File

@ -0,0 +1,46 @@
#!/usr/bin/python
import lutin.module as module
import lutin.tools as tools
import os
def get_type():
return "BINARY"
def get_desc():
return "open SSL crypto library"
def get_licence():
return "BSD like + notif"
def get_compagny_type():
return "org"
def get_compagny_name():
return "openssl"
def get_maintainer():
return ["XXX XXX<rt@openssl.org>"]
def get_version():
return [1,0,2]
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
my_module.add_src_file([
'openssl/apps/apps.c',
'openssl/apps/app_rand.c',
'openssl/apps/dsaparam.c',
])
my_module.compile_flags('link', [
'-ldl',
])
my_module.compile_version("c", 1989, gnu=True)
my_module.add_module_depend('openssl')
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl", "apps"))
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl/crypto"))
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl"))
return my_module

46
lutin_openssl-apps-ec.py Normal file
View File

@ -0,0 +1,46 @@
#!/usr/bin/python
import lutin.module as module
import lutin.tools as tools
import os
def get_type():
return "BINARY"
def get_desc():
return "open SSL crypto library"
def get_licence():
return "BSD like + notif"
def get_compagny_type():
return "org"
def get_compagny_name():
return "openssl"
def get_maintainer():
return ["XXX XXX<rt@openssl.org>"]
def get_version():
return [1,0,2]
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
my_module.add_src_file([
'openssl/apps/apps.c',
'openssl/apps/app_rand.c',
'openssl/apps/ec.c',
])
my_module.compile_flags('link', [
'-ldl',
])
my_module.compile_version("c", 1989, gnu=True)
my_module.add_module_depend('openssl')
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl", "apps"))
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl/crypto"))
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl"))
return my_module

View File

@ -0,0 +1,46 @@
#!/usr/bin/python
import lutin.module as module
import lutin.tools as tools
import os
def get_type():
return "BINARY"
def get_desc():
return "open SSL crypto library"
def get_licence():
return "BSD like + notif"
def get_compagny_type():
return "org"
def get_compagny_name():
return "openssl"
def get_maintainer():
return ["XXX XXX<rt@openssl.org>"]
def get_version():
return [1,0,2]
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
my_module.add_src_file([
'openssl/apps/apps.c',
'openssl/apps/app_rand.c',
'openssl/apps/ecparam.c',
])
my_module.compile_flags('link', [
'-ldl',
])
my_module.compile_version("c", 1989, gnu=True)
my_module.add_module_depend('openssl')
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl", "apps"))
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl/crypto"))
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl"))
return my_module

47
lutin_openssl-apps-enc.py Normal file
View File

@ -0,0 +1,47 @@
#!/usr/bin/python
import lutin.module as module
import lutin.tools as tools
import os
def get_type():
return "BINARY"
def get_desc():
return "open SSL crypto library"
def get_licence():
return "BSD like + notif"
def get_compagny_type():
return "org"
def get_compagny_name():
return "openssl"
def get_maintainer():
return ["XXX XXX<rt@openssl.org>"]
def get_version():
return [1,0,2]
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
my_module.add_src_file([
'openssl/apps/apps.c',
'openssl/apps/app_rand.c',
#'openssl/apps/genpkey.c',
'openssl/apps/enc.c',
])
my_module.compile_flags('link', [
'-ldl',
])
my_module.compile_version("c", 1989, gnu=True)
my_module.add_module_depend('openssl')
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl", "apps"))
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl/crypto"))
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl"))
return my_module

View File

@ -0,0 +1,47 @@
#!/usr/bin/python
import lutin.module as module
import lutin.tools as tools
import os
def get_type():
return "BINARY"
def get_desc():
return "open SSL crypto library"
def get_licence():
return "BSD like + notif"
def get_compagny_type():
return "org"
def get_compagny_name():
return "openssl"
def get_maintainer():
return ["XXX XXX<rt@openssl.org>"]
def get_version():
return [1,0,2]
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
my_module.add_src_file([
'openssl/apps/apps.c',
'openssl/apps/app_rand.c',
#'openssl/apps/genpkey.c',
'openssl/apps/errstr.c',
])
my_module.compile_flags('link', [
'-ldl',
])
my_module.compile_version("c", 1989, gnu=True)
my_module.add_module_depend('openssl')
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl", "apps"))
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl/crypto"))
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl"))
return my_module

View File

@ -0,0 +1,46 @@
#!/usr/bin/python
import lutin.module as module
import lutin.tools as tools
import os
def get_type():
return "BINARY"
def get_desc():
return "open SSL crypto library"
def get_licence():
return "BSD like + notif"
def get_compagny_type():
return "org"
def get_compagny_name():
return "openssl"
def get_maintainer():
return ["XXX XXX<rt@openssl.org>"]
def get_version():
return [1,0,2]
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
my_module.add_src_file([
'openssl/apps/apps.c',
'openssl/apps/app_rand.c',
'openssl/apps/gendh.c',
])
my_module.compile_flags('link', [
'-ldl',
])
my_module.compile_version("c", 1989, gnu=True)
my_module.add_module_depend('openssl')
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl", "apps"))
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl/crypto"))
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl"))
return my_module

View File

@ -0,0 +1,46 @@
#!/usr/bin/python
import lutin.module as module
import lutin.tools as tools
import os
def get_type():
return "BINARY"
def get_desc():
return "open SSL crypto library"
def get_licence():
return "BSD like + notif"
def get_compagny_type():
return "org"
def get_compagny_name():
return "openssl"
def get_maintainer():
return ["XXX XXX<rt@openssl.org>"]
def get_version():
return [1,0,2]
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
my_module.add_src_file([
'openssl/apps/apps.c',
'openssl/apps/app_rand.c',
'openssl/apps/gendsa.c',
])
my_module.compile_flags('link', [
'-ldl',
])
my_module.compile_version("c", 1989, gnu=True)
my_module.add_module_depend('openssl')
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl", "apps"))
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl/crypto"))
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl"))
return my_module

View File

@ -0,0 +1,46 @@
#!/usr/bin/python
import lutin.module as module
import lutin.tools as tools
import os
def get_type():
return "BINARY"
def get_desc():
return "open SSL crypto library"
def get_licence():
return "BSD like + notif"
def get_compagny_type():
return "org"
def get_compagny_name():
return "openssl"
def get_maintainer():
return ["XXX XXX<rt@openssl.org>"]
def get_version():
return [1,0,2]
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
my_module.add_src_file([
'openssl/apps/apps.c',
'openssl/apps/app_rand.c',
'openssl/apps/genrsa.c',
])
my_module.compile_flags('link', [
'-ldl',
])
my_module.compile_version("c", 1989, gnu=True)
my_module.add_module_depend('openssl')
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl", "apps"))
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl/crypto"))
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl"))
return my_module

View File

@ -0,0 +1,46 @@
#!/usr/bin/python
import lutin.module as module
import lutin.tools as tools
import os
def get_type():
return "BINARY"
def get_desc():
return "open SSL crypto library"
def get_licence():
return "BSD like + notif"
def get_compagny_type():
return "org"
def get_compagny_name():
return "openssl"
def get_maintainer():
return ["XXX XXX<rt@openssl.org>"]
def get_version():
return [1,0,2]
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
my_module.add_src_file([
'openssl/apps/apps.c',
'openssl/apps/app_rand.c',
'openssl/apps/passwd.c',
])
my_module.compile_flags('link', [
'-ldl',
])
my_module.compile_version("c", 1989, gnu=True)
my_module.add_module_depend('openssl')
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl", "apps"))
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl/crypto"))
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl"))
return my_module

View File

@ -0,0 +1,46 @@
#!/usr/bin/python
import lutin.module as module
import lutin.tools as tools
import os
def get_type():
return "BINARY"
def get_desc():
return "open SSL crypto library"
def get_licence():
return "BSD like + notif"
def get_compagny_type():
return "org"
def get_compagny_name():
return "openssl"
def get_maintainer():
return ["XXX XXX<rt@openssl.org>"]
def get_version():
return [1,0,2]
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
my_module.add_src_file([
'openssl/apps/apps.c',
'openssl/apps/app_rand.c',
'openssl/apps/pkcs7.c',
])
my_module.compile_flags('link', [
'-ldl',
])
my_module.compile_version("c", 1989, gnu=True)
my_module.add_module_depend('openssl')
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl", "apps"))
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl/crypto"))
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl"))
return my_module

46
lutin_openssl-apps-req.py Normal file
View File

@ -0,0 +1,46 @@
#!/usr/bin/python
import lutin.module as module
import lutin.tools as tools
import os
def get_type():
return "BINARY"
def get_desc():
return "open SSL crypto library"
def get_licence():
return "BSD like + notif"
def get_compagny_type():
return "org"
def get_compagny_name():
return "openssl"
def get_maintainer():
return ["XXX XXX<rt@openssl.org>"]
def get_version():
return [1,0,2]
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
my_module.add_src_file([
'openssl/apps/apps.c',
'openssl/apps/app_rand.c',
'openssl/apps/req.c',
])
my_module.compile_flags('link', [
'-ldl',
])
my_module.compile_version("c", 1989, gnu=True)
my_module.add_module_depend('openssl')
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl", "apps"))
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl/crypto"))
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl"))
return my_module

46
lutin_openssl-apps-rsa.py Normal file
View File

@ -0,0 +1,46 @@
#!/usr/bin/python
import lutin.module as module
import lutin.tools as tools
import os
def get_type():
return "BINARY"
def get_desc():
return "open SSL crypto library"
def get_licence():
return "BSD like + notif"
def get_compagny_type():
return "org"
def get_compagny_name():
return "openssl"
def get_maintainer():
return ["XXX XXX<rt@openssl.org>"]
def get_version():
return [1,0,2]
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
my_module.add_src_file([
'openssl/apps/apps.c',
'openssl/apps/app_rand.c',
'openssl/apps/rsa.c',
])
my_module.compile_flags('link', [
'-ldl',
])
my_module.compile_version("c", 1989, gnu=True)
my_module.add_module_depend('openssl')
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl", "apps"))
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl/crypto"))
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl"))
return my_module

View File

@ -0,0 +1,46 @@
#!/usr/bin/python
import lutin.module as module
import lutin.tools as tools
import os
def get_type():
return "BINARY"
def get_desc():
return "open SSL crypto library"
def get_licence():
return "BSD like + notif"
def get_compagny_type():
return "org"
def get_compagny_name():
return "openssl"
def get_maintainer():
return ["XXX XXX<rt@openssl.org>"]
def get_version():
return [1,0,2]
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
my_module.add_src_file([
'openssl/apps/apps.c',
'openssl/apps/app_rand.c',
'openssl/apps/rsautl.c',
])
my_module.compile_flags('link', [
'-ldl',
])
my_module.compile_version("c", 1989, gnu=True)
my_module.add_module_depend('openssl')
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl", "apps"))
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl/crypto"))
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl"))
return my_module

View File

@ -0,0 +1,46 @@
#!/usr/bin/python
import lutin.module as module
import lutin.tools as tools
import os
def get_type():
return "BINARY"
def get_desc():
return "open SSL crypto library"
def get_licence():
return "BSD like + notif"
def get_compagny_type():
return "org"
def get_compagny_name():
return "openssl"
def get_maintainer():
return ["XXX XXX<rt@openssl.org>"]
def get_version():
return [1,0,2]
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
my_module.add_src_file([
'openssl/apps/apps.c',
'openssl/apps/verify.c',
])
my_module.compile_flags('link', [
'-ldl',
])
my_module.compile_version("c", 1989, gnu=True)
my_module.add_module_depend('openssl')
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl", "apps"))
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl/crypto"))
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl"))
return my_module

View File

@ -30,55 +30,18 @@ def get_version():
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
"""
my_module.add_prebuild_action(
src="openssl/crypto/x86_64cpuid.pl",
dst=
"""
#line(---) = gcc -DMONOLITH -I.. -I../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -Wa,--noexecstack -m64 -DL_ENDIAN -O3 -Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -c -o
my_module.add_src_file([
'openssl/apps/apps.c',
'openssl/apps/verify.c',
])
my_module.compile_flags('c', [
'-DOPENSSL_NO_ASM',
'openssl/apps/app_rand.c',
'openssl/apps/speed.c',
])
my_module.compile_flags('link', [
'-ldl',
])
"""
'openssl/apps/asn1pars.c',
'openssl/apps/req.c',
'openssl/apps/dgst.c',
'openssl/apps/dh.c',
'openssl/apps/dhparam.c',
'openssl/apps/enc.c',
'openssl/apps/passwd.c',
'openssl/apps/gendh.c',
'openssl/apps/errstr.c',
'openssl/apps/ca.c',
'openssl/apps/pkcs7.c',
'openssl/apps/crl2p7.c',
'openssl/apps/crl.c',
'openssl/apps/rsa.c',
'openssl/apps/rsautl.c',
'openssl/apps/dsa.c',
'openssl/apps/dsaparam.c',
'openssl/apps/ec.c',
'openssl/apps/ecparam.c',
'openssl/apps/x509.c',
'openssl/apps/genrsa.c',
'openssl/apps/gendsa.c',
'openssl/apps/genpkey.c',
'openssl/apps/s_server.c',
'openssl/apps/s_client.c',
'openssl/apps/speed.c',
'openssl/apps/s_time.c',
'openssl/apps/apps.c',
'openssl/apps/s_cb.c',
'openssl/apps/s_socket.c',
'openssl/apps/app_rand.c',
'openssl/apps/version.c',
'openssl/apps/sess_id.c',
'openssl/apps/ciphers.c',
@ -104,29 +67,4 @@ def create(target, module_name):
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl", "apps"))
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl/crypto"))
my_module.add_path(os.path.join(tools.get_current_path(__file__), "openssl"))
"""
rm -f openssl
shlib_target=; if [ -n "" ]; then \
shlib_target="linux-shared"; \
elif [ -n "" ]; then \
FIPSLD_CC="gcc"; CC=/usr/local/ssl/fips-2.0/bin/fipsld; export CC FIPSLD_CC; \
fi; \
LIBRARIES="-L.. -lssl -L.. -lcrypto" ; \
make -f ../Makefile.shared -e \
APPNAME=openssl OBJECTS="openssl.o verify.o asn1pars.o req.o dgst.o dh.o dhparam.o enc.o passwd.o gendh.o errstr.o ca.o pkcs7.o crl2p7.o crl.o rsa.o rsautl.o dsa.o dsaparam.o ec.o ecparam.o x509.o genrsa.o gendsa.o genpkey.o s_server.o s_client.o speed.o s_time.o apps.o s_cb.o s_socket.o app_rand.o version.o sess_id.o ciphers.o nseq.o pkcs12.o pkcs8.o pkey.o pkeyparam.o pkeyutl.o spkac.o smime.o cms.o rand.o engine.o ocsp.o prime.o ts.o srp.o" \
LIBDEPS=" $LIBRARIES -ldl" \
link_app.${shlib_target}
make[2]: Entering directory '/home/heero/dev/perso/framework/openssl-lutin/openssl/apps'
( :; LIBDEPS="${LIBDEPS:--L.. -lssl -L.. -lcrypto -ldl}"; LDCMD="${LDCMD:-gcc}"; LDFLAGS="${LDFLAGS:--DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -Wa,--noexecstack -m64 -DL_ENDIAN -O3 -Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM}"; 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:=openssl} openssl.o verify.o asn1pars.o req.o dgst.o dh.o dhparam.o enc.o passwd.o gendh.o errstr.o ca.o pkcs7.o crl2p7.o crl.o rsa.o rsautl.o dsa.o dsaparam.o ec.o ecparam.o x509.o genrsa.o gendsa.o genpkey.o s_server.o s_client.o speed.o s_time.o apps.o s_cb.o s_socket.o app_rand.o version.o sess_id.o ciphers.o nseq.o pkcs12.o pkcs8.o pkey.o pkeyparam.o pkeyutl.o spkac.o smime.o cms.o rand.o engine.o ocsp.o prime.o ts.o srp.o ${LIBDEPS} )
make[2]: Leaving directory '/home/heero/dev/perso/framework/openssl-lutin/openssl/apps'
make[2]: Entering directory '/home/heero/dev/perso/framework/openssl-lutin/openssl'
Doing certs/demo
pca-cert.pem => e83ef475.0
ca-cert.pem => 3f77a2b5.0
dsa-ca.pem => cbdbd8bc.0
dsa-pca.pem => de4fa23b.0
make[2]: Leaving directory '/home/heero/dev/perso/framework/openssl-lutin/openssl'
make[1]: Leaving directory '/home/heero/dev/perso/framework/openssl-lutin/openssl/apps'
"""
return my_module