# Maintainer: Erich Eckner # Contributor: Johannes Löthberg # Contributor: Timothy Redaelli # Contributor: helios # Contributor: Lothar Gesslein # Contributor: Dominik George pkgname=tinc pkgver=1.0.36 pkgrel=10 pkgdesc="VPN (Virtual Private Network) daemon" url="https://www.tinc-vpn.org/" arch=('x86_64') license=('GPL') _pinned_dependencies=( 'glibc>=2.31' 'lzo=2.10' 'openssl=1.1.1.l' 'zlib=1:1.2.11' ) depends=( "${_pinned_dependencies[@]}" ) source=(https://www.tinc-vpn.org/packages/tinc-$pkgver.tar.gz{,.sig} graph.patch) sha512sums=('23af9162f7ae700bad01e1f59f23f32d1b183b185ec35f4a69a987c52c53cfebfa9e852203b399f035988078e9131e5d59b018554a52a30044f34df6e64b5289' 'SKIP' '3c506343a0a76ec6ac275be6270717934518c93e83ed9a004548591220a44db6847e9b2d2595677f758995bdaca83aeb2c1f22108084a76d66034afb21f34dc1') validpgpkeys=('D62BDD168EFBE48BC60E8E234A6084B9C0D71F4A') prepare() { cd tinc-$pkgver patch -p1 -i ../graph.patch } build() { cd tinc-$pkgver ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --sbindir=/usr/bin \ --with-systemd=/usr/lib/systemd/system make } package() { cd tinc-$pkgver make DESTDIR="$pkgdir/" install install -dm755 "$pkgdir"/usr/share/tinc/examples cp -a doc/sample-config/. "$pkgdir"/usr/share/tinc/examples/ find "$pkgdir"/usr/share/tinc/examples -type f -exec chmod 644 {} + find "$pkgdir"/usr/share/tinc/examples -type d -exec chmod 755 {} + }