[net-dns/bind-tools] sync a bit from gentoo

This commit is contained in:
Robert Förster 2024-02-18 20:41:06 +01:00
parent 54afe9377f
commit 0bce97407f
2 changed files with 31 additions and 19 deletions

View File

@ -1,8 +1,10 @@
# Copyright 1999-2023 Gentoo Authors # Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=8 EAPI=8
inherit flag-o-matic
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/isc.asc
inherit flag-o-matic verify-sig
MY_PN=${PN//-tools} MY_PN=${PN//-tools}
MY_PV=${PV/_p/-P} MY_PV=${PV/_p/-P}
@ -10,18 +12,22 @@ MY_PV=${MY_PV/_rc/rc}
MY_P="${MY_PN}-${MY_PV}" MY_P="${MY_PN}-${MY_PV}"
DESCRIPTION="bind tools: dig, nslookup, host, nsupdate, dnssec-keygen" DESCRIPTION="bind tools: dig, nslookup, host, nsupdate, dnssec-keygen"
HOMEPAGE="https://www.isc.org/software/bind" HOMEPAGE="https://www.isc.org/software/bind https://gitlab.isc.org/isc-projects/bind9"
SRC_URI="https://downloads.isc.org/isc/bind9/${PV}/${MY_P}.tar.xz" SRC_URI="
https://downloads.isc.org/isc/bind9/${PV}/${MY_P}.tar.xz
verify-sig? ( https://downloads.isc.org/isc/bind9/${PV}/${MY_P}.tar.xz.asc )
"
S="${WORKDIR}/${MY_P}"
LICENSE="MPL-2.0" LICENSE="MPL-2.0"
SLOT="0" SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
IUSE="+caps gssapi idn libedit lmdb readline static-libs xml" IUSE="+caps doc gssapi idn libedit lmdb readline test xml"
# libuv lower bound should be the highest value seen at # libuv lower bound should be the highest value seen at
# https://gitlab.isc.org/isc-projects/bind9/-/blob/v9_18/lib/isc/netmgr/netmgr.c#L202 # https://gitlab.isc.org/isc-projects/bind9/-/blob/bind-9.18/lib/isc/netmgr/netmgr.c?ref_type=heads#L203
# to avoid issues with matching stable/testing, etc # to avoid issues with matching stable/testing, etc
COMMON_DEPEND=" RDEPEND="
>=dev-libs/libuv-1.42.0:= >=dev-libs/libuv-1.42.0:=
dev-libs/jemalloc dev-libs/jemalloc
dev-libs/openssl:= dev-libs/openssl:=
@ -34,16 +40,23 @@ COMMON_DEPEND="
) )
lmdb? ( dev-db/lmdb ) lmdb? ( dev-db/lmdb )
xml? ( dev-libs/libxml2 ) xml? ( dev-libs/libxml2 )
!net-dns/bind
" "
DEPEND="${COMMON_DEPEND}" DEPEND="${RDEPEND}"
RDEPEND="${COMMON_DEPEND} # sphinx required for man-page and html creation
!net-dns/bind" BDEPEND="
virtual/pkgconfig
S="${WORKDIR}/${MY_P}" doc? ( dev-python/sphinx )
test? (
dev-util/cmocka
dev-util/kyua
)
verify-sig? ( sec-keys/openpgp-keys-isc )
"
# bug 479092, requires networking # bug 479092, requires networking
RESTRICT="test" RESTRICT="!test? ( test )"
src_configure() { src_configure() {
local myeconfargs=( local myeconfargs=(
@ -105,6 +118,7 @@ src_install() {
doman ${man_dir}/nsupdate.1 doman ${man_dir}/nsupdate.1
emake DESTDIR="${D}" -C bin/dnssec/ install emake DESTDIR="${D}" -C bin/dnssec/ install
local tool
for tool in cds dsfromkey importkey keyfromlabel keygen \ for tool in cds dsfromkey importkey keyfromlabel keygen \
revoke settime signzone verify; do revoke settime signzone verify; do
doman ${man_dir}/dnssec-"${tool}".1 doman ${man_dir}/dnssec-"${tool}".1

View File

@ -1,16 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata> <pkgmetadata>
<maintainer type="person">
<email>zlogene@gentoo.org</email>
<name>Mikle Kolyada</name>
</maintainer>
<maintainer type="person"> <maintainer type="person">
<email>chutzpah@gentoo.org</email> <email>chutzpah@gentoo.org</email>
<name>Patrick McLean</name> <name>Patrick McLean</name>
</maintainer> </maintainer>
<use> <use>
<flag name="gssapi">Enable gssapi support</flag> <flag name="gssapi">Enable gssapi support</flag>
<flag name="lmdb">Enable LMDB support</flag>
</use> </use>
<upstream>
<remote-id type="cpe">cpe:/a:isc:bind</remote-id>
</upstream>
</pkgmetadata> </pkgmetadata>