3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #41485 from teto/owamp

[RDY] Owamp : Get one way (network) latencies between synchronized computers
This commit is contained in:
Matthew Justin Bauer 2018-06-20 21:45:36 -04:00 committed by GitHub
commit 3925077548
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 78 additions and 0 deletions

View file

@ -541,6 +541,7 @@
./services/networking/openntpd.nix
./services/networking/openvpn.nix
./services/networking/ostinato.nix
./services/networking/owamp.nix
./services/networking/pdnsd.nix
./services/networking/polipo.nix
./services/networking/powerdns.nix

View file

@ -0,0 +1,47 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.services.owamp;
in
{
###### interface
options = {
services.owamp.enable = mkEnableOption ''Enable OWAMP server'';
};
###### implementation
config = mkIf cfg.enable {
users.extraUsers = singleton {
name = "owamp";
group = "owamp";
description = "Owamp daemon";
};
users.extraGroups = singleton {
name = "owamp";
};
systemd.services.owamp = {
description = "Owamp server";
wantedBy = [ "multi-user.target" ];
serviceConfig = {
ExecStart="${pkgs.owamp}/bin/owampd -R /run/owamp -d /run/owamp -v -Z ";
PrivateTmp = true;
Restart = "always";
Type="simple";
User = "owamp";
Group = "owamp";
RuntimeDirectory = "owamp";
StateDirectory = "owamp";
AmbientCapabilities = "cap_net_bind_service";
};
};
};
}

View file

@ -0,0 +1,28 @@
{stdenv, fetchurl, fetchFromGitHub
, autoconf, automake, mandoc }:
stdenv.mkDerivation rec {
name = "owamp-${version}";
version = "3.5.6";
buildInputs = [ autoconf automake mandoc ];
src = fetchFromGitHub {
owner = "perfsonar";
repo = "owamp";
rev = version;
sha256="019rcshmrqk8pfp510j5jvazdcnz0igfkwv44mfxb5wirzj9p6s7";
fetchSubmodules = true;
};
preConfigure = ''
I2util/bootstrap.sh
./bootstrap
'';
meta = with stdenv.lib; {
homepage = http://software.internet2.edu/owamp/;
description = ''A tool for performing one-way active measurements'';
platforms = platforms.linux;
maintainers = [maintainers.teto];
license = licenses.asl20;
};
}

View file

@ -17423,6 +17423,8 @@ with pkgs;
osmctools = callPackage ../applications/misc/osmctools { };
owamp = callPackage ../applications/networking/owamp { };
vivaldi = callPackage ../applications/networking/browsers/vivaldi {};
vivaldi-ffmpeg-codecs = callPackage ../applications/networking/browsers/vivaldi/ffmpeg-codecs.nix {};