wok-current view openssl/receipt @ rev 25682
Fix openssl receipt (miss engines-3)
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Tue Mar 12 20:03:56 2024 +0000 (8 months ago) |
parents | 1f1c16803460 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="openssl"
4 VERSION="3.0.13"
5 CATEGORY="security"
6 SHORT_DESC="Open source Secure Sockets Layer."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://www.openssl.org/"
10 TAGS="ssl security"
11 HOST_ARCH="i486 arm"
13 TARBALL="$PACKAGE-$VERSION.tar.gz"
14 WGET_URL="https://www.openssl.org/source/$TARBALL"
16 DEPENDS="libcrypto libssl libatomic"
17 BUILD_DEPENDS="perl zlib-dev libatomic"
18 SPLIT="libcrypto libcrypto-dev libssl openssl-dev"
20 current_version()
21 {
22 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
23 sed '/openssl-/!d;/-[abr]/d;s|.tar.gz</a.*||;s|.*>openssl-||;q'
24 }
26 # Perl is installed in cross env.
27 case "$ARCH" in
28 arm) BUILD_DEPENDS="" ;;
29 esac
31 # Rules to configure and make the package.
32 compile_rules()
33 {
34 # MAKEFLAGS make openssl build fail.
35 unset MAKEFLAGS
37 export LDFLAGS="$LDFLAGS -latomic"
39 # Add -Wa,--noexecstack here so that libcrypto's assembler modules will be
40 # marked as not requiring an executable stack (compatibility improvement).
41 case "$ARCH" in
42 arm)
43 # BUG: shared libs are not built
44 ./Configure --prefix=/usr --openssldir=/etc/ssl \
45 shared zlib enable-md2 -Wa,--noexecstack \
46 linux-armv4 &&
47 sed -i 's/\(basename .*\)`/\1 || true `/' Makefile &&
48 make \
49 CC=${HOST_SYSTEM}-gcc \
50 AR="${HOST_SYSTEM}-ar r" \
51 RANLIB=${HOST_SYSTEM}-ranlib ;;
52 i486)
53 ./config linux-generic32 --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-3
67 # Remove .dist file
68 rm $fs/etc/ssl/*.dist
69 }
71 testsuite()
72 {
73 readelf -h $install/usr/bin/openssl
74 }