# Contributor: Sören Tempel # Contributor: Dean Takemori # Contributor: Jakub Jirutka # Maintainer: Jakub Jirutka pkgname=stunnel pkgver=5.43 pkgrel=0 pkgdesc="SSL encryption wrapper between network client and server." url="http://www.stunnel.org/" arch="all" license="GPL2+ with OpenSSL exception" makedepends="libressl-dev" subpackages="$pkgname-doc" install="$pkgname.pre-install" source="http://www.stunnel.org/downloads/archive/${pkgver%.*}.x/stunnel-$pkgver.tar.gz stunnel-libressl.patch stunnel.initd stunnel.conf" builddir="$srcdir/$pkgname-$pkgver" build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --disable-fips make } check() { cd "$builddir" make check } package() { cd "$builddir" make DESTDIR="$pkgdir" install install -Dm755 "$srcdir"/stunnel.initd "$pkgdir"/etc/init.d/stunnel install -m644 "$srcdir"/stunnel.conf "$pkgdir"/etc/stunnel/stunnel.conf mkdir -p "$pkgdir"/usr/share/doc/$pkgname/examples/ mv "$pkgdir"/etc/stunnel/stunnel.conf-sample \ "$pkgdir"/usr/share/doc/$pkgname/examples/ } sha512sums="3158ab7573d8c548ee71aecb3f94e141bd80e123a62848945263004e28668050a8a08c904dbf61df28c4f5c1d94eb380943ab39835ccd18273a6acf05a3488a8 stunnel-5.43.tar.gz 63d24daa59fb7416929915a8d17f8dda21f1702f5a2f11cb45d6ac0d91478fa892805b209fa7e181ec5910b1c5cad8c06d11c05d15868f7f7da46d87a05a5820 stunnel-libressl.patch 33e215413e08fdd5783cc76e6ba6a2342fb6d0573f801815c4d3022625e71be6c9739d47a7a61bf7c803f27911b9c92cf6ae3e522add040f83802e1aaeaee000 stunnel.initd a72bfddeb74787d58c9fd24782d86c0498ce3530a43fbdd4ec4c4b57baa6257b6ef21005aca274b22c4a22cdbbbcee63dd3d841f458af248db9c69e8d59fa56f stunnel.conf"