diff options
author | Chris Severance | 2015-11-07 16:10:49 -0500 |
---|---|---|
committer | Chris Severance | 2015-11-07 16:10:49 -0500 |
commit | 4f988887e6939dc9f2ad35d83814c37641b11ead (patch) | |
tree | bbd6847b9bd5acb5d9f11730419bf7b85d80f459 | |
download | aur-4f988887e6939dc9f2ad35d83814c37641b11ead.tar.gz |
Initial Import
-rw-r--r-- | .SRCINFO | 25 | ||||
-rw-r--r-- | PKGBUILD | 62 | ||||
-rw-r--r-- | gvpe.conf.example | 14 | ||||
-rw-r--r-- | gvpe@.service | 11 | ||||
-rw-r--r-- | if-up | 7 | ||||
-rw-r--r-- | node-down | 4 | ||||
-rw-r--r-- | node-up | 4 |
7 files changed, 127 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..7fe286a42aa6 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,25 @@ +pkgbase = gvpe + pkgdesc = Simple and robust virtual network solution + pkgver = 2.25 + pkgrel = 2 + url = http://software.schmorp.de/pkg/gvpe.html + arch = x86_64 + arch = i686 + license = GPL3 + depends = bash + depends = openssl + source = http://ftp.gnu.org/gnu/gvpe/gvpe-2.25.tar.gz + source = gvpe@.service + source = if-up + source = node-up + source = node-down + source = gvpe.conf.example + sha256sums = 73c32d9a28fadd6aa531e0fed27c7a96bc0e5e9a5626ebf70368eaad3dbb51bf + sha256sums = 60a6b5f03524ede9e9fa2538623b7a808cf02e41f91e800b7c1afe039effd28f + sha256sums = 89ea3660f780aabc37adcb621dbfd7cffa70b463c0251f03ad05c58fc564a762 + sha256sums = 8a74c5c3fcea5586fc72d6c8c2c30a23b3dd32e92bf1674b29a126a0c8ac2fa3 + sha256sums = 1ae1ad31a0d91fac1764111acbc5fef6d5edf6876c24b44f97cf1b1e9be9b89c + sha256sums = 1d01d9f384fb1baa4f15fcc43ab8b3f8fb68250b88cd639010ff00a8a0f7b4ac + +pkgname = gvpe + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a45bd50d5c7a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,62 @@ +# Maintainer: Chris Severance aur.severach aATt spamgourmet dott com +# Contributor: Vadim Kaushan <admin@disasm.info> +# Contributor: Marc Lehmann <schmorpforge@schmorp.de> + +set -u +pkgname='gvpe' +pkgver='2.25' +pkgrel='2' +pkgdesc='Simple and robust virtual network solution' +arch=('x86_64' 'i686') +url='http://software.schmorp.de/pkg/gvpe.html' +license=('GPL3') +depends=('bash' 'openssl') +_verwatch=('http://ftp.gnu.org/gnu/gvpe/' 'gvpe-\([0-9\.]\+\)\.tar\.gz' 't') +source=("http://ftp.gnu.org/gnu/gvpe/${pkgname}-${pkgver}.tar.gz" + 'gvpe@.service' + 'if-up' + 'node-up' + 'node-down' + 'gvpe.conf.example') +sha256sums=('73c32d9a28fadd6aa531e0fed27c7a96bc0e5e9a5626ebf70368eaad3dbb51bf' + '60a6b5f03524ede9e9fa2538623b7a808cf02e41f91e800b7c1afe039effd28f' + '89ea3660f780aabc37adcb621dbfd7cffa70b463c0251f03ad05c58fc564a762' + '8a74c5c3fcea5586fc72d6c8c2c30a23b3dd32e92bf1674b29a126a0c8ac2fa3' + '1ae1ad31a0d91fac1764111acbc5fef6d5edf6876c24b44f97cf1b1e9be9b89c' + '1d01d9f384fb1baa4f15fcc43ab8b3f8fb68250b88cd639010ff00a8a0f7b4ac') + +prepare() { + set -u + cd "${pkgname}-${pkgver}" + + CFLAGS="-Wno-unused-result ${CFLAGS}" \ + CXXFLAGS="-Wno-unused-result ${CXXFLAGS}" \ + ./configure --prefix='/usr' --sysconfdir='/etc' --localstatedir='/var' --sbindir='/usr/bin' + set +u +} + +build() { + set -u + cd "${pkgname}-${pkgver}" + + make -s -j "$(nproc)" + set +u +} + +package() { + set -u + cd "${pkgname}-${pkgver}" + make -s DESTDIR="${pkgdir}" install + + install -Dpm644 'doc/complex-example'/{README,gvpe.conf,if-up,node-up} -t "${pkgdir}/usr/share/doc/gvpe/complex-example" + + cd "${srcdir}" + install -Dpm644 'gvpe@.service' -t "${pkgdir}/usr/lib/systemd/system/" + install -dm700 "${pkgdir}/etc/gvpe/pubkey" + install -Dpm700 {if-up,node-up,node-down} -t "${pkgdir}/etc/gvpe/" + install -Dpm600 'gvpe.conf.example' "${pkgdir}/etc/gvpe/gvpe.conf.example" + set +u +} +set +u + +# vim:set ts=2 sw=2 et: diff --git a/gvpe.conf.example b/gvpe.conf.example new file mode 100644 index 000000000000..3f02c6213bd5 --- /dev/null +++ b/gvpe.conf.example @@ -0,0 +1,14 @@ +# global options for all nodes +udp-port = 5407 +mtu = 1492 +ifname = vpn0 + +# @node1 +node = node1 +hostname = 1.2.3.4 +enable-udp = yes + +# @node2 +node = node2 +hostname = 2.3.4.5 +enable-udp = yes diff --git a/gvpe@.service b/gvpe@.service new file mode 100644 index 000000000000..2552dc7ec1bb --- /dev/null +++ b/gvpe@.service @@ -0,0 +1,11 @@ +[Unit] +Description=gvpe service for node %i +After=network.target + +[Service] +Type=forking +PIDFile=/var/run/gvpe.pid +ExecStart=/usr/sbin/gvpe %i + +[Install] +WantedBy=multi-user.target diff --git a/if-up b/if-up new file mode 100644 index 000000000000..2c646709d857 --- /dev/null +++ b/if-up @@ -0,0 +1,7 @@ +#!/bin/sh + +# Script which is executed as soon as the virtual network device has been allocated. +# Purpose is to further configure that device. + +#ifconfig vpn0 inet 10.10.1.1 +#ifconfig vpn0 up diff --git a/node-down b/node-down new file mode 100644 index 000000000000..d33069ae1400 --- /dev/null +++ b/node-down @@ -0,0 +1,4 @@ +#!/bin/sh + +# Script which is executed whenever a connection to another node is lost. +# for example to run nsupdate. diff --git a/node-up b/node-up new file mode 100644 index 000000000000..9e04a6930ba8 --- /dev/null +++ b/node-up @@ -0,0 +1,4 @@ +#!/bin/sh + +# Script which is executed whenever a node connects to this node. +# This can be used for example to run nsupdate. |