Alex Denes
8df9fdc4ab
- More templating and inheritance - New commands + rx_replace + rx_install + rx_cpkgdir - More transparency with secrets being sourced as variables and replaced - Modularization of configs + telegraf + nginx (partial) + fastd + wireguard + unbound - Split of unbound configurations and bind zones - Bumping of key versions (rolling keys) + ZSK/KSK + OpenDKIM - Relaxed permission defaults and other smaller tweaks...
31 lines
619 B
Plaintext
31 lines
619 B
Plaintext
# Contributor: Alex Denes <caskd@redxen.eu>
|
|
# Maintainer: Alex Denes <caskd@redxen.eu>
|
|
|
|
. ../APKBUILD-secret.template
|
|
|
|
pkgver="$pkgver.01"
|
|
pkgrel=0
|
|
makedepends="bind-dnssec-tools"
|
|
_dom="
|
|
redxen.eu
|
|
"
|
|
|
|
build() {
|
|
for dom in $_dom; do
|
|
mkdir "$dom"
|
|
msg "Generating KSK"
|
|
dnssec-keygen -K "$dom" -f KSK -a ECDSAP256SHA256 -n ZONE "$dom"
|
|
msg "Generating ZSK"
|
|
dnssec-keygen -K "$dom" -a ECDSAP256SHA256 -n ZONE "$dom"
|
|
done
|
|
}
|
|
|
|
package() {
|
|
mkdir -p "$(rx_cpkgdir)/$_rx_installdir"
|
|
for dom in $_dom; do
|
|
for i in $dom/*.private $dom/*.key; do
|
|
_rx_installdir="$_rx_installdir/$dom" rx_install "$i"
|
|
done
|
|
done
|
|
}
|