wok-next annotate openssl/receipt @ rev 20957
Random updates
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Sep 05 15:26:05 2018 +0300 (2018-09-05) |
parents | 1771c0e19c08 |
children | f48456621a9d |
rev | line source |
---|---|
al@19736 | 1 # SliTaz package receipt v2. |
pankso@28 | 2 |
pankso@28 | 3 PACKAGE="openssl" |
erkan@20688 | 4 VERSION="1.1.0h" |
pankso@209 | 5 CATEGORY="security" |
al@19736 | 6 SHORT_DESC="Open source Secure Sockets Layer" |
pascal@62 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15472 | 8 LICENSE="BSD" |
al@19584 | 9 WEB_SITE="https://www.openssl.org/" |
al@20443 | 10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/postlfs/openssl.html" |
pascal@15472 | 11 |
al@19584 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@19604 | 13 WGET_URL="https://www.openssl.org/source/$TARBALL" |
al@19736 | 14 # Integrity check: https://www.openssl.org/source/ |
erkan@20690 | 15 TARBALL_SHA256="5835626cde9e99656585fc7aaa2302a73a7e1340bf8c14fd635a62c66802a517" |
al@19584 | 16 |
al@20443 | 17 BUILD_DEPENDS_arm=" " |
slaxemulator@6390 | 18 BUILD_DEPENDS="perl zlib-dev" |
al@20443 | 19 SPLIT="openssl openssl-dev" |
pankso@28 | 20 |
al@20443 | 21 compile_rules() { |
al@20443 | 22 # MAKEFLAGS make OpenSSL build fail. |
al@20443 | 23 unset MAKEFLAGS MAKE_ARGS |
slaxemulator@6192 | 24 |
gokhlayeh@7705 | 25 # Add -Wa,--noexecstack here so that libcrypto's assembler modules will be |
gokhlayeh@7705 | 26 # marked as not requiring an executable stack (compatibility improvement). |
pankso@15969 | 27 case "$ARCH" in |
al@20443 | 28 arm*) ARCH_ARGS='linux-armv4' |
al@20443 | 29 MAKE_ARGS="CC=$HOST_SYSTEM-gcc AR=\"$HOST_SYSTEM-ar r\" RANLIB=$HOST_SYSTEM-ranlib";; |
al@20443 | 30 i?86) ARCH_ARGS='zlib-dynamic linux-elf';; |
al@20443 | 31 x86_64) ARCH_ARGS='zlib-dynamic enable-ec_nistp_64_gcc_128 linux-x86_64';; |
al@20443 | 32 esac |
al@20443 | 33 |
al@20443 | 34 ./Configure \ |
al@20443 | 35 --prefix=/usr \ |
al@20443 | 36 --openssldir=/etc/ssl \ |
al@20443 | 37 --libdir=lib \ |
al@20443 | 38 shared zlib enable-md2 no-ssl3-method $ARCH_ARGS \ |
al@20443 | 39 "-Wa,--noexecstack $CPPFLAGS $CFLAGS $LDFLAGS" && |
al@20443 | 40 |
al@20443 | 41 make depend && |
al@20443 | 42 make $MAKE_ARGS -j1 && |
al@20443 | 43 make \ |
al@20443 | 44 DESTDIR=$install \ |
al@20443 | 45 MANDIR=/usr/share/man \ |
al@20443 | 46 install_sw install_ssldirs install_man_docs |
pankso@28 | 47 } |
pankso@28 | 48 |
al@20443 | 49 testsuite() { |
pankso@15969 | 50 readelf -h $install/usr/bin/openssl |
pankso@15969 | 51 } |
al@19736 | 52 |
al@20443 | 53 genpkg_rules() { |
al@19736 | 54 case $PACKAGE in |
al@19736 | 55 openssl) |
al@20443 | 56 copy @std |
al@20443 | 57 TAGS="SSL security" |
al@19736 | 58 ;; |
al@19736 | 59 openssl-dev) |
al@19736 | 60 copy @dev |
al@19736 | 61 ;; |
al@19736 | 62 esac |
al@19736 | 63 } |