wok-next view openssl10/receipt @ rev 21017

Some maintenance
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Oct 16 16:46:05 2018 +0300 (2018-10-16)
parents 4e6503d7a19f
children d5aab818505e
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_arm=" "
19 BUILD_DEPENDS="perl zlib-dev"
20 SPLIT="openssl10 openssl10-dev"
22 compile_rules() {
23 # MAKEFLAGS make OpenSSL build fail.
24 unset MAKEFLAGS MAKE_ARGS
26 # Add -Wa,--noexecstack here so that libcrypto's assembler modules will be
27 # marked as not requiring an executable stack (compatibility improvement).
28 case "$ARCH" in
29 arm*) ARCH_ARGS='linux-armv4'
30 MAKE_ARGS="CC=$HOST_SYSTEM-gcc AR=\"$HOST_SYSTEM-ar r\" RANLIB=$HOST_SYSTEM-ranlib";;
31 i?86) ARCH_ARGS='zlib-dynamic linux-elf';;
32 x86_64) ARCH_ARGS='zlib-dynamic enable-ec_nistp_64_gcc_128 linux-x86_64';;
33 esac
35 ./Configure \
36 --prefix=/usr \
37 --openssldir=/etc/ssl \
38 --libdir=lib/openssl-1.0 \
39 shared zlib enable-md2 no-ssl3-method $ARCH_ARGS \
40 "-Wa,--noexecstack $CPPFLAGS $CFLAGS $LDFLAGS" &&
42 make depend &&
43 make $MAKE_ARGS -j1 &&
44 make \
45 CC=${HOST_SYSTEM}-gcc \
46 INSTALL_PREFIX=$install \
47 install_sw || return 1
49 mv $install/usr/bin/openssl $install/usr/bin/openssl-1.0
51 mv $install/usr/lib/openssl-1.0/libcrypto.so.1.0.0 $install/usr/lib
52 mv $install/usr/lib/openssl-1.0/libssl.so.1.0.0 $install/usr/lib
53 ln -s ../libssl.so.1.0.0 $install/usr/lib/openssl-1.0
54 ln -s ../libcrypto.so.1.0.0 $install/usr/lib/openssl-1.0
56 mkdir -p $install/usr/include/openssl-1.0
57 mv $install/usr/include/openssl $install/usr/include/openssl-1.0
59 sed -i 's|/include$|/include/openssl-1.0|' \
60 $install/usr/lib/openssl-1.0/pkgconfig/*.pc
62 rm -rf $install/etc $install/usr/bin/c_rehash
64 # change mode 0555 -> 0755
65 find $install -type f -name '*.so*' -exec chmod 0755 '{}' \;
66 }
68 testsuite() {
69 readelf -h $install/usr/bin/openssl*
70 }
72 genpkg_rules() {
73 case $PACKAGE in
74 openssl10)
75 copy @std
76 CAT="security|v. 1.0"
77 TAGS="SSL security"
78 ;;
79 openssl10-dev)
80 copy @dev
81 CAT="development|v. 1.0 development files"
82 ;;
83 esac
84 }