1 # Maintainer: Jens Staal <staal1978@gmail.com>
6 pkgdesc='The Open Source toolkit for Secure Sockets Layer and Transport Layer Security, built with Bionic libc'
8 url='https://www.openssl.org'
10 depends=('perl' 'bionic-svn')
11 optdepends=('ca-certificates')
12 source=("https://www.openssl.org/source/openssl-$pkgver.tar.gz" 'Configure.patch')
13 md5sums=('63ddc5116488985e820075e65fbe6aa4' '130ca34a9621b271f2e4cf3543490329')
15 _bionicwrapper=("gcc -I /usr/lib/bionic/libc/include -I /usr/lib/bionic/libc/kernel/common/linux/ \
16 -I /usr/lib/bionic/libc/kernel/common/ -I /usr/lib/bionic/libc/arch-x86/include/ \
17 -I /usr/lib/bionic/libc/kernel/arch-x86/ -I /usr/lib/bionic/libc/private -fPIC -DPIC -nostdinc -nostdlib -static -l /usr/lib/bionic/bionic.a\
18 -Dwchar_t='char' -fno-builtin -D_SIZE_T_DECLARED -DElf_Size='u_int32_t' -I /usr/lib/bionic/libm/include \
19 -L /usr/lib/bionic -D_BYTE_ORDER=_LITTLE_ENDIAN -lc")
22 # build instructions taken from: https://bitbucket.org/jrossi/metasploit/src/7f4bdc5394ca/documentation/posix_meterpreter.txt
25 cp -ar $srcdir/openssl-$pkgver $srcdir/build #starting fresh every time
28 patch -p0 Configure $srcdir/Configure.patch
29 ./Configure threads no-zlib no-krb5 386 --prefix=/usr linux-msf no-dlfcn shared
31 make CC="$_bionicwrapper" depend clean all
35 cd $srcdir/openssl-$pkgver
36 install -D -m755 libcrypto.so.0.9.8 "$pkgdir/usr/lib/libcrypto.so.0.9.8"
37 install -D -m755 libssl.so.0.9.8 "$pkgdir/usr/lib/libssl.so.0.9.8"