wok-current view openssl/receipt @ rev 25629

Mass updates for current
author Stanislas Leduc <shann@slitaz.org>
date Wed Oct 11 18:45:46 2023 +0000 (13 months ago)
parents bf28cc07ebf1
children 3ad63c8fc2f9
line source
1 # SliTaz package receipt.
3 PACKAGE="openssl"
4 VERSION="1.1.1n"
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"
17 BUILD_DEPENDS="perl zlib-dev"
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 # Add -Wa,--noexecstack here so that libcrypto's assembler modules will be
38 # marked as not requiring an executable stack (compatibility improvement).
39 case "$ARCH" in
40 arm)
41 # BUG: shared libs are not built
42 ./Configure --prefix=/usr --openssldir=/etc/ssl \
43 shared zlib enable-md2 -Wa,--noexecstack \
44 linux-armv4 &&
45 sed -i 's/\(basename .*\)`/\1 || true `/' Makefile &&
46 make \
47 CC=${HOST_SYSTEM}-gcc \
48 AR="${HOST_SYSTEM}-ar r" \
49 RANLIB=${HOST_SYSTEM}-ranlib ;;
50 i486)
51 MACHINE=i686 \
52 ./config --prefix=/usr --openssldir=/etc/ssl \
53 shared zlib zlib-dynamic enable-md2 \
54 no-ssl3-method -Wa,--noexecstack &&
55 make depend ;;
56 esac &&
57 # Install
58 make DESTDIR=$PWD/_pkg MANDIR=$PWD/_pkg/usr/share/man \
59 install_sw install_ssldirs
60 }
62 # Rules to gen a SliTaz package suitable for Tazpkg.
63 genpkg_rules()
64 {
65 cook_copy_folders etc bin engines
66 }
68 testsuite()
69 {
70 readelf -h $install/usr/bin/openssl
71 }