wok-next view openssl/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | f48456621a9d |
children | 4d9f82dabdbb |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="openssl"
4 VERSION="1.1.0h"
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/svn/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="5835626cde9e99656585fc7aaa2302a73a7e1340bf8c14fd635a62c66802a517"
17 BUILD_DEPENDS="perl zlib-dev"
18 SPLIT="$PACKAGE-dev"
20 compile_rules() {
21 # MAKEFLAGS make OpenSSL build fail.
22 unset MAKEFLAGS MAKE_ARGS
24 # Add -Wa,--noexecstack here so that libcrypto's assembler modules will be
25 # marked as not requiring an executable stack (compatibility improvement).
26 case "$ARCH" in
27 i?86) ARCH_ARGS='zlib-dynamic linux-elf';;
28 x86_64) ARCH_ARGS='zlib-dynamic enable-ec_nistp_64_gcc_128 linux-x86_64';;
29 esac
31 ./Configure \
32 --prefix=/usr \
33 --openssldir=/etc/ssl \
34 --libdir=lib \
35 shared zlib enable-md2 no-ssl3-method $ARCH_ARGS \
36 "-Wa,--noexecstack $CPPFLAGS $CFLAGS $LDFLAGS" &&
38 make depend &&
39 make $MAKE_ARGS -j1 &&
40 make \
41 DESTDIR=$install \
42 MANDIR=/usr/share/man \
43 install_sw install_ssldirs install_man_docs
44 }
46 testsuite() {
47 readelf -h $install/usr/bin/openssl
48 }
50 genpkg_rules() {
51 case $PACKAGE in
52 openssl)
53 copy @std
54 TAGS="SSL security"
55 ;;
56 openssl-dev)
57 copy @dev
58 ;;
59 esac
60 }