Gentoo Archives: gentoo-commits

From: Christian Ruppert <idl0r@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/bind-tools/
Date: Mon, 19 Jun 2017 12:06:00
Message-Id: 1497873949.6df194cc0b6cb18c51270a48c96d85b3999b1dba.idl0r@gentoo
1 commit: 6df194cc0b6cb18c51270a48c96d85b3999b1dba
2 Author: Christian Ruppert <idl0r <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 19 12:05:37 2017 +0000
4 Commit: Christian Ruppert <idl0r <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 19 12:05:49 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6df194cc
7
8 net-dns/bind-tools: Version bump
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.2
11
12 net-dns/bind-tools/Manifest | 1 +
13 net-dns/bind-tools/bind-tools-9.11.1_p1.ebuild | 133 +++++++++++++++++++++++++
14 2 files changed, 134 insertions(+)
15
16 diff --git a/net-dns/bind-tools/Manifest b/net-dns/bind-tools/Manifest
17 index 7f161397609..f63ca8d3f12 100644
18 --- a/net-dns/bind-tools/Manifest
19 +++ b/net-dns/bind-tools/Manifest
20 @@ -1 +1,2 @@
21 DIST bind-9.11.0-P5.tar.gz 9698446 SHA256 1e283f0567b484687dfd7b936e26c9af4f64043daf73cbd8f3eb1122c9fb71f5 SHA512 142407db35a7bba6e676f2b3dc726a3a6ece9df8a27722f108ec309e24c4614da097b6cd31675c4925e68ff147896bc0a16dd71aa74dd73753ba86a2dbd7d3bd WHIRLPOOL a2aba3a52ad3610891733a3c8d93c0f5b263f706e36178a6f642b18e607a665ad0b15bdf679b9a5d149e9262eb5f718e23a09e989b63a418ee8fdfcb7f435186
22 +DIST bind-9.11.1-P1.tar.gz 9745364 SHA256 6b1b3e88d51b8471bd6aee24a8cea70817e850a5901315dc506f9dde275ca638 SHA512 5683ae7be264e11b5b2a843d216e3ca4959b7de109863d5435090b2e033d6c405689e4ce57385ca787b1c948f4437aea39b8d5164a1d347c167f87337e9fc760 WHIRLPOOL a9dd3cabfe04f16a60ce9d55d3bfdd57d05bddd9fb86996e952756bf40b63dda78d269903d1ae951b499cea899e154e2936117ad2bc6de0e30c0937c8292e45b
23
24 diff --git a/net-dns/bind-tools/bind-tools-9.11.1_p1.ebuild b/net-dns/bind-tools/bind-tools-9.11.1_p1.ebuild
25 new file mode 100644
26 index 00000000000..7b7694cdca8
27 --- /dev/null
28 +++ b/net-dns/bind-tools/bind-tools-9.11.1_p1.ebuild
29 @@ -0,0 +1,133 @@
30 +# Copyright 1999-2017 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI="5"
34 +
35 +inherit eutils 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="http://www.isc.org/software/bind"
44 +SRC_URI="ftp://ftp.isc.org/isc/bind9/${MY_PV}/${MY_P}.tar.gz"
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 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
49 +IUSE="doc gost gssapi idn ipv6 libressl readline seccomp ssl urandom xml"
50 +# no PKCS11 currently as it requires OpenSSL to be patched, also see bug 409687
51 +
52 +REQUIRED_USE="gost? ( !libressl ssl )"
53 +
54 +CDEPEND="
55 + ssl? (
56 + !libressl? ( dev-libs/openssl:0 )
57 + libressl? ( dev-libs/libressl )
58 + )
59 + gost? ( >=dev-libs/openssl-1.0.0:0[-bindist] )
60 + xml? ( dev-libs/libxml2 )
61 + idn? ( net-dns/idnkit )
62 + gssapi? ( virtual/krb5 )
63 + readline? ( sys-libs/readline:0= )
64 + seccomp? ( sys-libs/libseccomp )"
65 +DEPEND="${CDEPEND}
66 + virtual/pkgconfig"
67 +RDEPEND="${CDEPEND}
68 + !<net-dns/bind-9.10.2"
69 +
70 +S="${WORKDIR}/${MY_P}"
71 +
72 +# bug 479092, requires networking
73 +RESTRICT="test"
74 +
75 +src_prepare() {
76 + epatch "${FILESDIR}"/${PN}-9.5.0_p1-lwconfig.patch #231247
77 +
78 + # Disable tests for now, bug 406399
79 + sed -i '/^SUBDIRS/s:tests::' bin/Makefile.in lib/Makefile.in || die
80 +
81 + # bug #220361
82 + rm aclocal.m4
83 + rm -rf libtool.m4/
84 +
85 + mv configure.in configure.ac || die # configure.in is deprecated
86 + eautoreconf
87 +}
88 +
89 +src_configure() {
90 + local myconf=
91 +
92 + if use urandom; then
93 + myconf="${myconf} --with-randomdev=/dev/urandom"
94 + else
95 + myconf="${myconf} --with-randomdev=/dev/random"
96 + fi
97 +
98 + # bug 344029
99 + append-cflags "-DDIG_SIGCHASE"
100 +
101 + # localstatedir for nsupdate -l, bug 395785
102 + tc-export BUILD_CC
103 + econf \
104 + --localstatedir=/var \
105 + --without-python \
106 + --without-libjson \
107 + --without-zlib \
108 + --without-lmdb \
109 + --disable-openssl-version-check \
110 + $(use_enable ipv6) \
111 + $(use_with idn) \
112 + $(usex idn --with-idnlib=-lidnkit '') \
113 + $(use_enable seccomp) \
114 + $(use_with ssl openssl) \
115 + $(use_with xml libxml2) \
116 + $(use_with gssapi) \
117 + $(use_with readline) \
118 + $(use_with gost) \
119 + ${myconf}
120 +
121 + # bug #151839
122 + echo '#undef SO_BSDCOMPAT' >> config.h
123 +}
124 +
125 +src_compile() {
126 + local AR=$(tc-getAR)
127 +
128 + emake AR="${AR}" -C lib/
129 + emake AR="${AR}" -C bin/delv/
130 + emake AR="${AR}" -C bin/dig/
131 + emake AR="${AR}" -C bin/nsupdate/
132 + emake AR="${AR}" -C bin/dnssec/
133 +}
134 +
135 +src_install() {
136 + dodoc README CHANGES FAQ
137 +
138 + cd "${S}"/bin/delv
139 + dobin delv
140 + doman delv.1
141 +
142 + cd "${S}"/bin/dig
143 + dobin dig host nslookup
144 + doman {dig,host,nslookup}.1
145 +
146 + cd "${S}"/bin/nsupdate
147 + dobin nsupdate
148 + doman nsupdate.1
149 + if use doc; then
150 + dohtml nsupdate.html
151 + fi
152 +
153 + cd "${S}"/bin/dnssec
154 + for tool in dsfromkey importkey keyfromlabel keygen \
155 + revoke settime signzone verify; do
156 + dobin dnssec-"${tool}"
157 + doman dnssec-"${tool}".8
158 + if use doc; then
159 + dohtml dnssec-"${tool}".html
160 + fi
161 + done
162 +}