diff options
author | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2018-09-14 18:00:50 +0300 |
---|---|---|
committer | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2018-09-14 18:00:50 +0300 |
commit | 9fba782f23e05e16a3eb9c532d278a0db9c5ea8f (patch) | |
tree | d0f314ca85989c08a92ef92e156c8508187e9f37 /main/dmvpn | |
parent | 08a6acf23e0c40f676419a3013101869937da695 (diff) | |
download | aports-9fba782f23e05e16a3eb9c532d278a0db9c5ea8f.tar.bz2 aports-9fba782f23e05e16a3eb9c532d278a0db9c5ea8f.tar.xz |
main/dmvpn: moved from testing
Diffstat (limited to 'main/dmvpn')
-rw-r--r-- | main/dmvpn/APKBUILD | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/main/dmvpn/APKBUILD b/main/dmvpn/APKBUILD new file mode 100644 index 0000000000..afcf486b6d --- /dev/null +++ b/main/dmvpn/APKBUILD @@ -0,0 +1,61 @@ +# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> +# Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> +pkgname=dmvpn +pkgver=0.6.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-lyaml lua5.2-ossl + lua5.2-posix lua5.2-struct lua-dmvpn quagga strongswan tunnel" +subpackages="dmvpn-ca dmvpn-crl-dp lua-dmvpn" +options="!check" +source="$url/snapshot/dmvpn-tools-$pkgver.tar.bz2" +builddir="$srcdir/dmvpn-tools-$pkgver" + +build() { + : +} + +package() { + cd "$builddir" + + install -D -m 644 dmvpn.awall "$pkgdir"/usr/share/awall/optional/dmvpn.json + 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.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 lua-dmvpn" + + cd "$builddir" + + install -D dmvpn-ca "$subpkgdir"/usr/bin/dmvpn-ca + install -D -m 644 dmvpn-ca.conf "$subpkgdir"/etc/dmvpn-ca.conf +} + +dp() { + depends=lighttpd + + local bin=/usr/bin/dmvpn-crl-update + install -D "$builddir"/dmvpn-crl-update "$subpkgdir$bin" + + local dir=$subpkgdir/etc/periodic/15min + mkdir -p "$dir" + ln -s $bin "$dir" +} + +dmvpn() { + depends=lua-asn1 + + cd "$builddir" + install -D -m 644 dmvpn.lua "$subpkgdir"/usr/share/lua/5.2/dmvpn.lua +} + +sha512sums="0232a9b9a181f769dfeccd94ad063e7b7b24e885a7b026ab3eb94393aed06f910dae0fc2a19579f355d2e2a356d3cd3dba32a688eeb05eda7dd3cd1d44a66161 dmvpn-tools-0.6.0.tar.bz2" |