commit
69d3adbf3d
32
pkgs/applications/networking/sipcmd/default.nix
Normal file
32
pkgs/applications/networking/sipcmd/default.nix
Normal file
@ -0,0 +1,32 @@
|
||||
{ stdenv, fetchgit, opal, ptlib }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
||||
rev = "3090e9f";
|
||||
|
||||
name = "sipcmd-${rev}";
|
||||
|
||||
src = fetchgit {
|
||||
url = "https://github.com/tmakkonen/sipcmd";
|
||||
rev = "${rev}";
|
||||
sha256 = "072h9qapmz46r8pxbzkfmc4ikd7dv9g8cgrfrw21q942icbrvq2c";
|
||||
};
|
||||
|
||||
buildInputs = [ opal ptlib ];
|
||||
|
||||
buildPhase = ''
|
||||
make IFLAGS="-I${opal}/include/opal -I${ptlib}/include -Isrc/ -L${opal}/lib -L${ptlib}/lib"
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -pv $out/bin
|
||||
cp sipcmd $out/bin/sipcmd
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = https://github.com/tmakkonen/sipcmd;
|
||||
description = "sipcmd - the command line SIP/H.323/RTP softphone";
|
||||
platforms = with stdenv.lib.platforms; linux;
|
||||
};
|
||||
}
|
||||
|
29
pkgs/development/tools/misc/sipp/default.nix
Normal file
29
pkgs/development/tools/misc/sipp/default.nix
Normal file
@ -0,0 +1,29 @@
|
||||
{stdenv, fetchurl, ncurses, libpcap }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
||||
version = "3.4-beta2";
|
||||
|
||||
name = "sipp-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/SIPp/sipp/archive/${version}.tar.gz";
|
||||
sha256 = "0rr3slarh5dhpinif5aqji9c9krnpvl7z49w7qahvsww1niawwdv";
|
||||
};
|
||||
|
||||
configurePhase = ''
|
||||
export ac_cv_lib_curses_initscr=yes
|
||||
export ac_cv_lib_pthread_pthread_mutex_init=yes
|
||||
sed -i "s@-lcurses@-lncurses@g" ./configure
|
||||
sed -i "s@pcap/\(.*\).pcap@$out/share/pcap/\1.pcap@g" src/scenario.cpp
|
||||
./configure --prefix=$out --with-pcap
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
mkdir -pv $out/share/pcap
|
||||
cp pcap/* $out/share/pcap
|
||||
'';
|
||||
|
||||
buildInputs = [ncurses libpcap];
|
||||
}
|
||||
|
23
pkgs/tools/networking/dhcpdump/default.nix
Normal file
23
pkgs/tools/networking/dhcpdump/default.nix
Normal file
@ -0,0 +1,23 @@
|
||||
{ stdenv, fetchurl, libpcap, perl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "dhcpdump-1.8";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://archive.ubuntu.com/ubuntu/pool/universe/d/dhcpdump/dhcpdump_1.8.orig.tar.gz";
|
||||
sha256 = "143iyzkqvhj4dscwqs75jvfr4wvzrs11ck3fqn5p7yv2h50vjpkd";
|
||||
};
|
||||
|
||||
buildInputs = [libpcap perl];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -pv $out/bin
|
||||
cp dhcpdump $out/bin
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "A tool for visualization of DHCP packets as recorded and output by tcpdump to analyze DHCP server responses";
|
||||
homepage = http://packages.ubuntu.com/ru/lucid/dhcpdump;
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
};
|
||||
}
|
@ -1063,6 +1063,8 @@ let
|
||||
|
||||
dhcp = callPackage ../tools/networking/dhcp { };
|
||||
|
||||
dhcpdump = callPackage ../tools/networking/dhcpdump { };
|
||||
|
||||
dhcpcd = callPackage ../tools/networking/dhcpcd { };
|
||||
|
||||
di = callPackage ../tools/system/di { };
|
||||
@ -8336,6 +8338,8 @@ let
|
||||
|
||||
shishi = callPackage ../servers/shishi { };
|
||||
|
||||
sipcmd = callPackage ../applications/networking/sipcmd { };
|
||||
|
||||
sipwitch = callPackage ../servers/sip/sipwitch { };
|
||||
|
||||
spawn_fcgi = callPackage ../servers/http/spawn-fcgi { };
|
||||
@ -11431,6 +11435,8 @@ let
|
||||
|
||||
shntool = callPackage ../applications/audio/shntool { };
|
||||
|
||||
sipp = callPackage ../development/tools/misc/sipp { };
|
||||
|
||||
sonic-visualiser = callPackage ../applications/audio/sonic-visualiser {
|
||||
inherit (pkgs.vamp) vampSDK;
|
||||
inherit (pkgs.xlibs) libX11;
|
||||
|
Loading…
Reference in New Issue
Block a user