diff options
author | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2018-03-06 16:46:05 +0200 |
---|---|---|
committer | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2018-03-06 16:47:09 +0200 |
commit | 784c1e8e1270396f8c09e8aba01ec7a441cda2a7 (patch) | |
tree | 5f7025f0dd9e816650540ed1ed887516a559dad1 | |
parent | bc54384fa92c0152dad7fd784e70aa265825db6a (diff) | |
download | aports-784c1e8e1270396f8c09e8aba01ec7a441cda2a7.tar.bz2 aports-784c1e8e1270396f8c09e8aba01ec7a441cda2a7.tar.xz |
testing/dmvpn: new package
-rw-r--r-- | testing/dmvpn/APKBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/testing/dmvpn/APKBUILD b/testing/dmvpn/APKBUILD new file mode 100644 index 0000000000..20064d15a2 --- /dev/null +++ b/testing/dmvpn/APKBUILD @@ -0,0 +1,42 @@ +# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> +# Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> +pkgname=dmvpn +pkgver=0.1.0 +pkgrel=0 +pkgdesc="Dynamic Multipoint VPN" +url="https://git.alpinelinux.org/cgit/dmvpn-tools/" +arch="noarch" +license="MIT" +depends="augeas bind-tools lua5.2 lua5.2-cqueues lua5.2-ossl lua5.2-posix + lua5.2-struct lua-asn1 quagga strongswan tunnel" +subpackages="$pkgname-ca" +options="!check" +source="$url/snapshot/dmvpn-tools-$pkgver.tar.bz2" +builddir="$srcdir/dmvpn-tools-$pkgver" + +build() { + : +} + +package() { + cd "$builddir" + + install -D -m 644 dmvpn-hub.awall "$pkgdir"/usr/share/awall/optional/dmvpn-hub.json + install -D dmvpn-pfx-decode "$pkgdir"/usr/libexec/dmvpn-pfx-decode + install -D -m 644 dmvpn.lua "$pkgdir"/usr/share/lua/5.2/dmvpn.lua + install -D -m 644 dmvpn.swanctl "$pkgdir"/etc/swanctl/conf.d/dmvpn.conf + install -D nhrp-events "$pkgdir"/usr/sbin/nhrp-events + install -D nhrp-events.initd "$pkgdir"/etc/init.d/nhrp-events + install -D setup-dmvpn "$pkgdir"/usr/sbin/setup-dmvpn +} + +ca() { + depends="lua5.2 lua5.2-lyaml lua5.2-ossl lua5.2-posix lua5.2-sql-sqlite3 + lua5.2-stringy lua-asn1" + + cd "$builddir" + + install -D dmvpn-ca "$subpkgdir"/usr/bin/dmvpn-ca + install -D -m 644 dmvpn-ca.conf "$subpkgdir"/etc/dmvpn-ca.conf +} +sha512sums="d1511407820a789159156249ebb46e3a862d772f293c79bd369f8f6a11358aec7a904f4f111cf843e0d71092c666e208580c3fceeabe601cd97f1d4828b07bd6 dmvpn-tools-0.1.0.tar.bz2" |