2014-07-11 20:25:41 +02:00
|
|
|
# Template file for 'libressl'
|
|
|
|
pkgname=libressl
|
2015-01-22 11:23:06 +01:00
|
|
|
version=2.1.3
|
|
|
|
revision=1
|
2014-07-14 11:07:25 +02:00
|
|
|
bootstrap=yes
|
2014-07-11 20:25:41 +02:00
|
|
|
build_style=gnu-configure
|
2015-01-03 10:29:03 +01:00
|
|
|
configure_args="--enable-libtls"
|
2015-01-22 10:55:14 +01:00
|
|
|
short_desc="Version of the TLS/crypto stack forked from OpenSSL"
|
2014-07-11 20:25:41 +02:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2014-07-18 15:48:21 +02:00
|
|
|
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-01-22 11:23:06 +01:00
|
|
|
checksum=eb2f370971408fb10af6453e556465c8eee728ac333bf1eb47ec1a5112304f7c
|
2014-07-11 20:25:41 +02:00
|
|
|
|
2015-01-22 10:55:14 +01:00
|
|
|
# Compat pkg that depends on the real pkgs.
|
2015-01-22 11:23:06 +01:00
|
|
|
depends="libcrypto30-${version}_${revision} libssl30-${version}_${revision} libtls1-${version}_${revision}"
|
2015-01-22 10:55:14 +01:00
|
|
|
|
2014-10-20 13:14:36 +02:00
|
|
|
post_build() {
|
2015-01-03 10:29:03 +01:00
|
|
|
$CC -Wall $CFLAGS -DHAVE_STRNDUP -Iinclude -Lcrypto/.libs \
|
|
|
|
$LDFLAGS ${FILESDIR}/c_rehash.c -o ${wrksrc}/c_rehash -lcrypto
|
2014-10-20 13:14:36 +02:00
|
|
|
}
|
2014-07-11 20:25:41 +02:00
|
|
|
post_install() {
|
|
|
|
vlicense COPYING
|
2014-11-11 17:55:16 +01:00
|
|
|
find ${DESTDIR}/usr/share/man/man1 -type f ! -name openssl.1 -delete
|
2014-07-11 20:25:41 +02:00
|
|
|
}
|
|
|
|
|
2015-01-22 10:55:14 +01:00
|
|
|
libcrypto30_package() {
|
|
|
|
short_desc+=" - crypto library"
|
|
|
|
replaces="libressl<2.1.2_3"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/libcrypto.so.*
|
|
|
|
}
|
|
|
|
}
|
2015-01-22 11:23:06 +01:00
|
|
|
libssl30_package() {
|
2015-01-22 10:55:14 +01:00
|
|
|
short_desc+=" - SSL/TLS library"
|
|
|
|
replaces="libressl<2.1.2_3"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/libssl.so.*
|
|
|
|
}
|
|
|
|
}
|
|
|
|
libtls1_package() {
|
|
|
|
short_desc+=" - new TLS library"
|
|
|
|
replaces="libressl<2.1.2_3"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/libtls.so.*
|
|
|
|
}
|
|
|
|
}
|
2014-07-11 20:25:41 +02:00
|
|
|
libressl-devel_package() {
|
|
|
|
short_desc+=" - development files"
|
2015-01-22 11:23:06 +01:00
|
|
|
depends="libcrypto30-${version}_${revision} libssl30-${version}_${revision} libtls1-${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
|
|
|
|
}
|
|
|
|
}
|
2014-07-14 10:58:22 +02:00
|
|
|
libressl-openssl_package() {
|
2014-07-24 15:31:05 +02:00
|
|
|
short_desc+=" - utilities"
|
2014-10-20 13:14:36 +02:00
|
|
|
provides="openssl-${version}_${revision}"
|
2015-01-22 10:55:14 +01:00
|
|
|
replaces="openssl>=0"
|
2014-07-18 15:58:51 +02:00
|
|
|
conf_files="/etc/ssl/openssl.cnf"
|
2014-07-14 10:58:22 +02:00
|
|
|
pkg_install() {
|
2014-07-18 16:02:38 +02:00
|
|
|
vinstall ${FILESDIR}/openssl.cnf 644 etc/ssl
|
2014-07-14 10:58:22 +02:00
|
|
|
vmove usr/bin
|
|
|
|
vmove usr/share/man/man1
|
2014-10-20 13:14:36 +02:00
|
|
|
vbin ${wrksrc}/c_rehash
|
2014-07-14 10:58:22 +02:00
|
|
|
}
|
|
|
|
}
|