1 |
commit: 85307535c9bca61e0d725f60e54b2fea3d2d556b |
2 |
Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 18 20:14:02 2021 +0000 |
4 |
Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 18 20:15:01 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=85307535 |
7 |
|
8 |
net-dns/bind-tools: add 9.16.18 |
9 |
|
10 |
Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org> |
11 |
|
12 |
net-dns/bind-tools/Manifest | 1 + |
13 |
net-dns/bind-tools/bind-tools-9.16.18.ebuild | 148 +++++++++++++++++++++++++++ |
14 |
2 files changed, 149 insertions(+) |
15 |
|
16 |
diff --git a/net-dns/bind-tools/Manifest b/net-dns/bind-tools/Manifest |
17 |
index 45eb18e4666..2077705f358 100644 |
18 |
--- a/net-dns/bind-tools/Manifest |
19 |
+++ b/net-dns/bind-tools/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST bind-9.16.15.tar.xz 5025688 BLAKE2B 8b0723d46f812793f5a52b1ddacf21fe28e183ef8cd166eadf0af163280021fce7c0a6a560d28dacbc6dd4642e41eb5424b4de2c5ff1049a5cfa5d52e3df5beb SHA512 30dad6e2144b3ac53ef0a2d1ed3c8342120f148fc0eb6409113a6d5ed3444eecb917915fdf39c26fd223396fc1e873410a50da305f0b870864f7fbbdccec8033 |
22 |
+DIST bind-9.16.18.tar.xz 5023512 BLAKE2B 7766c1e6ab30ae42f0ba49d96fe0e2675e79aa01c48569d3cf5c122944319fbb88299a193ce06cc0aa67f6085fd80e29472fc7adc845e4bbb7ff6896dae87ed6 SHA512 6ba2f14324ebdc66d2a6d60e929fb47e170dd7662cf4b18ef3ad9da30a61b43c7d5539e931c483ab36e63ae0398aeed255fd672489fb332dccf182df9aa102f9 |
23 |
|
24 |
diff --git a/net-dns/bind-tools/bind-tools-9.16.18.ebuild b/net-dns/bind-tools/bind-tools-9.16.18.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..9a10170e22c |
27 |
--- /dev/null |
28 |
+++ b/net-dns/bind-tools/bind-tools-9.16.18.ebuild |
29 |
@@ -0,0 +1,148 @@ |
30 |
+# Copyright 1999-2021 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+ |
35 |
+inherit autotools flag-o-matic toolchain-funcs |
36 |
+ |
37 |
+MY_PN=${PN//-tools} |
38 |
+MY_PV=${PV/_p/-P} |
39 |
+MY_PV=${MY_PV/_rc/rc} |
40 |
+MY_P="${MY_PN}-${MY_PV}" |
41 |
+ |
42 |
+DESCRIPTION="bind tools: dig, nslookup, host, nsupdate, dnssec-keygen" |
43 |
+HOMEPAGE="https://www.isc.org/software/bind" |
44 |
+SRC_URI="https://downloads.isc.org/isc/bind9/${PV}/${MY_P}.tar.xz" |
45 |
+ |
46 |
+LICENSE="Apache-2.0 BSD BSD-2 GPL-2 HPND ISC MPL-2.0" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
49 |
+IUSE="+caps doc gssapi idn ipv6 libedit readline xml" |
50 |
+# no PKCS11 currently as it requires OpenSSL to be patched, also see bug 409687 |
51 |
+ |
52 |
+COMMON_DEPEND=" |
53 |
+ dev-libs/libuv:= |
54 |
+ caps? ( sys-libs/libcap ) |
55 |
+ dev-libs/openssl:= |
56 |
+ xml? ( dev-libs/libxml2 ) |
57 |
+ idn? ( net-dns/libidn2:= ) |
58 |
+ gssapi? ( virtual/krb5 ) |
59 |
+ libedit? ( dev-libs/libedit ) |
60 |
+ !libedit? ( |
61 |
+ readline? ( sys-libs/readline:= ) |
62 |
+ ) |
63 |
+" |
64 |
+DEPEND="${COMMON_DEPEND}" |
65 |
+RDEPEND="${COMMON_DEPEND}" |
66 |
+ |
67 |
+# sphinx required for man-page and html creation |
68 |
+BDEPEND=" |
69 |
+ doc? ( dev-python/sphinx ) |
70 |
+ virtual/pkgconfig |
71 |
+" |
72 |
+ |
73 |
+S="${WORKDIR}/${MY_P}" |
74 |
+ |
75 |
+# bug 479092, requires networking |
76 |
+RESTRICT="test" |
77 |
+ |
78 |
+src_prepare() { |
79 |
+ default |
80 |
+ |
81 |
+ export LDFLAGS="${LDFLAGS} -L${EPREFIX}/usr/$(get_libdir)" |
82 |
+ |
83 |
+ # Disable tests for now, bug 406399 |
84 |
+ sed -i '/^SUBDIRS/s:tests::' bin/Makefile.in lib/Makefile.in || die |
85 |
+ |
86 |
+ # bug #220361 |
87 |
+ rm aclocal.m4 || die |
88 |
+ rm -rf libtool.m4/ || die |
89 |
+ |
90 |
+ eautoreconf |
91 |
+} |
92 |
+ |
93 |
+src_configure() { |
94 |
+ local myeconfargs=( |
95 |
+ --localstatedir="${EPREFIX}"/var |
96 |
+ --without-python |
97 |
+ --without-libjson |
98 |
+ --without-zlib |
99 |
+ --without-lmdb |
100 |
+ --without-maxminddb |
101 |
+ --disable-geoip |
102 |
+ --with-openssl="${EPREFIX}"/usr |
103 |
+ $(use_with idn libidn2) |
104 |
+ $(use_with xml libxml2) |
105 |
+ $(use_with gssapi) |
106 |
+ $(use_with readline) |
107 |
+ $(use_enable caps linux-caps) |
108 |
+ AR="$(type -P $(tc-getAR))" |
109 |
+ ) |
110 |
+ |
111 |
+ # bug 607400 |
112 |
+ if use libedit ; then |
113 |
+ myeconfargs+=( --with-readline=-ledit ) |
114 |
+ elif use readline ; then |
115 |
+ myeconfargs+=( --with-readline=-lreadline ) |
116 |
+ else |
117 |
+ myeconfargs+=( --without-readline ) |
118 |
+ fi |
119 |
+ |
120 |
+ # bug 344029 |
121 |
+ append-cflags "-DDIG_SIGCHASE" |
122 |
+ |
123 |
+ # to expose CMSG_* macros from sys/sockets.h |
124 |
+ [[ ${CHOST} == *-solaris* ]] && append-cflags "-D_XOPEN_SOURCE=600" |
125 |
+ |
126 |
+ # localstatedir for nsupdate -l, bug 395785 |
127 |
+ tc-export BUILD_CC |
128 |
+ econf "${myeconfargs[@]}" |
129 |
+ |
130 |
+ # bug #151839 |
131 |
+ echo '#undef SO_BSDCOMPAT' >> config.h |
132 |
+} |
133 |
+ |
134 |
+src_compile() { |
135 |
+ local AR=$(tc-getAR) |
136 |
+ |
137 |
+ emake AR="${AR}" -C lib/ |
138 |
+ emake AR="${AR}" -C bin/delv/ |
139 |
+ emake AR="${AR}" -C bin/dig/ |
140 |
+ emake AR="${AR}" -C bin/nsupdate/ |
141 |
+ emake AR="${AR}" -C bin/dnssec/ |
142 |
+ emake -C doc/man/ man $(usev doc) |
143 |
+} |
144 |
+ |
145 |
+src_install() { |
146 |
+ local man_dir="${S}/doc/man" |
147 |
+ local html_dir="${man_dir}/_build/html" |
148 |
+ |
149 |
+ dodoc README CHANGES |
150 |
+ |
151 |
+ cd "${S}"/bin/delv || die |
152 |
+ dobin delv |
153 |
+ doman ${man_dir}/delv.1 |
154 |
+ |
155 |
+ cd "${S}"/bin/dig || die |
156 |
+ dobin dig host nslookup |
157 |
+ doman ${man_dir}/{dig,host,nslookup}.1 |
158 |
+ |
159 |
+ cd "${S}"/bin/nsupdate || die |
160 |
+ dobin nsupdate |
161 |
+ doman ${man_dir}/nsupdate.1 |
162 |
+ if use doc; then |
163 |
+ docinto html |
164 |
+ dodoc ${html_dir}/nsupdate.html |
165 |
+ fi |
166 |
+ |
167 |
+ cd "${S}"/bin/dnssec || die |
168 |
+ for tool in dsfromkey importkey keyfromlabel keygen \ |
169 |
+ revoke settime signzone verify; do |
170 |
+ dobin dnssec-"${tool}" |
171 |
+ doman ${man_dir}/dnssec-"${tool}".8 |
172 |
+ if use doc; then |
173 |
+ docinto html |
174 |
+ dodoc ${html_dir}/dnssec-"${tool}".html |
175 |
+ fi |
176 |
+ done |
177 |
+} |