Skip to content

Commit

Permalink
dns/bind912: sync with upstream
Browse files Browse the repository at this point in the history
Taken from: HardenedBSD
  • Loading branch information
fichtner committed Feb 24, 2019
1 parent 6777a8f commit e2771d3
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions dns/bind912/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/}
# dns/bind-tools here
PORTREVISION= 0
.else
PORTREVISION= 3
PORTREVISION= 0
.endif
CATEGORIES= dns net ipv6
MASTER_SITES= ISC/bind9/${ISCVERSION}
Expand All @@ -34,7 +34,7 @@ USE_HARDENING= safestack

USES= compiler:c11 cpe libedit
# ISC releases things like 9.8.0-P1, which our versioning doesn't like
ISCVERSION= 9.12.3-P1
ISCVERSION= 9.12.3-P4

CPE_VENDOR= isc
CPE_VERSION= ${ISCVERSION:C/-.*//}
Expand Down
6 changes: 3 additions & 3 deletions dns/bind912/distinfo
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
TIMESTAMP = 1544687855
SHA256 (bind-9.12.3-P1.tar.gz) = 6cb79389d787368af27f01c65a9fa09be1fd062eda37c94819a1a0178d5ded73
SIZE (bind-9.12.3-P1.tar.gz) = 8625693
TIMESTAMP = 1550649173
SHA256 (bind-9.12.3-P4.tar.gz) = d1014453c62623e42323fd83fc89444c12ae6b707fd586466959a052fe21f206
SIZE (bind-9.12.3-P4.tar.gz) = 8627833
14 changes: 7 additions & 7 deletions dns/bind912/files/extrapatch-bind-min-override-ttl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--- bin/named/config.c.orig 2018-10-06 05:51:22 UTC
--- bin/named/config.c.orig 2019-02-05 00:00:59 UTC
+++ bin/named/config.c
@@ -183,12 +183,14 @@ options {\n\
max-recursion-queries 75;\n\
Expand All @@ -15,9 +15,9 @@
provide-ixfr true;\n\
query-source address *;\n\
query-source-v6 address *;\n\
--- bin/named/server.c.orig 2018-10-06 05:51:22 UTC
--- bin/named/server.c.orig 2019-02-05 00:00:59 UTC
+++ bin/named/server.c
@@ -4075,6 +4075,16 @@ configure_view(dns_view_t *view, dns_vie
@@ -4075,6 +4075,16 @@ configure_view(dns_view_t *view, dns_viewlist_t *viewl
}

obj = NULL;
Expand All @@ -34,7 +34,7 @@
result = named_config_get(maps, "max-cache-ttl", &obj);
INSIST(result == ISC_R_SUCCESS);
view->maxcachettl = cfg_obj_asuint32(obj);
--- lib/dns/include/dns/view.h.orig 2018-10-06 05:51:22 UTC
--- lib/dns/include/dns/view.h.orig 2019-02-05 00:00:59 UTC
+++ lib/dns/include/dns/view.h
@@ -151,6 +151,8 @@ struct dns_view {
bool requestnsid;
Expand All @@ -45,9 +45,9 @@
dns_ttl_t maxncachettl;
uint32_t nta_lifetime;
uint32_t nta_recheck;
--- lib/dns/resolver.c.orig 2018-10-06 05:51:22 UTC
--- lib/dns/resolver.c.orig 2019-02-05 00:00:59 UTC
+++ lib/dns/resolver.c
@@ -5757,6 +5757,18 @@ cache_name(fetchctx_t *fctx, dns_name_t
@@ -5757,6 +5757,18 @@ cache_name(fetchctx_t *fctx, dns_name_t *name, dns_adb
}

/*
Expand All @@ -66,7 +66,7 @@
* Enforce the configure maximum cache TTL.
*/
if (rdataset->ttl > res->view->maxcachettl) {
--- lib/isccfg/namedconf.c.orig 2018-10-06 05:51:22 UTC
--- lib/isccfg/namedconf.c.orig 2019-02-05 00:00:59 UTC
+++ lib/isccfg/namedconf.c
@@ -1917,6 +1917,8 @@ view_clauses[] = {
{ "max-acache-size", &cfg_type_sizenodefault,
Expand Down
4 changes: 2 additions & 2 deletions dns/bind912/files/patch-bin_named_include_named_globals.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
We reference the pid file as being run/named/pid everywere else.

--- bin/named/include/named/globals.h.orig 2018-10-06 05:51:22 UTC
--- bin/named/include/named/globals.h.orig 2019-02-05 00:00:59 UTC
+++ bin/named/include/named/globals.h
@@ -129,7 +129,7 @@ EXTERN bool named_g_forcelock INIT(fals
@@ -129,7 +129,7 @@ EXTERN bool named_g_forcelock INIT(false);
#if NAMED_RUN_PID_DIR
EXTERN const char * named_g_defaultpidfile INIT(NAMED_LOCALSTATEDIR
"/run/named/"
Expand Down

0 comments on commit e2771d3

Please sign in to comment.