wok-next view openssl10/receipt @ rev 20577

More fix libtool
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Apr 14 03:34:33 2018 +0300 (2018-04-14)
parents
children 8ae1f49095da
line source
1 # SliTaz package receipt v2.
3 PACKAGE="openssl10"
4 VERSION="1.0.2n"
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/openssl10.html"
12 TARBALL="openssl-$VERSION.tar.gz"
13 WGET_URL="https://www.openssl.org/source/$TARBALL"
14 # Integrity check: https://www.openssl.org/source/
15 TARBALL_SHA256="370babb75f278c39e0c50e8c4e7493bc0f18db6867478341a832a982fd15a8fe"
17 BUILD_DEPENDS_arm=" "
18 BUILD_DEPENDS="perl zlib-dev"
19 SPLIT="openssl10 openssl10-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/openssl-1.0 \
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 CC=${HOST_SYSTEM}-gcc \
45 INSTALL_PREFIX=$install \
46 install_sw || return 1
48 mv $install/usr/bin/openssl $install/usr/bin/openssl-1.0
50 mv $install/usr/lib/openssl-1.0/libcrypto.so.1.0.0 $install/usr/lib
51 mv $install/usr/lib/openssl-1.0/libssl.so.1.0.0 $install/usr/lib
52 ln -s ../libssl.so.1.0.0 $install/usr/lib/openssl-1.0
53 ln -s ../libcrypto.so.1.0.0 $install/usr/lib/openssl-1.0
55 mkdir -p $install/usr/include/openssl-1.0
56 mv $install/usr/include/openssl $install/usr/include/openssl-1.0
58 sed -i 's|/include$|/include/openssl-1.0|' \
59 $install/usr/lib/openssl-1.0/pkgconfig/*.pc
61 rm -rf $install/etc $install/usr/bin/c_rehash
63 # change mode 0555 -> 0755
64 find $install -type f -name '*.so*' -exec chmod 0755 '{}' \;
65 }
67 testsuite() {
68 readelf -h $install/usr/bin/openssl*
69 }
71 genpkg_rules() {
72 case $PACKAGE in
73 openssl10)
74 copy @std
75 CAT="security|v. 1.0"
76 TAGS="SSL security"
77 ;;
78 openssl10-dev)
79 copy @dev
80 CAT="development|v. 1.0 development files"
81 ;;
82 esac
83 }