# Contributor: Sören Tempel # Contributor: Dean Takemori # Contributor: Jakub Jirutka # Maintainer: Jakub Jirutka pkgname=stunnel pkgver=5.70 pkgrel=0 pkgdesc="SSL encryption wrapper between network client and server" url="https://www.stunnel.org" arch="all" license="GPL-2.0-or-later with OpenSSL exception" # support for SO_ORIGINAL_DST will be silently disabled without linux-headers makedepends="openssl-dev>3 linux-headers" checkdepends="python3" subpackages="$pkgname-doc $pkgname-openrc" install="$pkgname.pre-install" source="https://www.stunnel.org/archive/${pkgver%%.*}.x/stunnel-$pkgver.tar.gz stunnel.initd stunnel.conf" prepare() { default_prepare # remove FIPS-related tests rm tests/plugins/p10_fips.py rm tests/plugins/p11_fips_cipher.py # Hangs forever on s390x. if [ "$CARCH" = s390x ]; then rm tests/plugins/p02_require_cert.py fi } build() { ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --disable-fips make } check() { timeout 300 \ make check } package() { 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=" f3fd1c248561d300932ebf64988f4de6596be898bbfe8f370566d9fd9eafef294704f85ed9699410377d7f1c4c27f8ba0edbaabccca87fac7d5a40ac90a3b837 stunnel-5.70.tar.gz 51d56a6c0d961f6de5cd2ef07a1cfdb19fb1b74300da9c340899daa919bd9b2c0bfff472f03746df0dd1aa6098c79035921ca36108ca0b93693377f1ac1c7fb4 stunnel.initd a72bfddeb74787d58c9fd24782d86c0498ce3530a43fbdd4ec4c4b57baa6257b6ef21005aca274b22c4a22cdbbbcee63dd3d841f458af248db9c69e8d59fa56f stunnel.conf "