/[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.9 - (show annotations) (download)
Wed Dec 19 18:24:24 2012 UTC (20 months ago) by ago
Branch: MAIN
Changes since 1.8: +2 -2 lines
Add ~ia64, wrt bug #441688

(Portage version: 2.1.11.31/cvs/Linux ia64, unsigned Manifest commit)

1 # Copyright 1999-2012 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.8 2012/11/13 20:26:39 blueness 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="amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 x86"
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