Merge branch 'master' into feat/nsd/dnssec

This commit is contained in:
Matthew Justin Bauer
2018-04-21 14:48:30 -05:00
committed by GitHub
8076 changed files with 279010 additions and 166503 deletions
@@ -1,8 +1,8 @@
diff --git a/configure b/configure
index 6779cc3..4275520 100755
index b9ad66b..a2a7382 100755
--- a/configure
+++ b/configure
@@ -15707,21 +15707,6 @@ $as_echo "not found" >&6; }
@@ -16033,21 +16033,6 @@ $as_echo "not found" >&6; }
*-hp-hpux*)
DST_OPENSSL_LIBS="-L$use_openssl/lib -Wl,+b: -lcrypto"
;;
+16 -6
View File
@@ -1,18 +1,19 @@
{ stdenv, lib, fetchurl, openssl, libtool, perl, libxml2
, enableSeccomp ? false, libseccomp ? null
, enablePython ? false, python3 ? null }:
, enablePython ? false, python3 ? null
, enableSeccomp ? false, libseccomp ? null, buildPackages
}:
assert enableSeccomp -> libseccomp != null;
assert enablePython -> python3 != null;
let version = "9.11.2"; in
let version = "9.12.1"; in
stdenv.mkDerivation rec {
name = "bind-${version}";
src = fetchurl {
url = "http://ftp.isc.org/isc/bind9/${version}/${name}.tar.gz";
sha256 = "0yn7wgi2y8mpmvbjbkl4va7p0xsnn48m4yjx6ynb1hzp423asikz";
sha256 = "043mjcw405qa0ghm5dkhfsq35gsy279724fz3mjqpr1mbi14dr0n";
};
outputs = [ "out" "lib" "dev" "man" "dnsutils" "host" ];
@@ -20,12 +21,15 @@ stdenv.mkDerivation rec {
patches = [ ./dont-keep-configure-flags.patch ./remove-mkdir-var.patch ] ++
stdenv.lib.optional stdenv.isDarwin ./darwin-openssl-linking-fix.patch;
buildInputs = [ openssl libtool perl libxml2 ]
nativeBuildInputs = [ perl ];
buildInputs = [ openssl libtool libxml2 ]
++ lib.optional enableSeccomp libseccomp
++ lib.optional enablePython python3;
STD_CDEFINES = [ "-DDIG_SIGCHASE=1" ]; # support +sigchase
depsBuildBuild = [ buildPackages.stdenv.cc ];
configureFlags = [
"--localstatedir=/var"
"--with-libtool"
@@ -38,8 +42,14 @@ stdenv.mkDerivation rec {
"--without-gssapi"
"--without-idn"
"--without-idnlib"
"--without-lmdb"
"--without-pkcs11"
"--without-purify"
"--with-randomdev=/dev/random"
"--with-ecdsa"
"--with-gost"
"--without-eddsa"
"--with-aes"
] ++ lib.optional enableSeccomp "--enable-seccomp";
postInstall = ''
@@ -60,7 +70,7 @@ stdenv.mkDerivation rec {
meta = {
homepage = http://www.isc.org/software/bind;
description = "Domain name server";
license = stdenv.lib.licenses.isc;
license = stdenv.lib.licenses.mpl20;
maintainers = with stdenv.lib.maintainers; [viric peti];
platforms = with stdenv.lib.platforms; unix;
@@ -1,40 +1,41 @@
diff --git a/bin/named/include/named/globals.h b/bin/named/include/named/globals.h
index f354cfb..2aa0cc5 100644
index 388dc97..3c6135c 100644
--- a/bin/named/include/named/globals.h
+++ b/bin/named/include/named/globals.h
@@ -71,7 +71,9 @@ EXTERN const char * ns_g_version INIT(VERSION);
EXTERN const char * ns_g_product INIT(PRODUCT);
EXTERN const char * ns_g_description INIT(DESCRIPTION);
EXTERN const char * ns_g_srcid INIT(SRCID);
@@ -65,7 +65,9 @@ EXTERN const char * named_g_version INIT(VERSION);
EXTERN const char * named_g_product INIT(PRODUCT);
EXTERN const char * named_g_description INIT(DESCRIPTION);
EXTERN const char * named_g_srcid INIT(SRCID);
+#if 0
EXTERN const char * ns_g_configargs INIT(CONFIGARGS);
EXTERN const char * named_g_configargs INIT(CONFIGARGS);
+#endif
EXTERN const char * ns_g_builder INIT(BUILDER);
EXTERN in_port_t ns_g_port INIT(0);
EXTERN isc_dscp_t ns_g_dscp INIT(-1);
EXTERN const char * named_g_builder INIT(BUILDER);
EXTERN in_port_t named_g_port INIT(0);
EXTERN isc_dscp_t named_g_dscp INIT(-1);
diff --git a/bin/named/main.c b/bin/named/main.c
index 556db54..edab41d 100644
index 4fb0566..60d56cd 100644
--- a/bin/named/main.c
+++ b/bin/named/main.c
@@ -636,8 +636,10 @@ parse_command_line(int argc, char *argv[]) {
(*ns_g_description != '\0') ? " " : "",
ns_g_description, ns_g_srcid);
printf("running on %s\n", ns_os_uname());
+#if 0
@@ -672,8 +672,10 @@ parse_command_line(int argc, char *argv[]) {
(*named_g_description != '\0') ? " " : "",
named_g_description, named_g_srcid);
printf("running on %s\n", named_os_uname());
+ #if 0
printf("built by %s with %s\n",
ns_g_builder, ns_g_configargs);
+#endif
named_g_builder, named_g_configargs);
+ #endif
#ifdef __clang__
printf("compiled by CLANG %s\n", __VERSION__);
#else
@@ -998,8 +1000,10 @@ setup(void) {
isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL, NS_LOGMODULE_MAIN,
ISC_LOG_NOTICE, "running on %s", ns_os_uname());
@@ -1075,9 +1077,11 @@ setup(void) {
NAMED_LOGMODULE_MAIN, ISC_LOG_NOTICE,
"running on %s", named_os_uname());
+#if 0
isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL, NS_LOGMODULE_MAIN,
ISC_LOG_NOTICE, "built with %s", ns_g_configargs);
isc_log_write(named_g_lctx, NAMED_LOGCATEGORY_GENERAL,
NAMED_LOGMODULE_MAIN, ISC_LOG_NOTICE,
"built with %s", named_g_configargs);
+#endif
isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL, NS_LOGMODULE_MAIN,
ISC_LOG_NOTICE,
isc_log_write(named_g_lctx, NAMED_LOGCATEGORY_GENERAL,
NAMED_LOGMODULE_MAIN, ISC_LOG_NOTICE,