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, 16 Jul 2018 11:54:25
Message-Id: 1531742052.3bbd728f594e54b03879747f0e03d5f4392d81a4.idl0r@gentoo
1 commit: 3bbd728f594e54b03879747f0e03d5f4392d81a4
2 Author: Christian Ruppert <idl0r <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jul 16 11:53:52 2018 +0000
4 Commit: Christian Ruppert <idl0r <AT> gentoo <DOT> org>
5 CommitDate: Mon Jul 16 11:54:12 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3bbd728f
7
8 net-dns/bind-tools: Version bump
9
10 Package-Manager: Portage-2.3.40, Repoman-2.3.9
11
12 net-dns/bind-tools/Manifest | 1 +
13 net-dns/bind-tools/bind-tools-9.12.2.ebuild | 146 ++++++++++++++++++++++++++++
14 net-dns/bind-tools/metadata.xml | 1 +
15 3 files changed, 148 insertions(+)
16
17 diff --git a/net-dns/bind-tools/Manifest b/net-dns/bind-tools/Manifest
18 index 3198b211c7c..097b0b9538f 100644
19 --- a/net-dns/bind-tools/Manifest
20 +++ b/net-dns/bind-tools/Manifest
21 @@ -1,2 +1,3 @@
22 DIST bind-9.11.2_p1.tar.gz 9783329 BLAKE2B 5a3bbd87112064231bd5e6b09ebb4014f9d5cf65cb601c03555ff540a22d87aec3990cd8e37ce5ff09e9a149bdf122d20ecb01f87731e6c79d80379a6926014f SHA512 168f27f580e3be2f7ada27afa2f72e715e750eec76831cf01bd32fabc1fa65dc29dab0eb7ed1682b076d3be99269897ddbc2c10551631a3911d9e5ae1aa40597
23 DIST bind-9.12.1.tar.gz 9302783 BLAKE2B 731ce67acb22f72e54de1122c5d5c3c1f0663c400bdff9545578a45e5fe3094c6d754351e57dd5c52cdfe1528305dfde25eba7382a723a60b8bfdfeebb9536cd SHA512 701e34a0a3313568c8e5cf76668fefc2a1fceb2ade0de201b8f678401569f1c622c3d1657a71772fa3298efc8b3cdefe974d98432c0087e8b45af3d50a4262fb
24 +DIST bind-9.12.2.tar.gz 9424960 BLAKE2B 85bb95568de0204da5bcf97555d659f3e2acd4b6f1c255586f1ca8552cdf734aa644406f7dabf64a8f2ce98980a5fbe011746011be7a8f4edf47ce2555cf2f55 SHA512 17b641138e4e9a878fe1c5843363eff090a8d2b056eb1f10eb4ff34e0e3f457990a4ab9e7136aca850641b6d92601088971d40b6976d105e57f61fcd5537dcbe
25
26 diff --git a/net-dns/bind-tools/bind-tools-9.12.2.ebuild b/net-dns/bind-tools/bind-tools-9.12.2.ebuild
27 new file mode 100644
28 index 00000000000..f4e0311bb53
29 --- /dev/null
30 +++ b/net-dns/bind-tools/bind-tools-9.12.2.ebuild
31 @@ -0,0 +1,146 @@
32 +# Copyright 1999-2018 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI="5"
36 +
37 +inherit eutils autotools flag-o-matic toolchain-funcs
38 +
39 +MY_PN=${PN//-tools}
40 +MY_PV=${PV/_p/-P}
41 +MY_PV=${MY_PV/_rc/rc}
42 +MY_P="${MY_PN}-${MY_PV}"
43 +
44 +DESCRIPTION="bind tools: dig, nslookup, host, nsupdate, dnssec-keygen"
45 +HOMEPAGE="http://www.isc.org/software/bind"
46 +SRC_URI="https://www.isc.org/downloads/file/${MY_P}/?version=tar-gz -> ${MY_PN}-${PV}.tar.gz"
47 +
48 +LICENSE="Apache-2.0 BSD BSD-2 GPL-2 HPND ISC MPL-2.0"
49 +SLOT="0"
50 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
51 +IUSE="doc gost gssapi idn ipv6 libedit libidn2 libressl readline seccomp ssl urandom xml"
52 +# no PKCS11 currently as it requires OpenSSL to be patched, also see bug 409687
53 +
54 +REQUIRED_USE="gost? ( !libressl ssl )
55 + idn? ( !libidn2 )
56 + libidn2? ( !idn )"
57 +
58 +CDEPEND="
59 + ssl? (
60 + !libressl? ( dev-libs/openssl:0= )
61 + libressl? ( dev-libs/libressl:= )
62 + )
63 + gost? ( >=dev-libs/openssl-1.0.0:0=[-bindist] )
64 + xml? ( dev-libs/libxml2 )
65 + idn? ( <net-dns/idnkit-2:= )
66 + libidn2? ( net-dns/libidn2 )
67 + gssapi? ( virtual/krb5 )
68 + libedit? ( dev-libs/libedit )
69 + !libedit? (
70 + readline? ( sys-libs/readline:0= )
71 + )
72 + seccomp? ( sys-libs/libseccomp )"
73 +DEPEND="${CDEPEND}
74 + virtual/pkgconfig"
75 +RDEPEND="${CDEPEND}
76 + !<net-dns/bind-9.10.2"
77 +
78 +S="${WORKDIR}/${MY_P}"
79 +
80 +# bug 479092, requires networking
81 +RESTRICT="test"
82 +
83 +src_prepare() {
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 607400
105 + if use libedit ; then
106 + myconf+=' --with-readline=-ledit'
107 + elif use readline ; then
108 + myconf+=' --with-readline=-lreadline'
109 + else
110 + myconf+=' --without-readline'
111 + fi
112 +
113 + # bug 344029
114 + append-cflags "-DDIG_SIGCHASE"
115 +
116 + # localstatedir for nsupdate -l, bug 395785
117 + tc-export BUILD_CC
118 + econf \
119 + --localstatedir="${EPREFIX}"/var \
120 + --without-python \
121 + --without-libjson \
122 + --without-zlib \
123 + --without-lmdb \
124 + $(use_enable ipv6) \
125 + $(use_with idn idnkit) \
126 + $(usex idn --with-idnlib=-lidnkit '') \
127 + $(use_with libidn2) \
128 + $(use_enable seccomp) \
129 + $(use_with ssl openssl "${EPREFIX}"/usr) \
130 + $(use_with xml libxml2) \
131 + $(use_with gssapi) \
132 + $(use_with readline) \
133 + $(use_with gost) \
134 + ${myconf}
135 +
136 + # bug #151839
137 + echo '#undef SO_BSDCOMPAT' >> config.h
138 +}
139 +
140 +src_compile() {
141 + local AR=$(tc-getAR)
142 +
143 + emake AR="${AR}" -C lib/
144 + emake AR="${AR}" -C bin/delv/
145 + emake AR="${AR}" -C bin/dig/
146 + emake AR="${AR}" -C bin/nsupdate/
147 + emake AR="${AR}" -C bin/dnssec/
148 +}
149 +
150 +src_install() {
151 + dodoc README CHANGES
152 +
153 + cd "${S}"/bin/delv
154 + dobin delv
155 + doman delv.1
156 +
157 + cd "${S}"/bin/dig
158 + dobin dig host nslookup
159 + doman {dig,host,nslookup}.1
160 +
161 + cd "${S}"/bin/nsupdate
162 + dobin nsupdate
163 + doman nsupdate.1
164 + if use doc; then
165 + dohtml nsupdate.html
166 + fi
167 +
168 + cd "${S}"/bin/dnssec
169 + for tool in dsfromkey importkey keyfromlabel keygen \
170 + revoke settime signzone verify; do
171 + dobin dnssec-"${tool}"
172 + doman dnssec-"${tool}".8
173 + if use doc; then
174 + dohtml dnssec-"${tool}".html
175 + fi
176 + done
177 +}
178
179 diff --git a/net-dns/bind-tools/metadata.xml b/net-dns/bind-tools/metadata.xml
180 index 0db3429195a..89bc2188b1f 100644
181 --- a/net-dns/bind-tools/metadata.xml
182 +++ b/net-dns/bind-tools/metadata.xml
183 @@ -6,6 +6,7 @@
184 <name>Christian Ruppert</name>
185 </maintainer>
186 <use>
187 + <flag name="libidn2">Enables IDN support using <pkg>net-dns/libidn2</pkg> rather than using <pkg>net-dns/idnkit</pkg></flag>
188 <flag name="urandom">Use /dev/urandom instead of /dev/random</flag>
189 <flag name="gssapi">Enable gssapi support</flag>
190 <flag name="gost">Enables gost OpenSSL engine support</flag>