Merge pull request #35078 from Mic92/powerdns

powerdns: 4.0.5 -> 4.1.1
This commit is contained in:
Jörg Thalheim 2018-02-20 21:49:41 +00:00 committed by GitHub
commit 57ad5dc844
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 45 additions and 8 deletions

View File

@ -330,6 +330,7 @@ in rec {
tests.postgresql = callSubTests tests/postgresql.nix {};
tests.pgmanage = callTest tests/pgmanage.nix {};
tests.postgis = callTest tests/postgis.nix {};
tests.powerdns = callTest tests/powerdns.nix {};
#tests.pgjwt = callTest tests/pgjwt.nix {};
tests.predictable-interface-names = callSubTests tests/predictable-interface-names.nix {};
tests.printing = callTest tests/printing.nix {};

12
nixos/tests/powerdns.nix Normal file
View File

@ -0,0 +1,12 @@
import ./make-test.nix ({ pkgs, ... }: {
name = "powerdns";
nodes.server = { config, pkgs, ... }: {
services.powerdns.enable = true;
};
testScript = ''
$server->waitForUnit("pdns");
$server->succeed("${pkgs.dnsutils}/bin/dig version.bind txt chaos \@127.0.0.1");
'';
})

View File

@ -1,27 +1,36 @@
{ stdenv, fetchurl, pkgconfig,
boost, libyamlcpp, libsodium, sqlite, protobuf,
mysql57, postgresql, lua, openldap, geoip, curl
{ stdenv, fetchurl, pkgconfig
, boost, libyamlcpp, libsodium, sqlite, protobuf, botan2
, mysql57, postgresql, lua, openldap, geoip, curl, opendbx, unixODBC
}:
stdenv.mkDerivation rec {
name = "powerdns-${version}";
version = "4.0.5";
version = "4.1.1";
src = fetchurl {
url = "http://downloads.powerdns.com/releases/pdns-${version}.tar.bz2";
sha256 = "097ci4s2c63gl0bil8yh87dsy0sk3fds4w8cpyjh5kns6zazmj2v";
sha256 = "1fh4zgj0gxgcnnhnih8k6fbw18hb9brkkrfpx3mj8b4a3hr8ilq8";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ boost mysql57.connector-c postgresql lua openldap sqlite protobuf geoip libyamlcpp libsodium curl ];
buildInputs = [
boost mysql57.connector-c postgresql lua openldap sqlite protobuf geoip
libyamlcpp libsodium curl opendbx unixODBC botan2
];
patches = [
# checksum type not found, maybe a dependency is to old?
./skip-sha384-test.patch
];
# nix destroy with-modules arguments, when using configureFlags
preConfigure = ''
configureFlagsArray=(
"--with-modules=bind gmysql geoip gpgsql gsqlite3 ldap lua pipe random remote"
"--with-modules=bind gmysql geoip godbc gpgsql gsqlite3 ldap lua mydns opendbx pipe random remote"
--with-sqlite3
--with-socketdir=/var/lib/powerdns
--enable-libsodium
--enable-botan
--enable-tools
--disable-dependency-tracking
--disable-silent-rules
@ -29,7 +38,8 @@ stdenv.mkDerivation rec {
--enable-unit-tests
)
'';
checkPhase = "make check";
doCheck = true;
meta = with stdenv.lib; {
description = "Authoritative DNS server";

View File

@ -0,0 +1,14 @@
--- pdns-4.1.1.org/pdns/test-signers.cc 2018-02-17 11:43:15.953228279 +0000
+++ pdns-4.1.1/pdns/test-signers.cc 2018-02-17 11:44:21.089516393 +0000
@@ -212,11 +212,6 @@
BOOST_CHECK_EQUAL(ds2.getZoneRepresentation(), signer.dsSHA256);
}
- auto ds4 = makeDSFromDNSKey(name, drc, DNSSECKeeper::SHA384);
- if (!signer.dsSHA384.empty()) {
- BOOST_CHECK_EQUAL(ds4.getZoneRepresentation(), signer.dsSHA384);
- }
-
auto signature = dcke->sign(message);
BOOST_CHECK(dcke->verify(message, signature));