wok-next view openssl/receipt @ rev 20553

Up cookutils (1045), tazpkg (963)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Apr 06 13:36:51 2018 +0300 (2018-04-06)
parents 0e7893ac206d
children 1771c0e19c08
line source
1 # SliTaz package receipt v2.
3 PACKAGE="openssl"
4 VERSION="1.1.0g"
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 LFS="http://www.linuxfromscratch.org/blfs/view/stable/postlfs/openssl.html"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://www.openssl.org/source/$TARBALL"
14 # Integrity check: https://www.openssl.org/source/
15 TARBALL_SHA256="de4d501267da39310905cb6dc8c6121f7a2cad45a7707f76df828fe1b85073af"
17 BUILD_DEPENDS_arm=" "
18 BUILD_DEPENDS="perl zlib-dev"
19 SPLIT="openssl openssl-dev"
21 compile_rules() {
22 # MAKEFLAGS make OpenSSL build fail.
23 unset MAKEFLAGS MAKE_ARGS
25 # Add -Wa,--noexecstack here so that libcrypto's assembler modules will be
26 # marked as not requiring an executable stack (compatibility improvement).
27 case "$ARCH" in
28 arm*) ARCH_ARGS='linux-armv4'
29 MAKE_ARGS="CC=$HOST_SYSTEM-gcc AR=\"$HOST_SYSTEM-ar r\" RANLIB=$HOST_SYSTEM-ranlib";;
30 i?86) ARCH_ARGS='zlib-dynamic linux-elf';;
31 x86_64) ARCH_ARGS='zlib-dynamic enable-ec_nistp_64_gcc_128 linux-x86_64';;
32 esac
34 ./Configure \
35 --prefix=/usr \
36 --openssldir=/etc/ssl \
37 --libdir=lib \
38 shared zlib enable-md2 no-ssl3-method $ARCH_ARGS \
39 "-Wa,--noexecstack $CPPFLAGS $CFLAGS $LDFLAGS" &&
41 make depend &&
42 make $MAKE_ARGS -j1 &&
43 make \
44 DESTDIR=$install \
45 MANDIR=/usr/share/man \
46 install_sw install_ssldirs install_man_docs
47 }
49 testsuite() {
50 readelf -h $install/usr/bin/openssl
51 }
53 genpkg_rules() {
54 case $PACKAGE in
55 openssl)
56 copy @std
57 TAGS="SSL security"
58 ;;
59 openssl-dev)
60 copy @dev
61 ;;
62 esac
63 }