Gentoo Archives: gentoo-commits

From: Christian Ruppert <idl0r@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/bind-tools/
Date: Mon, 10 Jul 2017 09:11:19
Message-Id: 1499677868.ab257acd57f4faff1d729833dee5839cdbe332d1.idl0r@gentoo
1 commit: ab257acd57f4faff1d729833dee5839cdbe332d1
2 Author: Christian Ruppert <idl0r <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jul 10 09:10:34 2017 +0000
4 Commit: Christian Ruppert <idl0r <AT> gentoo <DOT> org>
5 CommitDate: Mon Jul 10 09:11:08 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab257acd
7
8 net-dns/bind-tools: Bump re CVE-2017-3142 and CVE-2017-3143, bug 623154
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.2
11 RepoMan-Options: --force
12
13 net-dns/bind-tools/Manifest | 1 +
14 net-dns/bind-tools/bind-tools-9.11.1_p3.ebuild | 136 +++++++++++++++++++++++++
15 2 files changed, 137 insertions(+)
16
17 diff --git a/net-dns/bind-tools/Manifest b/net-dns/bind-tools/Manifest
18 index 3abf7dcdcf3..e1f58be2235 100644
19 --- a/net-dns/bind-tools/Manifest
20 +++ b/net-dns/bind-tools/Manifest
21 @@ -1,3 +1,4 @@
22 DIST bind-9.11.0-P3.tar.gz 9691935 SHA256 0feee0374bcbdee73a9d4277f3c5007622279572d520d7c27a4b64015d8ca9e9 SHA512 fd5818ea36d7d4aa754a69ced675485cdb80b82f871b3f175c24715c0bd57fc78d4566657996f86ab32cb4158a974e97bb941ff9920cc3718b3484c161164b45 WHIRLPOOL 34db478ddd0841f8be244835c1d4b4149b4bda37707d56f697c544e836000aba0b0fa33c12ba8b86ebf9ca358cf7706db546570fe6371d94f93dca277dae1069
23 DIST bind-9.11.0-P5.tar.gz 9698446 SHA256 1e283f0567b484687dfd7b936e26c9af4f64043daf73cbd8f3eb1122c9fb71f5 SHA512 142407db35a7bba6e676f2b3dc726a3a6ece9df8a27722f108ec309e24c4614da097b6cd31675c4925e68ff147896bc0a16dd71aa74dd73753ba86a2dbd7d3bd WHIRLPOOL a2aba3a52ad3610891733a3c8d93c0f5b263f706e36178a6f642b18e607a665ad0b15bdf679b9a5d149e9262eb5f718e23a09e989b63a418ee8fdfcb7f435186
24 DIST bind-9.11.1-P1.tar.gz 9745364 SHA256 6b1b3e88d51b8471bd6aee24a8cea70817e850a5901315dc506f9dde275ca638 SHA512 5683ae7be264e11b5b2a843d216e3ca4959b7de109863d5435090b2e033d6c405689e4ce57385ca787b1c948f4437aea39b8d5164a1d347c167f87337e9fc760 WHIRLPOOL a9dd3cabfe04f16a60ce9d55d3bfdd57d05bddd9fb86996e952756bf40b63dda78d269903d1ae951b499cea899e154e2936117ad2bc6de0e30c0937c8292e45b
25 +DIST bind-9.11.1-P3.tar.gz 9749095 SHA256 52426e75432e46996dc90f24fca027805a341c38fbbb022b60dc9acd2677ccf4 SHA512 bf92ce1e07e5c84cc42b413bdbd3ad97f37712a6dc330dc10182992d948b7a393d5446efa188379b39020c34d810cebe2a7acccc9b8aa6bb564e1f3e6be42e96 WHIRLPOOL 93c139c979a60f9f3d8e54cf9f23e25a6d64180f7c2be6ba8c41488e9eec985c0bd67ab28e7f502c155c57b643b47b4c12d1ee5877077be37e07138adbd93a56
26
27 diff --git a/net-dns/bind-tools/bind-tools-9.11.1_p3.ebuild b/net-dns/bind-tools/bind-tools-9.11.1_p3.ebuild
28 new file mode 100644
29 index 00000000000..ba9d749d638
30 --- /dev/null
31 +++ b/net-dns/bind-tools/bind-tools-9.11.1_p3.ebuild
32 @@ -0,0 +1,136 @@
33 +# Copyright 1999-2017 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI="5"
37 +
38 +inherit eutils autotools flag-o-matic toolchain-funcs
39 +
40 +MY_PN=${PN//-tools}
41 +MY_PV=${PV/_p/-P}
42 +MY_PV=${MY_PV/_rc/rc}
43 +MY_P="${MY_PN}-${MY_PV}"
44 +
45 +DESCRIPTION="bind tools: dig, nslookup, host, nsupdate, dnssec-keygen"
46 +HOMEPAGE="http://www.isc.org/software/bind"
47 +SRC_URI="ftp://ftp.isc.org/isc/bind9/${MY_PV}/${MY_P}.tar.gz"
48 +
49 +LICENSE="Apache-2.0 BSD BSD-2 GPL-2 HPND ISC MPL-2.0"
50 +SLOT="0"
51 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
52 +IUSE="doc gost gssapi idn ipv6 libressl readline seccomp ssl urandom xml"
53 +# no PKCS11 currently as it requires OpenSSL to be patched, also see bug 409687
54 +
55 +REQUIRED_USE="gost? ( !libressl ssl )"
56 +
57 +CDEPEND="
58 + ssl? (
59 + !libressl? ( dev-libs/openssl:0 )
60 + libressl? ( dev-libs/libressl )
61 + )
62 + gost? ( >=dev-libs/openssl-1.0.0:0[-bindist] )
63 + xml? ( dev-libs/libxml2 )
64 + idn? ( net-dns/idnkit )
65 + gssapi? ( virtual/krb5 )
66 + readline? ( sys-libs/readline:0= )
67 + seccomp? ( sys-libs/libseccomp )"
68 +DEPEND="${CDEPEND}
69 + virtual/pkgconfig"
70 +RDEPEND="${CDEPEND}
71 + !<net-dns/bind-9.10.2"
72 +
73 +S="${WORKDIR}/${MY_P}"
74 +
75 +# bug 479092, requires networking
76 +RESTRICT="test"
77 +
78 +src_prepare() {
79 + # bug 600212
80 + epatch "${FILESDIR}"/${PN}-9.11.0_p5-dyndb-dlopen.patch
81 +
82 + epatch "${FILESDIR}"/${PN}-9.5.0_p1-lwconfig.patch #231247
83 +
84 + # Disable tests for now, bug 406399
85 + sed -i '/^SUBDIRS/s:tests::' bin/Makefile.in lib/Makefile.in || die
86 +
87 + # bug #220361
88 + rm aclocal.m4
89 + rm -rf libtool.m4/
90 +
91 + mv configure.in configure.ac || die # configure.in is deprecated
92 + eautoreconf
93 +}
94 +
95 +src_configure() {
96 + local myconf=
97 +
98 + if use urandom; then
99 + myconf="${myconf} --with-randomdev=/dev/urandom"
100 + else
101 + myconf="${myconf} --with-randomdev=/dev/random"
102 + fi
103 +
104 + # bug 344029
105 + append-cflags "-DDIG_SIGCHASE"
106 +
107 + # localstatedir for nsupdate -l, bug 395785
108 + tc-export BUILD_CC
109 + econf \
110 + --localstatedir=/var \
111 + --without-python \
112 + --without-libjson \
113 + --without-zlib \
114 + --without-lmdb \
115 + --disable-openssl-version-check \
116 + $(use_enable ipv6) \
117 + $(use_with idn) \
118 + $(usex idn --with-idnlib=-lidnkit '') \
119 + $(use_enable seccomp) \
120 + $(use_with ssl openssl) \
121 + $(use_with xml libxml2) \
122 + $(use_with gssapi) \
123 + $(use_with readline) \
124 + $(use_with gost) \
125 + ${myconf}
126 +
127 + # bug #151839
128 + echo '#undef SO_BSDCOMPAT' >> config.h
129 +}
130 +
131 +src_compile() {
132 + local AR=$(tc-getAR)
133 +
134 + emake AR="${AR}" -C lib/
135 + emake AR="${AR}" -C bin/delv/
136 + emake AR="${AR}" -C bin/dig/
137 + emake AR="${AR}" -C bin/nsupdate/
138 + emake AR="${AR}" -C bin/dnssec/
139 +}
140 +
141 +src_install() {
142 + dodoc README CHANGES FAQ
143 +
144 + cd "${S}"/bin/delv
145 + dobin delv
146 + doman delv.1
147 +
148 + cd "${S}"/bin/dig
149 + dobin dig host nslookup
150 + doman {dig,host,nslookup}.1
151 +
152 + cd "${S}"/bin/nsupdate
153 + dobin nsupdate
154 + doman nsupdate.1
155 + if use doc; then
156 + dohtml nsupdate.html
157 + fi
158 +
159 + cd "${S}"/bin/dnssec
160 + for tool in dsfromkey importkey keyfromlabel keygen \
161 + revoke settime signzone verify; do
162 + dobin dnssec-"${tool}"
163 + doman dnssec-"${tool}".8
164 + if use doc; then
165 + dohtml dnssec-"${tool}".html
166 + fi
167 + done
168 +}