1 |
commit: 0a3cb6d7f6c84e99631cbefd1a681987c892a625 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Aug 18 03:09:39 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 18 03:09:57 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a3cb6d7 |
7 |
|
8 |
net-dns/bind-tools: add 9.16.32 |
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.32.ebuild | 157 +++++++++++++++++++++++++++ |
14 |
2 files changed, 158 insertions(+) |
15 |
|
16 |
diff --git a/net-dns/bind-tools/Manifest b/net-dns/bind-tools/Manifest |
17 |
index f013801f067d..ae95d72bfb36 100644 |
18 |
--- a/net-dns/bind-tools/Manifest |
19 |
+++ b/net-dns/bind-tools/Manifest |
20 |
@@ -2,3 +2,4 @@ DIST bind-9.16.27.tar.xz 5084340 BLAKE2B 37b49ce81aa5122493a4feb2bb7be53c5d46ff2 |
21 |
DIST bind-9.16.29.tar.xz 5088348 BLAKE2B 17ee1443926327c30f1d5820110b01a193c53eb24e23385b713217a4e49d9c2b5ddb6e1c49cb80d2c9083c71ce7872a26fe3597209f2e3215e6cc7e930e68004 SHA512 b4acbafed370438ac53e73468ccb5ea5745a1c8f764dd96f9c9a027594a3b7ce0d486e7f01138b39795b456265e0e6116cd76e44f5a3329687cd718550ca79fb |
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 |
|
26 |
diff --git a/net-dns/bind-tools/bind-tools-9.16.32.ebuild b/net-dns/bind-tools/bind-tools-9.16.32.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..4a9cc94b8e64 |
29 |
--- /dev/null |
30 |
+++ b/net-dns/bind-tools/bind-tools-9.16.32.ebuild |
31 |
@@ -0,0 +1,157 @@ |
32 |
+# Copyright 1999-2022 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=8 |
36 |
+ |
37 |
+inherit autotools flag-o-matic multiprocessing 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 https://gitlab.isc.org/isc-projects/bind9" |
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 libedit readline test xml" |
52 |
+# no PKCS11 currently as it requires OpenSSL to be patched, also see bug #409687 |
53 |
+RESTRICT="!test? ( test )" |
54 |
+ |
55 |
+COMMON_DEPEND=" |
56 |
+ dev-libs/libuv:= |
57 |
+ dev-libs/openssl:= |
58 |
+ caps? ( sys-libs/libcap ) |
59 |
+ xml? ( dev-libs/libxml2 ) |
60 |
+ idn? ( net-dns/libidn2:= ) |
61 |
+ gssapi? ( virtual/krb5 ) |
62 |
+ libedit? ( dev-libs/libedit ) |
63 |
+ !libedit? ( |
64 |
+ readline? ( sys-libs/readline:= ) |
65 |
+ ) |
66 |
+" |
67 |
+DEPEND="${COMMON_DEPEND}" |
68 |
+RDEPEND="${COMMON_DEPEND}" |
69 |
+ |
70 |
+# sphinx required for man-page and html creation |
71 |
+BDEPEND=" |
72 |
+ virtual/pkgconfig |
73 |
+ doc? ( dev-python/sphinx ) |
74 |
+ test? ( |
75 |
+ dev-util/cmocka |
76 |
+ dev-util/kyua |
77 |
+ ) |
78 |
+" |
79 |
+ |
80 |
+S="${WORKDIR}/${MY_P}" |
81 |
+ |
82 |
+src_prepare() { |
83 |
+ default |
84 |
+ |
85 |
+ append-ldflags "-L${ESYSROOT}/usr/$(get_libdir)" |
86 |
+ |
87 |
+ # Do not disable thread local storage on Solaris, it works with our |
88 |
+ # toolchain, and it breaks further configure checks |
89 |
+ sed -i -e '/LDFLAGS=/s/-zrelax=transtls//' configure.ac configure || die |
90 |
+ |
91 |
+ # bug #220361 |
92 |
+ rm aclocal.m4 || die |
93 |
+ rm -rf libtool.m4/ || die |
94 |
+ |
95 |
+ eautoreconf |
96 |
+} |
97 |
+ |
98 |
+src_configure() { |
99 |
+ local myeconfargs=( |
100 |
+ --localstatedir="${EPREFIX}"/var |
101 |
+ --without-python |
102 |
+ --without-libjson |
103 |
+ --without-zlib |
104 |
+ --without-lmdb |
105 |
+ --without-maxminddb |
106 |
+ --disable-geoip |
107 |
+ --with-openssl="${ESYSROOT}"/usr |
108 |
+ $(use_with idn libidn2 "${ESYSROOT}"/usr) |
109 |
+ $(use_with xml libxml2) |
110 |
+ $(use_with gssapi) |
111 |
+ $(use_with readline) |
112 |
+ $(use_enable caps linux-caps) |
113 |
+ AR="$(type -P $(tc-getAR))" |
114 |
+ ) |
115 |
+ |
116 |
+ # bug 607400 |
117 |
+ if use libedit ; then |
118 |
+ myeconfargs+=( --with-readline=-ledit ) |
119 |
+ elif use readline ; then |
120 |
+ myeconfargs+=( --with-readline=-lreadline ) |
121 |
+ else |
122 |
+ myeconfargs+=( --without-readline ) |
123 |
+ fi |
124 |
+ |
125 |
+ # bug #344029 |
126 |
+ append-cflags "-DDIG_SIGCHASE" |
127 |
+ |
128 |
+ # to expose CMSG_* macros from sys/sockets.h |
129 |
+ [[ ${CHOST} == *-solaris* ]] && append-cflags "-D_XOPEN_SOURCE=600" |
130 |
+ |
131 |
+ # localstatedir for nsupdate -l, bug #395785 |
132 |
+ tc-export BUILD_CC |
133 |
+ econf "${myeconfargs[@]}" |
134 |
+ |
135 |
+ # bug #151839 |
136 |
+ echo '#undef SO_BSDCOMPAT' >> config.h || die |
137 |
+} |
138 |
+ |
139 |
+src_compile() { |
140 |
+ local AR="$(tc-getAR)" |
141 |
+ |
142 |
+ emake AR="${AR}" -C lib/ |
143 |
+ emake AR="${AR}" -C bin/delv/ |
144 |
+ emake AR="${AR}" -C bin/dig/ |
145 |
+ emake AR="${AR}" -C bin/nsupdate/ |
146 |
+ emake AR="${AR}" -C bin/dnssec/ |
147 |
+ emake -C doc/man/ man $(usev doc) |
148 |
+} |
149 |
+ |
150 |
+src_test() { |
151 |
+ # system tests ('emake test') require network configuration for IPs etc |
152 |
+ # so we run the unit tests instead. |
153 |
+ TEST_PARALLEL_JOBS="$(makeopts_jobs)" emake unit |
154 |
+} |
155 |
+ |
156 |
+src_install() { |
157 |
+ local man_dir="${S}/doc/man" |
158 |
+ local html_dir="${man_dir}/_build/html" |
159 |
+ |
160 |
+ dodoc README CHANGES |
161 |
+ |
162 |
+ cd "${S}"/bin/delv || die |
163 |
+ dobin delv |
164 |
+ doman ${man_dir}/delv.1 |
165 |
+ |
166 |
+ cd "${S}"/bin/dig || die |
167 |
+ dobin dig host nslookup |
168 |
+ doman ${man_dir}/{dig,host,nslookup}.1 |
169 |
+ |
170 |
+ cd "${S}"/bin/nsupdate || die |
171 |
+ dobin nsupdate |
172 |
+ doman ${man_dir}/nsupdate.1 |
173 |
+ if use doc; then |
174 |
+ docinto html |
175 |
+ dodoc ${html_dir}/nsupdate.html |
176 |
+ fi |
177 |
+ |
178 |
+ cd "${S}"/bin/dnssec || die |
179 |
+ for tool in dsfromkey importkey keyfromlabel keygen \ |
180 |
+ revoke settime signzone verify; do |
181 |
+ dobin dnssec-"${tool}" |
182 |
+ doman ${man_dir}/dnssec-"${tool}".8 |
183 |
+ if use doc; then |
184 |
+ docinto html |
185 |
+ dodoc ${html_dir}/dnssec-"${tool}".html |
186 |
+ fi |
187 |
+ done |
188 |
+} |