View | Details | Raw Unified | Return to bug 253978
Collapse All | Expand All

(-)Makefile (-5 / +3 lines)
Lines 2-8 Link Here
2
2
3
PORTNAME=	coturn
3
PORTNAME=	coturn
4
DISTVERSION=	4.5.2
4
DISTVERSION=	4.5.2
5
PORTREVISION=	1
5
PORTREVISION=	2
6
CATEGORIES=	net
6
CATEGORIES=	net
7
7
8
MAINTAINER=	yuri@FreeBSD.org
8
MAINTAINER=	yuri@FreeBSD.org
Lines 15-28 Link Here
15
15
16
USES=		gettext-runtime gmake mysql pkgconfig shebangfix sqlite ssl
16
USES=		gettext-runtime gmake mysql pkgconfig shebangfix sqlite ssl
17
USE_GITHUB=	yes
17
USE_GITHUB=	yes
18
19
SHEBANG_FILES=	examples/scripts/oauth.sh examples/scripts/restapi/shared_secret_maintainer.pl
18
SHEBANG_FILES=	examples/scripts/oauth.sh examples/scripts/restapi/shared_secret_maintainer.pl
20
19
20
USE_RC_SUBR=	turnserver
21
21
GNU_CONFIGURE=	yes
22
GNU_CONFIGURE=	yes
22
CONFIGURE_ARGS=	--disable-static --enable-shared --turndbdir=/var/db/${PORTNAME}
23
CONFIGURE_ARGS=	--disable-static --enable-shared --turndbdir=/var/db/${PORTNAME}
23
24
24
SUB_FILES=	turnserver-service
25
26
DOCSDIR=	${PREFIX}/share/doc/turnserver
25
DOCSDIR=	${PREFIX}/share/doc/turnserver
27
EXAMPLESDIR=	${PREFIX}/share/examples/turnserver
26
EXAMPLESDIR=	${PREFIX}/share/examples/turnserver
28
27
Lines 32-38 Link Here
32
PORTEXAMPLES=	*
31
PORTEXAMPLES=	*
33
32
34
post-install:
33
post-install:
35
	${INSTALL_SCRIPT} ${WRKDIR}/turnserver-service ${STAGEDIR}${PREFIX}/etc/rc.d/turnserver
36
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*
34
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*
37
35
38
.include <bsd.port.mk>
36
.include <bsd.port.mk>
(-)files/turnserver-service.in (-29 lines)
Lines 1-29 Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD$
4
#
5
6
#
7
# PROVIDE: turnserver
8
# REQUIRE: DAEMON
9
# BEFORE: mail
10
# KEYWORD: shutdown
11
#
12
13
. /etc/rc.subr
14
15
name="turnserver"
16
rcvar="${name}_enable"
17
command="%%PREFIX%%/bin/${name}"
18
pidfile="/var/run/${name}.pid"
19
required_files="%%PREFIX%%/etc/${name}.conf"
20
21
load_rc_config ${name}
22
23
: ${turnserver_enable="NO"}
24
: ${turnserver_flags="-o"}
25
: ${turnserver_configfile:=%%PREFIX%%/etc/$name.conf}
26
27
command_args="-c ${turnserver_configfile} ${turnserver_flags}"
28
29
run_rc_command "$1"
(-)files/turnserver.in (-11 / +19 lines)
Lines 2-29 Link Here
2
#
2
#
3
# $FreeBSD$
3
# $FreeBSD$
4
#
4
#
5
6
#
7
# PROVIDE: turnserver
5
# PROVIDE: turnserver
8
# REQUIRE: DAEMON
6
# REQUIRE: DAEMON
9
# BEFORE: mail
7
# BEFORE: mail
10
# KEYWORD: shutdown
8
# KEYWORD: shutdown
11
#
12
9
13
. /etc/rc.subr
10
. /etc/rc.subr
14
11
15
name="turnserver"
12
name=turnserver
16
rcvar="${name}_enable"
13
rcvar=turnserver_enable
17
command="%%PREFIX%%/bin/${name}"
14
desc=TURN and STUN server
18
pidfile="/var/run/${name}.pid"
19
required_files="%%PREFIX%%/etc/${name}.conf"
20
15
21
load_rc_config ${name}
16
load_rc_config ${name}
22
17
23
: ${turnserver_enable="NO"}
18
: ${turnserver_enable:=NO}
24
: ${turnserver_flags="-o"}
25
: ${turnserver_configfile:=%%PREFIX%%/etc/$name.conf}
19
: ${turnserver_configfile:=%%PREFIX%%/etc/$name.conf}
26
20
27
command_args="-c ${turnserver_configfile} ${turnserver_flags}"
21
command="%%PREFIX%%/bin/${name}"
22
required_files="%%PREFIX%%/etc/${name}.conf"
23
start_precmd=find_pidfile
24
stop_precmd=find_pidfile
25
status_precmd=find_pidfile
26
command_args="-o -c ${turnserver_configfile}"
28
27
28
find_pidfile()
29
{
30
        if get_pidfile_from_conf pidfile $turnserver_configfile; then
31
                pidfile="$_pidfile_from_conf"
32
        else
33
                pidfile="/var/run/${name}.pid"
34
        fi
35
}
36
29
run_rc_command "$1"
37
run_rc_command "$1"
(-)pkg-plist (-1 lines)
Lines 5-11 Link Here
5
bin/turnutils_peer
5
bin/turnutils_peer
6
bin/turnutils_stunclient
6
bin/turnutils_stunclient
7
bin/turnutils_uclient
7
bin/turnutils_uclient
8
etc/rc.d/turnserver
9
@sample etc/turnserver.conf.default etc/turnserver.conf
8
@sample etc/turnserver.conf.default etc/turnserver.conf
10
include/turn/client/TurnMsgLib.h
9
include/turn/client/TurnMsgLib.h
11
include/turn/client/ns_turn_ioaddr.h
10
include/turn/client/ns_turn_ioaddr.h

Return to bug 253978