Files
haikuports/net-dns/bind_utils/bind_utils-9.16.44.recipe
kenmays 28d3a9e48c bind_utils: bump version (#9512)
* bind_utils: bump version

* bind_utils: bump version

* Deleted bind_utils-9.16.42.patchset

* Deleted bind_utils-9.16.42.recipe
2023-09-24 12:22:58 +00:00

83 lines
1.8 KiB
Bash

SUMMARY="A collection of client side programs for DNS troubleshooting"
DESCRIPTION="bind_utils is a collection of DNS troubleshooting applications"
HOMEPAGE="https://isc.org"
COPYRIGHT="Internet Systems Consortium, Inc. ('ISC')"
LICENSE="MPL v2.0"
REVISION="1"
SOURCE_URI="ftp://ftp.isc.org/isc/bind9/$portVersion/bind-$portVersion.tar.xz"
CHECKSUM_SHA256="cfaa953c36d5ca42d9584fcf9653d07c85527b59687e7c4d4cb8071272db6754"
SOURCE_DIR="bind-$portVersion"
PATCHES="bind_utils-$portVersion.patchset"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
commandSuffix=$secondaryArchSuffix
commandBinDir=$binDir
if [ "$targetArchitecture" = x86_gcc2 ]; then
commandSuffix=
commandBinDir=$prefix/bin
fi
PROVIDES="
bind_utils$secondaryArchSuffix = $portVersion
cmd:dig$commandSuffix
cmd:host$commandSuffix
cmd:nslookup$commandSuffix
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libuv$secondaryArchSuffix
lib:libssl$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libuv$secondaryArchSuffix
devel:libssl$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:autom4te
cmd:automake
cmd:autoreconf
cmd:g++$secondaryArchSuffix
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
cmd:makeinfo
cmd:pkg_config$secondaryArchSuffix
cmd:find
cmd:xargs
"
BUILD()
{
CFLAGS='-DRESOLV_CONF="\"/boot/system/settings/network/resolv.conf\""' \
runConfigure --omit-dirs binDir ./configure \
--bindir=$commandBinDir \
--without-python
make -C lib/dns $jobArgs
make -C lib/isc $jobArgs
make -C lib/bind9 $jobArgs
make -C lib/isccfg $jobArgs
make -C lib/irs $jobArgs
make -C bin/dig $jobArgs
make -C doc $jobArgs
}
INSTALL()
{
mkdir -p $manDir/man1
make -C bin/dig install
cp -v doc/man/{dig.1,host.1,nslookup.1} $manDir/man1
}
TEST()
{
LIBS="-Wl,--as-needed -lbnetapi -lnetwork" make check
}