diff options
author | gabor <gabor@FreeBSD.org> | 2013-06-03 04:24:33 +0800 |
---|---|---|
committer | gabor <gabor@FreeBSD.org> | 2013-06-03 04:24:33 +0800 |
commit | 2403204691b6c5713965561253a1cc311c65c523 (patch) | |
tree | 96b476c5edfec76e2cf77246126904e15e89942f /net | |
parent | 2b93c3ed5238c42495e567bf15e66d7435c02bd1 (diff) | |
download | freebsd-ports-gnome-2403204691b6c5713965561253a1cc311c65c523.tar.gz freebsd-ports-gnome-2403204691b6c5713965561253a1cc311c65c523.tar.zst freebsd-ports-gnome-2403204691b6c5713965561253a1cc311c65c523.zip |
- 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]
Diffstat (limited to 'net')
-rw-r--r-- | net/turnserver/Makefile | 6 | ||||
-rw-r--r-- | net/turnserver/files/turnserver.in | 13 |
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" |