# Contributor: Kaarle Ritvanen # Maintainer: Kaarle Ritvanen pkgname=dmvpn pkgver=0.1.1 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-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="48a7810ef7d55362a512e231a8537f62310c47748d698458fc1878f7eab89a3506951afe9e5ae9ad83fdccf5a6cf661ecffbcd0a64ccd4443f0021e629979624 dmvpn-tools-0.1.1.tar.bz2"