rpms/rtpproxy/F-12 rtpproxy.init, NONE, 1.1 .cvsignore, 1.10, 1.11 import.log, 1.5, 1.6 rtpproxy.spec, 1.12, 1.13 rtpproxy.sysconfig, 1.1, 1.2 sources, 1.10, 1.11 rtpproxy--init.diff, 1.1, NONE

Peter Lemenkov peter at fedoraproject.org
Sun Nov 1 13:48:22 UTC 2009


Author: peter

Update of /cvs/pkgs/rpms/rtpproxy/F-12
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv1776/F-12

Modified Files:
	.cvsignore import.log rtpproxy.spec rtpproxy.sysconfig sources 
Added Files:
	rtpproxy.init 
Removed Files:
	rtpproxy--init.diff 
Log Message:
Ver. 1.2.1


--- NEW FILE rtpproxy.init ---
#!/bin/bash
#
# Startup script for rtpproxy
#
# chkconfig: - 85 15
# description: A symmetric RTP proxy
#
# processname: rtpproxy

### BEGIN INIT INFO
# Provides: rtpproxy
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $network $syslog
# Default-Start:
# Default-Stop: 0 1 6
# Short-Description: A symmetric RTP proxy
# Description: A symmetric RTP proxy
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

prog=rtpproxy
rtpproxy=/usr/bin/$prog

lockfile=/var/lock/subsys/$prog
pidfile=/var/run/$prog.pid

OPTIONS=

# User-defined options and/or overrides of the variables,
# listed above, should go there:
[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0

start() {
	echo -n $"Starting $prog: "

	# check whether rtpproxy was already started
	if pidofproc -p $pidfile > /dev/null 2>&1 ; then
		echo -n "already running" && warning && echo
		return 0
	fi

	daemon $rtpproxy -p $pidfile -u rtpproxy $OPTIONS
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "

	# check whether rtpproxy was already started
	if ! pidofproc -p $pidfile > /dev/null 2>&1 ; then
		echo -n "not running" && warning && echo
		return 0
	fi

	killproc -p $pidfile $prog
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f $lockfile $pidfile
	return $RETVAL
}

# See how we were called.
case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	status)
		status -p $pidfile $prog
		RETVAL=$?
		;;
	restart|force-reload)
		stop
		start
		;;
	reload)
		echo -n $"Reloading $prog: not supported" && failure && echo
		RETVAL=3
		;;
	condrestart|try-restart)
		if [ -f $pidfile ] ; then
			stop
			start
		fi
		;;
	*)
		echo $"Usage: $prog {start|stop|restart|condrestart|status|help}"
		RETVAL=2
esac

exit $RETVAL


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/rtpproxy/F-12/.cvsignore,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -p -r1.10 -r1.11
--- .cvsignore	27 Mar 2009 14:39:52 -0000	1.10
+++ .cvsignore	1 Nov 2009 13:48:20 -0000	1.11
@@ -1 +1 @@
-rtpproxy-1.2.0.tar.gz
+rtpproxy-1.2.1.tar.gz


Index: import.log
===================================================================
RCS file: /cvs/pkgs/rpms/rtpproxy/F-12/import.log,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -p -r1.5 -r1.6
--- import.log	27 Mar 2009 14:39:52 -0000	1.5
+++ import.log	1 Nov 2009 13:48:20 -0000	1.6
@@ -3,3 +3,4 @@ rtpproxy-1_2-0_1_alpha_200807211_fc9:HEA
 rtpproxy-1_2-0_2_alpha_200807211_fc9:HEAD:rtpproxy-1.2-0.2.alpha.200807211.fc9.src.rpm:1223295887
 rtpproxy-1_2-0_3_beta_200901120_fc10:HEAD:rtpproxy-1.2-0.3.beta.200901120.fc10.src.rpm:1233053623
 rtpproxy-1_2_0-1_fc10:HEAD:rtpproxy-1.2.0-1.fc10.src.rpm:1238164727
+rtpproxy-1_2_1-1_fc11:F-12:rtpproxy-1.2.1-1.fc11.src.rpm:1257083239


Index: rtpproxy.spec
===================================================================
RCS file: /cvs/pkgs/rpms/rtpproxy/F-12/rtpproxy.spec,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -p -r1.12 -r1.13
--- rtpproxy.spec	27 Jul 2009 03:19:06 -0000	1.12
+++ rtpproxy.spec	1 Nov 2009 13:48:21 -0000	1.13
@@ -1,14 +1,13 @@
 Name:           rtpproxy
-Version:        1.2.0
-Release:        2%{?dist}
+Version:        1.2.1
+Release:        1%{?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
 Source1:        rtpproxy.sysconfig
-# Fedora specific
-Patch0:         rtpproxy--init.diff
+Source2:	rtpproxy.init
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires:  gsm-devel
 Requires(pre):  /usr/sbin/useradd
@@ -25,7 +24,6 @@ rewriting SDP bodies in SIP messages tha
 
 %prep
 %setup -q
-%patch0 -p0 -b .init_fix
 
 
 %build
@@ -36,8 +34,8 @@ 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 -p -m 0755 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/init.d/%{name}
 install -d $RPM_BUILD_ROOT%{_localstatedir}/lib/%{name}
 
 
@@ -72,6 +70,10 @@ fi
 
 
 %changelog
+* Sun Nov  1 2009 Peter Lemenkov <lemenkov at gmail.com> - 1.2.1-1
+- Ver. 1.2.1
+- Brand new init-script
+
 * Sun Jul 26 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.2.0-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
 


Index: rtpproxy.sysconfig
===================================================================
RCS file: /cvs/pkgs/rpms/rtpproxy/F-12/rtpproxy.sysconfig,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- rtpproxy.sysconfig	27 Jan 2009 10:55:02 -0000	1.1
+++ rtpproxy.sysconfig	1 Nov 2009 13:48:21 -0000	1.2
@@ -1,2 +1,2 @@
-OPTIONS="-u rtpproxy"
+OPTIONS=""
 


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/rtpproxy/F-12/sources,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -p -r1.10 -r1.11
--- sources	27 Mar 2009 14:39:53 -0000	1.10
+++ sources	1 Nov 2009 13:48:21 -0000	1.11
@@ -1 +1 @@
-eb4e650ec00618a77a35f0abb91f988a  rtpproxy-1.2.0.tar.gz
+b0b5d6cdce3f17cdbbac473c11a2d0e5  rtpproxy-1.2.1.tar.gz


--- rtpproxy--init.diff DELETED ---




More information about the scm-commits mailing list