105 lines
2.6 KiB
RPMSpec
Executable File
105 lines
2.6 KiB
RPMSpec
Executable File
%define name siproxd
|
|
%define ver 0.5.12
|
|
%define release 1
|
|
%define serial 1
|
|
%define prefix %{_prefix}
|
|
%define sysconfdir /etc
|
|
%define piddir /var/run/siproxd/
|
|
%define regdir /var/lib/siproxd/
|
|
%define siproxduser nobody
|
|
|
|
Name: %{name}
|
|
Summary: A SIP masquerading proxy with RTP support
|
|
Version: %{ver}
|
|
Release: %{release}
|
|
License: GPL, (c) 2002-2005 Thomas Ries
|
|
Group: Applications/Communications
|
|
Source0: %{name}-%{ver}.tar.gz
|
|
|
|
URL: http://siproxd.sourceforge.net/
|
|
BuildRoot: %{_tmppath}/%{name}-%{ver}-root
|
|
Docdir: %{_docdir}
|
|
|
|
Requires: libosip2 >= 2.0.2
|
|
BuildRequires: libosip2 >= 2.0.2
|
|
|
|
Vendor: Thomas Ries
|
|
|
|
Packager: Thomas Ries <tries@gmx.net>
|
|
|
|
%description
|
|
Siproxd is an proxy/masquerading daemon for the SIP protocol.
|
|
It handles registrations of SIP clients on a private IP network
|
|
and performs rewriting of the SIP message bodies to make SIP
|
|
connections possible via an masquerading firewall.
|
|
It allows SIP clients (like kphone, linphone) to work behind
|
|
an IP masquerading firewall or router.
|
|
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix} \
|
|
--sysconfdir=%{sysconfdir}
|
|
make
|
|
|
|
%install
|
|
make prefix=$RPM_BUILD_ROOT%{prefix} \
|
|
sysconfdir=$RPM_BUILD_ROOT%{sysconfdir} \
|
|
install
|
|
mv $RPM_BUILD_ROOT%{sysconfdir}/siproxd.conf.example \
|
|
$RPM_BUILD_ROOT%{sysconfdir}/siproxd.conf
|
|
|
|
install -d $RPM_BUILD_ROOT%{_initrddir}/
|
|
install contrib/siproxd.init $RPM_BUILD_ROOT%{_initrddir}/siproxd
|
|
|
|
install -d $RPM_BUILD_ROOT%{piddir}
|
|
install -d $RPM_BUILD_ROOT%{regdir}
|
|
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-, root, root)
|
|
%doc COPYING README AUTHORS INSTALL NEWS ChangeLog doc/FAQ doc/FLI4L_HOWTO.txt
|
|
%doc doc/html/* doc/pdf/*
|
|
%attr(0755,root,root) %{_sbindir}/siproxd
|
|
%config %{sysconfdir}/siproxd.conf
|
|
%config %{sysconfdir}/siproxd_passwd.cfg
|
|
%attr(0755,root,root) %{_initrddir}/siproxd
|
|
|
|
%attr(0700,%{siproxduser},root) %{piddir}
|
|
%attr(0700,%{siproxduser},root) %{regdir}
|
|
|
|
|
|
%post
|
|
echo "Edit the config file %{sysconfigdir}/siproxd.conf!"
|
|
/sbin/chkconfig --add %{name}
|
|
|
|
%preun
|
|
if [ $1 = 0 ]; then
|
|
/sbin/chkconfig --del %{name}
|
|
fi
|
|
|
|
%changelog
|
|
* Fri Oct 09 2004 Thomas Ries <tries@gmx.net>
|
|
- startup script in /etc/rc.d/init.d/siproxd
|
|
- create directories for PID and registration files
|
|
|
|
* Fri Oct 31 2003 Thomas Ries <tries@gmx.net>
|
|
- siproxd is now installed to sbin directory
|
|
|
|
* Fri Oct 24 2003 Thomas Ries <tries@gmx.net>
|
|
- added config files and some more doc files
|
|
- rename sample config file and remind user to edit it.
|
|
- minor cleanup
|
|
|
|
* Sat Aug 30 2003 Thomas Ries <tries@gmx.net>
|
|
- always use /etc as sysconfdir
|
|
|
|
* Sat Sep 21 2002 Thomas Ries <tries@gmx.net>
|
|
- first RPM support
|
|
|