# Compiling Time: 0.09 SBU # Maintainer: Miklos Vajna pkgname=stunnel pkgver=5.53 pkgrel=1 pkgdesc="Universal SSL Wrapper" url="https://www.stunnel.org" depends=('zlib' 'openssl>=1.1.1') rodepends=('perl') groups=('network-extra') archs=('x86_64') up2date="lynx -dump http://www.stunnel.org/?page=versions|grep -m1 'Version '|sed 's/.*Version \(.*\) released.*/\1/'" source=($url/downloads/$pkgname-$pkgver.tar.gz \ README.Frugalware) backup=('etc/stunnel/stunnel.conf') signatures=($source.asc '') _F_systemd_units=(stunnel=) Finclude systemd build() { # no certificate in the fpm, thx Fsed '^install-data-local:' 'do-not-run-this:' tools/Makefile.in # no /usr/etc, /usr/var, etc Fsed '@prefix@' '' tools/stunnel.conf-sample.in Fbuild --disable-libwrap Fexec cd tools || Fdie Ffilerel /etc/stunnel/stunnel.conf Fmkdir /var/lib/stunnel Fexec chown 99:99 $Fdestdir/var/lib/stunnel Ffilerel /lib/systemd/system/stunnel.service Fgenscriptlet } # optimization OK