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