* update dnssec-anchors to 20190629-4

This commit is contained in:
Alexander Baldeck 2024-09-16 10:26:48 +02:00
parent ff5dcc5795
commit 583cbdb095
3 changed files with 46 additions and 19 deletions

14
dnssec-anchors/.SRCINFO Normal file
View File

@ -0,0 +1,14 @@
pkgbase = dnssec-anchors
pkgdesc = DNSSEC trust anchors for the root zone
pkgver = 20190629
pkgrel = 4
url = https://data.iana.org/root-anchors/
arch = any
license = custom:none
makedepends = unbound
source = LICENSE
source = https://sources.archlinux.org/other/packages/dnssec-anchors/trusted-key-20190629.key
sha256sums = dd37e92942d5a4024f1c77df49d61ca77fc6284691814903a741785df61f78cb
sha256sums = b01933ede7d505cac6bbee8c58027057d3a073581fa6cf595c352553dd07ee3c
pkgname = dnssec-anchors

View File

@ -1,34 +1,24 @@
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Gaetan Bisson <bisson@archlinux.org>
# Maintainer: Jelle van der Waa <jelle@archlinux.org>
# Contributor: Gaetan Bisson <bisson@archlinux.org>
# Contributor: Thomas Mudrunka <harvie@email.cz>
# Contributor: m4xm4n <max@maxfierke.com>
pkgname=dnssec-anchors
pkgver=20190629
pkgrel=3
_trusted_key=trusted-key-${pkgver}.key
pkgrel=4
pkgdesc='DNSSEC trust anchors for the root zone'
url='https://data.iana.org/root-anchors/'
license=('custom:none')
arch=('any')
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
}
source=('LICENSE' "https://sources.archlinux.org/other/packages/${pkgname}/${_trusted_key}")
sha256sums=('dd37e92942d5a4024f1c77df49d61ca77fc6284691814903a741785df61f78cb'
'b01933ede7d505cac6bbee8c58027057d3a073581fa6cf595c352553dd07ee3c')
package() {
cd "${srcdir}"
install -Dm644 trusted-key.key "${pkgdir}"/etc/trusted-key.key
install -Dm644 ${_trusted_key} "${pkgdir}"/etc/trusted-key.key
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

View File

@ -0,0 +1,23 @@
#!/usr/bin/bash
TRUSTED_KEY=trusted-key-$(date +%Y%m%d).key
DEST=/srv/ftp/other/packages/dnssec-anchors
update_key() {
key=$1
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 / /' \
> "${key}"
# Cleanup created root.key
rm root.key
}
update_key "${TRUSTED_KEY}"
scp "${TRUSTED_KEY}" repos.archlinux.org:${DEST}