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