/[gentoo-x86]/net-dns/dnssec-root/dnssec-root-20110630.ebuild
Gentoo

Contents of /net-dns/dnssec-root/dnssec-root-20110630.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.14 - (show annotations) (download)
Thu Aug 21 14:22:35 2014 UTC (4 months ago) by armin76
Branch: MAIN
CVS Tags: HEAD
Changes since 1.13: +2 -2 lines
Add ~m68k

(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0xF6AD3240)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-dns/dnssec-root/dnssec-root-20110630.ebuild,v 1.13 2014/08/21 14:21:50 armin76 Exp $
4
5 EAPI=4
6
7 DESCRIPTION="The DNSSEC root key(s)"
8 HOMEPAGE="https://www.iana.org/dnssec/"
9 SRC_URI="http://data.iana.org/root-anchors/root-anchors.xml -> root-anchors-20100715.xml
10 http://data.iana.org/root-anchors/Kjqmt7v.csr -> Kjqmt7v-20100715.csr
11 test? ( http://data.iana.org/root-anchors/Kjqmt7v.crt -> Kjqmt7v-20110630.crt
12 http://data.iana.org/root-anchors/root-anchors.p7s -> root-anchors-20110630.p7s
13 http://data.iana.org/root-anchors/root-anchors.asc -> root-anchors-20100715.asc
14 http://data.iana.org/root-anchors/icannbundle.pem -> icannbundle-20100715.pem
15 http://data.iana.org/root-anchors/icann.pgp -> icann-20110715.pgp
16 )"
17
18 LICENSE="public-domain"
19 SLOT="0"
20 KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~x64-macos"
21 IUSE="test"
22
23 RESTRICT="mirror"
24
25 RDEPEND=""
26 DEPEND="dev-libs/libxslt
27 test? ( app-crypt/gnupg
28 dev-libs/openssl )"
29
30 S="${WORKDIR}"
31
32 # xsl and checking as per:
33 # http://permalink.gmane.org/gmane.network.dns.unbound.user/1039
34
35 src_unpack() {
36 return
37 }
38
39 src_compile() {
40 xsltproc -o root-anchors-20100715.txt "${FILESDIR}"/anchors2ds.xsl "${DISTDIR}"/root-anchors-20100715.xml || die 'xsl translation failed'
41 }
42
43 src_test() {
44 # icann.pgp contains an expired key
45 # gpg --import "${DISTDIR}"/icann.pgp || die 'icann key import failed'
46 gpg --import \
47 "${FILESDIR}"/dnssec_at_iana.org_1024D_0F6C91D2-20120522.asc || die
48 gpg --verify \
49 "${DISTDIR}"/root-anchors-20100715.asc \
50 "${DISTDIR}"/root-anchors-20100715.xml || die
51 openssl smime -verify \
52 -content "${DISTDIR}"/root-anchors-20100715.xml \
53 -in "${DISTDIR}"/root-anchors-20110630.p7s -inform der \
54 -CAfile "${DISTDIR}"/icannbundle-20100715.pem || die
55 }
56
57 src_install() {
58 insinto /etc/dnssec
59 newins root-anchors-20100715.txt root-anchors.txt
60 newins "${DISTDIR}"/root-anchors-20100715.xml root-anchors.xml
61 newins "${DISTDIR}"/Kjqmt7v-20100715.csr Kjqmt7v.csr
62 }

  ViewVC Help
Powered by ViewVC 1.1.20