mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
ntp: 4.2.8 -> 4.2.8p2
This commit is contained in:
parent
1021e33fde
commit
458c8381e0
@ -1,23 +1,18 @@
|
||||
{ stdenv, fetchurl, libcap, autoreconfHook }:
|
||||
{ stdenv, fetchurl, autoreconfHook, libcap ? null }:
|
||||
|
||||
assert stdenv.isLinux -> libcap != null;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "ntp-4.2.8";
|
||||
name = "ntp-4.2.8p2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/${name}.tar.gz";
|
||||
sha256 = "1vnqa1542d01xmlkw8f3rq57y360b2j7yxkkg9b11955nvw0v4if";
|
||||
sha256 = "0ccv9kh5asxpk7bjn73vwrqimbkbfl743bgx0km47bfajl7bqs8d";
|
||||
};
|
||||
|
||||
patches = [ ./no-openssl.patch ];
|
||||
configureFlags = stdenv.lib.optional (libcap != null) "--enable-linuxcaps";
|
||||
|
||||
configureFlags = ''
|
||||
--without-crypto
|
||||
${if stdenv.isLinux then "--enable-linuxcaps" else ""}
|
||||
'';
|
||||
|
||||
buildInputs = [ autoreconfHook ] ++ stdenv.lib.optional stdenv.isLinux libcap;
|
||||
buildInputs = [ autoreconfHook libcap ];
|
||||
|
||||
postInstall = "rm -rf $out/share/doc";
|
||||
|
||||
|
@ -2165,7 +2165,9 @@ let
|
||||
|
||||
ntopng = callPackage ../tools/networking/ntopng { };
|
||||
|
||||
ntp = callPackage ../tools/networking/ntp { };
|
||||
ntp = callPackage ../tools/networking/ntp {
|
||||
libcap = if stdenv.isLinux then libcap else null;
|
||||
};
|
||||
|
||||
numdiff = callPackage ../tools/text/numdiff { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user