void-packages/srcpkgs/libressl/template

77 lines
1.9 KiB
Bash

# Template file for 'libressl'
pkgname=libressl
version=2.2.3
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=a1ccc21adf91d60e99246031b99c930c9af5e1b1b5a61b1bec87beef6f16d882
# Compat pkg that depends on the real pkgs.
depends="libcrypto35-${version}_${revision} libssl35-${version}_${revision} libtls6-${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
}
libcrypto35_package() {
short_desc+=" - crypto library"
pkg_install() {
vmove usr/lib/libcrypto.so.*
}
}
libssl35_package() {
short_desc+=" - SSL/TLS library"
pkg_install() {
vmove usr/lib/libssl.so.*
}
}
libtls6_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 /etc/ssl/cert.pem /etc/ssl/x509v3.cnf"
pkg_install() {
vmove etc
vmove usr/bin
vmove usr/share/man/man1
}
}