# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=anytun pkgver=0.3.7 pkgrel=1 pkgdesc="Secure anycast tunneling protocol implementation for flexible and fault-tolerant VPNs" url="http://www.anytun.org" arch="all" license="GPL-3.0" depends="" depends_dev="openssl-dev boost-dev linux-headers" makedepends="$depends_dev" install="" subpackages="$pkgname-dev $pkgname-doc" source="http://www.anytun.org/download/$pkgname-$pkgver.tar.gz fix-werror-compile-flags.patch fix-iostream.patch $pkgname.initd" _builddir="$srcdir"/$pkgname-$pkgver/src prepare() { local i cd "$_builddir" cd .. for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --use-ssl-crypto \ --examplesdir=/usr/share/docs || return 1 make || return 1 } package() { cd "$_builddir" mkdir -p ${pkgdir}/var/run/anytun ${pkgdir}/var/run/anytun-controld &>/dev/null make install DESTDIR="${pkgdir}" rm "${pkgdir}"/etc/init.d/$pkgname install -Dm 755 "$srcdir"/$pkgname.initd "${pkgdir}"/etc/init.d/$pkgname } sha512sums="bf1cccfd39b5190d7190590346be867de75ac7256d16648887b3988bdc01dccc4e5084cdad57990b753a55c12417a3c34f66a8871da035d79846aecc188e4578 anytun-0.3.7.tar.gz e2f23ed7183f7636716946458b108a7055beb190a89d462d815d164f61a5c52b268620f053e5bb169c48d4e9cd56ad2f1d3d65a23a202375ef13998c29f4fdf6 fix-werror-compile-flags.patch 4d1115733f8d3d467bdd6348df451dfb60bff45685406792514717d27a567e323f76b12b4406a6d784f20716c08b596d6c09842c60e81c67fdaf8b0eed9b7530 fix-iostream.patch a31455058e0ac60ed9457c79eea789ce19ba49abc200b59c0d8390eb0c3b6f09813177f9b679fb8ac69ac7b0be862e4604d19298ae4cd79925511fff3963e93d anytun.initd"