2022-07-07 02:04:31 +01:00
|
|
|
{ lib, stdenv, fetchurl, fetchpatch }:
|
2011-09-22 12:28:56 +01:00
|
|
|
|
2021-08-01 19:11:18 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pdnsd";
|
|
|
|
version = "1.2.9a-par";
|
2011-09-22 12:28:56 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-08-01 19:11:18 +01:00
|
|
|
url = "http://members.home.nl/p.a.rombouts/pdnsd/releases/pdnsd-${version}.tar.gz";
|
2014-04-14 15:17:10 +01:00
|
|
|
sha256 = "0yragv5zk77a1hfkpnsh17vvsw8b14d6mzfng4bb7i58rb83an5v";
|
2011-09-22 12:28:56 +01:00
|
|
|
};
|
|
|
|
|
2022-07-07 02:04:31 +01:00
|
|
|
patches =
|
|
|
|
# fix build with linux headers >= 5.13
|
|
|
|
lib.optional stdenv.isLinux
|
|
|
|
(fetchpatch {
|
|
|
|
name = "fix-build-linux-headers-gte-5.13.patch";
|
|
|
|
url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/net-dns/pdnsd/files/pdnsd-1.2.9a-linux-5.13_build_fix.patch?id=7ce35657f269c3b7016e8940ad36e59cf06e12a4";
|
|
|
|
hash = "sha256-Sh/0ZyiQpDvFZOWE9OCQ9+ocXurjzJvrE4WNWaGwAwk=";
|
|
|
|
});
|
|
|
|
|
|
|
|
postPatch = ''
|
2011-09-22 12:28:56 +01:00
|
|
|
sed -i 's/.*(cachedir).*/:/' Makefile.in
|
|
|
|
'';
|
|
|
|
|
2016-02-12 10:44:08 +00:00
|
|
|
configureFlags = [ "--enable-ipv6" ];
|
|
|
|
|
2017-03-06 20:19:20 +00:00
|
|
|
# fix ipv6 on darwin
|
|
|
|
CPPFLAGS = "-D__APPLE_USE_RFC_3542";
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2011-09-22 12:28:56 +01:00
|
|
|
description = "Permanent DNS caching";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://members.home.nl/p.a.rombouts/pdnsd";
|
2017-03-06 20:19:20 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [viric];
|
2011-09-22 12:28:56 +01:00
|
|
|
};
|
|
|
|
}
|