Skip to content
Snippets Groups Projects
Commit 0a1b3713 authored by Leo's avatar Leo
Browse files

community/anytun: modernize, fix license, fix url

parent b2aaa90d
No related merge requests found
...@@ -2,45 +2,32 @@ ...@@ -2,45 +2,32 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org> # Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=anytun pkgname=anytun
pkgver=0.3.7 pkgver=0.3.7
pkgrel=1 pkgrel=2
pkgdesc="Secure anycast tunneling protocol implementation for flexible and fault-tolerant VPNs" pkgdesc="Secure anycast tunneling protocol implementation for flexible and fault-tolerant VPNs"
url="http://www.anytun.org" options="!check" # No testsuite
url="https://www.anytun.org/"
arch="all" arch="all"
license="GPL-3.0" license="GPL-3.0-or-later"
depends=""
depends_dev="openssl-dev boost-dev linux-headers" depends_dev="openssl-dev boost-dev linux-headers"
makedepends="$depends_dev" makedepends="$depends_dev"
install="" subpackages="$pkgname-dev $pkgname-doc $pkgname-openrc"
subpackages="$pkgname-dev $pkgname-doc"
source="http://www.anytun.org/download/$pkgname-$pkgver.tar.gz source="http://www.anytun.org/download/$pkgname-$pkgver.tar.gz
fix-werror-compile-flags.patch fix-werror-compile-flags.patch
fix-iostream.patch fix-iostream.patch
$pkgname.initd" $pkgname.initd"
_builddir="$srcdir"/$pkgname-$pkgver/src 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() { build() {
cd "$_builddir"
./configure \ ./configure \
--prefix=/usr \ --prefix=/usr \
--sysconfdir=/etc \ --sysconfdir=/etc \
--use-ssl-crypto \ --use-ssl-crypto \
--examplesdir=/usr/share/docs || return 1 --examplesdir=/usr/share/docs
make || return 1 make
} }
package() { package() {
cd "$_builddir"
mkdir -p ${pkgdir}/var/run/anytun ${pkgdir}/var/run/anytun-controld &>/dev/null mkdir -p ${pkgdir}/var/run/anytun ${pkgdir}/var/run/anytun-controld &>/dev/null
make install DESTDIR="${pkgdir}" make install DESTDIR="${pkgdir}"
rm "${pkgdir}"/etc/init.d/$pkgname rm "${pkgdir}"/etc/init.d/$pkgname
...@@ -48,6 +35,6 @@ package() { ...@@ -48,6 +35,6 @@ package() {
} }
sha512sums="bf1cccfd39b5190d7190590346be867de75ac7256d16648887b3988bdc01dccc4e5084cdad57990b753a55c12417a3c34f66a8871da035d79846aecc188e4578 anytun-0.3.7.tar.gz sha512sums="bf1cccfd39b5190d7190590346be867de75ac7256d16648887b3988bdc01dccc4e5084cdad57990b753a55c12417a3c34f66a8871da035d79846aecc188e4578 anytun-0.3.7.tar.gz
e2f23ed7183f7636716946458b108a7055beb190a89d462d815d164f61a5c52b268620f053e5bb169c48d4e9cd56ad2f1d3d65a23a202375ef13998c29f4fdf6 fix-werror-compile-flags.patch 25c870750e2358afbf40d9fffb5d53aed84b8d763dd78fe698a124e362cd3d3eb6a850b59cb3bb50b0dbd51dd86944198d4a18b5c8a799561f53e76797e2c1e9 fix-werror-compile-flags.patch
4d1115733f8d3d467bdd6348df451dfb60bff45685406792514717d27a567e323f76b12b4406a6d784f20716c08b596d6c09842c60e81c67fdaf8b0eed9b7530 fix-iostream.patch 8c2eece0357666867f8cd9c7ef9307bcf88b9172ac033c18bd33ba470b3c19ad722c7eeafcda3a9ae95539d86ab04285fe5d7fa9766630f689c58e2c3fb239c3 fix-iostream.patch
a31455058e0ac60ed9457c79eea789ce19ba49abc200b59c0d8390eb0c3b6f09813177f9b679fb8ac69ac7b0be862e4604d19298ae4cd79925511fff3963e93d anytun.initd" a31455058e0ac60ed9457c79eea789ce19ba49abc200b59c0d8390eb0c3b6f09813177f9b679fb8ac69ac7b0be862e4604d19298ae4cd79925511fff3963e93d anytun.initd"
--- a/src/routingTreeNode.cpp.orig 2018-03-27 19:30:45.345569478 +0300 --- a/routingTreeNode.cpp.orig 2018-03-27 19:30:45.345569478 +0300
+++ b/src/routingTreeNode.cpp 2018-03-27 19:30:53.217662424 +0300 +++ b/routingTreeNode.cpp 2018-03-27 19:30:53.217662424 +0300
@@ -44,6 +44,7 @@ @@ -44,6 +44,7 @@
*/ */
......
diff --git a/src/configure b/src/configure diff --git a/src/configure b/src/configure
index 65a0c74..357628e 100755 index 65a0c74..357628e 100755
--- a/src/configure --- a/configure
+++ b/src/configure +++ b/configure
@@ -217,8 +217,8 @@ if [ -n "$ERRORS" ] && [ $EBUILD_COMPAT -ne 1 ]; then @@ -217,8 +217,8 @@ if [ -n "$ERRORS" ] && [ $EBUILD_COMPAT -ne 1 ]; then
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment