1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

sipp: 3.4-beta2 -> 3.5.1

fixes #23945
This commit is contained in:
Kranium Gikos Mendoza 2017-03-10 20:46:22 +11:00 committed by Jörg Thalheim
parent 99c7aa45e7
commit 9bd988eb0f
No known key found for this signature in database
GPG key ID: CA4106B8D7CC79FA

View file

@ -1,28 +1,41 @@
{stdenv, fetchurl, ncurses, libpcap }: {stdenv, fetchFromGitHub, autoreconfHook, ncurses, libpcap }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "3.5.1";
version = "3.4-beta2";
name = "sipp-${version}"; name = "sipp-${version}";
src = fetchurl { src = fetchFromGitHub {
url = "https://github.com/SIPp/sipp/archive/${version}.tar.gz"; owner = "SIPp";
sha256 = "0rr3slarh5dhpinif5aqji9c9krnpvl7z49w7qahvsww1niawwdv"; repo = "sipp";
rev = "v${version}";
sha256 = "179a1fvqyk3jpxbi28l1xfw22cw9vgvxrn19w5f38w74x0jwqg5k";
}; };
configurePhase = '' patchPhase = ''
export ac_cv_lib_curses_initscr=yes
export ac_cv_lib_pthread_pthread_mutex_init=yes
sed -i "s@pcap/\(.*\).pcap@$out/share/pcap/\1.pcap@g" src/scenario.cpp sed -i "s@pcap/\(.*\).pcap@$out/share/pcap/\1.pcap@g" src/scenario.cpp
./configure --prefix=$out --with-pcap sed -i -e "s|AC_CHECK_LIB(curses|AC_CHECK_LIB(ncurses|" configure.ac
echo "#define SIPP_VERSION \"v${version}\"" > include/version.h
''; '';
configureFlags = [
"--with-pcap"
];
postInstall = '' postInstall = ''
mkdir -pv $out/share/pcap mkdir -pv $out/share/pcap
cp pcap/* $out/share/pcap cp pcap/* $out/share/pcap
''; '';
buildInputs = [ncurses libpcap]; buildInputs = [ncurses libpcap];
nativeBuildInputs = [ autoreconfHook ];
meta = with stdenv.lib; {
homepage = http://sipp.sf.net;
description = "The SIPp testing tool";
license = licenses.gpl3;
platforms = platforms.unix;
};
} }