* Build ntpd with capabilities support.

svn path=/nixpkgs/trunk/; revision=7462
This commit is contained in:
Eelco Dolstra
2006-12-22 19:22:57 +00:00
parent 000b1f4cd6
commit 33db7f3dd3
4 changed files with 73 additions and 2 deletions
+7 -1
View File
@@ -1,4 +1,6 @@
{stdenv, fetchurl}:
{stdenv, fetchurl, libcap}:
assert stdenv.isLinux -> libcap != null;
stdenv.mkDerivation {
name = "ntp-4.2.2p4";
@@ -6,4 +8,8 @@ stdenv.mkDerivation {
url = http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2.2p4.tar.gz;
md5 = "916fe57525f8327f340b203f129088fa";
};
configureFlags = "
${if stdenv.isLinux then "--enable-linuxcaps" else ""}
";
buildInputs = if stdenv.isLinux then [libcap] else [];
}