description="The BIND package includes the client side programs nslookup, dig and host." url="http://www.isc.org/downloads/bind/" packager="spiky " makedepends=(libuv kerberos libxml2 openssl libcap) run=(python-ply) name=bind version=9.16.25 runyx_version=20201011 source=(https://downloads.tuxfamily.org/nutyx/files/runyx-${runyx_version}.tar.xz https://downloads.isc.org/isc/bind9/$version/$name-$version.tar.xz) build(){ cd $name-$version ./configure --prefix=/usr \ --sysconfdir=/etc/bind \ --disable-static \ --mandir=/usr/share/man \ --localstatedir=/var \ --without-python \ --enable-threads \ --with-openssl make DESTDIR=$PKG install # Service cd $SRC/runyx-${runyx_version} make DESTDIR=$PKG install-sysv-bind make DESTDIR=$PKG install-runyx-bind } service() { bsdtar -cf \ $PKGMK_PACKAGE_DIR/$name.service${PKGMK_BUILDVER}${PKGMK_ARCH}.cards.tar \ lib/init etc/{init,rc.d} rm -r etc/{rc.d,init} rm -r lib/init } uptodate() { local url ext ext=".tar.bz2" url="https://ftp.isc.org/isc/bind9/" lynx -read_timeout=20 -dump -listonly -nonumbers \ $url?C=M\;O=D|sed "s@$url@@"|grep [0-9]/$|head -1|sed "s@/\$@@" }