2015-06-01 12:35:51 -07:00
|
|
|
{ stdenv, fetchurl, openssl, libtool, perl, libxml2 }:
|
2011-01-07 03:33:04 -08:00
|
|
|
|
2016-05-02 13:57:45 -07:00
|
|
|
let version = "9.10.4"; in
|
2012-10-02 08:48:54 -07:00
|
|
|
|
2011-01-07 03:33:04 -08:00
|
|
|
stdenv.mkDerivation rec {
|
2015-06-01 12:35:41 -07:00
|
|
|
name = "bind-${version}";
|
2011-01-07 03:33:04 -08:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-06-01 12:35:41 -07:00
|
|
|
url = "http://ftp.isc.org/isc/bind9/${version}/${name}.tar.gz";
|
2016-05-02 13:57:45 -07:00
|
|
|
sha256 = "0mmhzi4483mkak47wj255a36g3v0yilxwfwlbckr1hssinri5m7q";
|
2011-01-07 03:33:04 -08:00
|
|
|
};
|
|
|
|
|
2015-10-30 14:12:29 -07:00
|
|
|
outputs = [ "dev" "bin" "out" "man" ];
|
|
|
|
|
|
|
|
patches = [ ./dont-keep-configure-flags.patch ./remove-mkdir-var.patch ] ++
|
2016-05-12 15:29:30 -07:00
|
|
|
stdenv.lib.optional stdenv.isDarwin ./darwin-openssl-linking-fix.patch;
|
2015-11-28 10:26:59 -08:00
|
|
|
|
2015-06-01 12:35:51 -07:00
|
|
|
buildInputs = [ openssl libtool perl libxml2 ];
|
2011-01-07 03:33:04 -08:00
|
|
|
|
2013-06-09 10:25:46 -07:00
|
|
|
configureFlags = [
|
2015-06-01 12:35:51 -07:00
|
|
|
"--localstatedir=/var"
|
|
|
|
"--with-libtool"
|
|
|
|
"--with-libxml2=${libxml2}"
|
|
|
|
"--with-openssl=${openssl}"
|
|
|
|
"--without-atf"
|
|
|
|
"--without-dlopen"
|
|
|
|
"--without-docbook-xsl"
|
|
|
|
"--without-gssapi"
|
|
|
|
"--without-idn"
|
|
|
|
"--without-idnlib"
|
|
|
|
"--without-pkcs11"
|
|
|
|
"--without-purify"
|
|
|
|
"--without-python"
|
2013-06-09 10:25:46 -07:00
|
|
|
];
|
2012-10-02 08:48:54 -07:00
|
|
|
|
2015-10-30 14:12:29 -07:00
|
|
|
postInstall = ''
|
|
|
|
moveToOutput bin/bind9-config $dev
|
|
|
|
moveToOutput bin/isc-config.sh $dev
|
|
|
|
'';
|
|
|
|
|
2011-01-07 03:33:04 -08:00
|
|
|
meta = {
|
2013-04-01 01:15:46 -07:00
|
|
|
homepage = "http://www.isc.org/software/bind";
|
2014-08-24 07:21:08 -07:00
|
|
|
description = "Domain name server";
|
2015-06-01 12:35:51 -07:00
|
|
|
license = stdenv.lib.licenses.isc;
|
|
|
|
|
|
|
|
maintainers = with stdenv.lib.maintainers; [viric simons];
|
|
|
|
platforms = with stdenv.lib.platforms; unix;
|
2011-01-07 03:33:04 -08:00
|
|
|
};
|
|
|
|
}
|