void-packages/srcpkgs/libressl/template
Juan RP d70dcf974d libressl: update to 2.2.1 (soname bumps).
Due to new subpkgs, we can still perform a progressive update.
2015-07-09 11:20:44 +02:00

76 lines
1.8 KiB
Bash

# Template file for 'libressl'
pkgname=libressl
version=2.2.1
revision=1
bootstrap=yes
build_style=gnu-configure
short_desc="Version of the TLS/crypto stack forked from OpenSSL"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="OpenSSL-License, SSLeay-License, ISC"
homepage="http://www.libressl.org/"
distfiles="http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/${pkgname}-${version}.tar.gz"
checksum=4f331750abfc3b605b02eeca1e8994fa0d2629985bc3f62924378197fbfe572d
# Compat pkg that depends on the real pkgs.
depends="libcrypto34-${version}_${revision} libssl33-${version}_${revision} libtls4-${version}_${revision}"
if [ "$XBPS_TARGET_MACHINE" = "i686-musl" ]; then
# XXX disable SSP
configure_args+=" --disable-hardening"
elif [ "$XBPS_TARGET_MACHINE" = "armv5tel" ]; then
configure_args+=" --disable-asm"
fi
if [ "$CROSS_BUILD" ]; then
hostmakedepends="automake libtool"
pre_configure() {
autoreconf -fi
}
fi
post_install() {
vlicense COPYING
find ${DESTDIR}/usr/share/man/man1 -type f ! -name openssl.1 -delete
}
libcrypto34_package() {
short_desc+=" - crypto library"
pkg_install() {
vmove usr/lib/libcrypto.so.*
}
}
libssl33_package() {
short_desc+=" - SSL/TLS library"
pkg_install() {
vmove usr/lib/libssl.so.*
}
}
libtls4_package() {
short_desc+=" - new TLS library"
pkg_install() {
vmove usr/lib/libtls.so.*
}
}
libressl-devel_package() {
short_desc+=" - development files"
depends="libressl-${version}_${revision}"
conflicts="openssl-devel>=0"
pkg_install() {
vmove usr/include
vmove usr/lib/*.a
vmove usr/lib/*.so
vmove usr/lib/pkgconfig
vmove usr/share/man/man3
}
}
libressl-openssl_package() {
short_desc+=" - utilities"
provides="openssl-${version}_${revision}"
replaces="openssl>=0"
conf_files="/etc/ssl/openssl.cnf"
pkg_install() {
vinstall ${FILESDIR}/openssl.cnf 644 etc/ssl
vmove usr/bin
vmove usr/share/man/man1
}
}