wok diff openssl/receipt @ rev 16168
ARM: add enna media player
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Mar 29 23:45:46 2014 +0100 (2014-03-29) |
parents | 6c3718ca17b6 |
children | d753d013d8bc |
line diff
1.1 --- a/openssl/receipt Sat Nov 09 17:34:23 2013 +0000 1.2 +++ b/openssl/receipt Sat Mar 29 23:45:46 2014 +0100 1.3 @@ -1,7 +1,7 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="openssl" 1.7 -VERSION="1.0.1a" 1.8 +VERSION="1.0.1f" 1.9 CATEGORY="security" 1.10 SHORT_DESC="Open source Secure Sockets Layer." 1.11 MAINTAINER="pascal.bellard@slitaz.org" 1.12 @@ -10,32 +10,55 @@ 1.13 WEB_SITE="http://www.openssl.org/" 1.14 WGET_URL="http://www.openssl.org/source/$TARBALL" 1.15 TAGS="ssl security" 1.16 +HOST_ARCH="i486 arm" 1.17 1.18 DEPENDS="libcrypto libssl" 1.19 BUILD_DEPENDS="perl zlib-dev" 1.20 1.21 +# Perl is installed in cross env. 1.22 +case "$ARCH" in 1.23 + arm) BUILD_DEPENDS="" ;; 1.24 +esac 1.25 + 1.26 # Rules to configure and make the package. 1.27 compile_rules() 1.28 { 1.29 - cd $src 1.30 - 1.31 # MAKEFLAGS make openssl build fail. 1.32 unset MAKEFLAGS 1.33 1.34 # Add -Wa,--noexecstack here so that libcrypto's assembler modules will be 1.35 # marked as not requiring an executable stack (compatibility improvement). 1.36 - ./config --prefix=/usr --openssldir=/etc/ssl shared zlib enable-md2 \ 1.37 - -Wa,--noexecstack && 1.38 - 1.39 - sed -i 's/\(basename .*\)`/\1 || true `/' Makefile && 1.40 - make && 1.41 - make INSTALL_PREFIX=$DESTDIR MANDIR=$DESTDIR/usr/share/man install 1.42 + case "$ARCH" in 1.43 + arm) 1.44 + # BUG: shared libs are not built 1.45 + ./Configure --prefix=/usr --openssldir=/etc/ssl \ 1.46 + shared zlib enable-md2 -Wa,--noexecstack \ 1.47 + linux-armv4 && 1.48 + sed -i 's/\(basename .*\)`/\1 || true `/' Makefile && 1.49 + make \ 1.50 + CC=${HOST_SYSTEM}-gcc \ 1.51 + AR="${HOST_SYSTEM}-ar r" \ 1.52 + RANLIB=${HOST_SYSTEM}-ranlib ;; 1.53 + i486) 1.54 + ./config --prefix=/usr --openssldir=/etc/ssl shared zlib \ 1.55 + enable-md2 -Wa,--noexecstack && 1.56 + sed -i 's/\(basename .*\)`/\1 || true `/' Makefile && 1.57 + make ;; 1.58 + esac && 1.59 + # Install 1.60 + make INSTALL_PREFIX=$DESTDIR MANDIR=/usr/share/man install 1.61 } 1.62 1.63 # Rules to gen a SliTaz package suitable for Tazpkg. 1.64 genpkg_rules() 1.65 { 1.66 - mkdir -p $fs/usr 1.67 + mkdir -p $fs/usr/lib 1.68 cp -a $install/etc $fs 1.69 cp -a $install/usr/bin $fs/usr 1.70 + cp -a $install/usr/lib/engines $fs/usr/lib 1.71 } 1.72 + 1.73 +testsuite() 1.74 +{ 1.75 + readelf -h $install/usr/bin/openssl 1.76 +}