Date: Sunday, October 6, 2019 @ 16:09:36 Author: archange Revision: 513575
Initial addition of libressl to [community] Added: libressl/ libressl/repos/ libressl/trunk/ libressl/trunk/PKGBUILD ----------+ PKGBUILD | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) Added: libressl/trunk/PKGBUILD =================================================================== --- libressl/trunk/PKGBUILD (rev 0) +++ libressl/trunk/PKGBUILD 2019-10-06 16:09:36 UTC (rev 513575) @@ -0,0 +1,55 @@ +# Maintainer: Levente Polyak <[email protected]> +# Maintainer: Bruno Pagani <[email protected]> +# Contributor: Maarten de Vries <[email protected]> +# Contributor: Reventlov <[email protected]> +# Contributor: kpcyrd <[email protected]> + +pkgname=libressl +pkgver=3.0.1 +pkgrel=1 +pkgdesc="Free version of the TLS/crypto stack forked from OpenSSL" +arch=(x86_64) +url="http://www.libressl.org/" +license=(ISC custom:OpenSSL) +depends=(glibc) +optdepends=(ca-certificates) +makedepends=(gawk autoconf) +backup=(etc/libressl/openssl.cnf) +source=(https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-${pkgver}.tar.gz{,.asc}) +sha512sums=('d2d665734d8aab2b998769492cbb1e7fddead52430ef503650c14786196241a6d1137f47b33ddf2037cc1ff13c240283f591dce83ec0da475619679a051d725f' + 'SKIP') +validpgpkeys=(A1EB079B8D3EB92B4EBD3139663AF51BD5E4D8D5) # Brent Cook <[email protected]> + +prepare() { + cd ${pkgname}-${pkgver} + autoreconf -vfi +} + +build() { + cd ${pkgname}-${pkgver} + ./configure \ + --prefix=/usr \ + --with-openssldir=/etc/libressl \ + --libdir=/usr/lib/libressl \ + --includedir=/usr/include/libressl \ + --program-prefix "libressl-" + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + make +} + +check() { + cd ${pkgname}-${pkgver} + make check +} + +package() { + cd ${pkgname}-${pkgver} + make DESTDIR="${pkgdir}" install + install -Dm644 COPYING -t "${pkgdir}"/usr/share/licenses/${pkgname}/ + + # Remove symlink man pages, that actually points to OpenSSL ones since the prefix is not accounted for + for manlink in $(find -L "${pkgdir}"/usr/share/man/man3/ -type l) ; + do + rm "${manlink}" ; + done +}
