wok view openssl/receipt @ rev 25736
Up lua-readline (3.3-0)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Aug 23 14:59:03 2024 +0000 (4 months ago) |
parents | bf28cc07ebf1 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="openssl"
4 VERSION="1.0.2u"
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 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
24 sed '/openssl-/!d;/tar.gz/!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 -Wa,--noexecstack &&
55 make depend ;;
56 esac &&
57 # Install
58 make INSTALL_PREFIX=$DESTDIR \
59 MANDIR=/usr/share/man CC=${HOST_SYSTEM}-gcc install
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 }