wok-next view openssl/receipt @ rev 19905

atril, directfb, libglu-mesa, libglw-mesa, waterline-plugin-multiload : update bdeps
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Thu Oct 12 19:04:50 2017 +0200 (2017-10-12)
parents 11f96bc53c0e
children 0e7893ac206d
line source
1 # SliTaz package receipt v2.
3 PACKAGE="openssl"
4 VERSION="1.0.2l"
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"
15 # Integrity check: https://www.openssl.org/source/
16 TARBALL_SHA256="ce07195b659e75f4e1db43552860070061f156a98bb37b672b101ba6e3ddf30c"
18 BUILD_DEPENDS="perl zlib-dev"
19 BUILD_DEPENDS_arm=" "
20 SPLIT="libcrypto libcrypto-dev libssl openssl-dev"
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 # MAKEFLAGS make openssl build fail.
26 unset MAKEFLAGS
28 # Add -Wa,--noexecstack here so that libcrypto's assembler modules will be
29 # marked as not requiring an executable stack (compatibility improvement).
30 case "$ARCH" in
31 arm)
32 # BUG: shared libs are not built
33 ./Configure --prefix=/usr --openssldir=/etc/ssl \
34 shared zlib enable-md2 -Wa,--noexecstack \
35 linux-armv4 &&
36 sed -i 's/\(basename .*\)`/\1 || true `/' Makefile &&
37 make \
38 CC=${HOST_SYSTEM}-gcc \
39 AR="${HOST_SYSTEM}-ar r" \
40 RANLIB=${HOST_SYSTEM}-ranlib ;;
41 i486)
42 ./config --prefix=/usr --openssldir=/etc/ssl \
43 shared zlib zlib-dynamic enable-md2 -Wa,--noexecstack &&
44 make depend ;;
45 esac &&
46 # Install
47 make INSTALL_PREFIX=$DESTDIR \
48 MANDIR=/usr/share/man CC=${HOST_SYSTEM}-gcc install
49 }
51 testsuite()
52 {
53 readelf -h $install/usr/bin/openssl
54 }
56 # Rules to gen a SliTaz package suitable for Tazpkg.
57 genpkg_rules()
58 {
59 case $PACKAGE in
60 openssl)
61 copy etc/ bin/ engines/
62 DEPENDS="libcrypto libssl"
63 ;;
64 libcrypto)
65 copy libcrypto*.so*
66 DEPENDS=" "
67 CAT="security|general purpose cryptographic library"
68 ;;
69 libcrypto-dev)
70 copy libcrypto*.a libcrypto*.pc
71 DEPENDS="pkg-config"
72 CAT="development|general purpose cryptographic library, development files"
73 ;;
74 libssl)
75 copy libssl.so*
76 DEPENDS="libcrypto"
77 CAT="security|OpenSSL libraries"
78 ;;
79 openssl-dev)
80 copy @dev
81 find $fs -name 'libcrypto*' -delete
82 DEPENDS="libcrypto-dev pkg-config"
83 ;;
84 esac
85 }