1 |
alien |
134827 |
%define subrel 1 |
2 |
|
|
|
3 |
alien |
134257 |
Summary: A SIP masquerading proxy with RTP support |
4 |
|
|
Name: siproxd |
5 |
alien |
134266 |
Version: 0.8.1 |
6 |
|
|
Release: %mkrel 1 |
7 |
alien |
134257 |
License: GPLv2+ |
8 |
|
|
Group: System/Servers |
9 |
|
|
URL: http://siproxd.sourceforge.net/ |
10 |
alien |
134266 |
Source0: http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz |
11 |
alien |
134257 |
Source1: %{name}.init |
12 |
|
|
Requires(post): rpm-helper |
13 |
|
|
Requires(preun): rpm-helper |
14 |
|
|
Requires(pre): rpm-helper |
15 |
|
|
Requires(postun): rpm-helper |
16 |
|
|
BuildRequires: libosip2-devel >= 3.0.3 |
17 |
|
|
BuildRequires: libtool |
18 |
|
|
BuildRequires: autoconf2.5 |
19 |
|
|
BuildRequires: docbook-utils |
20 |
|
|
BuildRequires: docbook-dtd42-sgml |
21 |
|
|
|
22 |
|
|
%description |
23 |
|
|
Siprox is an proxy/masquerading daemon for the SIP protocol. |
24 |
|
|
It handles registrations of SIP clients on a private IP network |
25 |
|
|
and performs rewriting of the SIP message bodies to make SIP |
26 |
|
|
connections possible via an masquerading firewall. |
27 |
|
|
It allows SIP clients (like kphone, linphone) to work behind |
28 |
|
|
an IP masquerading firewall or router. |
29 |
|
|
|
30 |
alien |
134266 |
#---------------------------------------------------------------- |
31 |
|
|
|
32 |
alien |
134257 |
%prep |
33 |
|
|
|
34 |
|
|
%setup -q |
35 |
|
|
|
36 |
|
|
%build |
37 |
|
|
%configure2_5x |
38 |
|
|
|
39 |
|
|
%make |
40 |
|
|
|
41 |
|
|
%install |
42 |
|
|
|
43 |
alien |
134266 |
rm -rf %{buildroot} |
44 |
|
|
|
45 |
alien |
134257 |
%makeinstall_std |
46 |
|
|
|
47 |
|
|
install -d %{buildroot}%{_var}/run/%{name} |
48 |
|
|
install -d %{buildroot}%{_localstatedir}/lib/%{name} |
49 |
|
|
install -d %{buildroot}%{_initrddir} |
50 |
|
|
install -d %{buildroot}%{_sbindir} |
51 |
|
|
|
52 |
|
|
install -m0755 %{SOURCE1} %{buildroot}%{_initrddir}/%{name} |
53 |
|
|
|
54 |
|
|
# fix config |
55 |
|
|
install -m0644 doc/siproxd.conf.example %{buildroot}%{_sysconfdir}/siproxd.conf |
56 |
|
|
install -m0644 doc/siproxd_passwd.cfg %{buildroot}%{_sysconfdir}/siproxd_passwd.cfg |
57 |
|
|
perl -pi -e "s|^user =.*|user = %{name}|g" %{buildroot}%{_sysconfdir}/siproxd.conf |
58 |
|
|
|
59 |
|
|
%pre |
60 |
|
|
%_pre_useradd %{name} %{_localstatedir}/lib/%{name} /bin/false |
61 |
|
|
|
62 |
|
|
%post |
63 |
|
|
%_post_service %{name} |
64 |
|
|
|
65 |
|
|
%preun |
66 |
|
|
%_preun_service %{name} |
67 |
|
|
|
68 |
|
|
%postun |
69 |
|
|
%_postun_userdel %{name} |
70 |
|
|
|
71 |
|
|
%files |
72 |
|
|
%doc AUTHORS ChangeLog README RELNOTES TODO |
73 |
|
|
%doc doc/FLI4L_HOWTO.txt doc/KNOWN_BUGS doc/RFC3261_compliance.txt doc/sample_cfg_budgetone.txt |
74 |
|
|
%doc doc/sample_cfg_x-lite.txt doc/siproxd_guide.sgml |
75 |
alien |
134795 |
%doc doc/html/*.html |
76 |
alien |
134257 |
%{_initrddir}/%{name} |
77 |
|
|
%attr(0640,root,root) %config(noreplace) %{_sysconfdir}/%{name}.conf |
78 |
|
|
%attr(0640,root,root) %{_sysconfdir}/%{name}.conf.example |
79 |
|
|
%attr(0640,root,root) %config(noreplace) %{_sysconfdir}/%{name}_passwd.cfg |
80 |
|
|
%{_sbindir}/%{name} |
81 |
|
|
%{_libdir}/%{name} |
82 |
|
|
%dir %{_localstatedir}/lib/%{name} |
83 |
|
|
%dir %{_var}/run/%{name} |
84 |
|
|
|
85 |
|
|
|
86 |
|
|
|