/[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 143600 - (show annotations) (download)
Wed Sep 14 18:50:21 2011 UTC (12 years, 7 months ago) by alien
File size: 2435 byte(s)
Fix ownership of directories
1 %define subrel 3
2
3 Summary: A SIP masquerading proxy with RTP support
4 Name: siproxd
5 Version: 0.8.1
6 Release: %mkrel 1
7 License: GPLv2+
8 Group: System/Servers
9 URL: http://siproxd.sourceforge.net/
10 Source0: http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
11 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 #----------------------------------------------------------------
31
32 %prep
33
34 %setup -q
35
36 %build
37 %configure2_5x
38
39 %make
40
41 %install
42
43 rm -rf %{buildroot}
44
45 %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 perl -pi -e "s|^plugindir=.*|plugindir=%{_libdir}/%{name}/|g" %{buildroot}%{_sysconfdir}/siproxd.conf
59
60 %pre
61 %_pre_useradd %{name} %{_localstatedir}/lib/%{name} /bin/false
62
63 %post
64 %_post_service %{name}
65
66 %preun
67 %_preun_service %{name}
68
69 %postun
70 %_postun_userdel %{name}
71
72 %files
73 %doc AUTHORS ChangeLog README RELNOTES TODO
74 %doc doc/FLI4L_HOWTO.txt doc/KNOWN_BUGS doc/RFC3261_compliance.txt doc/sample_cfg_budgetone.txt
75 %doc doc/sample_cfg_x-lite.txt doc/siproxd_guide.sgml
76 %doc doc/html/*.html
77 %{_initrddir}/%{name}
78 %attr(0640,root,root) %config(noreplace) %{_sysconfdir}/%{name}.conf
79 %attr(0640,root,root) %{_sysconfdir}/%{name}.conf.example
80 %attr(0640,root,root) %config(noreplace) %{_sysconfdir}/%{name}_passwd.cfg
81 %{_sbindir}/%{name}
82 %{_libdir}/%{name}
83 %attr(0750,%{name},%{name}) %dir %{_localstatedir}/lib/%{name}
84 %attr(0750,%{name},%{name}) %dir %{_var}/run/%{name}
85
86
87

  ViewVC Help
Powered by ViewVC 1.1.30