Merge pull request #6425 from grwlf/siptools

Siptools
This commit is contained in:
lethalman 2015-02-26 15:00:17 +01:00
commit 69d3adbf3d
4 changed files with 90 additions and 0 deletions

View 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;
};
}

View 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];
}

View 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;
};
}

View File

@ -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;