summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorGabor Kovesdan <gabor@FreeBSD.org>2013-06-02 20:24:33 +0000
committerGabor Kovesdan <gabor@FreeBSD.org>2013-06-02 20:24:33 +0000
commit52b37605825a22d596fa94d60bf33a360c176999 (patch)
tree96b476c5edfec76e2cf77246126904e15e89942f /net
parent- Update to version 1.3.0 (diff)
- Improve the rc script [1]
- Do not force installation of OpenSSL port [2] - Remove trailing slash from hiredis [2] - Bump PORTREVISION Reported by: crees [1], miwi [2]
Notes
Notes: svn path=/head/; revision=319724
Diffstat (limited to 'net')
-rw-r--r--net/turnserver/Makefile6
-rw-r--r--net/turnserver/files/turnserver.in13
2 files changed, 10 insertions, 9 deletions
diff --git a/net/turnserver/Makefile b/net/turnserver/Makefile
index c861cf8f6cea..2af82ed51d3f 100644
--- a/net/turnserver/Makefile
+++ b/net/turnserver/Makefile
@@ -2,6 +2,7 @@
PORTNAME= turnserver
PORTVERSION= 1.8.5.3
+PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= http://rfc5766-turn-server.googlecode.com/files/
PKGNAMEPREFIX=
@@ -11,8 +12,7 @@ COMMENT= STUN/TURN Server; IPv6, DTLS support; RFCs 5389, 5766, 6062, 6156
LICENSE= BSD
-LIB_DEPENDS= ssl:${PORTSDIR}/security/openssl \
- event-2:${PORTSDIR}/devel/libevent2
+LIB_DEPENDS= event-2:${PORTSDIR}/devel/libevent2
SUB_FILES= pkg-message
@@ -76,7 +76,7 @@ CONFIGURE_ENV+= TURN_NO_MYSQL=1
.endif
.if ${PORT_OPTIONS:MREDIS}
-LIB_DEPENDS+= hiredis:${PORTSDIR}/databases/hiredis/
+LIB_DEPENDS+= hiredis:${PORTSDIR}/databases/hiredis
.else
CONFIGURE_ENV+= TURN_NO_HIREDIS=1
.endif
diff --git a/net/turnserver/files/turnserver.in b/net/turnserver/files/turnserver.in
index 369e1f72d15b..7d52e0d657e9 100644
--- a/net/turnserver/files/turnserver.in
+++ b/net/turnserver/files/turnserver.in
@@ -2,9 +2,9 @@
#
# $FreeBSD$
#
-
# PROVIDE: turnserver
# REQUIRE: LOGIN
+# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
@@ -16,15 +16,16 @@
. /etc/rc.subr
-: ${turnserver_enable:="NO"}
-: ${turnserver_config="%%PREFIX%%/etc/turnserver.conf"}
-
-name="turnserver"
-rcvar="`set_rcvar`"
+name=turnserver
+rcvar=turnserver_enable
load_rc_config $name
+: ${turnserver_enable:=no}
+: ${turnserver_config=%%PREFIX%%/etc/turnserver.conf}
+
command="%%PREFIX%%/bin/${name}"
command_args="--daemon -c ${turnserver_config}"
+required_files=${turnserver_config}
run_rc_command "$1"