forked from ports/compat-32
37 lines
1.1 KiB
Plaintext
37 lines
1.1 KiB
Plaintext
# Description: Secure Sockets Layer and Transport Layer Security tools
|
|
# URL: https://www.openssl.org/
|
|
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
|
|
# Depends on: openssl1
|
|
|
|
name=openssl1-32
|
|
version=1.0.2u
|
|
release=1
|
|
source=(http://www.openssl.org/source/openssl-$version.tar.gz
|
|
no-rpath.patch openssl-1.0-versioned-symbols.patch)
|
|
|
|
build() {
|
|
cd openssl-$version
|
|
|
|
patch -p0 -i $SRC/no-rpath.patch
|
|
patch -p1 -i $SRC/openssl-1.0-versioned-symbols.patch
|
|
export MAKEFLAGS="$MAKEFLAGS -j1"
|
|
export CC='gcc -m32'
|
|
|
|
./Configure \
|
|
--prefix='/usr' \
|
|
--libdir='lib32/openssl-1.0' \
|
|
--openssldir='/etc/ssl' \
|
|
shared no-ssl3-method linux-elf
|
|
|
|
make MAKEDEPPROG="${CC}" depend
|
|
make
|
|
make INSTALL_PREFIX=$PKG install_sw
|
|
|
|
rm -r $PKG/{etc,usr/{include,bin}}
|
|
mv $PKG/usr/lib32/{openssl-1.0/,}libcrypto.so.1.0.0
|
|
mv $PKG/usr/lib32/{openssl-1.0/,}libssl.so.1.0.0
|
|
ln -sf ../libssl.so.1.0.0 $PKG/usr/lib32/openssl-1.0/libssl.so
|
|
ln -sf ../libcrypto.so.1.0.0 $PKG/usr/lib32/openssl-1.0/libcrypto.so
|
|
sed -e 's|/include$|/include/openssl-1.0|' -i $PKG/usr/lib32/openssl-1.0/pkgconfig/*.pc
|
|
}
|