2011-01-07 12:33:04 +01:00
|
|
|
{ stdenv, fetchurl, openssl, libtool, perl, libxml2 }:
|
|
|
|
|
2012-10-17 14:27:38 +02:00
|
|
|
let version = "9.9.2"; in
|
2012-10-02 17:48:54 +02:00
|
|
|
|
2011-01-07 12:33:04 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "bind-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://ftp.isc.org/isc/bind9/${version}/${name}.tar.gz";
|
2012-10-17 14:27:38 +02:00
|
|
|
sha256 = "0j4v01ch4xkgnsnngmh6bpapzi53n4k79gbbhmxf44nmk2qk0rby";
|
2011-01-07 12:33:04 +01:00
|
|
|
};
|
|
|
|
|
2011-01-11 23:08:43 +01:00
|
|
|
patchPhase = ''
|
|
|
|
sed -i 's/^\t.*run/\t/' Makefile.in
|
|
|
|
'';
|
|
|
|
|
2011-01-07 12:33:04 +01:00
|
|
|
buildInputs = [ openssl libtool perl libxml2 ];
|
|
|
|
|
|
|
|
/* Why --with-libtool? */
|
2011-01-11 23:08:43 +01:00
|
|
|
configureFlags = [ "--with-libtool" "--with-openssl=${openssl}"
|
|
|
|
"--localstatedir=/var" ];
|
2012-10-02 17:48:54 +02:00
|
|
|
|
2011-01-07 12:33:04 +01:00
|
|
|
meta = {
|
|
|
|
homepage = http://www.isc.org/software/bind;
|
|
|
|
description = "ISC BIND: a domain name server";
|
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|