FreeBSD Bugzilla – Attachment 156748 Details for
Bug 200168
[PATCH] net/turnserver: update to 4.4.4.2
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
patch
turnserver-4.4.4.2.patch (text/plain), 11.37 KB, created by
Bradley T. Hughes
on 2015-05-13 12:06:52 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Bradley T. Hughes
Created:
2015-05-13 12:06:52 UTC
Size:
11.37 KB
patch
obsolete
>commit de4bee79a09c0b1bdbbd20b7173138a4784d9778 >Author: Bradley T. Hughes <bradleythughes@fastmail.fm> >Date: Sun May 10 20:48:00 2015 +0000 > > net/turnserver: upgrade to version 4.4.4.2 > > Change to major version 4 of the coturn project, which is the > continuation of the rfc5766-turn-server project. > >diff --git a/net/turnserver/Makefile b/net/turnserver/Makefile >index a897ed5..b4516f1 100644 >--- a/net/turnserver/Makefile >+++ b/net/turnserver/Makefile >@@ -2,5 +2,5 @@ > > 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 \ >@@ -23,5 +23,5 @@ 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 >@@ -31,23 +31,24 @@ USE_RC_SUBR= turnserver > HAS_CONFIGURE= YES > >-OPTIONS_DEFINE= MYSQL PGSQL REDIS DOCS EXAMPLES >+OPTIONS_DEFINE= DOCS EXAMPLES REDIS PGSQL MYSQL 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 >+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 \ >@@ -63,23 +64,36 @@ _SCRIPT_EXAMPLES= peer.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 >@@ -109,4 +123,8 @@ do-install: > ${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 >@@ -114,7 +132,8 @@ do-install: > ${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/) >@@ -127,5 +146,4 @@ do-install: > ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/scripts/longtermsecuredb > ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/scripts/restapi >- ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/scripts/shorttermsecure > ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/scripts/selfloadbalance > ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/etc >@@ -148,4 +166,5 @@ do-install: > ${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 >diff --git a/net/turnserver/distinfo b/net/turnserver/distinfo >index e61c86f..ead7eb3 100644 >--- a/net/turnserver/distinfo >+++ b/net/turnserver/distinfo >@@ -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 >diff --git a/net/turnserver/files/pkg-message.in b/net/turnserver/files/pkg-message.in >index 8604c78..9b9dad7 100644 >--- a/net/turnserver/files/pkg-message.in >+++ b/net/turnserver/files/pkg-message.in >@@ -8,11 +8,11 @@ you have to: > 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. >@@ -30,4 +30,5 @@ you have to: > > 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: >diff --git a/net/turnserver/pkg-descr b/net/turnserver/pkg-descr >index 39057f9..8d7747c 100644 >--- a/net/turnserver/pkg-descr >+++ b/net/turnserver/pkg-descr >@@ -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/ >diff --git a/net/turnserver/pkg-plist b/net/turnserver/pkg-plist >index 1010374..439fb78 100644 >--- a/net/turnserver/pkg-plist >+++ b/net/turnserver/pkg-plist >@@ -5,6 +5,6 @@ bin/turnutils_stunclient > bin/turnutils_uclient > lib/libturnclient.a >+var/db/turndb > etc/turnserver.conf.default >-etc/turnuserdb.conf.default > man/man1/turnserver.1.gz > man/man1/turnadmin.1.gz >@@ -13,11 +13,12 @@ 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 >@@ -48,18 +49,20 @@ man/man1/rfc5766-turn-server.1.gz > %%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 >@@ -70,2 +73,3 @@ 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 200168
: 156748 |
156749