2020-12-18 20:50:42 +00:00
|
|
|
# Contributor: Alex Denes <caskd@redxen.eu>
|
|
|
|
# Maintainer: Alex Denes <caskd@redxen.eu>
|
|
|
|
pkgname=redxen-config-unbound
|
2021-01-30 13:25:48 +00:00
|
|
|
pkgver=2021.01.30
|
2021-01-30 19:43:23 +00:00
|
|
|
pkgrel=3
|
2021-01-27 20:13:07 +00:00
|
|
|
pkgdesc="Unbound configurations"
|
2020-12-18 20:50:42 +00:00
|
|
|
url="https://git.redxen.eu/RedXen"
|
|
|
|
arch="noarch"
|
|
|
|
license="none"
|
|
|
|
depends="alpine-baselayout unbound ca-certificates-bundle dns-root-hints dnssec-root"
|
2020-12-27 18:16:04 +00:00
|
|
|
checkdepends="bind-tools"
|
|
|
|
subpackages="$pkgname-acl $pkgname-rctrl $pkgname-internal $pkgname-auth"
|
2020-12-18 20:50:42 +00:00
|
|
|
source="
|
2020-12-27 18:16:04 +00:00
|
|
|
includes.conf
|
2020-12-18 20:50:42 +00:00
|
|
|
base.conf
|
2020-12-27 18:16:04 +00:00
|
|
|
acl.conf
|
|
|
|
rctrl.conf
|
2020-12-18 20:50:42 +00:00
|
|
|
internal.conf
|
2020-12-27 18:16:04 +00:00
|
|
|
|
|
|
|
auth-zones.conf
|
|
|
|
zones/redxen.eu
|
2020-12-18 20:50:42 +00:00
|
|
|
"
|
2020-12-27 18:16:04 +00:00
|
|
|
options="checkroot"
|
|
|
|
builddir="$srcdir"
|
2020-12-18 20:50:42 +00:00
|
|
|
|
|
|
|
check() {
|
|
|
|
msg "Checking configuration validity"
|
|
|
|
/usr/sbin/unbound-checkconf base.conf
|
2020-12-27 18:16:04 +00:00
|
|
|
/usr/sbin/unbound-checkconf acl.conf
|
|
|
|
/usr/sbin/unbound-checkconf rctrl.conf
|
2020-12-18 20:50:42 +00:00
|
|
|
/usr/sbin/unbound-checkconf internal.conf
|
2020-12-27 18:16:04 +00:00
|
|
|
|
|
|
|
# Cannot be checked because it expects files in a read-only path, not crucial
|
|
|
|
#/usr/sbin/unbound-checkconf auth-zones.conf
|
|
|
|
/usr/sbin/named-checkzone redxen.eu ./redxen.eu
|
2020-12-18 20:50:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2020-12-27 18:16:04 +00:00
|
|
|
install -Dm644 "$srcdir"/includes.conf "$pkgdir"/etc/unbound/includes.conf
|
|
|
|
install -Dm644 "$srcdir"/base.conf "$pkgdir"/etc/unbound/base.conf
|
|
|
|
}
|
|
|
|
|
|
|
|
acl() {
|
|
|
|
install -Dm644 "$srcdir"/acl.conf "$subpkgdir"/etc/unbound/acl.conf
|
2020-12-18 20:50:42 +00:00
|
|
|
}
|
|
|
|
|
2020-12-27 18:16:04 +00:00
|
|
|
rctrl() {
|
|
|
|
install -Dm644 "$srcdir"/rctrl.conf "$subpkgdir"/etc/unbound/rctrl.conf
|
2020-12-18 20:50:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
internal() {
|
2020-12-27 18:16:04 +00:00
|
|
|
install -Dm644 "$srcdir"/internal.conf "$subpkgdir"/etc/unbound/internal.conf
|
|
|
|
}
|
|
|
|
|
|
|
|
auth() {
|
|
|
|
install -Dm644 "$srcdir"/redxen.eu "$subpkgdir"/etc/unbound/zones/redxen.eu
|
|
|
|
install -Dm644 "$srcdir"/auth-zones.conf "$subpkgdir"/etc/unbound/auth-zones.conf
|
2020-12-18 20:50:42 +00:00
|
|
|
}
|
|
|
|
|
2020-12-27 18:16:04 +00:00
|
|
|
sha512sums="f402b87071a3059992242b7dbce0aaea2f20ec4e5fc4e855160d5ebc75be7dd3d4cb698c758882eee749d12d263a5c1b5818a45e3867cdf4258016d89ce8181e includes.conf
|
|
|
|
d3754ced9d8055ff7f1d364a93c403bba3f220a60ea519bceee5e9c43112d6a00d20d15cf659fdd6ad6834cf14afd6ecb5d9e1497ff2932572fd970750655749 base.conf
|
|
|
|
75709787e0872197c83def93b343550934f6b2e4903873aaf72f357fb8b4a1d7c5b8ba84913f052ad01aeca03f58ca589a22bf867c1c2e40e01f9588c7c580c4 acl.conf
|
|
|
|
d94ad338e2ea43c3ecdc62c861eddc0bb706807b738dd985309bcdf0b5fb435d7260bf272e2bbe40a774ec5b8fa49cbf23624c2c5213eea94f4f14aa3720abfa rctrl.conf
|
2021-01-30 19:43:23 +00:00
|
|
|
8b42adfcd96b9bc38275a8e974fc1f2df2138e7a851e45ef466632610e282bfc8af2daae5996f468752c9b2c99d5765cb1dcaa85276b56781f59cf8007465251 internal.conf
|
2020-12-27 18:16:04 +00:00
|
|
|
28c917fe7f69643887097553312c4f1ffc747dffdbf150430e6c4b2e5833567922810716cb59a27887915664777ac3263be3c826956f504499f0ebdcc0b3aac5 auth-zones.conf
|
2021-01-30 19:43:23 +00:00
|
|
|
92d3b67fc9f662afde3f315adaf0982df27f87665334d36b8cb2710fb247abb87726c3143e7e696e300857243c178a6b4b6eb597740d8b8dba3302d356f80161 redxen.eu"
|