From 1bca50ca1879c8e598f7b4d4d0768b7df3bf3ee3 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Fri, 20 Feb 2026 13:32:36 +0200 Subject: [PATCH] Update package version to 9.21.18 --- .gitignore | 3 ++ pkg.info | 9 ++++-- source-files/127.0.0.zone | 10 ++++++ source-files/localhost.ip6.zone | 10 ++++++ source-files/localhost.zone | 11 +++++++ source-files/named.conf | 57 +++++++++++++++++++++++++++++++++ source-files/named.esv | 4 +++ source-files/sysusers | 1 + source.sh | 15 +++++++++ 9 files changed, 118 insertions(+), 2 deletions(-) create mode 100644 .gitignore create mode 100644 source-files/127.0.0.zone create mode 100644 source-files/localhost.ip6.zone create mode 100644 source-files/localhost.zone create mode 100644 source-files/named.conf create mode 100644 source-files/named.esv create mode 100644 source-files/sysusers diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9d96df7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +# Ignore BPM archives and signatures +*.bpm +*.bpm.sig diff --git a/pkg.info b/pkg.info index a91bbf7..cd6dca1 100644 --- a/pkg.info +++ b/pkg.info @@ -1,9 +1,11 @@ name: bind description: A complete, highly portable implementation of the Domain Name System (DNS) protocol -version: 9.21.17 +version: 9.21.18 revision: 1 url: https://www.isc.org/bind/ license: MPL2 +maintainers: + - enumdev@enumerated.dev architecture: any type: source depends: @@ -22,14 +24,17 @@ depends: - liburcu - libuv - libxml2 + - lmdb - openssl - readline + - sysusers - xz-utils - zlib make_depends: - meson + - python-sphinx downloads: - url: https://ftp.isc.org/isc/bind9/${BPM_PKG_VERSION}/bind-${BPM_PKG_VERSION}.tar.xz extract_to: ${BPM_SOURCE} extract_strip_components: 1 - checksum: 3cefdbc795f6347aff11af478dded6f036ff7b3a00f9ca3c9d0e80f0deeb0d05 + checksum: b2a5f01ed7fedcb84b9df4ae78208ed51ceed1733f37fb9ea649026ec83d9f59 diff --git a/source-files/127.0.0.zone b/source-files/127.0.0.zone new file mode 100644 index 0000000..3c5c964 --- /dev/null +++ b/source-files/127.0.0.zone @@ -0,0 +1,10 @@ +@ 1D IN SOA localhost. root.localhost. ( + 42 ; serial (yyyymmdd##) + 3H ; refresh + 15M ; retry + 1W ; expiry + 1D ) ; minimum ttl + + 1D IN NS localhost. + +1.0.0.127.in-addr.arpa. 1D IN PTR localhost. diff --git a/source-files/localhost.ip6.zone b/source-files/localhost.ip6.zone new file mode 100644 index 0000000..c021a28 --- /dev/null +++ b/source-files/localhost.ip6.zone @@ -0,0 +1,10 @@ +@ 1D IN SOA localhost. root.localhost. ( + 42 ; serial (yyyymmdd##) + 3H ; refresh + 15M ; retry + 1W ; expiry + 1D ) ; minimum ttl + + 1D IN NS localhost. + +1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa. 1D IN PTR localhost. diff --git a/source-files/localhost.zone b/source-files/localhost.zone new file mode 100644 index 0000000..e87274d --- /dev/null +++ b/source-files/localhost.zone @@ -0,0 +1,11 @@ +@ 1D IN SOA localhost. root.localhost. ( + 42 ; serial (yyyymmdd##) + 3H ; refresh + 15M ; retry + 1W ; expiry + 1D ) ; minimum ttl + + 1D IN NS localhost. + +localhost. 1D IN A 127.0.0.1 +localhost. 1D IN AAAA ::1 diff --git a/source-files/named.conf b/source-files/named.conf new file mode 100644 index 0000000..a9865f6 --- /dev/null +++ b/source-files/named.conf @@ -0,0 +1,57 @@ +// vim:set ts=4 sw=4 et: + +options { + directory "/var/named"; + pid-file "/run/named/named.pid"; + + // Uncomment these to enable IPv6 connections support + // IPv4 will still work: + // listen-on-v6 { any; }; + // Add this for no IPv4: + // listen-on { none; }; + + allow-recursion { 127.0.0.1; ::1; }; + allow-transfer { none; }; + allow-update { none; }; + + version none; + hostname none; + server-id none; +}; + +zone "localhost" IN { + type master; + file "localhost.zone"; +}; + +zone "0.0.127.in-addr.arpa" IN { + type master; + file "127.0.0.zone"; +}; + +zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" { + type master; + file "localhost.ip6.zone"; +}; + +//zone "example.org" IN { +// type slave; +// file "example.zone"; +// masters { +// 192.168.1.100; +// }; +// allow-query { any; }; +// allow-transfer { any; }; +//}; + +//logging { +// channel xfer-log { +// file "/var/log/named.log"; +// print-category yes; +// print-severity yes; +// severity info; +// }; +// category xfer-in { xfer-log; }; +// category xfer-out { xfer-log; }; +// category notify { xfer-log; }; +//}; diff --git a/source-files/named.esv b/source-files/named.esv new file mode 100644 index 0000000..2b05607 --- /dev/null +++ b/source-files/named.esv @@ -0,0 +1,4 @@ +name: named +description: Internet domain name server +type: background +start_cmd: /usr/sbin/named -f -u named diff --git a/source-files/sysusers b/source-files/sysusers new file mode 100644 index 0000000..6d5ba43 --- /dev/null +++ b/source-files/sysusers @@ -0,0 +1 @@ +u named 20 "BIND DNS Server" diff --git a/source.sh b/source.sh index f794c4a..07ebda3 100644 --- a/source.sh +++ b/source.sh @@ -14,6 +14,21 @@ build() { package() { meson install -C build --destdir="$BPM_OUTPUT" + # Install config files + install -Dm644 "$BPM_WORKDIR"/named.conf "$BPM_OUTPUT"/etc/named.conf + + # Setup named directory and zones + install -dm770 -o 0 -g 20 "$BPM_OUTPUT"/var/named + install -Dm640 -o 0 -g 20 "$BPM_WORKDIR"/localhost.zone "$BPM_OUTPUT"/var/named/localhost.zone + install -Dm640 -o 0 -g 20 "$BPM_WORKDIR"/localhost.ip6.zone "$BPM_OUTPUT"/var/named/localhost.ip6.zone + install -Dm640 -o 0 -g 20 "$BPM_WORKDIR"/127.0.0.zone "$BPM_OUTPUT"/var/named/127.0.0.zone + + # Install sysusers file + install -Dm644 "$BPM_WORKDIR"/sysusers "$BPM_OUTPUT"/usr/lib/sysusers.d/named.conf + + # Install esvm service + install -Dm644 "$BPM_WORKDIR"/named.esv "$BPM_OUTPUT"/etc/esvm/services/named.esv + # Install package license install -Dm644 "$BPM_SOURCE"/{LICENSE,COPYRIGHT} -t "$BPM_OUTPUT"/usr/share/licenses/bind/ }