2006-12-22 20:22:57 +01:00
|
|
|
{stdenv, fetchurl, libcap}:
|
|
|
|
|
|
|
|
assert stdenv.isLinux -> libcap != null;
|
2006-12-21 23:23:17 +01:00
|
|
|
|
2009-03-31 11:26:20 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2009-06-02 21:35:26 +02:00
|
|
|
name = "ntp-4.2.4p7";
|
2008-09-18 23:15:14 +02:00
|
|
|
|
2006-12-21 23:23:17 +01:00
|
|
|
src = fetchurl {
|
2009-03-31 11:26:20 +02:00
|
|
|
url = "http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/${name}.tar.gz";
|
2009-06-02 21:35:26 +02:00
|
|
|
sha256 = "1hq1iz54md8imc4a60jcmljlm5jk8ql7x40v7kbnc1ndwly8i0an";
|
2006-12-21 23:23:17 +01:00
|
|
|
};
|
2008-09-18 23:15:14 +02:00
|
|
|
|
2008-01-18 14:20:04 +01:00
|
|
|
configureFlags = ''
|
2006-12-22 23:16:06 +01:00
|
|
|
--without-crypto
|
2006-12-22 20:22:57 +01:00
|
|
|
${if stdenv.isLinux then "--enable-linuxcaps" else ""}
|
2008-01-18 14:20:04 +01:00
|
|
|
'';
|
2008-09-18 23:15:14 +02:00
|
|
|
|
2009-03-31 11:26:20 +02:00
|
|
|
buildInputs = stdenv.lib.optional stdenv.isLinux libcap;
|
2008-09-18 23:15:14 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.ntp.org/;
|
|
|
|
description = "An implementation of the Network Time Protocol";
|
|
|
|
};
|
2006-12-21 23:23:17 +01:00
|
|
|
}
|