ntp: 4.2.8 -> 4.2.8p2

This commit is contained in:
William A. Kennington III 2015-04-08 14:07:26 -07:00
parent 1021e33fde
commit 458c8381e0
2 changed files with 8 additions and 11 deletions

View File

@ -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";

View File

@ -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 { };