nassl: patch to compile against system openssl/zlib. Push v0.12

This commit is contained in:
blshkv 2015-09-25 20:48:56 +08:00
parent 8d50fee6f2
commit dd9d21cdcb
4 changed files with 18 additions and 2 deletions

View file

@ -0,0 +1,12 @@
--- setup_unix.py.orig 2015-09-22 01:58:21.000000000 +0800
+++ setup_unix.py 2015-09-25 20:36:14.030813824 +0800
@@ -15,7 +15,8 @@
unix_ext_args.update({
'include_dirs' : [OPENSSL_INSTALL_DIR + '/include'],
'extra_compile_args' : extra_compile_args,
- 'extra_objects': [OPENSSL_INSTALL_DIR + '/lib/libssl.a', OPENSSL_INSTALL_DIR + '/lib/libcrypto.a', ZLIB_DIR + '/libz.a']})
+ 'library_dirs' : [OPENSSL_DIR, ZLIB_DIR],
+ 'libraries' : ['ssl', 'crypto']})
unix_setup = NASSL_SETUP.copy()

View file

@ -24,6 +24,10 @@ RDEPEND=""
src_prepare() {
dodir "src/_nassl/openssl-internal"
cp -r "${FILESDIR}/openssl-1.0.2d/" "${S}/src/_nassl/openssl-internal/"
epatch "${FILESDIR}"/${P}_setup.patch
}
src_compile() {
append-cflags -fno-strict-aliasing
python2.7 setup_unix.py build
}

View file

@ -31,7 +31,7 @@
~dev-python/charade-1.0.3
#sslyze
~dev-python/nassl-0.11
~dev-python/nassl-0.12
#capstone
=dev-python/capstone-python-3.0*

View file

@ -84,7 +84,7 @@ net-analyzer/nessus-plugins
~net-analyzer/sslsniff-0.8
~net-analyzer/sslstrip-0.9
~net-analyzer/ssltest-0.4
~net-analyzer/sslyze-0.11
~net-analyzer/sslyze-0.12
~net-analyzer/subdomainer-1.3
~net-analyzer/tcpdump-4.3.0
~net-analyzer/thc-ipv6-2.3