wok-current view openssl/receipt @ rev 23887
glibc: fix for binutils 2.29 (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jul 17 11:18:27 2020 +0000 (2020-07-17) |
parents | dad8b5aae26a |
children | 05230b2f15de |
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 # Perl is installed in cross env.
21 case "$ARCH" in
22 arm) BUILD_DEPENDS="" ;;
23 esac
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 # MAKEFLAGS make openssl build fail.
29 unset MAKEFLAGS
31 # Add -Wa,--noexecstack here so that libcrypto's assembler modules will be
32 # marked as not requiring an executable stack (compatibility improvement).
33 case "$ARCH" in
34 arm)
35 # BUG: shared libs are not built
36 ./Configure --prefix=/usr --openssldir=/etc/ssl \
37 shared zlib enable-md2 -Wa,--noexecstack \
38 linux-armv4 &&
39 sed -i 's/\(basename .*\)`/\1 || true `/' Makefile &&
40 make \
41 CC=${HOST_SYSTEM}-gcc \
42 AR="${HOST_SYSTEM}-ar r" \
43 RANLIB=${HOST_SYSTEM}-ranlib ;;
44 i486)
45 MACHINE=i686 \
46 ./config --prefix=/usr --openssldir=/etc/ssl \
47 shared zlib zlib-dynamic enable-md2 -Wa,--noexecstack &&
48 make depend ;;
49 esac &&
50 # Install
51 make INSTALL_PREFIX=$DESTDIR \
52 MANDIR=/usr/share/man CC=${HOST_SYSTEM}-gcc install
53 }
55 # Rules to gen a SliTaz package suitable for Tazpkg.
56 genpkg_rules()
57 {
58 cook_copy_folders etc bin engines
59 }
61 testsuite()
62 {
63 readelf -h $install/usr/bin/openssl
64 }