70 lines
1.7 KiB
Bash
70 lines
1.7 KiB
Bash
# Template file for 'libressl'
|
|
pkgname=libressl
|
|
version=2.3.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=76733166187cc8587e0ebe1e83965ef257262a1a676a36806edd3b6d51b50aa9
|
|
|
|
provides="openssl-${version}_${revision}"
|
|
replaces="openssl>=0"
|
|
conf_files="/etc/ssl/openssl.cnf /etc/ssl/x509v3.cnf"
|
|
|
|
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() {
|
|
# Use CA file from ca-certificates instead.
|
|
rm -f ${DESTDIR}/etc/ssl/cert.pem
|
|
ln -s certs.pem ${DESTDIR}/etc/ssl/cert.pem
|
|
|
|
vlicense COPYING
|
|
find ${DESTDIR}/usr/share/man/man1 -type f ! -name openssl.1 -delete
|
|
}
|
|
|
|
libcrypto37_package() {
|
|
short_desc+=" - crypto library"
|
|
pkg_install() {
|
|
vmove usr/lib/libcrypto.so.*
|
|
}
|
|
}
|
|
libssl38_package() {
|
|
short_desc+=" - SSL/TLS library"
|
|
pkg_install() {
|
|
vmove usr/lib/libssl.so.*
|
|
}
|
|
}
|
|
libtls10_package() {
|
|
short_desc+=" - new TLS library"
|
|
pkg_install() {
|
|
vmove usr/lib/libtls.so.*
|
|
}
|
|
}
|
|
libressl-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="libcrypto37-${version}_${revision} libssl38-${version}_${revision} libtls10-${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/*.a
|
|
vmove usr/lib/*.so
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/share/man/man3
|
|
}
|
|
}
|