wok view openssl/receipt @ rev 16216
Add fbcat
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Mar 31 16:32:29 2014 +0000 (2014-03-31) |
parents | 6c3718ca17b6 |
children | d753d013d8bc |
line source
1 # SliTaz package receipt.
3 PACKAGE="openssl"
4 VERSION="1.0.1f"
5 CATEGORY="security"
6 SHORT_DESC="Open source Secure Sockets Layer."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.openssl.org/"
11 WGET_URL="http://www.openssl.org/source/$TARBALL"
12 TAGS="ssl security"
13 HOST_ARCH="i486 arm"
15 DEPENDS="libcrypto libssl"
16 BUILD_DEPENDS="perl zlib-dev"
18 # Perl is installed in cross env.
19 case "$ARCH" in
20 arm) BUILD_DEPENDS="" ;;
21 esac
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 # MAKEFLAGS make openssl build fail.
27 unset MAKEFLAGS
29 # Add -Wa,--noexecstack here so that libcrypto's assembler modules will be
30 # marked as not requiring an executable stack (compatibility improvement).
31 case "$ARCH" in
32 arm)
33 # BUG: shared libs are not built
34 ./Configure --prefix=/usr --openssldir=/etc/ssl \
35 shared zlib enable-md2 -Wa,--noexecstack \
36 linux-armv4 &&
37 sed -i 's/\(basename .*\)`/\1 || true `/' Makefile &&
38 make \
39 CC=${HOST_SYSTEM}-gcc \
40 AR="${HOST_SYSTEM}-ar r" \
41 RANLIB=${HOST_SYSTEM}-ranlib ;;
42 i486)
43 ./config --prefix=/usr --openssldir=/etc/ssl shared zlib \
44 enable-md2 -Wa,--noexecstack &&
45 sed -i 's/\(basename .*\)`/\1 || true `/' Makefile &&
46 make ;;
47 esac &&
48 # Install
49 make INSTALL_PREFIX=$DESTDIR MANDIR=/usr/share/man install
50 }
52 # Rules to gen a SliTaz package suitable for Tazpkg.
53 genpkg_rules()
54 {
55 mkdir -p $fs/usr/lib
56 cp -a $install/etc $fs
57 cp -a $install/usr/bin $fs/usr
58 cp -a $install/usr/lib/engines $fs/usr/lib
59 }
61 testsuite()
62 {
63 readelf -h $install/usr/bin/openssl
64 }