5 %define prefix %{_prefix}
6 %define sysconfdir /etc
7 %define piddir /var/run/siproxd/
8 %define regdir /var/lib/siproxd/
9 %define siproxduser nobody
12 Summary: A SIP masquerading proxy with RTP support
15 License: GPL, (c) 2002-2005 Thomas Ries
16 Group: Applications/Communications
17 Source0: %{name}-%{ver}.tar.gz
19 URL: http://siproxd.sourceforge.net/
20 BuildRoot: %{_tmppath}/%{name}-%{ver}-root
23 Requires: libosip2 >= 2.0.2
24 BuildRequires: libosip2 >= 2.0.2
28 Packager: Thomas Ries <tries@gmx.net>
31 Siproxd is an proxy/masquerading daemon for the SIP protocol.
32 It handles registrations of SIP clients on a private IP network
33 and performs rewriting of the SIP message bodies to make SIP
34 connections possible via an masquerading firewall.
35 It allows SIP clients (like kphone, linphone) to work behind
36 an IP masquerading firewall or router.
43 CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix} \
44 --sysconfdir=%{sysconfdir}
48 make prefix=$RPM_BUILD_ROOT%{prefix} \
49 sysconfdir=$RPM_BUILD_ROOT%{sysconfdir} \
51 mv $RPM_BUILD_ROOT%{sysconfdir}/siproxd.conf.example \
52 $RPM_BUILD_ROOT%{sysconfdir}/siproxd.conf
54 install -d $RPM_BUILD_ROOT%{_initrddir}/
55 install contrib/siproxd.init $RPM_BUILD_ROOT%{_initrddir}/siproxd
57 install -d $RPM_BUILD_ROOT%{piddir}
58 install -d $RPM_BUILD_ROOT%{regdir}
62 rm -rf $RPM_BUILD_ROOT
65 %defattr(-, root, root)
66 %doc COPYING README AUTHORS INSTALL NEWS ChangeLog doc/FAQ doc/FLI4L_HOWTO.txt
67 %doc doc/html/* doc/pdf/*
68 %attr(0755,root,root) %{_sbindir}/siproxd
69 %config %{sysconfdir}/siproxd.conf
70 %config %{sysconfdir}/siproxd_passwd.cfg
71 %attr(0755,root,root) %{_initrddir}/siproxd
73 %attr(0700,%{siproxduser},root) %{piddir}
74 %attr(0700,%{siproxduser},root) %{regdir}
78 echo "Edit the config file %{sysconfigdir}/siproxd.conf!"
79 /sbin/chkconfig --add %{name}
83 /sbin/chkconfig --del %{name}
87 * Fri Oct 09 2004 Thomas Ries <tries@gmx.net>
88 - startup script in /etc/rc.d/init.d/siproxd
89 - create directories for PID and registration files
91 * Fri Oct 31 2003 Thomas Ries <tries@gmx.net>
92 - siproxd is now installed to sbin directory
94 * Fri Oct 24 2003 Thomas Ries <tries@gmx.net>
95 - added config files and some more doc files
96 - rename sample config file and remind user to edit it.
99 * Sat Aug 30 2003 Thomas Ries <tries@gmx.net>
100 - always use /etc as sysconfdir
102 * Sat Sep 21 2002 Thomas Ries <tries@gmx.net>