wok-next view openssl10/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 | 65a6a7062c8e |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="openssl10"
4 VERSION="1.0.2o"
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/openssl10.html"
11 REPOLOGY="openssl"
13 TARBALL="openssl-$VERSION.tar.gz"
14 WGET_URL="https://www.openssl.org/source/$TARBALL"
15 # Integrity check: https://www.openssl.org/source/
16 TARBALL_SHA256="ec3f5c9714ba0fd45cb4e087301eb1336c317e0d20b575a125050470e8089e4d"
18 BUILD_DEPENDS="perl zlib-dev"
19 SPLIT="$PACKAGE-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 i?86) ARCH_ARGS='zlib-dynamic linux-elf';;
29 x86_64) ARCH_ARGS='zlib-dynamic enable-ec_nistp_64_gcc_128 linux-x86_64';;
30 esac
32 ./Configure \
33 --prefix=/usr \
34 --openssldir=/etc/ssl \
35 --libdir=lib/openssl-1.0 \
36 shared zlib enable-md2 no-ssl3-method $ARCH_ARGS \
37 "-Wa,--noexecstack $CPPFLAGS $CFLAGS $LDFLAGS" &&
39 make depend &&
40 make $MAKE_ARGS -j1 &&
41 make \
42 CC=${HOST_SYSTEM}-gcc \
43 INSTALL_PREFIX=$install \
44 install_sw || return 1
46 mv $install/usr/bin/openssl $install/usr/bin/openssl-1.0
48 mv $install/usr/lib/openssl-1.0/libcrypto.so.1.0.0 $install/usr/lib
49 mv $install/usr/lib/openssl-1.0/libssl.so.1.0.0 $install/usr/lib
50 ln -s ../libssl.so.1.0.0 $install/usr/lib/openssl-1.0
51 ln -s ../libcrypto.so.1.0.0 $install/usr/lib/openssl-1.0
53 mkdir -p $install/usr/include/openssl-1.0
54 mv $install/usr/include/openssl $install/usr/include/openssl-1.0
56 sed -i 's|/include$|/include/openssl-1.0|' \
57 $install/usr/lib/openssl-1.0/pkgconfig/*.pc
59 rm -rf $install/etc $install/usr/bin/c_rehash
61 # change mode 0555 -> 0755
62 find $install -type f -name '*.so*' -exec chmod 0755 '{}' \;
63 }
65 testsuite() {
66 readelf -h $install/usr/bin/openssl*
67 }
69 genpkg_rules() {
70 case $PACKAGE in
71 openssl10)
72 copy @std
73 CAT="security|v. 1.0"
74 TAGS="SSL security"
75 ;;
76 openssl10-dev)
77 copy @dev
78 CAT="development|v. 1.0 development files"
79 ;;
80 esac
81 }