1 |
commit: 3db4b4a079e23dcbed3ff3ce9a400636bbb0f6ba |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 23 05:40:46 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 23 05:40:46 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3db4b4a0 |
7 |
|
8 |
net-dns/bind-tools: add 9.16.33 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/872206 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
net-dns/bind-tools/Manifest | 1 + |
14 |
net-dns/bind-tools/bind-tools-9.16.33.ebuild | 157 +++++++++++++++++++++++++++ |
15 |
2 files changed, 158 insertions(+) |
16 |
|
17 |
diff --git a/net-dns/bind-tools/Manifest b/net-dns/bind-tools/Manifest |
18 |
index ae95d72bfb36..e3e798fba869 100644 |
19 |
--- a/net-dns/bind-tools/Manifest |
20 |
+++ b/net-dns/bind-tools/Manifest |
21 |
@@ -3,3 +3,4 @@ DIST bind-9.16.29.tar.xz 5088348 BLAKE2B 17ee1443926327c30f1d5820110b01a193c53eb |
22 |
DIST bind-9.16.30.tar.xz 5086288 BLAKE2B 35fe14b58a018df25563e58a9632b4431f740bc7a708eb823117541548d23b1855e43058cf7323361ca904d5e59d687e282abb73dc8b617e4eb25ef113168e93 SHA512 cc9bcbedf63c2efe0a23f14db3e57fdae46f0509aac58e5840a6805ce4fbd76cad5bfde4d461442adb88c4d947f8d79bf979aeb24aeb9303b6adc8d169b7118c |
23 |
DIST bind-9.16.31.tar.xz 5087424 BLAKE2B 75c9038c00fe289161a15a8e4fdadaef5a6a7f3ca03068ec24e82aa9f30ac82d0ded9cf73df83219058cd81b198ea8f561211a323e31b41407294f6932dc61d3 SHA512 8577b4d021a5a763b8669d59ef6c3499238e87657ca94ccfc530cb9a7a215ee3682002aa6141f5731154cbc43e0e6094372961468811a68bbd2a37e20e287c7e |
24 |
DIST bind-9.16.32.tar.xz 5091860 BLAKE2B df6f2c878138015da580dfaf0e16b5a97b11ead9f99c1425a09da8484954196ea3dafb828ac3ab386200ce2b180646c7eb1e0e62a84c153162270a4a1e19a5fc SHA512 99abedf055901b43e1a85c448ee4c2dd731b7ab77de1454b73c8f9df816aa32262e70e23a8112959d94be990fd4f1c48c36611657ba745670141a7447fd53316 |
25 |
+DIST bind-9.16.33.tar.xz 5092516 BLAKE2B 4246b61ce91af3d494ace4b8065b4c0043b2cfaf28c6de326691a969837e7d1cfbc0dac6b1e1a5182fc32af68048abcfa1202d00022951f3caa13afb03ebeb69 SHA512 43fd2cea52dfd1115a4cca83830ab5b93208be401cdbbdff2bbf204b8f0d99fb434ad3156d3a21649488cc904ae09f145feba97b9b6918b0cf063ff5e2b10af5 |
26 |
|
27 |
diff --git a/net-dns/bind-tools/bind-tools-9.16.33.ebuild b/net-dns/bind-tools/bind-tools-9.16.33.ebuild |
28 |
new file mode 100644 |
29 |
index 000000000000..4a9cc94b8e64 |
30 |
--- /dev/null |
31 |
+++ b/net-dns/bind-tools/bind-tools-9.16.33.ebuild |
32 |
@@ -0,0 +1,157 @@ |
33 |
+# Copyright 1999-2022 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=8 |
37 |
+ |
38 |
+inherit autotools flag-o-matic multiprocessing 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="https://www.isc.org/software/bind https://gitlab.isc.org/isc-projects/bind9" |
47 |
+SRC_URI="https://downloads.isc.org/isc/bind9/${PV}/${MY_P}.tar.xz" |
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 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
52 |
+IUSE="+caps doc gssapi idn libedit readline test xml" |
53 |
+# no PKCS11 currently as it requires OpenSSL to be patched, also see bug #409687 |
54 |
+RESTRICT="!test? ( test )" |
55 |
+ |
56 |
+COMMON_DEPEND=" |
57 |
+ dev-libs/libuv:= |
58 |
+ dev-libs/openssl:= |
59 |
+ caps? ( sys-libs/libcap ) |
60 |
+ xml? ( dev-libs/libxml2 ) |
61 |
+ idn? ( net-dns/libidn2:= ) |
62 |
+ gssapi? ( virtual/krb5 ) |
63 |
+ libedit? ( dev-libs/libedit ) |
64 |
+ !libedit? ( |
65 |
+ readline? ( sys-libs/readline:= ) |
66 |
+ ) |
67 |
+" |
68 |
+DEPEND="${COMMON_DEPEND}" |
69 |
+RDEPEND="${COMMON_DEPEND}" |
70 |
+ |
71 |
+# sphinx required for man-page and html creation |
72 |
+BDEPEND=" |
73 |
+ virtual/pkgconfig |
74 |
+ doc? ( dev-python/sphinx ) |
75 |
+ test? ( |
76 |
+ dev-util/cmocka |
77 |
+ dev-util/kyua |
78 |
+ ) |
79 |
+" |
80 |
+ |
81 |
+S="${WORKDIR}/${MY_P}" |
82 |
+ |
83 |
+src_prepare() { |
84 |
+ default |
85 |
+ |
86 |
+ append-ldflags "-L${ESYSROOT}/usr/$(get_libdir)" |
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 || die |
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_test() { |
152 |
+ # system tests ('emake test') require network configuration for IPs etc |
153 |
+ # so we run the unit tests instead. |
154 |
+ TEST_PARALLEL_JOBS="$(makeopts_jobs)" emake unit |
155 |
+} |
156 |
+ |
157 |
+src_install() { |
158 |
+ local man_dir="${S}/doc/man" |
159 |
+ local html_dir="${man_dir}/_build/html" |
160 |
+ |
161 |
+ dodoc README CHANGES |
162 |
+ |
163 |
+ cd "${S}"/bin/delv || die |
164 |
+ dobin delv |
165 |
+ doman ${man_dir}/delv.1 |
166 |
+ |
167 |
+ cd "${S}"/bin/dig || die |
168 |
+ dobin dig host nslookup |
169 |
+ doman ${man_dir}/{dig,host,nslookup}.1 |
170 |
+ |
171 |
+ cd "${S}"/bin/nsupdate || die |
172 |
+ dobin nsupdate |
173 |
+ doman ${man_dir}/nsupdate.1 |
174 |
+ if use doc; then |
175 |
+ docinto html |
176 |
+ dodoc ${html_dir}/nsupdate.html |
177 |
+ fi |
178 |
+ |
179 |
+ cd "${S}"/bin/dnssec || die |
180 |
+ for tool in dsfromkey importkey keyfromlabel keygen \ |
181 |
+ revoke settime signzone verify; do |
182 |
+ dobin dnssec-"${tool}" |
183 |
+ doman ${man_dir}/dnssec-"${tool}".8 |
184 |
+ if use doc; then |
185 |
+ docinto html |
186 |
+ dodoc ${html_dir}/dnssec-"${tool}".html |
187 |
+ fi |
188 |
+ done |
189 |
+} |