blob: 09a6da2867666ebbb0980910c3e2c500f829bf4f (
plain)
1 # Description: Secure Sockets Layer and Transport Layer Security tools
2 # URL: https://www.openssl.org/
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4
5 name=openssl11
6 version=1.1.1s
7 release=1
8 source=(https://www.openssl.org/source/${name:0:7}-$version.tar.gz \
9 no-rpath.patch openssl-1.0-versioned-symbols.patch)
10
11 build() {
12 cd ${name:0:7}-$version
13 #export MAKEFLAGS="$MAKEFLAGS -j1"
14
15 ./Configure --prefix=/usr \
16 --openssldir=/etc/ssl \
17 --libdir=lib/openssl-1.1 \
18 shared \
19 enable-ec_nistp_64_gcc_128 linux-x86_64
20
21 sed -i "s|-O3|$CFLAGS|" Makefile
22
23 make depend
24 make
25 make DESTDIR=$PKG LIBDIR=lib/openssl-1.1 MANDIR=/usr/share/man MANSUFFIX=ssl install_sw
26
27 find $PKG -name "*fips*" -delete
28 chmod -R +w $PKG
29
30 install -m755 -d "$PKG/usr/include/openssl-1.1"
31 #mv "$PKG/etc/ssl" "$PKG/etc/ssl-1.1"
32 mv "$PKG/usr/include/openssl" "$PKG/usr/include/openssl-1.1/"
33 mv "$PKG/usr/lib/openssl-1.1/libcrypto.so.1.1" "$PKG/usr/lib/"
34 mv "$PKG/usr/lib/openssl-1.1/libssl.so.1.1" "$PKG/usr/lib/"
35 ln -sf ../libssl.so.1.1 "$PKG/usr/lib/openssl-1.1/libssl.so"
36 ln -sf ../libcrypto.so.1.1 "$PKG/usr/lib/openssl-1.1/libcrypto.so"
37 mv "$PKG/usr/bin/openssl" "$PKG/usr/bin/openssl-1.1"
38 mv "$PKG/usr/bin/c_rehash" "$PKG/usr/bin/c_rehash-1.1"
39
40 # Update includedir in .pc files
41 sed -e 's|/include$|/include/openssl-1.1|' -i $PKG/usr/lib/openssl-1.1/pkgconfig/*.pc
42
43 #rm -rf $PKG/{etc,usr/bin/c_rehash}
44 }
|