75 lines
1.6 KiB
Plaintext
75 lines
1.6 KiB
Plaintext
# Contributor: Alex Denes <caskd@redxen.eu>
|
|
# Maintainer: Alex Denes <caskd@redxen.eu>
|
|
|
|
. ../APKBUILD-data.template
|
|
|
|
pkgver=2021.10.21.01
|
|
pkgrel=0
|
|
checkdepends="bind-tools"
|
|
makedepends="
|
|
bind-dnssec-tools
|
|
redxen-secret-opendkim-dns~2021.05.31.01
|
|
redxen-secret-dnssec~2021.05.31.01
|
|
"
|
|
subpackages="$pkgname-redxen $pkgname-internal"
|
|
options=""
|
|
source="
|
|
redxen.eu
|
|
internal
|
|
"
|
|
# crxn # NOTE: Outdated
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
# Create a copy for every zone
|
|
for i in $source; do
|
|
cp "$i" "$i"-mod
|
|
done
|
|
}
|
|
|
|
check() {
|
|
msg "Checking zone validity"
|
|
for i in $source; do
|
|
/usr/sbin/named-checkzone "$i" ./"$i"-mod
|
|
done
|
|
}
|
|
|
|
build() {
|
|
# Set SOA to pkgver
|
|
for i in $source; do
|
|
rx_replace "CURRENTSOA" "$(echo $pkgver | sed 's/\.//g')" "$i"-mod
|
|
done
|
|
|
|
# Add OpenDKIM to redxen.eu
|
|
cat /etc/redxen/opendkim/dns-record >> redxen.eu-mod
|
|
|
|
# Add KSK/ZSK keys to redxen.eu
|
|
cat /etc/redxen/dnssec/redxen.eu/*.key >> redxen.eu-mod
|
|
|
|
# Sign redxen.eu zone
|
|
msg "Signing redxen.eu zone"
|
|
dnssec-signzone -K /etc/redxen/dnssec/redxen.eu -f redxen.eu-mod -e "+90d" -o redxen.eu -t redxen.eu-mod
|
|
}
|
|
|
|
package() {
|
|
mkdir -p "$(rx_cpkgdir)"
|
|
}
|
|
|
|
redxen() {
|
|
rx_install "redxen.eu-mod" "redxen.eu"
|
|
}
|
|
|
|
#crxn() {
|
|
# rx_install "crxn-mod" "crxn"
|
|
#}
|
|
|
|
internal() {
|
|
rx_install "internal-mod" "internal"
|
|
}
|
|
|
|
sha512sums="
|
|
de9df4804a5d5b5a61e0b6f6b409d3946768b7b75670c69ce9bc3c1b6fc81e02ddd2509af81d7781fd9b9213e726667b60ed5767ba073f4cfde968c7d30cfc45 redxen.eu
|
|
71588fc99e8fa42f6e47d29d941e8b4af2bf10b3e2839c4ddb0dd770f25c3b224227725e7911124c99937350768f7871b35abd83fc1912ddafcab41b36e34f4f internal
|
|
"
|