diff options
author | Babak Farrokhi <farrokhi@FreeBSD.org> | 2015-11-03 08:14:02 +0000 |
---|---|---|
committer | Babak Farrokhi <farrokhi@FreeBSD.org> | 2015-11-03 08:14:02 +0000 |
commit | 43f9130f9bbcbb9bdc96a009a003462d433f825e (patch) | |
tree | ae9b9a7b6388f01af3ac64598bf57e7a45c45826 /net/rtpproxy | |
parent | ab93bf2689ca05f90d06a4473847d13a326898b1 (diff) | |
download | ports-43f9130f9bbcbb9bdc96a009a003462d433f825e.tar.gz ports-43f9130f9bbcbb9bdc96a009a003462d433f825e.zip |
Notes
Diffstat (limited to 'net/rtpproxy')
-rw-r--r-- | net/rtpproxy/Makefile | 1 | ||||
-rw-r--r-- | net/rtpproxy/files/patch-scripts_rtpproxy.in.freebsd | 42 |
2 files changed, 39 insertions, 4 deletions
diff --git a/net/rtpproxy/Makefile b/net/rtpproxy/Makefile index 7061712709d1..20db269aa539 100644 --- a/net/rtpproxy/Makefile +++ b/net/rtpproxy/Makefile @@ -4,6 +4,7 @@ PORTNAME= rtpproxy PORTVERSION= 2.0.0 DISTVERSIONPREFIX= v +PORTREVISION= 1 CATEGORIES= net MAINTAINER= farrokhi@FreeBSD.org diff --git a/net/rtpproxy/files/patch-scripts_rtpproxy.in.freebsd b/net/rtpproxy/files/patch-scripts_rtpproxy.in.freebsd index bc916217b721..b5ba68cef5d5 100644 --- a/net/rtpproxy/files/patch-scripts_rtpproxy.in.freebsd +++ b/net/rtpproxy/files/patch-scripts_rtpproxy.in.freebsd @@ -1,14 +1,48 @@ --- scripts/rtpproxy.in.freebsd.orig 2015-03-09 17:40:27 UTC +++ scripts/rtpproxy.in.freebsd -@@ -22,7 +22,10 @@ load_rc_config ${name} +@@ -1,28 +1,36 @@ + #!/bin/sh +- ++# $FreeBSD$ ++# + # Add the following lines to /etc/rc.conf to enable RTPproxy: + # + # rtpproxy_enable="YES" + # PROVIDE: rtpproxy + # REQUIRE: DAEMON +-# BEFORE: ser openser ++# BEFORE: kamailio opensips + +-prefix=%%PREFIX%% + + . %%RC_SUBR%% + + name=rtpproxy +-rcvar=`set_rcvar` +- +-command="${prefix}/bin/rtpproxy" +-pidfile="/var/run/rtpproxy.pid" ++desc="rtpproxy daemon startup script" ++rcvar=rtpproxy_enable + + load_rc_config ${name} + ++prefix=%%PREFIX%% ++command=${prefix}/bin/rtpproxy ++pidfile=/var/run/rtpproxy.pid ++ ++ rtpproxy_enable=${rtpproxy_enable:-"NO"} rtpproxy_laddr=${rtpproxy_laddr:-"0.0.0.0"} ++rtpproxy_ctrl_socket=${rtpproxy_ctrl_socket:-"unix:/var/run/rtpproxy.sock"} ++rtpproxy_paddr=${rtpproxy_paddr:-"0.0.0.0"} +rtpproxy_usr=${rtpproxy_usr:-"rtpproxy"} +rtpproxy_grp=${rtpproxy_grp:-"rtpproxy"} -command_args="-l ${rtpproxy_laddr} -p /var/run/rtpproxy.pid" -+command_args="-l ${rtpproxy_laddr} -p /var/run/rtpproxy.pid \ -+ -u ${rtpproxy_usr}:${rtpproxy_grp}" ++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" - run_rc_command "${1}" +-run_rc_command "${1}" ++run_rc_command $1 |