2014-07-11 18:25:41 +00:00
|
|
|
# Template file for 'libressl'
|
|
|
|
pkgname=libressl
|
2015-03-19 15:38:29 +00:00
|
|
|
version=2.1.6
|
2015-05-01 10:03:39 +00:00
|
|
|
revision=3
|
2014-07-14 09:07:25 +00:00
|
|
|
bootstrap=yes
|
2014-07-11 18:25:41 +00:00
|
|
|
build_style=gnu-configure
|
2015-01-22 09:55:14 +00:00
|
|
|
short_desc="Version of the TLS/crypto stack forked from OpenSSL"
|
2015-04-10 07:16:30 +00:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2014-07-18 13:48:21 +00:00
|
|
|
license="OpenSSL-License, SSLeay-License, ISC"
|
2014-07-11 18:25:41 +00:00
|
|
|
homepage="http://www.libressl.org/"
|
|
|
|
distfiles="http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/${pkgname}-${version}.tar.gz"
|
2015-03-19 15:38:29 +00:00
|
|
|
checksum=4f826dd97b3b8001707073bde8401493f9cd4668465b481c042d28e3973653a8
|
2014-07-11 18:25:41 +00:00
|
|
|
|
2015-01-22 09:55:14 +00:00
|
|
|
# Compat pkg that depends on the real pkgs.
|
2015-03-04 14:54:23 +00:00
|
|
|
depends="libcrypto32-${version}_${revision} libssl32-${version}_${revision} libtls3-${version}_${revision}"
|
2015-01-22 09:55:14 +00:00
|
|
|
|
2015-03-06 09:36:59 +00:00
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "i686-musl" ]; then
|
|
|
|
# XXX disable SSP
|
2015-03-06 09:49:22 +00:00
|
|
|
configure_args+=" --disable-hardening"
|
2015-05-01 10:03:39 +00:00
|
|
|
elif [ "$XBPS_TARGET_MACHINE" = "armv5tel" ]; then
|
|
|
|
configure_args+=" --disable-asm"
|
2015-03-06 09:36:59 +00:00
|
|
|
fi
|
|
|
|
|
2015-02-26 06:37:21 +00:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
2015-03-23 11:34:04 +00:00
|
|
|
hostmakedepends="automake libtool"
|
2015-02-26 06:37:21 +00:00
|
|
|
pre_configure() {
|
2015-03-23 11:34:04 +00:00
|
|
|
autoreconf -fi
|
2015-02-26 06:37:21 +00:00
|
|
|
}
|
|
|
|
fi
|
|
|
|
|
2014-07-11 18:25:41 +00:00
|
|
|
post_install() {
|
|
|
|
vlicense COPYING
|
2014-11-11 16:55:16 +00:00
|
|
|
find ${DESTDIR}/usr/share/man/man1 -type f ! -name openssl.1 -delete
|
2014-07-11 18:25:41 +00:00
|
|
|
}
|
|
|
|
|
2015-03-04 14:54:23 +00:00
|
|
|
libcrypto32_package() {
|
2015-01-22 09:55:14 +00:00
|
|
|
short_desc+=" - crypto library"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/libcrypto.so.*
|
|
|
|
}
|
|
|
|
}
|
2015-03-04 14:54:23 +00:00
|
|
|
libssl32_package() {
|
2015-01-22 09:55:14 +00:00
|
|
|
short_desc+=" - SSL/TLS library"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/libssl.so.*
|
|
|
|
}
|
|
|
|
}
|
2015-03-04 14:54:23 +00:00
|
|
|
libtls3_package() {
|
2015-01-22 09:55:14 +00:00
|
|
|
short_desc+=" - new TLS library"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/libtls.so.*
|
|
|
|
}
|
|
|
|
}
|
2014-07-11 18:25:41 +00:00
|
|
|
libressl-devel_package() {
|
|
|
|
short_desc+=" - development files"
|
2015-03-04 14:54:23 +00:00
|
|
|
depends="libressl-${version}_${revision}"
|
2014-07-11 18:25:41 +00:00
|
|
|
conflicts="openssl-devel>=0"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/*.a
|
|
|
|
vmove usr/lib/*.so
|
2014-07-14 06:26:11 +00:00
|
|
|
vmove usr/lib/pkgconfig
|
2014-07-11 18:25:41 +00:00
|
|
|
vmove usr/share/man/man3
|
|
|
|
}
|
|
|
|
}
|
2014-07-14 08:58:22 +00:00
|
|
|
libressl-openssl_package() {
|
2014-07-24 13:31:05 +00:00
|
|
|
short_desc+=" - utilities"
|
2014-10-20 11:14:36 +00:00
|
|
|
provides="openssl-${version}_${revision}"
|
2015-01-22 09:55:14 +00:00
|
|
|
replaces="openssl>=0"
|
2014-07-18 13:58:51 +00:00
|
|
|
conf_files="/etc/ssl/openssl.cnf"
|
2014-07-14 08:58:22 +00:00
|
|
|
pkg_install() {
|
2014-07-18 14:02:38 +00:00
|
|
|
vinstall ${FILESDIR}/openssl.cnf 644 etc/ssl
|
2014-07-14 08:58:22 +00:00
|
|
|
vmove usr/bin
|
|
|
|
vmove usr/share/man/man1
|
|
|
|
}
|
|
|
|
}
|