# Description: VPN (Virtual Private Network) daemon # URL: https://www.tinc-vpn.org/ # Maintainer: Erich Eckner, crux at eckner dot net # Depends on: lzo openssl zlib name=tinc version=1.0.36 release=1 source=("https://www.tinc-vpn.org/packages/tinc-$version.tar.gz" "graph.patch") build() { cd ${name}-${version} patch -p1 -i ../graph.patch ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --sbindir=/usr/bin make make DESTDIR=$PKG install install -dm755 "$PKG"/usr/share/tinc/examples cp -a doc/sample-config/. "$PKG"/usr/share/tinc/examples/ find "$PKG"/usr/share/tinc/examples -type f -exec chmod 644 {} + find "$PKG"/usr/share/tinc/examples -type d -exec chmod 755 {} + rm "$PKG/usr/share/info/dir" }