/[packages]/updates/1/siproxd/current/SPECS/siproxd.spec
ViewVC logotype

Contents of /updates/1/siproxd/current/SPECS/siproxd.spec

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.30