Skip to content

Commit

Permalink
dns/bind916: sync with upstream
Browse files Browse the repository at this point in the history
Taken from: FreeBSD
  • Loading branch information
fichtner committed Sep 30, 2021
1 parent 7783e31 commit 52b03c3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion dns/bind916/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ RUN_DEPENDS= bind-tools>0:dns/bind-tools

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

CPE_VENDOR= isc
CPE_VERSION= ${ISCVERSION:C/-.*//}
Expand Down
6 changes: 3 additions & 3 deletions dns/bind916/distinfo
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
TIMESTAMP = 1629182644
SHA256 (bind-9.16.20.tar.xz) = 4d0d93c0d0b63080609e84625f24ff8777f8d164e78a75b1c19c334ce42d5b58
SIZE (bind-9.16.20.tar.xz) = 5042196
TIMESTAMP = 1632745650
SHA256 (bind-9.16.21.tar.xz) = 65da5fd4fb80b7d0d7452876f81fd6d67cdcee54a5e3c1d65610334665dfa815
SIZE (bind-9.16.21.tar.xz) = 5057816
12 changes: 6 additions & 6 deletions dns/bind916/files/extrapatch-bind-min-override-ttl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Add the override-cache-ttl feature.

--- bin/named/config.c.orig 2021-07-09 08:02:03 UTC
--- bin/named/config.c.orig 2021-09-07 09:37:05 UTC
+++ bin/named/config.c
@@ -180,6 +180,7 @@ options {\n\
notify-source *;\n\
Expand All @@ -10,9 +10,9 @@ Add the override-cache-ttl feature.
parental-source *;\n\
parental-source-v6 *;\n\
provide-ixfr true;\n\
--- bin/named/server.c.orig 2021-07-09 08:02:03 UTC
--- bin/named/server.c.orig 2021-09-07 09:37:05 UTC
+++ bin/named/server.c
@@ -4406,6 +4406,11 @@ configure_view(dns_view_t *view, dns_viewlist_t *viewl
@@ -4411,6 +4411,11 @@ configure_view(dns_view_t *view, dns_viewlist_t *viewl
}

obj = NULL;
Expand All @@ -24,7 +24,7 @@ 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 2021-07-09 08:02:03 UTC
--- lib/dns/include/dns/view.h.orig 2021-09-07 09:37:05 UTC
+++ lib/dns/include/dns/view.h
@@ -152,6 +152,7 @@ struct dns_view {
bool requestnsid;
Expand All @@ -34,7 +34,7 @@ Add the override-cache-ttl feature.
dns_ttl_t maxncachettl;
dns_ttl_t mincachettl;
dns_ttl_t minncachettl;
--- lib/dns/resolver.c.orig 2021-07-09 08:02:03 UTC
--- lib/dns/resolver.c.orig 2021-09-07 09:37:05 UTC
+++ lib/dns/resolver.c
@@ -6476,6 +6476,12 @@ cache_name(fetchctx_t *fctx, dns_name_t *name, dns_mes
}
Expand All @@ -49,7 +49,7 @@ Add the override-cache-ttl feature.
* Enforce the configure maximum cache TTL.
*/
if (rdataset->ttl > res->view->maxcachettl) {
--- lib/isccfg/namedconf.c.orig 2021-07-09 08:02:03 UTC
--- lib/isccfg/namedconf.c.orig 2021-09-07 09:37:05 UTC
+++ lib/isccfg/namedconf.c
@@ -2048,6 +2048,7 @@ static cfg_clausedef_t view_clauses[] = {
#endif /* ifdef HAVE_LMDB */
Expand Down

0 comments on commit 52b03c3

Please sign in to comment.