# Contributor: Alex Denes # Maintainer: Alex Denes _svcname=wireguard . ../APKBUILD-config.common pkgver=2021.02.18 pkgrel=0 subpackages="$pkgname-sysctl" source=" main.conf sysctl.conf " package() { install -Dm400 main.conf "$pkgdir"/etc/wireguard/rxmain.conf } sysctl() { install_if="redxen-config-wireguard" install -Dm644 "$srcdir"/sysctl.conf "$subpkgdir"/etc/sysctl.d/90-wireguard.conf } sha512sums="8bd4dea24c5f6b77b433507f63c2335befeadf7f504f7c1f090f6bbe688c8d6ddbce156e05a029f637296bfb1bcd3c5bf36f60a5f65954b661a4c932d37f3e40 main.conf b79ffbc64f2e193dc9402f7506b56b66892aa5387d13ac209ae344f9ce0f17aec3fdc503bf6855650d413dba3b66ffa3f937dd803850028579f5f5ed747c56b0 sysctl.conf"