mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
net/coturn: Add the rc script
Submitted by: Zeus Panchenko <zeus@ibs.dn.ua>
This commit is contained in:
parent
bac360a340
commit
f6516d0cc5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=544179
@ -2,6 +2,7 @@
|
||||
|
||||
PORTNAME= coturn
|
||||
DISTVERSION= 4.5.1.3
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= net
|
||||
|
||||
MAINTAINER= yuri@FreeBSD.org
|
||||
@ -20,6 +21,8 @@ SHEBANG_FILES= examples/scripts/oauth.sh examples/scripts/restapi/shared_secret_
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= --disable-static --enable-shared --turndbdir=/var/db/${PORTNAME}
|
||||
|
||||
SUB_FILES= turnserver-service
|
||||
|
||||
DOCSDIR= ${PREFIX}/share/doc/turnserver
|
||||
EXAMPLESDIR= ${PREFIX}/share/examples/turnserver
|
||||
|
||||
@ -28,4 +31,8 @@ OPTIONS_DEFINE= DOCS EXAMPLES
|
||||
PORTDOCS= *
|
||||
PORTEXAMPLES= *
|
||||
|
||||
post-install:
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/turnserver-service ${STAGEDIR}${PREFIX}/etc/rc.d/turnserver
|
||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
29
net/coturn/files/turnserver-service.in
Normal file
29
net/coturn/files/turnserver-service.in
Normal file
@ -0,0 +1,29 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
#
|
||||
# PROVIDE: turnserver
|
||||
# REQUIRE: DAEMON
|
||||
# BEFORE: mail
|
||||
# KEYWORD: shutdown
|
||||
#
|
||||
|
||||
. /etc/rc.subr
|
||||
|
||||
name="turnserver"
|
||||
rcvar="${name}_enable"
|
||||
command="%%PREFIX%%/bin/${name}"
|
||||
pidfile="/var/run/prosody/${name}.pid"
|
||||
required_files="%%PREFIX%%/etc/${name}.conf"
|
||||
|
||||
load_rc_config ${name}
|
||||
|
||||
: ${turnserver_enable="NO"}
|
||||
: ${turnserver_flags="-o"}
|
||||
: ${turnserver_configfile:=%%PREFIX%%/etc/$name.conf}
|
||||
|
||||
command_args="-c ${turnserver_configfile} ${turnserver_flags}"
|
||||
|
||||
run_rc_command "$1"
|
@ -5,7 +5,8 @@ bin/turnutils_oauth
|
||||
bin/turnutils_peer
|
||||
bin/turnutils_stunclient
|
||||
bin/turnutils_uclient
|
||||
etc/turnserver.conf.default
|
||||
etc/rc.d/turnserver
|
||||
@sample etc/turnserver.conf.default etc/turnserver.conf
|
||||
include/turn/client/TurnMsgLib.h
|
||||
include/turn/client/ns_turn_ioaddr.h
|
||||
include/turn/client/ns_turn_msg.h
|
||||
|
Loading…
Reference in New Issue
Block a user