<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/85e078db305fbc7285223174d5239b5553a9c069">https://github.com/macports/macports-ports/commit/85e078db305fbc7285223174d5239b5553a9c069</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 85e078db305 New port: bind9.18
</span>85e078db305 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 85e078db305fbc7285223174d5239b5553a9c069
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Thu Jul 25 13:29:08 2024 +1000
<span style='display:block; white-space:pre;color:#404040;'> New port: bind9.18
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Older version of bind9 that can be used on older systems.
</span>---
net/{bind9 => bind9.18}/Portfile | 36 ++++++-----
net/bind9.18/files/atomics.patch | 29 +++++++++
net/bind9.18/files/db.127.0.0 | 19 ++++++
net/bind9.18/files/db.cache | 92 ++++++++++++++++++++++++++++
net/bind9.18/files/db.localhost | 11 ++++
net/bind9.18/files/lib_dns_Makefile.in.patch | 11 ++++
net/bind9.18/files/named.conf | 64 +++++++++++++++++++
net/bind9.18/files/patch-fix-rwlock.diff | 18 ++++++
net/bind9/Portfile | 1 +
9 files changed, 265 insertions(+), 16 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/bind9/Portfile b/net/bind9.18/Portfile
</span>similarity index 83%
copy from net/bind9/Portfile
copy to net/bind9.18/Portfile
<span style='display:block; white-space:pre;color:#808080;'>index ec5f61c2355..d32b334cfab 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/net/bind9/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/bind9.18/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -4,12 +4,13 @@ PortSystem 1.0
</span> PortGroup legacysupport 1.0
PortGroup compiler_blacklist_versions 1.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-name bind9
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-version 9.20.0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name bind9.18
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 9.18.28
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span> categories net
<span style='display:block; white-space:pre;background:#ffe0e0;'>-maintainers {geeklair.net:dluke @danielluke} {jmr @jmroot}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-platforms {darwin >= 11} freebsd sunos
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {jmr @jmroot}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms darwin freebsd sunos
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+conflicts bind9
</span>
description Domain Name System server
# see https://gitlab.isc.org/isc-projects/bind9/-/blob/main/LICENSE
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -23,16 +24,18 @@ long_description \
</span> resolver library included in the BIND distribution \
provides the standard APIs for translation between domain names \
and Internet addresses and is intended to be linked with applications \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- requiring name service.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ requiring name service. This is the older 9.18 release series, \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ intended to be used on systems where 9.20 doesn't work.
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-homepage https://www.isc.org/bind/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://www.isc.org/
</span>
distname bind-${version}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+dist_subdir bind9
</span> master_sites isc:${name}/${version}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 a8aa369a644bc7b4cc6f53189e5beae5b2485645 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 cc580998017b51f273964058e8cb3aa5482bc785243dea71e5556ec565a13347 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 5760416
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 a43a59ea79650417f9bfe3592a54e16b1ff22830 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 e7cce9a165f7b619eefc4832f0a8dc16b005d29e3890aed6008c506ea286a5e7 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 5533340
</span>
use_xz yes
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -45,20 +48,21 @@ depends_lib path:lib/libssl.dylib:openssl \
</span> path:lib/pkgconfig/jemalloc.pc:jemalloc \
port:json-c \
port:libidn2 \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- port:lmdb \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:liburcu
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:lmdb
</span>
universal_variant \
no
<span style='display:block; white-space:pre;background:#ffe0e0;'>-compiler.c_standard 2011
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# Apple clang 15.0.0 from Xcode before 15.2 has a codegen bug that causes a crash in libisc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Needs working __atomic_* builtins
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Apple clang 15.0.0 from Xcode before 15.2 has a codgen bug that causes a crash in libisc
</span> compiler.blacklist \
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ *gcc-4.0 *gcc-4.2 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {clang < 500} \
</span> {clang >= 1500.0.40.1 < 1500.1.0.2.5 }
patchfiles atomics.patch \
lib_dns_Makefile.in.patch \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- setrlimit.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-fix-rwlock.diff
</span>
# tests require `sudo bin/tests/system/ifconfig.sh up`
test.run yes
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -145,4 +149,4 @@ notes "******************************************************
</span>
livecheck.type regex
livecheck.url ${homepage}downloads/
<span style='display:block; white-space:pre;background:#ffe0e0;'>-livecheck.regex {BIND(\d+\.\d*[02468]\.\d+(?:-P\d+)?)\.tar\.[gx]z</a>}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.regex {BIND(9\.18\.\d+(?:-P\d+)?)\.tar\.[gx]z</a>}
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/bind9.18/files/atomics.patch b/net/bind9.18/files/atomics.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..b0ff439bd55
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/bind9.18/files/atomics.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,29 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Allow use of gcc-style __atomic* builtins in older clang versions.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Avoid use of const pointers with atomic_load because strictly C11
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compliant compilers error on this. Using const became allowed in C17:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2244.htm#dr_459
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- lib/isc/include/isc/stdatomic.h.orig 2022-10-10 18:01:57.000000000 +1100
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ lib/isc/include/isc/stdatomic.h 2022-11-03 20:54:26.000000000 +1100
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -21,7 +21,9 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif /* HAVE_UCHAR_H */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* GCC 4.7.0 introduced __atomic builtins, but not the __GNUC_ATOMICS define */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#if !defined(__GNUC_ATOMICS) && __GNUC__ == 4 && __GNUC_MINOR__ >= 7
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++/* Clang 3.1 and later have the builtins but none define __GNUC_ATOMICS */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if !defined(__GNUC_ATOMICS) && ((__GNUC__ == 4 && __GNUC_MINOR__ >= 7) \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ || defined(__clang__))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define __GNUC_ATOMICS
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- lib/isc/netmgr/netmgr-int.h.orig 2022-10-10 18:44:05.000000000 +1100
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ lib/isc/netmgr/netmgr-int.h 2022-11-03 20:57:03.000000000 +1100
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -244,7 +244,7 @@ typedef struct isc__networker {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define NMHANDLE_MAGIC ISC_MAGIC('N', 'M', 'H', 'D')
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define VALID_NMHANDLE(t) \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ (ISC_MAGIC_VALID(t, NMHANDLE_MAGIC) && \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- atomic_load(&(t)->references) > 0)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ atomic_load((isc_refcount_t *)&(t)->references) > 0)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ typedef void (*isc__nm_closecb)(isc_nmhandle_t *);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ typedef struct isc_nm_http_session isc_nm_http_session_t;
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/bind9.18/files/db.127.0.0 b/net/bind9.18/files/db.127.0.0
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..00bb9eeb27c
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/bind9.18/files/db.127.0.0
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,19 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+$TTL 86400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+; 0.0.127.in-addr.arpa.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@ IN SOA creation-host mail-address (
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 2000010200 ; Serial Number
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 10800 ; Refresh
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 3600 ; Retry
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 604800 ; Expire
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 86400 ) ; Minimum TTL
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+; Name Servers
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+0.0.127.in-addr.arpa. IN NS localhost.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+; Addresses point to canonical names
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+1 IN PTR localhost.
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/bind9.18/files/db.cache b/net/bind9.18/files/db.cache
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..4dc891b12a3
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/bind9.18/files/db.cache
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,92 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+; This file holds the information on root name servers needed to
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+; initialize cache of Internet domain name servers
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+; (e.g. reference this file in the "cache . <file>"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+; configuration file of BIND domain name servers).
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+; This file is made available by InterNIC
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+; under anonymous FTP as
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+; file /domain/named.cache
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+; on server FTP.INTERNIC.NET
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+; -OR- RS.INTERNIC.NET
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+; last update: January 07, 2019
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+; related version of root zone: 2019010702
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+; FORMERLY NS.INTERNIC.NET
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+. 3600000 NS A.ROOT-SERVERS.NET.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+A.ROOT-SERVERS.NET. 3600000 A 198.41.0.4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+A.ROOT-SERVERS.NET. 3600000 AAAA 2001:503:ba3e::2:30
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+; FORMERLY NS1.ISI.EDU
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+. 3600000 NS B.ROOT-SERVERS.NET.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+B.ROOT-SERVERS.NET. 3600000 A 170.247.170.2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+B.ROOT-SERVERS.NET. 3600000 AAAA 2801:1b8:10::b
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+; FORMERLY C.PSI.NET
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+. 3600000 NS C.ROOT-SERVERS.NET.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+C.ROOT-SERVERS.NET. 3600000 A 192.33.4.12
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+C.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:2::c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+; FORMERLY TERP.UMD.EDU
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+. 3600000 NS D.ROOT-SERVERS.NET.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+D.ROOT-SERVERS.NET. 3600000 A 199.7.91.13
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+D.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:2d::d
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+; FORMERLY NS.NASA.GOV
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+. 3600000 NS E.ROOT-SERVERS.NET.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+E.ROOT-SERVERS.NET. 3600000 A 192.203.230.10
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+E.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:a8::e
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+; FORMERLY NS.ISC.ORG
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+. 3600000 NS F.ROOT-SERVERS.NET.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+F.ROOT-SERVERS.NET. 3600000 A 192.5.5.241
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+F.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:2f::f
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+; FORMERLY NS.NIC.DDN.MIL
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+. 3600000 NS G.ROOT-SERVERS.NET.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+G.ROOT-SERVERS.NET. 3600000 A 192.112.36.4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+G.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:12::d0d
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+; FORMERLY AOS.ARL.ARMY.MIL
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+. 3600000 NS H.ROOT-SERVERS.NET.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+H.ROOT-SERVERS.NET. 3600000 A 198.97.190.53
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+H.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:1::53
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+; FORMERLY NIC.NORDU.NET
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+. 3600000 NS I.ROOT-SERVERS.NET.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+I.ROOT-SERVERS.NET. 3600000 A 192.36.148.17
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+I.ROOT-SERVERS.NET. 3600000 AAAA 2001:7fe::53
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+; OPERATED BY VERISIGN, INC.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+. 3600000 NS J.ROOT-SERVERS.NET.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+J.ROOT-SERVERS.NET. 3600000 A 192.58.128.30
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+J.ROOT-SERVERS.NET. 3600000 AAAA 2001:503:c27::2:30
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+; OPERATED BY RIPE NCC
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+. 3600000 NS K.ROOT-SERVERS.NET.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+K.ROOT-SERVERS.NET. 3600000 A 193.0.14.129
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+K.ROOT-SERVERS.NET. 3600000 AAAA 2001:7fd::1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+; OPERATED BY ICANN
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+. 3600000 NS L.ROOT-SERVERS.NET.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+L.ROOT-SERVERS.NET. 3600000 A 199.7.83.42
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+L.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:9f::42
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+; OPERATED BY WIDE
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+. 3600000 NS M.ROOT-SERVERS.NET.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+M.ROOT-SERVERS.NET. 3600000 A 202.12.27.33
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+M.ROOT-SERVERS.NET. 3600000 AAAA 2001:dc3::35
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+; End of file
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/bind9.18/files/db.localhost b/net/bind9.18/files/db.localhost
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..c47baf5f1f7
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/bind9.18/files/db.localhost
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+$TTL 86400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+$ORIGIN localhost.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@ 1D IN SOA @ root (
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 42 ; serial (d. adams)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 3H ; refresh
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 15M ; retry
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 1W ; expiry
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 1D ) ; minimum
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 1D IN NS @
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 1D IN A 127.0.0.1
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/bind9.18/files/lib_dns_Makefile.in.patch b/net/bind9.18/files/lib_dns_Makefile.in.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..5cee46b3535
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/bind9.18/files/lib_dns_Makefile.in.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- lib/dns/Makefile.in.orig 2023-09-11 18:52:09
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ lib/dns/Makefile.in 2023-09-21 21:02:13
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -2211,7 +2211,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ gen$(BUILD_EXEEXT): gen.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- $(CC_FOR_BUILD) -g -I. $(srcdir)/gen.c -o $@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(CC_FOR_BUILD) -g -I. $(CPPFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) $(srcdir)/gen.c -o $@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ include/dns/enumtype.h: gen Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ mkdir -p include/dns
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/bind9.18/files/named.conf b/net/bind9.18/files/named.conf
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..6706f82803b
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/bind9.18/files/named.conf
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,64 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+// Declares control channels to be used by the rndc utility.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+//
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+// This must be enabled on Mac OS X Server for Server Status to provide valid
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+// information! (Remove the leading slashes to enable.)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+//
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+// **** STUFF YOU MIGHT NEED TO ENABLE ****
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+//
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+// controls {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+// unix "/var/run/ndc" perm 0600 owner 0 group 0;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+// inet 127.0.0.1 port 54 allow {any; };
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+// };
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+// It is recommended that 127.0.0.1 be the only address used.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+// This also allows non-privileged users on the local host to manage
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+// your name server.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+options {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ directory "%%PREFIX%%/var/named";
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ // uncomment the following lines to turn on DNS forwarding,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ // and change the forwarind ip address(es) :
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ //forward first;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ //forwarders {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ // 123.123.123.123
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ // 123,123.123.123;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ //};
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ listen-on-v6 { none; };
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ listen-on { 127.0.0.1; };
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ // to allow only specific hosts to use the DNS server:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ //allow-query {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ // 127.0.0.1;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ //};
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ // somethingg like this should be set for your authoritative-only
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ // views to prevent abuse (see http://www.redbarn.org/dns/ratelimits)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ // rate-limit {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ // responses-per-second 15;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ // window 5;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ //};
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ dnssec-validation auto;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ pid-file "%%PREFIX%%/var/run/named/named.pid";
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+};
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+//
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+// a caching only nameserver config
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+//
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+zone "." IN {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ type hint;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file "db.cache";
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+};
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+zone "localhost" IN {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ type master;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file "db.localhost";
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ allow-update { none; };
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+};
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+zone "0.0.127.in-addr.arpa" IN {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ type master;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file "db.127.0.0";
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ allow-update { none; };
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+};
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/bind9.18/files/patch-fix-rwlock.diff b/net/bind9.18/files/patch-fix-rwlock.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..5dddd8aa74a
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/bind9.18/files/patch-fix-rwlock.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,18 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Fix PowerPC assembler syntax.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- lib/isc/rwlock.c.orig 2023-12-08 20:09:37.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ lib/isc/rwlock.c 2024-02-11 15:55:13.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -160,8 +160,12 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #elif (defined(__sparc) || defined(__sparc__)) && HAVE_SPARC_PAUSE
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define isc_rwlock_pause() __asm__ __volatile__("pause")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #elif defined(__ppc__) || defined(_ARCH_PPC) || defined(_ARCH_PWR) || \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- defined(_ARCH_PWR2) || defined(_POWER)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ defined(_ARCH_PWR2) || defined(_POWER) || defined(__POWERPC__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#ifdef __APPLE__
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#define isc_rwlock_pause() __asm__ volatile("or r27,r27,r27")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define isc_rwlock_pause() __asm__ volatile("or 27,27,27")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else /* if defined(_MSC_VER) */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define isc_rwlock_pause()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif /* if defined(_MSC_VER) */
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/bind9/Portfile b/net/bind9/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index ec5f61c2355..54279be1da6 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/net/bind9/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/bind9/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -10,6 +10,7 @@ revision 1
</span> categories net
maintainers {geeklair.net:dluke @danielluke} {jmr @jmroot}
platforms {darwin >= 11} freebsd sunos
<span style='display:block; white-space:pre;background:#e0ffe0;'>+conflicts bind9.18
</span>
description Domain Name System server
# see https://gitlab.isc.org/isc-projects/bind9/-/blob/main/LICENSE
</pre><pre style='margin:0'>
</pre>