You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
844 B

4 years ago
# Maintainer: Gaetan Bisson <bisson@archlinux.org>
# Contributor: Thomas Mudrunka <harvie@email.cz>
# Contributor: m4xm4n <max@maxfierke.com>
pkgname=dnssec-anchors
pkgver=20190629
pkgrel=2
4 years ago
pkgdesc='DNSSEC trust anchors for the root zone'
url='https://data.iana.org/root-anchors/'
license=('custom:none')
arch=('any')
makedepends=('unbound')
source=('LICENSE')
sha256sums=('dd37e92942d5a4024f1c77df49d61ca77fc6284691814903a741785df61f78cb')
prepare() {
cd "${srcdir}"
unbound-anchor -v -a root.key ||
unbound-anchor -v -a root.key
unbound-host -v -f root.key -t DNSKEY . |
sed 's/ (secure)//;t;d' |
sed 's/ has / IN /' |
sed 's/ record / /' \
> trusted-key.key
}
package() {
cd "${srcdir}"
install -Dm644 trusted-key.key "${pkgdir}"/etc/trusted-key.key
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}