wok view openssl/receipt @ rev 24427
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 12 11:42:56 2022 +0000 (2022-02-12) |
parents | 05230b2f15de |
children | ffe3a28f2096 |
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 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 -Wa,--noexecstack &&
54 make depend ;;
55 esac &&
56 # Install
57 make INSTALL_PREFIX=$DESTDIR \
58 MANDIR=/usr/share/man CC=${HOST_SYSTEM}-gcc install
59 }
61 # Rules to gen a SliTaz package suitable for Tazpkg.
62 genpkg_rules()
63 {
64 cook_copy_folders etc bin engines
65 }
67 testsuite()
68 {
69 readelf -h $install/usr/bin/openssl
70 }