View | Details | Raw Unified | Return to bug 200751 | Differences between
and this patch

Collapse All | Expand All

(-)rtpproxy/Makefile (-14 / +11 lines)
Lines 1-19 Link Here
1
# Created by: sobomax
1
# Created by: Euan Thoms <euan@potensol.com>
2
# $FreeBSD: head/net/rtpproxy/Makefile 365277 2014-08-18 11:52:27Z wg $
2
# $FreeBSD$
3
3
4
PORTNAME=	rtpproxy
4
PORTNAME=	rtpproxy
5
PORTVERSION=	1.2.1
5
PORTVERSION=	2.0.0
6
PORTREVISION=	1
7
CATEGORIES=	net
6
CATEGORIES=	net
8
MASTER_SITES=	http://www.rtpproxy.org/chrome/site/
7
MASTER_SITES=	https://github.com/sippy/rtpproxy/archive/
8
DISTNAME=	v${PORTVERSION}
9
9
10
MAINTAINER=	ports@FreeBSD.org
10
MAINTAINER=	euan@potensol.com
11
COMMENT=	High-performance RTP proxy server for the SIP Express Router (SER)
11
COMMENT=	High-performance RTP proxy server for the SIP Routers
12
12
13
LICENSE=	BSD2CLAUSE
13
LICENSE=	BSD2CLAUSE
14
14
15
LIB_DEPENDS=	libgsm.so:${PORTSDIR}/audio/gsm
15
LIB_DEPENDS=	libgsm.so:${PORTSDIR}/audio/gsm
16
16
17
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
18
19
USE_RC_SUBR=	rtpproxy
20
17
GNU_CONFIGURE=	yes
21
GNU_CONFIGURE=	yes
18
CPPFLAGS+=	-I${LOCALBASE}/include
22
CPPFLAGS+=	-I${LOCALBASE}/include
19
LIBS+=		-L${LOCALBASE}/lib
23
LIBS+=		-L${LOCALBASE}/lib
Lines 21-31 Link Here
21
USERS=		${PORTNAME}
25
USERS=		${PORTNAME}
22
GROUPS=		${PORTNAME}
26
GROUPS=		${PORTNAME}
23
27
24
post-build:
25
	${SED} 's|%%PREFIX%%|${PREFIX}|g ; s|%%RC_SUBR%%|/etc/rc.subr|g' \
26
	    ${WRKSRC}/freebsd/rtpproxy.in > ${WRKDIR}/rtpproxy
27
28
post-install:
29
	${INSTALL_SCRIPT} ${WRKDIR}/rtpproxy ${STAGEDIR}${PREFIX}/etc/rc.d/rtpproxy
30
31
.include <bsd.port.mk>
28
.include <bsd.port.mk>
(-)rtpproxy/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (rtpproxy-1.2.1.tar.gz) = aba667136420adfc6dbf6ff94a778e1e2484116ed13ea5196f3293d4d645df85
1
SHA256 (v2.0.0.tar.gz) = b52bf2a302a8f08c269217e5d507f3c3ba38f4b627bb7029c8dac8ec268b23c6
2
SIZE (rtpproxy-1.2.1.tar.gz) = 203334
2
SIZE (v2.0.0.tar.gz) = 1091661
(-)rtpproxy/files/patch-freebsd_rtpproxy.in (-14 lines)
Lines 1-14 Link Here
1
--- freebsd/rtpproxy.in.orig
2
+++ freebsd/rtpproxy.in
3
@@ -25,7 +25,10 @@
4
 
5
 rtpproxy_enable=${rtpproxy_enable:-"NO"}
6
 rtpproxy_laddr=${rtpproxy_laddr:-"0.0.0.0"}
7
+rtpproxy_usr=${rtpproxy_usr:-"rtpproxy"}
8
+rtpproxy_grp=${rtpproxy_grp:-"rtpproxy"}
9
 
10
-command_args="-l ${rtpproxy_laddr} -p /var/run/rtpproxy.pid"
11
+command_args="-l ${rtpproxy_laddr} -p /var/run/rtpproxy.pid \
12
+  -u ${rtpproxy_usr}:${rtpproxy_grp}"
13
 
14
 run_rc_command "${1}"
(-)rtpproxy/files/rtpproxy.in (+35 lines)
Line 0 Link Here
1
#!/bin/sh
2
#
3
# $Id: rtpproxy.in,v 1.3 2008/06/17 03:34:50 sobomax Exp $
4
#
5
6
# Add the following lines to /etc/rc.conf to enable RTPproxy:
7
#
8
# rtpproxy_enable="YES"
9
10
# PROVIDE: rtpproxy
11
# REQUIRE: DAEMON
12
# BEFORE: opensips kamailio
13
14
prefix=/usr/local
15
16
. /etc/rc.subr
17
18
name=rtpproxy
19
rcvar=`set_rcvar`
20
21
command="${prefix}/bin/rtpproxy"
22
pidfile="/var/run/rtpproxy.pid"
23
24
load_rc_config ${name}
25
26
rtpproxy_enable=${rtpproxy_enable:-"NO"}
27
rtpproxy_laddr=${rtpproxy_laddr:-"0.0.0.0"}
28
rtpproxy_ctrl_socket=${rtpproxy_ctrl_socket:-"udp:0.0.0.0:7722"}
29
rtpproxy_paddr=${rtpproxy_paddr:-"0.0.0.0"}
30
rtpproxy_usr=${rtpproxy_usr:-"rtpproxy"}
31
rtpproxy_grp=${rtpproxy_grp:-"rtpproxy"}
32
33
command_args="-u ${rtpproxy_usr}:${rtpproxy_grp} -A ${rtpproxy_paddr} -F -l ${rtpproxy_laddr} -s ${rtpproxy_ctrl_socket} -d INFO -p /var/run/rtpproxy.pid"
34
35
run_rc_command "${1}"
(-)rtpproxy/pkg-descr (-3 / +3 lines)
Lines 1-7 Link Here
1
The Sippy RTPproxy is a high-performance software proxy for RTP streams that
1
The Sippy RTPproxy is a high-performance software proxy for RTP streams that
2
can work together with SIP Express Router (SER), OpenSER or Sippy B2BUA or
2
can work together with Kamailio, OpenSIPS or Sippy B2BUA or any other SIP 
3
any other SIP proxy or SIP B2BUA capable of rewriting SDP bodies in SIP
3
proxy or SIP B2BUA capable of rewriting SDP bodies in SIP messages that it 
4
messages that it relays.
4
relays.
5
5
6
The main purpose of RTPproxy is to make the communication between SIP user
6
The main purpose of RTPproxy is to make the communication between SIP user
7
agents behind NAT(s) (Network Address Translator) possible. Several cases
7
agents behind NAT(s) (Network Address Translator) possible. Several cases
(-)rtpproxy/pkg-plist (-1 / +1 lines)
Lines 1-4 Link Here
1
etc/rc.d/rtpproxy
2
bin/makeann
1
bin/makeann
3
bin/rtpproxy
2
bin/rtpproxy
3
bin/rtpproxy_debug
4
man/man8/rtpproxy.8.gz
4
man/man8/rtpproxy.8.gz

Return to bug 200751