Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions net-dns/bind-tools/Manifest
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
DIST bind-9.20.7.tar.xz 5655168 BLAKE2B c5198939382e7295b4dfcb2ddbd86e5bccc10047d5e963dab2381404eb7a14543218e3caa438b395a2982cb607da84012f3a76a41c790a48ed615238bc080b5c SHA512 b9570c0c6588819108017d30dc7fb5e2f34361f941186d29da3d2830bbe3333c8c16bdb6581f5bec4786d90b74db860a9cad5f66d4f1c65168eae69f401a9df0
DIST bind-9.21.10.tar.xz 5197276 BLAKE2B fc6012835f2ddf05118b536f0bf5c4c9bafe89c665d250fa8296b6e7ac6f85c8c1fc380d4eed54dfce04f2d46ea071cb875db01c4c3b4210991af95e317e883c SHA512 fa814d43f0e7ec137617f0f2772ebd2e008a647d2158fa1a7765e38551506ee704cc1c6106d4c620b571d16d7cdecb40a8b03943aaeca29f984a3bf19c6205d2
107 changes: 107 additions & 0 deletions net-dns/bind-tools/bind-tools-9.21.10.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit autotools flag-o-matic toolchain-funcs

DESCRIPTION="bind tools: dig, nslookup, host, nsupdate, dnssec-keygen"
HOMEPAGE="https://www.isc.org/software/bind"
SRC_URI="https://downloads.isc.org/isc/bind9/9.21.10/bind-9.21.10.tar.xz -> bind-9.21.10.tar.xz"

LICENSE="Apache-2.0 BSD BSD-2 GPL-2 HPND ISC MPL-2.0"
SLOT="0"
KEYWORDS="*"
IUSE="doc gssapi idn ipv6 libedit readline xml"
# no PKCS11 currently as it requires OpenSSL to be patched, also see bug 409687

COMMON_DEPEND="
dev-libs/libuv:=
dev-libs/openssl
dev-libs/userspace-rcu
sys-libs/libcap
xml? ( dev-libs/libxml2 )
idn? ( net-dns/libidn2:= )
gssapi? ( virtual/krb5 )
libedit? ( dev-libs/libedit )
!libedit? (
readline? ( sys-libs/readline:= )
)
"
DEPEND="${COMMON_DEPEND}"
RDEPEND="${COMMON_DEPEND}
!<=net-dns/bind-9.18.1-r2
"
S="${WORKDIR}/bind-9.21.10"

# sphinx required for man-page and html creation
BDEPEND="
doc? ( dev-python/sphinx )
virtual/pkgconfig
"

# bug 479092, requires networking
RESTRICT="test"

src_prepare() {
default

export LDFLAGS="${LDFLAGS} -L${EPREFIX}/usr/$(get_libdir)"

# Disable tests for now, bug 406399
sed -i '/^SUBDIRS/s:tests::' bin/Makefile.in lib/Makefile.in || die

# bug #220361
rm aclocal.m4 || die
rm -rf libtool.m4/ || die

eautoreconf
}

src_configure() {
local myeconfargs=(
--localstatedir="${EPREFIX}"/var
--without-json-c
--without-zlib
--without-lmdb
--without-maxminddb
--disable-geoip
--with-openssl="${ESYSROOT}"/usr
$(use_with idn libidn2 "${ESYSROOT}"/usr)
$(use_with xml libxml2)
$(use_with gssapi)
AR="$(type -P $(tc-getAR))"
)

# bug 607400
if use libedit ; then
myeconfargs+=( --with-readline=libedit )
elif use readline ; then
myeconfargs+=( --with-readline=readline )
else
myeconfargs+=( --without-readline )
fi

# bug 344029
append-cflags "-DDIG_SIGCHASE"

# to expose CMSG_* macros from sys/sockets.h
[[ ${CHOST} == *-solaris* ]] && append-cflags "-D_XOPEN_SOURCE=600"

# localstatedir for nsupdate -l, bug 395785
tc-export BUILD_CC
econf "${myeconfargs[@]}"

# bug #151839
echo '#undef SO_BSDCOMPAT' >> config.h
}

src_install() {
default

rm -r "${D}"/usr/bin/{arpaname,named*,nsec3hash} || die
rm -r "${D}"/usr/{include,sbin} || die
rm -r "${D}"/usr/share/man/man*/{arpaname,named,nsec3hash}* || die
rm -r "${D}"/usr/share/man/man{5,8} || die
}

# vim: filetype=ebuild
Loading