wok-current view openssl11/receipt @ rev 25681
Up openssl, add openssl-compat, openssl11, patch dropbear CVE-2023-48795
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Tue Mar 12 19:49:16 2024 +0000 (8 months ago) |
parents | |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="openssl11"
4 SOURCE="openssl"
5 VERSION="1.1.1w"
6 CATEGORY="security"
7 SHORT_DESC="Open source Secure Sockets Layer (1.1.1 series)."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="BSD"
10 WEB_SITE="https://www.openssl.org/"
11 TAGS="ssl security"
12 HOST_ARCH="i486 arm"
14 TARBALL="$SOURCE-$VERSION.tar.gz"
15 WGET_URL="https://www.openssl.org/source/$TARBALL"
17 DEPENDS="libcrypto11 libssl11"
18 BUILD_DEPENDS="perl zlib-dev"
19 SPLIT="libcrypto11 libcrypto11-dev libssl11 openssl11-dev"
21 current_version()
22 {
23 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
24 sed '/openssl-/!d;/-[abr]/d;s|.tar.gz</a.*||;s|.*>openssl-||;q'
25 }
27 # Perl is installed in cross env.
28 case "$ARCH" in
29 arm) BUILD_DEPENDS="" ;;
30 esac
32 # Rules to configure and make the package.
33 compile_rules()
34 {
35 # MAKEFLAGS make openssl build fail.
36 unset MAKEFLAGS
38 # Add -Wa,--noexecstack here so that libcrypto's assembler modules will be
39 # marked as not requiring an executable stack (compatibility improvement).
40 case "$ARCH" in
41 arm)
42 # BUG: shared libs are not built
43 ./Configure --prefix=/usr --openssldir=/etc/ssl \
44 shared zlib enable-md2 -Wa,--noexecstack \
45 linux-armv4 &&
46 sed -i 's/\(basename .*\)`/\1 || true `/' Makefile &&
47 make \
48 CC=${HOST_SYSTEM}-gcc \
49 AR="${HOST_SYSTEM}-ar r" \
50 RANLIB=${HOST_SYSTEM}-ranlib ;;
51 i486)
52 MACHINE=i686 \
53 ./config --prefix=/usr --openssldir=/etc/ssl \
54 --libdir=lib/openssl-1.1 shared zlib \
55 zlib-dynamic enable-md2 no-ssl3-method \
56 -Wa,--noexecstack &&
57 make depend ;;
58 esac &&
59 # Install
60 make DESTDIR=$PWD/_pkg MANDIR=$PWD/_pkg/usr/share/man \
61 install_sw install_ssldirs
62 }
64 # Rules to gen a SliTaz package suitable for Tazpkg.
65 genpkg_rules()
66 {
67 mkdir -p $fs/usr/bin $fs/usr/lib/openssl-1.1
68 cp -a $install/usr/bin/openssl $fs/usr/bin/openssl-1.1
69 cp -a $install/usr/lib/openssl-1.1/engines-1.1 $fs/usr/lib/openssl-1.1
70 }
72 testsuite()
73 {
74 readelf -h $install/usr/bin/openssl
75 }