ntp: Refactor and add signing support

This commit is contained in:
William A. Kennington III 2015-04-24 15:28:48 -07:00
parent 95a49c18b5
commit bcbda5d95b

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, autoreconfHook, libcap ? null }:
{ stdenv, fetchurl, autoreconfHook, libcap ? null, openssl ? null }:
assert stdenv.isLinux -> libcap != null;
@ -10,11 +10,18 @@ stdenv.mkDerivation rec {
sha256 = "0ccv9kh5asxpk7bjn73vwrqimbkbfl743bgx0km47bfajl7bqs8d";
};
configureFlags = stdenv.lib.optional (libcap != null) "--enable-linuxcaps";
configureFlags = [
"--sysconfdir=/etc"
"--localstatedir=/var"
"--enable-ignore-dns-errors"
] ++ stdenv.lib.optional (libcap != null) "--enable-linuxcaps";
buildInputs = [ autoreconfHook libcap ];
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ libcap openssl ];
postInstall = "rm -rf $out/share/doc";
postInstall = ''
rm -rf $out/share/doc
'';
meta = {
homepage = http://www.ntp.org/;