Merge pull request #41485 from teto/owamp
[RDY] Owamp : Get one way (network) latencies between synchronized computers
This commit is contained in:
commit
3925077548
@ -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
|
||||
|
47
nixos/modules/services/networking/owamp.nix
Normal file
47
nixos/modules/services/networking/owamp.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
28
pkgs/applications/networking/owamp/default.nix
Normal file
28
pkgs/applications/networking/owamp/default.nix
Normal 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;
|
||||
};
|
||||
}
|
@ -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 {};
|
||||
|
Loading…
Reference in New Issue
Block a user