Commit 51bbb52e authored by Jon Kåre Hellan's avatar Jon Kåre Hellan

Packaging for Debian


git-svn-id: file:///home/svn/sipshaman/trunk@3 9383e1fa-a92b-456e-b4ec-45f0d4f7abeb
parent d898bfd1
......@@ -86,7 +86,7 @@ foreach $tasklog(@ARGV){
if($#f >=0){ # yess some files
chomp(@f);
my $rtp_files= join(' ', @f);
$cmd="/local/net-status/bin/qstream.pl -v -rtp -rtt '$rtt' -id $src -xml $tmp $rtp_files";
$cmd="/usr/bin/qstream -v -rtp -rtt '$rtt' -id $src -xml $tmp $rtp_files";
$qstream_rep='date +%T $pid $port $mport $service@$server $function $machine ping' . $_;
open QSTREAM, "$cmd|";
......@@ -134,7 +134,7 @@ foreach $tasklog(@ARGV){
&bb_report("C-$function", $machine, &bb_color($call_limit,$bb_color,$status), $message);
} else {
open (CSV, "/local/net-status/sipp/bin/sipp-print -f 'OutgoingCall(C)|SuccessfulCall(C)|FailedCall(C)|Retransmissions(C)|ResponseTime1(C)|ResponseTime1StDev(C)|CallLength(C)|CallLengthStDev(C)' *${pid}_.csv|");
open (CSV, "/usr/bin/sipp-print -f 'OutgoingCall(C)|SuccessfulCall(C)|FailedCall(C)|Retransmissions(C)|ResponseTime1(C)|ResponseTime1StDev(C)|CallLength(C)|CallLengthStDev(C)' *${pid}_.csv|");
while(<CSV>){
$log.=$_;
if (/^\s+\d+\s+\d+\s+/){
......@@ -158,7 +158,7 @@ foreach $tasklog(@ARGV){
close TASKLOG;
}
# /local/net-status/sipp/bin/sipp-print -id $src -q -f 'OutgoingCall(C)|SuccessfulCall(C)|FailedCall(C)|Retransmissions(C)|ResponseTime1(C)|ResponseTime1StDev(C)|CallLength(C)|CallLengthStDev(C)' *${pid}_.csv
# /usr/bin/sipp-print -id $src -q -f 'OutgoingCall(C)|SuccessfulCall(C)|FailedCall(C)|Retransmissions(C)|ResponseTime1(C)|ResponseTime1StDev(C)|CallLength(C)|CallLengthStDev(C)' *${pid}_.csv
......
......@@ -2,7 +2,7 @@
# start responder if not running
. /etc/sipshaman/sipshaman.cf
ps axw | grep -q "sh .*/local/net-status/sipp/bin/sipp-responde[r]" -
ps axw | grep -q "sh .*/usr/bin/sipp-responde[r]" -
if test $? -eq 1; then # not found and ok to run
$BIN/sipp-responder&
fi
\ No newline at end of file
fi
sipshaman (0.1-1) unstable; urgency=low
* Initial Release. svn version r5
-- Jon K Hellan <jon.kare.hellan@uninett.no> Thu, 10 Nov 2011 14:25:16 +0100
Source: sipshaman
Section: unknown
Priority: optional
Maintainer: Jon K Hellan <jon.kare.hellan@uninett.no>
Build-Depends: debhelper (>= 4.0.0)
Standards-Version: 3.9.1
Package: sipshaman
Architecture: all
Description: Streaming media quality measurement tool
Depends: ${misc:Depends}, ${perl:Depends}, perl-modules, libxml-simple-perl, tcpdump, qstream, hobbit-client, net-tools, iputils-ping
This package was debianized by Jon K Hellan <jon.kare.hellan@uninett.no> on
Thu, 10 Nov 2011 15:33:50 +0100
Copyright Holder: UNINETT AS
License:
GPL
etc/
etc/sipshaman/
etc/sipshaman/pcap
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
build:
clean:
dh_testdir
dh_testroot
dh_clean
install:
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
binary-arch: install
# Build architecture-dependent files here.
binary-indep: install
dh_testdir
dh_testroot
dh_installchangelogs
dh_installdocs
dh_installexamples
dh_install
# dh_installmenu
# dh_installdebconf
# dh_installlogrotate
# dh_installemacsen
# dh_installpam
# dh_installmime
# dh_installinit
dh_installcron
# dh_installinfo
dh_installman
dh_link
dh_strip
dh_compress
dh_fixperms
dh_perl
# dh_python
# dh_makeshlibs
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep
.PHONY: build clean binary-arch binary-indep binary install
bin/sipp-register usr/bin
bin/qstream-sipp-check usr/bin
bin/sipp-bb usr/bin
bin/tcpdump-vent usr/bin
bin/sipp-print usr/bin
bin/sipp-test usr/bin
bin/sipp-start-responder usr/bin
bin/sipp-responder usr/bin
etc/register.xml etc/sipshaman
etc/poll.cf etc/sipshaman
etc/sipp-client-media.xml etc/sipshaman
etc/sipp-test.cron etc/cron.d
etc/sipp-responder.xml etc/sipshaman
etc/sipshaman.cf etc/sipshaman
pcap/dtmf_2833_1.pcap etc/sipshaman/pcap
pcap/g711a.pcap etc/sipshaman/pcap
......@@ -142,7 +142,7 @@
<nop>
<action>
<exec command="tcpdump-vent 10 -i eth0 -q -s 0 -w rtp_[local_ip]_[pid]_[call_number].pcap dst host [local_ip] and dst port [$my_media_port] and src host [$rtp_ip] and src port [$rtp_port]"/>
<exec play_pcap_audio="/etc/sippshaman/pcap/g711a.pcap"/>
<exec play_pcap_audio="/etc/sipshaman/pcap/g711a.pcap"/>
</action>
</nop>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment