blob: f6de0fa1ea691c23558c4d91f2468d50fecdf3af (
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=openssl1
6 version=1.0.2u
7 release=1
8 source=(http://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 patch -p0 -i $SRC/no-rpath.patch
14 patch -p1 -i $SRC/openssl-1.0-versioned-symbols.patch
15 export MAKEFLAGS="$MAKEFLAGS -j1"
16
17 ./Configure --prefix=/usr \
18 --openssldir=/etc/ssl \
19 --libdir=lib/openssl-1.0 \
20 shared \
21 no-ssl3-method \
22 enable-ec_nistp_64_gcc_128 linux-x86_64
23
24 sed -i "s|-O3|$CFLAGS|" Makefile
25
26 make depend
27 make
28 make INSTALL_PREFIX=$PKG LIBDIR=lib/openssl-1.0 MANDIR=/usr/share/man MANSUFFIX=ssl install_sw
29
30 find $PKG -name "*fips*" -delete
31 chmod -R +w $PKG
32
33 install -m755 -d "$PKG/usr/include/openssl-1.0"
34 mv "$PKG/etc/ssl" "$PKG/etc/ssl-1.0"
35 mv "$PKG/usr/include/openssl" "$PKG/usr/include/openssl-1.0/"
36 mv "$PKG/usr/lib/openssl-1.0/libcrypto.so.1.0.0" "$PKG/usr/lib/"
37 mv "$PKG/usr/lib/openssl-1.0/libssl.so.1.0.0" "$PKG/usr/lib/"
38 ln -sf ../libssl.so.1.0.0 "$PKG/usr/lib/openssl-1.0/libssl.so"
39 ln -sf ../libcrypto.so.1.0.0 "$PKG/usr/lib/openssl-1.0/libcrypto.so"
40 mv "$PKG/usr/bin/openssl" "$PKG/usr/bin/openssl-1.0"
41 mv "$PKG/usr/bin/c_rehash" "$PKG/usr/bin/c_rehash-1.0"
42
43 # Update includedir in .pc files
44 sed -e 's|/include$|/include/openssl-1.0|' -i $PKG/usr/lib/openssl-1.0/pkgconfig/*.pc
45
46 #rm -rf $PKG/{etc,usr/bin/c_rehash}
47 }
|