void-packages/srcpkgs/libressl/template

77 lines
1.8 KiB
Bash
Raw Normal View History

2014-07-11 20:25:41 +02:00
# Template file for 'libressl'
pkgname=libressl
2015-03-19 16:38:29 +01:00
version=2.1.6
revision=3
2014-07-14 11:07:25 +02:00
bootstrap=yes
2014-07-11 20:25:41 +02:00
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"
2014-07-11 20:25:41 +02:00
homepage="http://www.libressl.org/"
distfiles="http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/${pkgname}-${version}.tar.gz"
2015-03-19 16:38:29 +01:00
checksum=4f826dd97b3b8001707073bde8401493f9cd4668465b481c042d28e3973653a8
2014-07-11 20:25:41 +02:00
# Compat pkg that depends on the real pkgs.
depends="libcrypto32-${version}_${revision} libssl32-${version}_${revision} libtls3-${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
2015-03-23 12:34:04 +01:00
hostmakedepends="automake libtool"
pre_configure() {
2015-03-23 12:34:04 +01:00
autoreconf -fi
}
fi
2014-07-11 20:25:41 +02:00
post_install() {
vlicense COPYING
find ${DESTDIR}/usr/share/man/man1 -type f ! -name openssl.1 -delete
2014-07-11 20:25:41 +02:00
}
libcrypto32_package() {
short_desc+=" - crypto library"
pkg_install() {
vmove usr/lib/libcrypto.so.*
}
}
libssl32_package() {
short_desc+=" - SSL/TLS library"
pkg_install() {
vmove usr/lib/libssl.so.*
}
}
libtls3_package() {
short_desc+=" - new TLS library"
pkg_install() {
vmove usr/lib/libtls.so.*
}
}
2014-07-11 20:25:41 +02:00
libressl-devel_package() {
short_desc+=" - development files"
depends="libressl-${version}_${revision}"
2014-07-11 20:25:41 +02:00
conflicts="openssl-devel>=0"
pkg_install() {
vmove usr/include
vmove usr/lib/*.a
vmove usr/lib/*.so
2014-07-14 08:26:11 +02:00
vmove usr/lib/pkgconfig
2014-07-11 20:25:41 +02:00
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
}
}