Gentoo Archives: gentoo-commits

From: Mikle Kolyada <zlogene@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/bind-tools/
Date: Sun, 01 Sep 2019 11:21:59
Message-Id: 1567336911.e59f7cfc43d7ee381349faf88daf40d69c77effc.zlogene@gentoo
1 commit: e59f7cfc43d7ee381349faf88daf40d69c77effc
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 1 11:21:23 2019 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 1 11:21:51 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e59f7cfc
7
8 net-dns/bind-tools: Version bump (v9.14.5)
9
10 Package-Manager: Portage-2.3.69, Repoman-2.3.16
11 Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
12
13 net-dns/bind-tools/Manifest | 1 +
14 net-dns/bind-tools/bind-tools-9.14.5.ebuild | 139 ++++++++++++++++++++++++++++
15 2 files changed, 140 insertions(+)
16
17 diff --git a/net-dns/bind-tools/Manifest b/net-dns/bind-tools/Manifest
18 index a0f8dc90482..9c52f4c5c26 100644
19 --- a/net-dns/bind-tools/Manifest
20 +++ b/net-dns/bind-tools/Manifest
21 @@ -1,2 +1,3 @@
22 DIST bind-9.14.4.tar.gz 6295768 BLAKE2B c433344d2b431ebb2e9920a6d0af1dc6cf65df1e347c2a77882a7dd2ea165f9a91324edbd7171e6bab7487e13049e38d23a514323f1b4cc74a6ce1f5377f1589 SHA512 f5f4dc9b6a1d60838b59ce57ad37dc1e51fa26719aa203405a73850780f06bdc6ecea71c762efd464f946bdcce5a7c324de98caea36d2fe2781cce116fcd4932
23 +DIST bind-9.14.5.tar.gz 6313555 BLAKE2B 46bde0f6f78ee15357bca0129022a6dd88941f633513a8d768b53d9c3bc0f4f7af4d8dc8cc4b1d6119d148700703b2fa27b6834671dcb5df9b544e4a2025452b SHA512 1b18eda5dea639f9b34e1c41b534704b0d5f64c036b766c9cfccf9bbeb586ce4ea7f0d098a5b2747e88aa403e48ad8ae0b6e560e93348f0dc7616f914671d084
24 DIST bind-9.15.2.tar.gz 6303402 BLAKE2B c8a16a80c9f690adb61284b27a619b4dbe120eadad7b38138da099a1d5a1171443da6e1c717e876e2739ee4d543cb00665c07fac460a256b178bace96510f4a3 SHA512 df7499bc3eeabf39eebfe346efe15631929cd7287e12fc6b04baea90c332a02fc4b9a8d40f043e308ebd61a82baafb5cf9e69654511dc9a2dcb7415597d5a646
25
26 diff --git a/net-dns/bind-tools/bind-tools-9.14.5.ebuild b/net-dns/bind-tools/bind-tools-9.14.5.ebuild
27 new file mode 100644
28 index 00000000000..b9990bee82f
29 --- /dev/null
30 +++ b/net-dns/bind-tools/bind-tools-9.14.5.ebuild
31 @@ -0,0 +1,139 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +inherit 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="https://www.isc.org/software/bind"
46 +SRC_URI="https://downloads.isc.org/isc/bind9/${PV}/${MY_P}.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="+caps doc gssapi idn ipv6 libedit libressl readline xml"
52 +# no PKCS11 currently as it requires OpenSSL to be patched, also see bug 409687
53 +
54 +COMMON_DEPEND="
55 + caps? ( sys-libs/libcap )
56 + !libressl? ( dev-libs/openssl:0= )
57 + libressl? ( dev-libs/libressl:0= )
58 + xml? ( dev-libs/libxml2 )
59 + idn? ( net-dns/libidn2:= )
60 + gssapi? ( virtual/krb5 )
61 + libedit? ( dev-libs/libedit )
62 + !libedit? (
63 + readline? ( sys-libs/readline:0= )
64 + )"
65 +DEPEND="${COMMON_DEPEND}"
66 +
67 +RDEPEND="${COMMON_EPEND}
68 + !<net-dns/bind-9.10.2"
69 +
70 +BDEPEND="virtual/pkgconfig"
71 +
72 +S="${WORKDIR}/${MY_P}"
73 +
74 +# bug 479092, requires networking
75 +RESTRICT="test"
76 +
77 +PATCHES=( "${FILESDIR}"/sparc-pause-instruction.patch )
78 +
79 +src_prepare() {
80 + default
81 +
82 + export LDFLAGS="${LDFLAGS} -L${EPREFIX}/usr/$(get_libdir)"
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 || die
89 + rm -rf libtool.m4/ || die
90 +
91 + eautoreconf
92 +}
93 +
94 +src_configure() {
95 + local myeconfargs=(
96 + --localstatedir="${EPREFIX}"/var
97 + --without-python
98 + --without-libjson
99 + --without-zlib
100 + --without-lmdb
101 + $(use_with idn libidn2)
102 + $(use_with xml libxml2)
103 + $(use_with gssapi)
104 + $(use_with readline)
105 + $(use_enable caps linux-caps)
106 + )
107 +
108 + # bug 607400
109 + if use libedit ; then
110 + myeconfargs+=( --with-readline=-ledit )
111 + elif use readline ; then
112 + myeconfargs+=( --with-readline=-lreadline )
113 + else
114 + myeconfargs+=( --without-readline )
115 + fi
116 +
117 + # bug 344029
118 + append-cflags "-DDIG_SIGCHASE"
119 +
120 + # to expose CMSG_* macros from sys/sockets.h
121 + [[ ${CHOST} == *-solaris* ]] && append-cflags "-D_XOPEN_SOURCE=600"
122 +
123 + # localstatedir for nsupdate -l, bug 395785
124 + tc-export BUILD_CC
125 + econf "${myeconfargs[@]}"
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
143 +
144 + cd "${S}"/bin/delv || die
145 + dobin delv
146 + doman delv.1
147 +
148 + cd "${S}"/bin/dig || die
149 + dobin dig host nslookup
150 + doman {dig,host,nslookup}.1
151 +
152 + cd "${S}"/bin/nsupdate || die
153 + dobin nsupdate
154 + doman nsupdate.1
155 + if use doc; then
156 + docinto html
157 + dodoc nsupdate.html
158 + fi
159 +
160 + cd "${S}"/bin/dnssec || die
161 + for tool in dsfromkey importkey keyfromlabel keygen \
162 + revoke settime signzone verify; do
163 + dobin dnssec-"${tool}"
164 + doman dnssec-"${tool}".8
165 + if use doc; then
166 + docinto html
167 + dodoc dnssec-"${tool}".html
168 + fi
169 + done
170 +}