forked from djpohly/artix-system
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPKGBUILD
34 lines (28 loc) · 849 Bytes
/
PKGBUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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"
}