rpms/rtpproxy/devel rtpproxy--init-disabled_by_default.diff, NONE, 1.1 import.log, 1.2, 1.3 rtpproxy.spec, 1.7, 1.8

Peter Lemenkov peter at fedoraproject.org
Mon Oct 6 12:27:32 UTC 2008


Author: peter

Update of /cvs/extras/rpms/rtpproxy/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv5060/devel

Modified Files:
	import.log rtpproxy.spec 
Added Files:
	rtpproxy--init-disabled_by_default.diff 
Log Message:
Added init-script

rtpproxy--init-disabled_by_default.diff:

--- NEW FILE rtpproxy--init-disabled_by_default.diff ---
--- rpm/rtpproxy.init	2007-11-29 03:46:26.000000000 +0300
+++ rpm/rtpproxy.init	2008-10-06 16:13:19.000000000 +0400
@@ -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,7 @@
 rtpproxy=/usr/bin/rtpproxy
 prog=rtpproxy
 RETVAL=0
-OPTIONS=
+OPTIONS="-u rtpproxy"
 
 start() {
         echo -n $"Starting $prog: "


Index: import.log
===================================================================
RCS file: /cvs/extras/rpms/rtpproxy/devel/import.log,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- import.log	12 Aug 2008 20:19:52 -0000	1.2
+++ import.log	6 Oct 2008 12:27:02 -0000	1.3
@@ -1,2 +1,3 @@
 rtpproxy-1_1-1_fc9:HEAD:rtpproxy-1.1-1.fc9.src.rpm:1213798723
 rtpproxy-1_2-0_1_alpha_200807211_fc9:HEAD:rtpproxy-1.2-0.1.alpha.200807211.fc9.src.rpm:1218572366
+rtpproxy-1_2-0_2_alpha_200807211_fc9:HEAD:rtpproxy-1.2-0.2.alpha.200807211.fc9.src.rpm:1223295887


Index: rtpproxy.spec
===================================================================
RCS file: /cvs/extras/rpms/rtpproxy/devel/rtpproxy.spec,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- rtpproxy.spec	12 Aug 2008 20:19:52 -0000	1.7
+++ rtpproxy.spec	6 Oct 2008 12:27:02 -0000	1.8
@@ -1,43 +1,77 @@
 Name:           rtpproxy
 Version:        1.2
-Release:        0.1.alpha.200807211%{?dist}
+Release:        0.2.alpha.200807211%{?dist}
 Summary:        A symmetric RTP proxy
-
 Group:          Applications/Internet
 License:        BSD
 URL:            http://www.rtpproxy.org
 Source0:        http://b2bua.org/chrome/site/%{name}-%{version}.alpha.200807211.tar.gz
+Patch0:		rtpproxy--init-disabled_by_default.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 -n %{name}-%{version}.alpha.200807211
+%patch0 -p0 -b .init_disable
+
 
 %build
 %configure
 make %{?_smp_mflags}
 
+
 %install
 rm -rf %{buildroot}
 make install DESTDIR=%{buildroot}
+install -D -p -m755 rpm/rtpproxy.init $RPM_BUILD_ROOT/%{_sysconfdir}/init.d/%{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}/init.d/%{name}
 %{_bindir}/rtpproxy
 %{_bindir}/makeann
 %{_mandir}/man8/rtpproxy.8*
+%dir %{_localstatedir}/lib/%{name}
 
 
 %changelog
+* 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
 




More information about the scm-commits mailing list