1{ stdenv, fetchurl, openssl
2, privsepPath ? "/var/empty"
3, privsepUser ? "ntp"
4}:
5
6stdenv.mkDerivation rec {
7 name = "openntpd-${version}";
8 version = "5.7p4";
9
10 src = fetchurl {
11 url = "mirror://openbsd/OpenNTPD/${name}.tar.gz";
12 sha256 = "08ybpi351284wj53qqrmg13j8l7md397yrqsmg0aqxg3frcxk4x9";
13 };
14
15 configureFlags = [
16 "--with-privsep-path=${privsepPath}"
17 "--with-privsep-user=${privsepUser}"
18 "--sysconfdir=/etc"
19 "--localstatedir=/var"
20 ];
21
22 buildInputs = [ openssl ];
23
24 installFlags = [
25 "sysconfdir=\${out}/etc"
26 "localstatedir=\${TMPDIR}"
27 ];
28
29 meta = with stdenv.lib; {
30 homepage = "http://www.openntpd.org/";
31 license = licenses.bsd3;
32 description = "OpenBSD NTP daemon (Debian port)";
33 platforms = platforms.all;
34 maintainers = with maintainers; [ wkennington ];
35 };
36}