aboutsummaryrefslogblamecommitdiffstats
path: root/main/dnssec-root/APKBUILD
blob: f6bd8293c31d6c4a9c50252c9330b8250044f40a (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                                              


                                                    

               
                                                


                                  
                       
          
                             

              
             


                                                                                                     
                                            
 

              
                      


                                                                  


           
                      
                                                  
                                                            

 

                                                                                                                                                                         
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=dnssec-root
pkgver=20190225
pkgrel=0
_commit=67c11662510f5e2db6e6517228e80b794950c43f
pkgdesc="The DNSSEC root key(s)"
url="https://www.iana.org/dnssec/"
arch="noarch"
license="Public-Domain"
depends=""
makedepends="python3 openssl"
install=""
subpackages=""
options="net"
source="$pkgname-$pkgver.tar.gz::https://github.com/iana-org/get-trust-anchor/archive/$_commit.tar.gz
	trusted-key.key
	"
builddir="$srcdir"/get-trust-anchor-$_commit

snapshot() {
	unpack
	cd "$builddir"
	python3 "$builddir"/get_trust_anchor.py
	sort -k 6 ksk-as-dnskey.txt* > "$startdir"/trusted-key.key
	abump $pkgname-$(date "+%Y%m%d")
}

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

sha512sums="91b8fbecf10ae4d599a93bb69e342942a0f8dc3678c3ec8151dcdaa650eefdc4168eb5e272a4e4182daa180c3f5ff33217a825e2e8f19d489b6dc6171b0b5b56  dnssec-root-20190225.tar.gz
19d43a669c1c4df9d0d72717f35e332d688ebb9f9e6be5adcb00db7388072ea79e71b38d4fb1059ebda255726dcfd6672ff1feb59b856876a476736d8e548d50  trusted-key.key"