Added dnsval.conf format + now using more variables
[mirrors/ArchLinux-Packages.git] / dnssec-root-zone-trust-anchors / PKGBUILD
CommitLineData
05005a2f
H
1# Contributor: Thomas Mudrunka <harvie@@email..cz>
2# Maintainer: Thomas Mudrunka <harvie@@email..cz>
3# You can also contact me on http://blog.harvie.cz/
4
5pkgname=dnssec-root-zone-trust-anchors
6pkgver=1.0
7pkgrel=2
8pkgdesc="Root Zone DNSSEC Trust Anchors"
9arch=('any')
10license=('Public Domain')
11url='https://www.iana.org/dnssec/'
12depends=(coreutils)
8533ad9d
H
13_anchor_dir=/usr/share/dnssec-trust-anchors
14_root_anchor_out=root-anchor
05005a2f
H
15_root_anchor=Kjqmt7v
16source=(
17 https://data.iana.org/root-anchors/${_root_anchor}.crt
18 https://data.iana.org/root-anchors/${_root_anchor}.csr
19 https://data.iana.org/root-anchors/draft-icann-dnssec-trust-anchor.html
20 https://data.iana.org/root-anchors/draft-icann-dnssec-trust-anchor.txt
21 https://data.iana.org/root-anchors/icann.pgp
22 https://data.iana.org/root-anchors/icannbundle.p12
23 https://data.iana.org/root-anchors/icannbundle.pem
24 https://data.iana.org/root-anchors/root-anchors.asc
25 https://data.iana.org/root-anchors/root-anchors.p7s
26 https://data.iana.org/root-anchors/root-anchors.xml
27)
28md5sums=('4659ca54445124527a9cdc1993264b3e'
29 '427766bf91c674c4f0469ed363f207a8'
30 'fc244ac431689b6f5be904028c869fce'
31 '3cd5b6b9f78658e1a1132fe36ce18273'
32 'ec5993b72a0b20e58fa993cd455efbc1'
33 'b174283d8da2150b9a720814aed0399b'
34 '59774aba58dbde1049bdf4722fb4f02c'
35 'a5612e1b84a75c29b642b9342286c511'
36 'ebde9ff9f8fdc8e057c7f9c0fa24738a'
37 '69e6f9b67e92fbc952d488cc6f67198f')
38sha1sums=('1521d2d6046e8858b6e7bad0a03f524abfa81cb1'
39 'ccd189083713572119635047e3d78ae9a2d9d307'
40 '1d7c57b28ec4551361b7b6fc38f7740e8c2626c0'
41 '81c1a8a5292938ce858c72abd39e07acd9d4f95c'
42 'c44ac1ef27f6b3070283c71c63e9567f7be4e946'
43 '1ab810120ce23b8d00bc85d23d51a5386beb4574'
44 '4c4de880ff9f06e70f72cf66121ecc0849cbd1f5'
45 '9a9fe64e4ef587f4413c1e0ab7655e532de9070f'
46 '5e7a74700015caaed59a2cc09f5daf15f24d5c18'
47 '9bb81768fb3095584096999693418fcdb13d7b9c')
48sha256sums=('ad068d18531618a9f1d0b68ffd84c87fbb5b8c2aea0288122a2eae8ad1190c2f'
49 '401120c1721ba100b2d9abf2d01332399535ba0f9c71dbd9f97232c5ebd608d2'
50 'dbf1e6220849f93ceb80b6d247c5a3d42b5c38e053b1a6465e701d3c8f953a8e'
51 '328faa824f529f1483f584fbb4b1f83b63f53ae4bad64609bab2009a811172c7'
52 'aaa2c7f6230c49b94af57931cfdd2452d24245b917a27110b28e952975b8c5be'
53 '0c854f3be5b2e212c276a1b98ce7bf57caf412152c26e667613e63793af4f654'
54 'c4a91c4bea6763f4ef05ca92bf74fb41d5583594c04aa999c90a55d710a3e5da'
55 '5bffcac53f810c5fb1e1baf543e2de2f10ec99d7f7cddb5f1e47b1e58cf34cfa'
56 '62eba1622ebf8f87b3125f4f9e686cefd952f805696cab0fc24c96eccd7c6f49'
57 'dfb281b771dc854c18d1cff9d2eecaf184cf7a9668606aaa33e8f01bf4b4d8e4')
58sha384sums=('8e749498165c421f468fbd97d520651f54db79cfd5683bd74486758701916c7b44084d7aac449f8e50aa553237bea63a'
59 '65128264d4271ff197368b69bce1df37294f45e324a02289599c13ad920d1acb9fc13be67b64c7b54c305feae30cd270'
60 'fb37e1b7130094cffd36e7c6d8e9f3fbd2f1266f759bb453975e4047f71246dd46d556213e913bed6698e45862cd5dc1'
61 '3789bf702382ba80dc21cb33db0b9cb2b1fc4dfc91a990b0762fcb9b9b89c184ae3bfe62e18ef7f01c5f35fd2436f090'
62 '799e8204dbd6590afc8fecc5cea5a2c9127657d29942bb1c677d4150490a7f27ef52b33ddada72eba71a92c485b0f84e'
63 '1110c6323fa56ad2bce304992bba69be78a5479e983bdadb0dab92e16ae94993748bfb618eb74ebae0617377e366c18f'
64 'ea647918a84e9952ad16cd559f386a47768b91ea22ea33b7218461188400ca3f3fe71dd80d6c096a4aafbf7126666b59'
65 '47c1f4243298ce2f5f6234a159b080acdd58d657175300408020e2e064c647ebd3c8110d82700c35a622f96804f48827'
66 'f9a0059f6040b1f39a03c0eb3c861a5b1f287b9507b42bff25ce12784ad8500c0b4dcbbb0f1b2c849c25c1626bfade1b'
67 'e4e08ece419d2ccb934a930121a8ea3a7f34127dfcc3ac1dda3da4389b1b825fc689dc00dcefb13d749179ac5a497c38')
68sha512sums=('b0c85c17439b3a9323390217edf72f67a91a36b509a68470543b4dc1a3cce6a73065e989dee10ae070e5d2100e026af1d01ab8c000447ae4bbe64c21451d1081'
69 '8e47be5054bbb801cb914d94a6f0d1e6b9b2eba387714f011f118bf8af6dacfe24a2dec80525ad005c545fa15fd8413cf90615e6d5c50d7925daa4aefff77112'
70 '66a5e48a2a2222bbddb84222c49b5e6cd2e30c4dc56c8ba5be9d0748fb46f71a3c2a82e843a340acbc9ce9a5f655a1695c73d0d127c6dac2099d2303a9057898'
71 'df200c6e42924df6813c32a3084a93ec5228a6a04e21e2daf82069d40a390d5a4f3e72c8e55610fda70b01f1ae20dbf2e7e49a7c1d45e9cd145446821a67479f'
72 'db6c917bd5a6141beb8f6ce5d601541fe222446e330ab7c598d6e355315a354f14b117731213863fea28a0ca7d5b12a6b91ac32f5e55cc476a7d1dbb437abbab'
73 '7689a2304b9ac8875d9c58a4c0facc2718abb7de39af19c8a6c149bfc5fbb80ef23a41828fc79f07b2359290505e22c8ea509ec56d0b1c17212d455badcc2ecf'
74 '36ce5025acc447f740222dd5f794fd848540731792441c6e50b0260411ea8d30b7d2b97a53a26d0469f3315d5881acb5e2b92a904413939db9a6b64ffd6e0f2b'
75 'e9c86b897d7e8edb979cba4bebe353b7c7f21b4061cd6f571c8671b02e73c2ea0b78a980169fa7d40987b9e962a0f1ba17dbb392b5ec6ad14fedce65a139c913'
76 'a9dda6e8785cb1675128f90b181f6100055894e5c8c7f8e7cbdcac82d4a0b3a2a00f57421b81a5093c4b283a75dc63e1e21e10f8c350e7404bba7c5e13fad28a'
77 'bca506c852bc83aa9d04ed0b52bef6d0baec745e466292273d52f49fd73cec73db4c6d55a9921fe086c7edc618f3ab21dc03146b6d617644495b3926e262e572')
78
79build() {
8533ad9d 80 mkdir -p ${pkgdir}${_anchor_dir}/
05005a2f 81 cd ${srcdir}
8533ad9d
H
82
83 msg 'Transforming root-zone key'
84 msg2 'to base64 format...'
85 _anchor_data="$(wc -c ${_root_anchor}.crt | cut -d ' ' -f 1) 0 0 $(base64 -w 0 ${_root_anchor}.crt)";
86 echo ${_anchor_data}
87 echo
88
89 msg2 'to trusted-keys format...'
90 echo . IN DNSKEY ${_anchor_data} | tee ${_root_anchor_out}.key
91 echo
92
93 msg2 'to dnsval.conf format...'
94 echo "# you can include this file in dnsval.conf using following directive:
95# include ${_anchor_dir}/${_root_anchor_out}.dnsval.conf
96
97: trust-anchor
98 . \"${_anchor_data}\"
99;
100
101: zone-security-expectation
102 . validate
103;" | tee ${_root_anchor_out}.dnsval.conf
104 echo
105
05005a2f 106 msg 'Copying files...'
8533ad9d
H
107 cp -f ${srcdir}/* ${pkgdir}${_anchor_dir}/
108
05005a2f
H
109 msg 'Making /etc/trusted-key.key symlink...'
110 mkdir -p ${pkgdir}/etc
8533ad9d 111 ln -s ${_anchor_dir}/${_root_anchor_out}.key ${pkgdir}/etc/trusted-key.key
05005a2f 112}
This page took 0.171308 seconds and 4 git commands to generate.