# Contributor: Alex Denes # Maintainer: Alex Denes pkgname=redxen-secret-dnssec pkgver="$(date +'%Y.%m.%d')" pkgrel=0 pkgdesc="Generated DNSSEC keys" url="https://git.redxen.eu/RedXen/aports" arch="noarch" license="none" makedepends="bind-dnssec-tools" options="!check" builddir="$srcdir" _dom=" redxen.eu " build() { for dom in $_dom; do mkdir "$dom" dnssec-keygen -K "$dom" -f KSK -a ECDSAP256SHA256 -n ZONE "$dom" dnssec-keygen -K "$dom" -a ECDSAP256SHA256 -n ZONE "$dom" chmod +r "$dom"/*.private # Required for other builds, not to be installed alone (security risk) done } package() { mkdir -p "$pkgdir/etc/dns" for dom in $_dom; do mv "$dom" "$pkgdir/etc/dns/$dom" done }