Skip to content

Commit

Permalink
dns/bind918: update to 9.18.5
Browse files Browse the repository at this point in the history
  • Loading branch information
mat813 committed Jul 22, 2022
1 parent 0bd2969 commit 7f75f9c
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 28 deletions.
14 changes: 7 additions & 7 deletions dns/bind-tools/pkg-plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@ bin/nsec3hash
bin/nslookup
bin/nsupdate
lib/bind-tools/libbind9.so
lib/bind-tools/libbind9-9.18.4.so
lib/bind-tools/libbind9-9.18.5.so
lib/bind-tools/libdns.so
lib/bind-tools/libdns-9.18.4.so
lib/bind-tools/libdns-9.18.5.so
lib/bind-tools/libirs.so
lib/bind-tools/libirs-9.18.4.so
lib/bind-tools/libirs-9.18.5.so
lib/bind-tools/libisc.so
lib/bind-tools/libisc-9.18.4.so
lib/bind-tools/libisc-9.18.5.so
lib/bind-tools/libisccc.so
lib/bind-tools/libisccc-9.18.4.so
lib/bind-tools/libisccc-9.18.5.so
lib/bind-tools/libisccfg.so
lib/bind-tools/libisccfg-9.18.4.so
lib/bind-tools/libisccfg-9.18.5.so
lib/bind-tools/libns.so
lib/bind-tools/libns-9.18.4.so
lib/bind-tools/libns-9.18.5.so
%%MANPAGES%%man/man1/arpaname.1.gz
%%MANPAGES%%man/man1/delv.1.gz
%%MANPAGES%%man/man1/dig.1.gz
Expand Down
4 changes: 2 additions & 2 deletions dns/bind918/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ PORTVERSION= ${ISCVERSION:S/-P/P/:S/b/.b/:S/a/.a/:S/rc/.rc/}
PORTREVISION= 0
.else
# dns/bind918 here
PORTREVISION= 1
PORTREVISION= 0
.endif
CATEGORIES= dns net
MASTER_SITES= ISC/bind9/${ISCVERSION}
Expand Down Expand Up @@ -43,7 +43,7 @@ RUN_DEPENDS= bind-tools>0:dns/bind-tools

USES= autoreconf compiler:c11 cpe libedit libtool pkgconfig ssl tar:xz
# ISC releases things like 9.8.0-P1, which our versioning doesn't like
ISCVERSION= 9.18.4
ISCVERSION= 9.18.5

CPE_VENDOR= isc
CPE_VERSION= ${ISCVERSION:C/-.*//}
Expand Down
6 changes: 3 additions & 3 deletions dns/bind918/distinfo
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
TIMESTAMP = 1655372289
SHA256 (bind-9.18.4.tar.xz) = f277ae50159a00c300eb926a9c5d51953038a936bd8242d6913dfb6eac42761d
SIZE (bind-9.18.4.tar.xz) = 5395040
TIMESTAMP = 1658484615
SHA256 (bind-9.18.5.tar.xz) = 0cee078d74f0bdc4ec374435026b25de7892f26540a18b22a02ef728a11dcae7
SIZE (bind-9.18.5.tar.xz) = 5168224
31 changes: 22 additions & 9 deletions dns/bind918/files/extrapatch-bind-min-override-ttl
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
Add the override-cache-ttl feature.

--- bin/named/config.c.orig 2022-05-09 09:32:19 UTC
--- bin/named/config.c.orig 2022-07-07 14:38:12 UTC
+++ bin/named/config.c
@@ -182,6 +182,7 @@ options {\n\
@@ -183,6 +183,7 @@ options {\n\
notify-source *;\n\
notify-source-v6 *;\n\
nsec3-test-zone no;\n\
+ override-cache-ttl 0; /* do not override */\n\
parental-source *;\n\
parental-source-v6 *;\n\
provide-ixfr true;\n\
--- bin/named/server.c.orig 2022-05-09 09:32:19 UTC
--- bin/named/server.c.orig 2022-07-07 14:38:12 UTC
+++ bin/named/server.c
@@ -4523,6 +4523,11 @@ configure_view(dns_view_t *view, dns_viewlist_t *viewl
@@ -4544,6 +4544,11 @@ configure_view(dns_view_t *view, dns_viewlist_t *viewl
}

obj = NULL;
Expand All @@ -24,19 +24,32 @@ Add the override-cache-ttl feature.
result = named_config_get(maps, "max-cache-ttl", &obj);
INSIST(result == ISC_R_SUCCESS);
view->maxcachettl = cfg_obj_asduration(obj);
--- lib/dns/include/dns/view.h.orig 2022-05-09 09:32:19 UTC
--- doc/arm/reference.rst.orig 2022-07-07 14:38:12 UTC
+++ doc/arm/reference.rst
@@ -3991,6 +3991,10 @@ Tuning
cannot exceed 7 days and is silently truncated to 7 days if set to a
greater value.

+.. namedconf:statement:: override-cache-ttl
+
+ Enforce the configure cache TTL override.
+
.. namedconf:statement:: max-cache-ttl

This sets the maximum time for which the server caches ordinary (positive)
--- lib/dns/include/dns/view.h.orig 2022-07-07 14:38:12 UTC
+++ lib/dns/include/dns/view.h
@@ -155,6 +155,7 @@ struct dns_view {
@@ -157,6 +157,7 @@ struct dns_view {
bool requestnsid;
bool sendcookie;
dns_ttl_t maxcachettl;
+ dns_ttl_t overridecachettl;
dns_ttl_t maxncachettl;
dns_ttl_t mincachettl;
dns_ttl_t minncachettl;
--- lib/dns/resolver.c.orig 2022-05-09 09:32:19 UTC
--- lib/dns/resolver.c.orig 2022-07-07 14:38:12 UTC
+++ lib/dns/resolver.c
@@ -6184,6 +6184,12 @@ cache_name(fetchctx_t *fctx, dns_name_t *name, dns_mes
@@ -6190,6 +6190,12 @@ cache_name(fetchctx_t *fctx, dns_name_t *name, dns_mes
}

/*
Expand All @@ -49,7 +62,7 @@ Add the override-cache-ttl feature.
* Enforce the configure maximum cache TTL.
*/
if (rdataset->ttl > res->view->maxcachettl) {
--- lib/isccfg/namedconf.c.orig 2022-05-09 09:32:19 UTC
--- lib/isccfg/namedconf.c.orig 2022-07-07 14:38:12 UTC
+++ lib/isccfg/namedconf.c
@@ -2092,6 +2092,7 @@ static cfg_clausedef_t view_clauses[] = {
#endif /* ifdef HAVE_LMDB */
Expand Down
15 changes: 8 additions & 7 deletions dns/bind918/pkg-plist
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ include/isccc/types.h
include/isccc/util.h
include/isccfg/aclconf.h
include/isccfg/cfg.h
include/isccfg/duration.h
include/isccfg/grammar.h
include/isccfg/kaspconf.h
include/isccfg/log.h
Expand All @@ -242,19 +243,19 @@ include/ns/xfrout.h
lib/bind/filter-a.so
lib/bind/filter-aaaa.so
lib/libbind9.so
lib/libbind9-9.18.4.so
lib/libbind9-9.18.5.so
lib/libdns.so
lib/libdns-9.18.4.so
lib/libdns-9.18.5.so
lib/libirs.so
lib/libirs-9.18.4.so
lib/libirs-9.18.5.so
lib/libisc.so
lib/libisc-9.18.4.so
lib/libisc-9.18.5.so
lib/libisccc.so
lib/libisccc-9.18.4.so
lib/libisccc-9.18.5.so
lib/libisccfg.so
lib/libisccfg-9.18.4.so
lib/libisccfg-9.18.5.so
lib/libns.so
lib/libns-9.18.4.so
lib/libns-9.18.5.so
@comment man/man1/arpaname.1.gz
@comment man/man1/delv.1.gz
@comment man/man1/dig.1.gz
Expand Down

0 comments on commit 7f75f9c

Please sign in to comment.