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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Mon May 2 15:53:42 2011 UTC (3 years, 4 months ago) by darkside
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -2 lines
stabilize for all, just installs a few files and passes test suite. bug 365191

(Portage version: 2.1.9.46/cvs/Linux x86_64)

1 # Copyright 1999-2011 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-20100715.ebuild,v 1.3 2011/04/28 15:07:49 darkside Exp $
4
5 DESCRIPTION="The DNSSEC root key(s)"
6 HOMEPAGE="https://www.iana.org/dnssec/"
7 SRC_URI="http://data.iana.org/root-anchors/root-anchors.xml
8 http://data.iana.org/root-anchors/Kjqmt7v.csr
9 test? ( http://data.iana.org/root-anchors/Kjqmt7v.crt
10 http://data.iana.org/root-anchors/root-anchors.p7s
11 http://data.iana.org/root-anchors/root-anchors.asc
12 http://data.iana.org/root-anchors/icannbundle.pem
13 http://data.iana.org/root-anchors/icann.pgp
14 )"
15
16 LICENSE="public-domain"
17 SLOT="0"
18 KEYWORDS="amd64 x86"
19
20 IUSE="test"
21
22 DEPEND="dev-libs/libxslt
23 test? ( app-crypt/gnupg )"
24 RDEPEND=""
25
26 S="${WORKDIR}"
27
28 # xsl and checking as per:
29 # http://permalink.gmane.org/gmane.network.dns.unbound.user/1039
30
31 src_unpack() { :; }
32
33 src_compile() {
34 xsltproc -o "${S}"/root-anchors.txt "${FILESDIR}"/anchors2ds.xsl "${DISTDIR}"/root-anchors.xml || die 'xsl translation failed'
35 }
36
37 src_test()
38 {
39 gpg --import "${DISTDIR}"/icann.pgp || die 'icann key import failed'
40 gpg --verify "${DISTDIR}"/root-anchors.asc "${DISTDIR}"/root-anchors.xml || \
41 die 'gpg verification of the root key failed'
42 openssl smime -verify -content "${DISTDIR}"/root-anchors.xml \
43 -in "${DISTDIR}"/root-anchors.p7s -inform der \
44 -CAfile "${DISTDIR}"/icannbundle.pem \
45 || die 'smime verification of the root key failed'
46 }
47
48 src_install() {
49 insinto /etc/dnssec
50 doins root-anchors.txt "${DISTDIR}"/root-anchors.xml "${DISTDIR}"/Kjqmt7v.csr || die
51 }

  ViewVC Help
Powered by ViewVC 1.1.20