Update net/turnserver to 4.4.4.2

PR:		200168
Submitted by:	Bradley T. Hughes <bradleythughes at fastmail.fm>
Approved by:	mom040267@gmail.com (maintainer)
This commit is contained in:
Guido Falsi 2015-05-18 17:27:02 +00:00
parent ef3c6b0e49
commit 6ae6dcb630
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=386693
5 changed files with 61 additions and 35 deletions

View File

@ -1,7 +1,7 @@
# $FreeBSD$
PORTNAME= turnserver
PORTVERSION= 3.2.5.7
PORTVERSION= 4.4.4.2
CATEGORIES= net
MASTER_SITES= http://turnserver.open-sys.org/downloads/v${PORTVERSION}/:prog \
http://turnserver.open-sys.org/downloads/extradocs/:xdocs \
@ -22,7 +22,7 @@ CONFLICTS= libevent-1.*
SUB_FILES= pkg-message
MANPAGES= turnserver.1 turnadmin.1 turnutils.1 turnutils_peer.1 turnutils_stunclient.1 turnutils_uclient.1 rfc5766-turn-server.1
MANPAGES= turnserver.1 turnadmin.1 turnutils.1 turnutils_peer.1 turnutils_stunclient.1 turnutils_uclient.1 coturn.1
USE_OPENSSL= YES
@ -30,25 +30,28 @@ USE_RC_SUBR= turnserver
HAS_CONFIGURE= YES
OPTIONS_DEFINE= MYSQL PGSQL REDIS DOCS EXAMPLES
OPTIONS_DEFINE= DOCS EXAMPLES MYSQL PGSQL REDIS SQLITE
SHEBANG_FILES= examples/scripts/restapi/shared_secret_maintainer.pl
USES= perl5 shebangfix
MYSQL_DESC= MySQL support for users database
PGSQL_DESC= PostgreSQL support for users database
MYSQL_DESC= MySQL database support
PGSQL_DESC= PostgreSQL database support
REDIS_DESC= Redis support for user database and for status and statistics reporting
SQLITE_DESC= SQLite database support
OPTIONS_DEFAULT= MYSQL PGSQL REDIS
OPTIONS_DEFAULT= MYSQL PGSQL REDIS SQLITE
DOCS= html TURNServerRESTAPI.pdf TurnNetworks.pdf
OPTIONS_SUB= yes
DOCS= html TurnNetworks.pdf
PORTREADMEDOCS= LICENSE README.turnserver README.turnadmin README.turnutils INSTALL
PORTDOCS= ${DOCS} ${PORTREADMEDOCS} postinstall.txt schema.sql \
PORTDOCS= ${DOCS} ${PORTREADMEDOCS} postinstall.txt schema.sql schema.mongo.sh \
schema.userdb.redis schema.stats.redis
_BIN_UTILS= peer stunclient uclient
_ETC_EXAMPLES= turnserver.conf turnuserdb.conf turn_client_cert.pem \
_ETC_EXAMPLES= turnserver.conf turn_client_cert.pem \
turn_client_pkey.pem turn_server_cert.pem turn_server_pkey.pem
_SCRIPT_EXAMPLES= peer.sh \
basic/relay.sh basic/dos_attack.sh \
@ -62,25 +65,38 @@ _SCRIPT_EXAMPLES= peer.sh \
longtermsecure/secure_tcp_client_c2c_tcp_relay.sh longtermsecure/secure_tcp_client.sh \
longtermsecure/secure_tls_client_c2c_tcp_relay.sh longtermsecure/secure_tls_client.sh \
longtermsecure/secure_udp_c2c.sh longtermsecure/secure_udp_client.sh \
longtermsecure/secure_dos_attack.sh longtermsecure/secure_udp_client.sh \
longtermsecuredb/secure_relay_with_db_psql.sh longtermsecuredb/secure_relay_with_db_mysql.sh \
longtermsecure/secure_sctp_client.sh \
longtermsecure/secure_dos_attack.sh \
longtermsecuredb/secure_relay_with_db_psql.sh \
longtermsecuredb/secure_relay_with_db_mysql.sh \
longtermsecuredb/secure_relay_with_db_mysql_ssl.sh \
longtermsecuredb/secure_relay_with_db_mongo.sh \
longtermsecuredb/secure_relay_with_db_redis.sh \
restapi/secure_relay_secret.sh restapi/secure_relay_secret_with_db_mysql.sh \
restapi/secure_relay_secret.sh restapi/secure_relay_secret_with_db_redis.sh \
longtermsecuredb/secure_relay_with_db_sqlite.sh \
restapi/secure_relay_secret.sh \
restapi/secure_relay_secret_with_db_mysql.sh \
restapi/secure_relay_secret_with_db_psql.sh \
restapi/secure_relay_secret_with_db_redis.sh \
restapi/secure_relay_secret_with_db_mongo.sh \
restapi/secure_relay_secret_with_db_sqlite.sh \
restapi/secure_udp_client_with_secret.sh \
restapi/secure_relay_secret_with_db_psql.sh \
restapi/shared_secret_maintainer.pl \
shorttermsecure/secure_tcp_client_c2c_tcp_relay_short_term.sh \
shorttermsecure/secure_udp_client_short_term.sh \
shorttermsecure/secure_relay_short_term_mech.sh \
selfloadbalance/secure_dos_attack.sh \
selfloadbalance/secure_relay.sh
CONFIGURE_ENV+= PTHREAD_LIBS=-pthread TURN_DISABLE_RPATH=1
# MongoDB support is disabled until devel/mongo-c-driver is updated
CONFIGURE_ENG+= TURN_NO_MONGO=1
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MSQLITE}
USE_SQLITE= yes
.else
CONFIGURE_ENV+= TURN_NO_SQLITE=1
.endif
.if ${PORT_OPTIONS:MPGSQL}
USES+= pgsql
.else
@ -108,14 +124,19 @@ do-install:
.for f in ${MANPAGES}
${INSTALL_MAN} ${WRKSRC}/man/man1/${f} ${STAGEDIR}${PREFIX}/man/man1/${f}
.endfor
${MKDIR} ${STAGEDIR}${PREFIX}/var/db
.if ${PORT_OPTIONS:MSQLITE}
${INSTALL_DATA} ${WRKSRC}/sqlite/turndb ${STAGEDIR}${PREFIX}/var/db/turndb
.endif
${MKDIR} ${STAGEDIR}${DATADIR}/
${INSTALL_DATA} ${WRKSRC}/turndb/schema.sql ${STAGEDIR}${DATADIR}/schema.sql
${INSTALL_DATA} ${WRKSRC}/turndb/schema.userdb.redis ${STAGEDIR}${DATADIR}/schema.userdb.redis
${INSTALL_DATA} ${WRKSRC}/turndb/schema.stats.redis ${STAGEDIR}${DATADIR}/schema.stats.redis
${INSTALL_SCRIPT} ${WRKSRC}/turndb/testredisdbsetup.sh ${STAGEDIR}${DATADIR}/testredisdbsetup.sh
${INSTALL_SCRIPT} ${WRKSRC}/turndb/schema.mongo.sh ${STAGEDIR}${DATADIR}/schema.mongo.sh
${INSTALL_SCRIPT} ${WRKSRC}/turndb/testmongosetup.sh ${STAGEDIR}${DATADIR}/testmongosetup.sh
${INSTALL_DATA} ${WRKSRC}/lib/libturnclient.a ${STAGEDIR}${PREFIX}/lib/libturnclient.a
${INSTALL_DATA} ${WRKSRC}/examples/etc/turnserver.conf ${STAGEDIR}${PREFIX}/etc/turnserver.conf.default
${INSTALL_DATA} ${WRKSRC}/examples/etc/turnuserdb.conf ${STAGEDIR}${PREFIX}/etc/turnuserdb.conf.default
${MKDIR} ${STAGEDIR}${PREFIX}/include/turn
(cd ${WRKSRC}/include/turn/ && ${COPYTREE_SHARE} client ${STAGEDIR}${PREFIX}/include/turn/)
(cd ${WRKSRC}/include/turn/ && ${COPYTREE_SHARE} ns_turn_defs.h ${STAGEDIR}${PREFIX}/include/turn/)
@ -126,7 +147,6 @@ do-install:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/scripts/longtermsecure
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/scripts/longtermsecuredb
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/scripts/restapi
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/scripts/shorttermsecure
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/scripts/selfloadbalance
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/etc
${INSTALL_MAN} ${WRKSRC}/examples/scripts/readme.txt ${STAGEDIR}${EXAMPLESDIR}/scripts
@ -147,6 +167,7 @@ do-install:
.endfor
${INSTALL_DATA} ${PKGMESSAGE} ${STAGEDIR}${DOCSDIR}/postinstall.txt
${INSTALL_DATA} ${WRKSRC}/turndb/schema.sql ${STAGEDIR}${DOCSDIR}/schema.sql
${INSTALL_DATA} ${WRKSRC}/turndb/schema.mongo.sh ${STAGEDIR}${DOCSDIR}/schema.mongo.sh
${INSTALL_DATA} ${WRKSRC}/turndb/schema.userdb.redis ${STAGEDIR}${DOCSDIR}/schema.userdb.redis
${INSTALL_DATA} ${WRKSRC}/turndb/schema.stats.redis ${STAGEDIR}${DOCSDIR}/schema.stats.redis
.endif

View File

@ -1,4 +1,4 @@
SHA256 (turnserver-3.2.5.7.tar.gz) = 57fd8041af9411a7fb7ccbbd066f4a40de2afbcd7c72a1b41268da7eab0fb740
SIZE (turnserver-3.2.5.7.tar.gz) = 310064
SHA256 (turnserver-4.4.4.2.tar.gz) = 1e1b72248fd518270ad53c0df1d62494f972130d6ea0be07432f2f26874546ac
SIZE (turnserver-4.4.4.2.tar.gz) = 385579
SHA256 (turn.extra.docs-2.0.0.1.tar.gz) = 3a86600fd0a30ce7aeb547e80402ce68ea9959f7dd58697e5b47fda6e33ab9ce
SIZE (turn.extra.docs-2.0.0.1.tar.gz) = 485379

View File

@ -7,13 +7,13 @@ you have to:
a) Create and edit %%PREFIX%%/etc/turnserver.conf file.
Use %%PREFIX%%/etc/turnserver.conf.default as an example.
b) For user accounts settings, if using the turnserver
with authentication: create and edit %%PREFIX%%/etc/turnuserdb.conf
file, or set up PostgreSQL or MySQL or Redis database for user accounts.
Use %%PREFIX%%/etc/turnuserdb.conf.default as example for flat file DB,
or use %%DATADIR%%/schema.sql as database schema,
or use %%DATADIR%%/schema*redis as Redis
database description.
b) For user accounts settings: set up SQLite or PostgreSQL or
MySQL or Redis database for user accounts.
Use %%DATADIR%%/schema.sql as an SQL database schema,
or use %%DATADIR%%/schema*redis as Redis database description.
If SQLite is used, then %%PREFIX%%/var/db/turndb is the default database
location.
d) add line turnserver_enable="YES" to /etc/rc.conf.
@ -29,6 +29,7 @@ you have to:
executable with appropriate options (see the documentation).
3) To create database schema, use schema in file %%DATADIR%%/schema.sql.
The TURN Server supports (optionally) SQLite, MySQL, PostgreSQL, Redis.
4) For additional information, run:

View File

@ -1,4 +1,4 @@
This a BSD-licensed version of the RFC5766 TURN Server implementation,
This a BSD-licensed version of the Coturn TURN Server implementation,
with IPv6 and DTLS extensions.
WWW: http://code.google.com/p/rfc5766-turn-server/
WWW: http://code.google.com/p/coturn/

View File

@ -4,21 +4,22 @@ bin/turnutils_peer
bin/turnutils_stunclient
bin/turnutils_uclient
lib/libturnclient.a
%%SQLITE%%var/db/turndb
etc/turnserver.conf.default
etc/turnuserdb.conf.default
man/man1/turnserver.1.gz
man/man1/turnadmin.1.gz
man/man1/turnutils.1.gz
man/man1/turnutils_peer.1.gz
man/man1/turnutils_stunclient.1.gz
man/man1/turnutils_uclient.1.gz
man/man1/rfc5766-turn-server.1.gz
man/man1/coturn.1.gz
%%DATADIR%%/schema.sql
%%DATADIR%%/schema.userdb.redis
%%DATADIR%%/schema.stats.redis
%%DATADIR%%/schema.mongo.sh
%%DATADIR%%/testredisdbsetup.sh
%%DATADIR%%/testmongosetup.sh
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/etc/turnserver.conf
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/etc/turnuserdb.conf
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/etc/turn_client_cert.pem
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/etc/turn_client_pkey.pem
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/etc/turn_server_cert.pem
@ -47,20 +48,22 @@ man/man1/rfc5766-turn-server.1.gz
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/longtermsecure/secure_tls_client.sh
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/longtermsecure/secure_udp_c2c.sh
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/longtermsecure/secure_udp_client.sh
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/longtermsecure/secure_sctp_client.sh
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/longtermsecure/secure_dos_attack.sh
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/longtermsecuredb/secure_relay_with_db_psql.sh
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/longtermsecuredb/secure_relay_with_db_mysql.sh
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/longtermsecuredb/secure_relay_with_db_mysql_ssl.sh
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/longtermsecuredb/secure_relay_with_db_mongo.sh
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/longtermsecuredb/secure_relay_with_db_redis.sh
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/longtermsecuredb/secure_relay_with_db_sqlite.sh
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/restapi/secure_relay_secret.sh
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/restapi/secure_relay_secret_with_db_mysql.sh
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/restapi/secure_relay_secret_with_db_mongo.sh
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/restapi/secure_relay_secret_with_db_psql.sh
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/restapi/secure_relay_secret_with_db_redis.sh
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/restapi/secure_relay_secret_with_db_sqlite.sh
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/restapi/secure_udp_client_with_secret.sh
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/restapi/shared_secret_maintainer.pl
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/shorttermsecure/secure_tcp_client_c2c_tcp_relay_short_term.sh
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/shorttermsecure/secure_udp_client_short_term.sh
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/shorttermsecure/secure_relay_short_term_mech.sh
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/selfloadbalance/secure_dos_attack.sh
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/selfloadbalance/secure_relay.sh
include/turn/ns_turn_defs.h
@ -69,3 +72,4 @@ include/turn/client/ns_turn_ioaddr.h
include/turn/client/ns_turn_msg.h
include/turn/client/ns_turn_msg_addr.h
include/turn/client/ns_turn_msg_defs.h
include/turn/client/ns_turn_msg_defs_new.h