wok-current view openssl-compat/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 (3 months ago)
parents
children
line source
1 # SliTaz package receipt.
3 PACKAGE="openssl-compat"
4 SOURCE="openssl"
5 VERSION="1.1.1w"
6 CATEGORY="security"
7 SHORT_DESC="Open source Secure Sockets Layer (compat)."
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="libcrypto-compat libssl-compat"
18 BUILD_DEPENDS="perl zlib-dev"
19 SPLIT="libcrypto-compat libssl-compat"
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 shared zlib zlib-dynamic enable-md2 \
55 no-ssl3-method -Wa,--noexecstack &&
56 make depend ;;
57 esac &&
58 # Install
59 make DESTDIR=$PWD/_pkg MANDIR=$PWD/_pkg/usr/share/man \
60 install_sw install_ssldirs
61 }
63 # Rules to gen a SliTaz package suitable for Tazpkg.
64 genpkg_rules()
65 {
66 cook_copy_folders etc bin engines
67 }
69 testsuite()
70 {
71 readelf -h $install/usr/bin/openssl
72 }