-
Notifications
You must be signed in to change notification settings - Fork 0
/
pcapsipdump02.spec.txt
38 lines (31 loc) · 1.09 KB
/
pcapsipdump02.spec.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Summary: PCAP SIP Dump tool
Name: pcapsipdump
Distribution: RedHat
Version: 0.2
Release: 2
License: GPL v2
Group: Utilities/System
Vendor: pcapsipdump.sf.net
BuildRoot: /var/tmp/%{name}-%{version}
Source: https://sourceforge.net/projects/pcapsipdump/files/pcapsipdump/0.2/pcapsipdump-0.2.tar.gz
BuildRequires: gcc make libpcap-devel redhat-rpm-config glib2-devel
%description
pcapsipdump is a tool for dumping SIP sessions (+RTP
traffic, if available) to disk in a fashion similar
to "tcpdump -w" (format is exactly the same), but one
file per sip session (even if there is thousands of
concurrent SIP sessions).
%prep
%setup
%build
make
%install
mkdir -p $RPM_BUILD_ROOT/usr/sbin $RPM_BUILD_ROOT/etc/sysconfig $RPM_BUILD_ROOT/etc/rc.d/init.d $RPM_BUILD_ROOT/var/spool
make DESTDIR=$RPM_BUILD_ROOT install
%post
chkconfig pcapsipdump --add
%files
%config(noreplace) %attr(0755,root,root) /etc/sysconfig/pcapsipdump
%attr(0700,root,root) %dir /var/spool/pcapsipdump
%attr(0755,root,root) /etc/rc.d/init.d/pcapsipdump
%attr(0755,root,root) /usr/sbin/pcapsipdump