1 |
commit: 51c1ba2243b1b58d5a56b6263d2e0ce837442528 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 31 03:20:13 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 31 03:20:13 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51c1ba22 |
7 |
|
8 |
net-dns/bind-tools: add 9.16.29 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
net-dns/bind-tools/Manifest | 1 + |
13 |
net-dns/bind-tools/bind-tools-9.16.29.ebuild | 152 +++++++++++++++++++++++++++ |
14 |
2 files changed, 153 insertions(+) |
15 |
|
16 |
diff --git a/net-dns/bind-tools/Manifest b/net-dns/bind-tools/Manifest |
17 |
index fe9aee4cdc9c..13d9e76ba59d 100644 |
18 |
--- a/net-dns/bind-tools/Manifest |
19 |
+++ b/net-dns/bind-tools/Manifest |
20 |
@@ -4,3 +4,4 @@ DIST bind-9.16.21.tar.xz 5057816 BLAKE2B bc7de285b45084a4904aee7c5c3042c7a207596 |
21 |
DIST bind-9.16.22.tar.xz 5059000 BLAKE2B c4853a8be268f9666f3677adf2e64c6d74f7df44d2dc05df544cead38c6c3b86489d25a66ccea6ce8ca89fa525a1848fe93a8aaa6bb1ee090aa189bf6aad40f3 SHA512 586fb4d5a656d6539033dcdfdd230b36465a2d2e6ada651c1f1548d062a9050e7a962af87e2a56931fe24c65586d29012d4a041dcddbb28f42b4d01fe291d9d1 |
22 |
DIST bind-9.16.25.tar.xz 5086780 BLAKE2B cb62d0d4e25f508f1a77fae6a11ff144d2436346c45a936d572df4c843cd72ec81cffacd0a81dcb74eb73b8bca7d0762a5746baadda36f260b79b72eade24d18 SHA512 e43c0e59159d3a5642db051f3982d8767fb726426380c32960fefe4b9afd05708ed8f7e80a98b803a580b048e1a368c888e2dd5695fa5fcd7b8b75574a27cb62 |
23 |
DIST bind-9.16.27.tar.xz 5084340 BLAKE2B 37b49ce81aa5122493a4feb2bb7be53c5d46ff2ce28456aec31ce1332520a09c10bb2293c736bffe7badbc2bc3d156c05f83367678bd101e17b99ca3ff69bebf SHA512 5c71f228db83aa8cc9e65466d6e5afca4a9f80c693358111a003fe09e1a14522175eb2b6a0f11e2a2cd4fdba01f2ae315de52e394a441b3861ca2a011e02af62 |
24 |
+DIST bind-9.16.29.tar.xz 5088348 BLAKE2B 17ee1443926327c30f1d5820110b01a193c53eb24e23385b713217a4e49d9c2b5ddb6e1c49cb80d2c9083c71ce7872a26fe3597209f2e3215e6cc7e930e68004 SHA512 b4acbafed370438ac53e73468ccb5ea5745a1c8f764dd96f9c9a027594a3b7ce0d486e7f01138b39795b456265e0e6116cd76e44f5a3329687cd718550ca79fb |
25 |
|
26 |
diff --git a/net-dns/bind-tools/bind-tools-9.16.29.ebuild b/net-dns/bind-tools/bind-tools-9.16.29.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..ff87925c2430 |
29 |
--- /dev/null |
30 |
+++ b/net-dns/bind-tools/bind-tools-9.16.29.ebuild |
31 |
@@ -0,0 +1,152 @@ |
32 |
+# Copyright 1999-2022 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.xz" |
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 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
51 |
+IUSE="+caps doc gssapi idn ipv6 libedit readline xml" |
52 |
+# no PKCS11 currently as it requires OpenSSL to be patched, also see bug 409687 |
53 |
+ |
54 |
+COMMON_DEPEND=" |
55 |
+ dev-libs/libuv:= |
56 |
+ caps? ( sys-libs/libcap ) |
57 |
+ dev-libs/openssl:= |
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:= ) |
64 |
+ ) |
65 |
+" |
66 |
+DEPEND="${COMMON_DEPEND}" |
67 |
+RDEPEND="${COMMON_DEPEND}" |
68 |
+ |
69 |
+# sphinx required for man-page and html creation |
70 |
+BDEPEND=" |
71 |
+ doc? ( dev-python/sphinx ) |
72 |
+ virtual/pkgconfig |
73 |
+" |
74 |
+ |
75 |
+S="${WORKDIR}/${MY_P}" |
76 |
+ |
77 |
+# bug 479092, requires networking |
78 |
+RESTRICT="test" |
79 |
+ |
80 |
+src_prepare() { |
81 |
+ default |
82 |
+ |
83 |
+ export LDFLAGS="${LDFLAGS} -L${EPREFIX}/usr/$(get_libdir)" |
84 |
+ |
85 |
+ # Disable tests for now, bug 406399 |
86 |
+ sed -i '/^SUBDIRS/s:tests::' bin/Makefile.in lib/Makefile.in || die |
87 |
+ |
88 |
+ # Do not disable thread local storage on Solaris, it works with our |
89 |
+ # toolchain, and it breaks further configure checks |
90 |
+ sed -i -e '/LDFLAGS=/s/-zrelax=transtls//' configure.ac configure || die |
91 |
+ |
92 |
+ # bug #220361 |
93 |
+ rm aclocal.m4 || die |
94 |
+ rm -rf libtool.m4/ || die |
95 |
+ |
96 |
+ eautoreconf |
97 |
+} |
98 |
+ |
99 |
+src_configure() { |
100 |
+ local myeconfargs=( |
101 |
+ --localstatedir="${EPREFIX}"/var |
102 |
+ --without-python |
103 |
+ --without-libjson |
104 |
+ --without-zlib |
105 |
+ --without-lmdb |
106 |
+ --without-maxminddb |
107 |
+ --disable-geoip |
108 |
+ --with-openssl="${ESYSROOT}"/usr |
109 |
+ $(use_with idn libidn2 "${ESYSROOT}"/usr) |
110 |
+ $(use_with xml libxml2) |
111 |
+ $(use_with gssapi) |
112 |
+ $(use_with readline) |
113 |
+ $(use_enable caps linux-caps) |
114 |
+ AR="$(type -P $(tc-getAR))" |
115 |
+ ) |
116 |
+ |
117 |
+ # bug 607400 |
118 |
+ if use libedit ; then |
119 |
+ myeconfargs+=( --with-readline=-ledit ) |
120 |
+ elif use readline ; then |
121 |
+ myeconfargs+=( --with-readline=-lreadline ) |
122 |
+ else |
123 |
+ myeconfargs+=( --without-readline ) |
124 |
+ fi |
125 |
+ |
126 |
+ # bug 344029 |
127 |
+ append-cflags "-DDIG_SIGCHASE" |
128 |
+ |
129 |
+ # to expose CMSG_* macros from sys/sockets.h |
130 |
+ [[ ${CHOST} == *-solaris* ]] && append-cflags "-D_XOPEN_SOURCE=600" |
131 |
+ |
132 |
+ # localstatedir for nsupdate -l, bug 395785 |
133 |
+ tc-export BUILD_CC |
134 |
+ econf "${myeconfargs[@]}" |
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 |
+ emake -C doc/man/ man $(usev doc) |
149 |
+} |
150 |
+ |
151 |
+src_install() { |
152 |
+ local man_dir="${S}/doc/man" |
153 |
+ local html_dir="${man_dir}/_build/html" |
154 |
+ |
155 |
+ dodoc README CHANGES |
156 |
+ |
157 |
+ cd "${S}"/bin/delv || die |
158 |
+ dobin delv |
159 |
+ doman ${man_dir}/delv.1 |
160 |
+ |
161 |
+ cd "${S}"/bin/dig || die |
162 |
+ dobin dig host nslookup |
163 |
+ doman ${man_dir}/{dig,host,nslookup}.1 |
164 |
+ |
165 |
+ cd "${S}"/bin/nsupdate || die |
166 |
+ dobin nsupdate |
167 |
+ doman ${man_dir}/nsupdate.1 |
168 |
+ if use doc; then |
169 |
+ docinto html |
170 |
+ dodoc ${html_dir}/nsupdate.html |
171 |
+ fi |
172 |
+ |
173 |
+ cd "${S}"/bin/dnssec || die |
174 |
+ for tool in dsfromkey importkey keyfromlabel keygen \ |
175 |
+ revoke settime signzone verify; do |
176 |
+ dobin dnssec-"${tool}" |
177 |
+ doman ${man_dir}/dnssec-"${tool}".8 |
178 |
+ if use doc; then |
179 |
+ docinto html |
180 |
+ dodoc ${html_dir}/dnssec-"${tool}".html |
181 |
+ fi |
182 |
+ done |
183 |
+} |