diff options
author | aszlig <aszlig@redmoonstudios.org> | 2014-09-01 14:51:50 +0200 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2014-09-01 16:07:27 +0200 |
commit | 3fbb9f05026900ec2d760574f15de16ba3ac536e (patch) | |
tree | 7dc86cba2643e13ddf9873b0be12467e8a9a2081 /pkgs/tools/networking/openntpd | |
parent | f9e63ca20dfeeaf95837b22f7baa1ca8904338af (diff) | |
download | nixlib-3fbb9f05026900ec2d760574f15de16ba3ac536e.tar nixlib-3fbb9f05026900ec2d760574f15de16ba3ac536e.tar.gz nixlib-3fbb9f05026900ec2d760574f15de16ba3ac536e.tar.bz2 nixlib-3fbb9f05026900ec2d760574f15de16ba3ac536e.tar.lz nixlib-3fbb9f05026900ec2d760574f15de16ba3ac536e.tar.xz nixlib-3fbb9f05026900ec2d760574f15de16ba3ac536e.tar.zst nixlib-3fbb9f05026900ec2d760574f15de16ba3ac536e.zip |
Add new openntpd package in version 20080406p-10.
It's actually a fork from Debian who are providing cross-platform compatibility fixes for it. A big advantage is that it is far more minimal than the ntpd reference implementation and especially useful if you don't want to run an NTP service. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'pkgs/tools/networking/openntpd')
-rw-r--r-- | pkgs/tools/networking/openntpd/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/tools/networking/openntpd/default.nix b/pkgs/tools/networking/openntpd/default.nix new file mode 100644 index 000000000000..c90582a75474 --- /dev/null +++ b/pkgs/tools/networking/openntpd/default.nix @@ -0,0 +1,32 @@ +{ stdenv, fetchgit, openssl +, privsepPath ? "/var/empty" +, privsepUser ? "ntp" +}: + +stdenv.mkDerivation rec { + name = "openntpd-${version}"; + version = "20080406p-10"; + + src = fetchgit { + url = "git://git.debian.org/collab-maint/openntpd.git"; + rev = "refs/tags/debian/${version}"; + sha256 = "0gd6j4sw4x4adlz0jzbp6lblx5vlnk6l1034hzbj2xd95k8hjhh8"; + }; + + postPatch = '' + sed -i -e '/^install:/,/^$/{/@if.*PRIVSEP_PATH/,/^$/d}' Makefile.in + ''; + + configureFlags = [ + "--with-privsep-path=${privsepPath}" + "--with-privsep-user=${privsepUser}" + ]; + + buildInputs = [ openssl ]; + + meta = { + homepage = "http://www.openntpd.org/"; + license = stdenv.lib.licenses.bsd3; + description = "OpenBSD NTP daemon (Debian port)"; + }; +} |