Skip to content

Commit

Permalink
Archlinux import: dnssec-anchors-20170711-1
Browse files Browse the repository at this point in the history
  • Loading branch information
udeved committed Aug 17, 2017
1 parent d169f76 commit bbcdc96
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions dnssec-anchors/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# $Id$
# Maintainer: Gaetan Bisson <[email protected]>
# Contributor: Thomas Mudrunka <[email protected]>
# Contributor: m4xm4n <[email protected]>

pkgname=dnssec-anchors
pkgver=20170711
pkgrel=1
pkgdesc='DNSSEC trust anchors for the root zone'
url='https://data.iana.org/root-anchors/'
license=('custom:NoCopyright')
arch=('any')
makedepends=('unbound')

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

echo 'The contents of this package are inelligible for copyright protection.' > LICENSE
}

package() {
cd "${srcdir}"
install -Dm644 trusted-key.key "${pkgdir}"/etc/trusted-key.key
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

0 comments on commit bbcdc96

Please sign in to comment.