* Build ntpd with capabilities support.
svn path=/nixpkgs/trunk/; revision=7462
This commit is contained in:
@@ -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 [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user