Gentoo Archives: gentoo-commits

From: "Daniel Black (dragonheart)" <dragonheart@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-dns/dnssec-root: metadata.xml ChangeLog dnssec-root-20100715.ebuild
Date: Tue, 30 Nov 2010 08:53:26
Message-Id: 20101130085315.68B3020054@flycatcher.gentoo.org
1 dragonheart 10/11/30 08:53:15
2
3 Added: metadata.xml ChangeLog dnssec-root-20100715.ebuild
4 Log:
5 initial ebuild of dnssec root key
6
7 (Portage version: 2.2.0_alpha3/cvs/Linux i686)
8
9 Revision Changes Path
10 1.1 net-dns/dnssec-root/metadata.xml
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/dnssec-root/metadata.xml?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/dnssec-root/metadata.xml?rev=1.1&content-type=text/plain
14
15 Index: metadata.xml
16 ===================================================================
17 <?xml version="1.0" encoding="UTF-8"?>
18 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
19 <pkgmetadata>
20 <herd>no-herd</herd>
21 <maintainer>
22 <email>dragonheart@g.o</email>
23 <name>Daniel Black</name>
24 <description>A package I felt obliged to include. Please bump/correct if you see the need.
25 </description>
26 </maintainer>
27 <longdescription>This package distributes the ICANN DNSSEC root key</longdescription>
28 </pkgmetadata>
29
30
31
32 1.1 net-dns/dnssec-root/ChangeLog
33
34 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/dnssec-root/ChangeLog?rev=1.1&view=markup
35 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/dnssec-root/ChangeLog?rev=1.1&content-type=text/plain
36
37 Index: ChangeLog
38 ===================================================================
39 # ChangeLog for net-dns/dnssec-root
40 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
41 # $Header: /var/cvsroot/gentoo-x86/net-dns/dnssec-root/ChangeLog,v 1.1 2010/11/30 08:53:15 dragonheart Exp $
42
43 *dnssec-root-20100715 (30 Nov 2010)
44
45 30 Nov 2010; Daniel Black <dragonheart@g.o> +files/anchors2ds.xsl,
46 +dnssec-root-20100715.ebuild, +metadata.xml:
47 initial ebuild
48
49
50
51
52 1.1 net-dns/dnssec-root/dnssec-root-20100715.ebuild
53
54 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/dnssec-root/dnssec-root-20100715.ebuild?rev=1.1&view=markup
55 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/dnssec-root/dnssec-root-20100715.ebuild?rev=1.1&content-type=text/plain
56
57 Index: dnssec-root-20100715.ebuild
58 ===================================================================
59 # Copyright 1999-2010 Gentoo Foundation
60 # Distributed under the terms of the GNU General Public License v2
61 # $Header: /var/cvsroot/gentoo-x86/net-dns/dnssec-root/dnssec-root-20100715.ebuild,v 1.1 2010/11/30 08:53:15 dragonheart Exp $
62
63 DESCRIPTION="The DNSSEC root key(s)"
64 HOMEPAGE="https://www.iana.org/dnssec/"
65 SRC_URI="http://data.iana.org/root-anchors/root-anchors.xml
66 http://data.iana.org/root-anchors/Kjqmt7v.csr
67 test? ( http://data.iana.org/root-anchors/Kjqmt7v.crt
68 http://data.iana.org/root-anchors/root-anchors.p7s
69 http://data.iana.org/root-anchors/root-anchors.asc
70 http://data.iana.org/root-anchors/icannbundle.pem
71 http://data.iana.org/root-anchors/icann.pgp
72 )"
73
74 LICENSE="public-domain"
75 SLOT="0"
76 KEYWORDS="~x86 ~amd64"
77
78 IUSE="test"
79
80 DEPEND="dev-libs/libxslt
81 test? ( app-crypt/gnupg )"
82 RDEPEND=""
83
84 S="${WORKDIR}"
85
86
87 # xsl and checking as per:
88 # http://permalink.gmane.org/gmane.network.dns.unbound.user/1039
89
90 src_unpack() {
91 einfo 'unpack not needed'
92 }
93
94 src_compile() {
95 xsltproc -o "${S}"/root-anchors.txt "${FILESDIR}"/anchors2ds.xsl "${DISTDIR}"/root-anchors.xml || die 'xsl translation failed'
96 }
97
98 src_test()
99 {
100 gpg --import "${DISTDIR}"/icann.pgp || die 'icann key import failed'
101 gpg --verify "${DISTDIR}"/root-anchors.asc "${DISTDIR}"/root-anchors.xml || \
102 die 'gpg verification of the root key failed'
103 openssl smime -verify -content "${DISTDIR}"/root-anchors.xml \
104 -in "${DISTDIR}"/root-anchors.p7s -inform der \
105 -CAfile "${DISTDIR}"/icannbundle.pem \
106 || die 'smime verification of the root key failed'
107 }
108
109 src_install() {
110 insinto /etc/dnssec
111 doins root-anchors.txt "${DISTDIR}"/root-anchors.xml "${DISTDIR}"/Kjqmt7v.csr
112 }