ntp: Refactor and add signing support
This commit is contained in:
parent
95a49c18b5
commit
bcbda5d95b
@ -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/;
|
||||
|
Loading…
Reference in New Issue
Block a user