rpms/rtpproxy/F-9 rtpproxy--init.diff, NONE, 1.1 rtpproxy.sysconfig, NONE, 1.1 .cvsignore, 1.7, 1.8 import.log, 1.1, 1.2 rtpproxy.spec, 1.6, 1.7 sources, 1.7, 1.8
Peter Lemenkov
peter at fedoraproject.org
Tue Jan 27 11:03:22 UTC 2009
- Previous message (by thread): rpms/rtpproxy/F-10 rtpproxy--init.diff, NONE, 1.1 rtpproxy.sysconfig, NONE, 1.1 .cvsignore, 1.8, 1.9 import.log, 1.3, 1.4 rtpproxy.spec, 1.8, 1.9 sources, 1.8, 1.9 rtpproxy--init-disabled_by_default.diff, 1.1, NONE
- Next message (by thread): rpms/rtpproxy/EL-5 rtpproxy--init.diff, NONE, 1.1 rtpproxy.sysconfig, NONE, 1.1 .cvsignore, 1.7, 1.8 import.log, 1.1, 1.2 rtpproxy.spec, 1.6, 1.7 sources, 1.7, 1.8
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: peter
Update of /cvs/pkgs/rpms/rtpproxy/F-9
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv12881/F-9
Modified Files:
.cvsignore import.log rtpproxy.spec sources
Added Files:
rtpproxy--init.diff rtpproxy.sysconfig
Log Message:
Snapshot 1.2.beta.200901120
rtpproxy--init.diff:
--- NEW FILE rtpproxy--init.diff ---
--- rpm/rtpproxy.init~ 2007-11-29 03:46:26.000000000 +0300
+++ rpm/rtpproxy.init 2009-01-27 13:40:48.000000000 +0300
@@ -2,7 +2,7 @@
#
# Startup script for rtpproxy
#
-# chkconfig: 345 85 15
+# chkconfig: - 85 15
# description: A symmetric RTP proxy
#
# processname: rtpproxy
@@ -14,7 +14,8 @@
rtpproxy=/usr/bin/rtpproxy
prog=rtpproxy
RETVAL=0
-OPTIONS=
+
+[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog
start() {
echo -n $"Starting $prog: "
--- NEW FILE rtpproxy.sysconfig ---
OPTIONS="-u rtpproxy"
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/rtpproxy/F-9/.cvsignore,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- .cvsignore 18 Jun 2008 14:24:07 -0000 1.7
+++ .cvsignore 27 Jan 2009 11:02:51 -0000 1.8
@@ -1 +1 @@
-rtpproxy-1.1.tar.gz
+rtpproxy-1.2.beta.200901120.tar.gz
Index: import.log
===================================================================
RCS file: /cvs/pkgs/rpms/rtpproxy/F-9/import.log,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- import.log 18 Jun 2008 14:24:07 -0000 1.1
+++ import.log 27 Jan 2009 11:02:52 -0000 1.2
@@ -1 +1,2 @@
rtpproxy-1_1-1_fc9:F-9:rtpproxy-1.1-1.fc9.src.rpm:1213798901
+rtpproxy-1_2-0_3_beta_200901120_fc10:F-9:rtpproxy-1.2-0.3.beta.200901120.fc10.src.rpm:1233054060
Index: rtpproxy.spec
===================================================================
RCS file: /cvs/pkgs/rpms/rtpproxy/F-9/rtpproxy.spec,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- rtpproxy.spec 18 Jun 2008 14:24:07 -0000 1.6
+++ rtpproxy.spec 27 Jan 2009 11:02:52 -0000 1.7
@@ -1,43 +1,88 @@
Name: rtpproxy
-Version: 1.1
-Release: 1%{?dist}
+Version: 1.2
+Release: 0.3.beta.200901120%{?dist}
Summary: A symmetric RTP proxy
-
Group: Applications/Internet
License: BSD
URL: http://www.rtpproxy.org
-Source0: http://b2bua.org/chrome/site/%{name}-%{version}.tar.gz
+Source0: http://b2bua.org/chrome/site/%{name}-%{version}.beta.200901120.tar.gz
+Source1: rtpproxy.sysconfig
+# Fedora specific
+Patch0: rtpproxy--init.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRequires: gsm-devel
+Requires(pre): /usr/sbin/useradd
+Requires(post): /sbin/chkconfig
+Requires(preun):/sbin/chkconfig
+Requires(preun):/sbin/service
+
%description
This is symmetric RTP proxy designed to be used in conjunction with
the SIP Express Router (SER) or any other SIP proxy capable of
rewriting SDP bodies in SIP messages that it processes.
+
%prep
-%setup -q
+%setup -q -n %{name}-%{version}.beta.200901120
+%patch0 -p0 -b .init_fix
+
%build
%configure
make %{?_smp_mflags}
+
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
+install -D -p -m 0755 rpm/rtpproxy.init $RPM_BUILD_ROOT%{_sysconfdir}/init.d/%{name}
+install -D -p -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/%{name}
+install -d $RPM_BUILD_ROOT%{_localstatedir}/lib/%{name}
%clean
rm -rf %{buildroot}
+%pre
+/usr/sbin/useradd -r -c "RTPProxy service" -d %{_localstatedir}/lib/%{name} -s /sbin/nologin %{name} 2>/dev/null || :
+
+%post
+if [ $1 -eq 1 ]; then
+ /sbin/chkconfig --add %{name} || :
+fi
+
+
+%preun
+if [ $1 -eq 0 ]; then
+ /sbin/service %{name} stop >/dev/null 2>&1 || :
+ /sbin/chkconfig --del %{name} || :
+fi
+
+
%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING README README.remote
+%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
+%{_sysconfdir}/init.d/%{name}
%{_bindir}/rtpproxy
%{_bindir}/makeann
%{_mandir}/man8/rtpproxy.8*
+%dir %{_localstatedir}/lib/%{name}
%changelog
+* Tue Jan 27 2009 Peter Lemenkov <lemenkov at gmail.com> - 1.2-0.3.beta.200901120
+- Snapshot 1.2.beta.200901120
+- Added sysconfig file
+
+* Mon Oct 6 2008 Peter Lemenkov <lemenkov at gmail.com> - 1.2-0.2.alpha.200807211
+- Added missing BuildRequires
+- Added init-script
+
+* Wed Aug 13 2008 Peter Lemenkov <lemenkov at gmail.com> - 1.2-0.1.alpha.200807211
+- Snapshot 1.2.alpha.200807211
+
* Wed Jun 18 2008 Peter Lemenkov <lemenkov at gmail.com> - 1.1-1
- Stable ver. 1.1
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/rtpproxy/F-9/sources,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- sources 18 Jun 2008 14:24:07 -0000 1.7
+++ sources 27 Jan 2009 11:02:52 -0000 1.8
@@ -1 +1 @@
-76140b62c41932681a30714adcfa94a9 rtpproxy-1.1.tar.gz
+555f3fdb400e03efd7f2166ea45677c9 rtpproxy-1.2.beta.200901120.tar.gz
- Previous message (by thread): rpms/rtpproxy/F-10 rtpproxy--init.diff, NONE, 1.1 rtpproxy.sysconfig, NONE, 1.1 .cvsignore, 1.8, 1.9 import.log, 1.3, 1.4 rtpproxy.spec, 1.8, 1.9 sources, 1.8, 1.9 rtpproxy--init-disabled_by_default.diff, 1.1, NONE
- Next message (by thread): rpms/rtpproxy/EL-5 rtpproxy--init.diff, NONE, 1.1 rtpproxy.sysconfig, NONE, 1.1 .cvsignore, 1.7, 1.8 import.log, 1.1, 1.2 rtpproxy.spec, 1.6, 1.7 sources, 1.7, 1.8
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list