diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..0453b8e --- /dev/null +++ b/check-version.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +URL="ftp://ftp.isc.org/isc/bind9/" + +# Get version number from FTP server +VERSION=$(curl -s --list-only "$URL" | grep -E '^[0-9]{1,}\.[0-9]{1,}(\.[0-9]{1,})?$' | cut -d '-' -f2 | sort -V | tail -n1) + +echo "$VERSION" diff --git a/pkg.info b/pkg.info index 598d7e2..4fdb0c8 100644 --- a/pkg.info +++ b/pkg.info @@ -1,8 +1,9 @@ name: bind description: A complete, highly portable implementation of the Domain Name System (DNS) protocol -version: 9.18.24 +version: 9.21.11 url: https://www.isc.org/bind/ license: MPL2 architecture: any -depends: ["bash","e2fsprogs","glibc","icu","json-c","krb5","libcap","libidn2","libnghttp2","libnsl","libuv","libxml2","openssl","readline","xz-utils"] +depends: ["bash","e2fsprogs","glibc","icu","json-c","krb5","libcap","libedit","libidn2","libnghttp2","libnsl","liburcu","libuv","libxml2","openssl","readline","xz-utils","zlib"] +make_depends: ["meson"] type: source diff --git a/source.sh b/source.sh index 84dd707..a9d6113 100644 --- a/source.sh +++ b/source.sh @@ -15,24 +15,19 @@ prepare() { # The build function is executed in the source directory # This function is used to compile the source code build() { - ./configure \ - --prefix=/usr \ - --sysconfdir=/etc \ - --localstatedir=/var \ - --disable-static \ - --enable-fixed-rrset \ - --enable-full-report \ - --with-openssl \ - --with-libidn2 \ - --with-json-c \ - --with-libxml2 - make + mkdir build + cd build + + meson setup --prefix=/usr + meson compile } # The package function is executed in the source directory # This function is used to move the compiled files into the output directory package() { - make DESTDIR="$BPM_OUTPUT" install + cd build + + meson install --destdir="$BPM_OUTPUT" - install -Dm644 LICENSE COPYRIGHT -t "$BPM_OUTPUT"/usr/share/licenses/bind/ + install -Dm644 "$BPM_SOURCE"/{LICENSE,COPYRIGHT} -t "$BPM_OUTPUT"/usr/share/licenses/bind/ }