forked from djpohly/artix-system
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Archlinux import: dnssec-anchors-20170711-1
- Loading branch information
udeved
committed
Aug 17, 2017
1 parent
d169f76
commit bbcdc96
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |