wok-next diff openssl/receipt @ rev 20451

xcb-util* are obsolete -> xorg-xcb-util* (again)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Feb 28 14:26:56 2018 +0200 (2018-02-28)
parents 9a5b17ddcfcb
children e6615350078d
line diff
     1.1 --- a/openssl/receipt	Tue May 30 05:37:57 2017 +0300
     1.2 +++ b/openssl/receipt	Wed Feb 28 14:26:56 2018 +0200
     1.3 @@ -1,85 +1,65 @@
     1.4  # SliTaz package receipt v2.
     1.5  
     1.6  PACKAGE="openssl"
     1.7 -VERSION="1.0.2l"
     1.8 +VERSION="1.1.0g"
     1.9  CATEGORY="security"
    1.10  SHORT_DESC="Open source Secure Sockets Layer"
    1.11  MAINTAINER="pascal.bellard@slitaz.org"
    1.12  LICENSE="BSD"
    1.13  WEB_SITE="https://www.openssl.org/"
    1.14 -TAGS="ssl security"
    1.15 -HOST_ARCH="i486 arm"
    1.16 +LFS="http://www.linuxfromscratch.org/blfs/view/stable/postlfs/openssl.html"
    1.17  
    1.18  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.19  WGET_URL="https://www.openssl.org/source/$TARBALL"
    1.20  # Integrity check: https://www.openssl.org/source/
    1.21 -TARBALL_SHA256="ce07195b659e75f4e1db43552860070061f156a98bb37b672b101ba6e3ddf30c"
    1.22 +TARBALL_SHA256="de4d501267da39310905cb6dc8c6121f7a2cad45a7707f76df828fe1b85073af"
    1.23  
    1.24 +BUILD_DEPENDS_arm=" "
    1.25  BUILD_DEPENDS="perl zlib-dev"
    1.26 -BUILD_DEPENDS_arm=" "
    1.27 -SPLIT="libcrypto libcrypto-dev libssl openssl-dev"
    1.28 +SPLIT="openssl openssl-dev"
    1.29  
    1.30 -# Rules to configure and make the package.
    1.31 -compile_rules()
    1.32 -{
    1.33 -	# MAKEFLAGS make openssl build fail.
    1.34 -	unset MAKEFLAGS
    1.35 +compile_rules() {
    1.36 +	# MAKEFLAGS make OpenSSL build fail.
    1.37 +	unset MAKEFLAGS MAKE_ARGS
    1.38  
    1.39  	# Add -Wa,--noexecstack here so that libcrypto's assembler modules will be
    1.40  	# marked as not requiring an executable stack (compatibility improvement).
    1.41  	case "$ARCH" in
    1.42 -		arm)
    1.43 -			# BUG: shared libs are not built
    1.44 -			./Configure --prefix=/usr --openssldir=/etc/ssl \
    1.45 -				 shared zlib enable-md2 -Wa,--noexecstack \
    1.46 -				 linux-armv4 &&
    1.47 -			sed -i 's/\(basename .*\)`/\1 || true `/' Makefile &&
    1.48 -			make \
    1.49 -				CC=${HOST_SYSTEM}-gcc \
    1.50 -				AR="${HOST_SYSTEM}-ar r" \
    1.51 -				RANLIB=${HOST_SYSTEM}-ranlib ;;
    1.52 -		i486)
    1.53 -			./config --prefix=/usr --openssldir=/etc/ssl \
    1.54 -				shared zlib zlib-dynamic enable-md2 -Wa,--noexecstack &&
    1.55 -			make depend ;;
    1.56 -	esac &&
    1.57 -	# Install
    1.58 -	make INSTALL_PREFIX=$DESTDIR \
    1.59 -		MANDIR=/usr/share/man CC=${HOST_SYSTEM}-gcc install
    1.60 +		arm*)   ARCH_ARGS='linux-armv4'
    1.61 +		        MAKE_ARGS="CC=$HOST_SYSTEM-gcc AR=\"$HOST_SYSTEM-ar r\" RANLIB=$HOST_SYSTEM-ranlib";;
    1.62 +		i?86)   ARCH_ARGS='zlib-dynamic linux-elf';;
    1.63 +		x86_64) ARCH_ARGS='zlib-dynamic enable-ec_nistp_64_gcc_128 linux-x86_64';;
    1.64 +	esac
    1.65 +
    1.66 +	./Configure \
    1.67 +		--prefix=/usr \
    1.68 +		--openssldir=/etc/ssl \
    1.69 +		--libdir=lib \
    1.70 +		shared zlib enable-md2 no-ssl3-method $ARCH_ARGS \
    1.71 +		"-Wa,--noexecstack $CPPFLAGS $CFLAGS $LDFLAGS" &&
    1.72 +
    1.73 +	make depend &&
    1.74 +	make $MAKE_ARGS -j1 &&
    1.75 +	make \
    1.76 +		DESTDIR=$install \
    1.77 +		MANDIR=/usr/share/man \
    1.78 +		install_sw install_ssldirs install_man_docs
    1.79  }
    1.80  
    1.81 -testsuite()
    1.82 -{
    1.83 +testsuite() {
    1.84  	readelf -h $install/usr/bin/openssl
    1.85  }
    1.86  
    1.87 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.88 -genpkg_rules()
    1.89 -{
    1.90 +genpkg_rules() {
    1.91  	case $PACKAGE in
    1.92  		openssl)
    1.93 -			copy etc/ bin/ engines/
    1.94 -			DEPENDS="libcrypto libssl"
    1.95 -			;;
    1.96 -		libcrypto)
    1.97 -			copy libcrypto*.so*
    1.98 -			DEPENDS=" "
    1.99 -			CAT="security|general purpose cryptographic library"
   1.100 -			;;
   1.101 -		libcrypto-dev)
   1.102 -			copy libcrypto*.a libcrypto*.pc
   1.103 -			DEPENDS="pkg-config"
   1.104 -			CAT="development|general purpose cryptographic library, development files"
   1.105 -			;;
   1.106 -		libssl)
   1.107 -			copy libssl.so*
   1.108 -			DEPENDS="libcrypto"
   1.109 -			CAT="security|OpenSSL libraries"
   1.110 +			copy @std
   1.111 +			PROVIDE="libcrypto libssl"
   1.112 +			TAGS="SSL security"
   1.113  			;;
   1.114  		openssl-dev)
   1.115  			copy @dev
   1.116 -			find $fs -name 'libcrypto*' -delete
   1.117 -			DEPENDS="libcrypto-dev pkg-config"
   1.118 +			PROVIDE="libcrypto-dev"
   1.119  			;;
   1.120  	esac
   1.121  }