diff --git a/telephony/coturn/Makefile b/telephony/coturn/Makefile new file mode 100644 index 00000000000..0d16df4ab9a --- /dev/null +++ b/telephony/coturn/Makefile @@ -0,0 +1,40 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2017/12/23 17:55:38 feinerer Exp $ + +COMMENT = coturn STUN/TURN server + +V = 4.5.0.7 +DISTNAME = turnserver-${V} + +CATEGORIES = telephony + +HOMEPAGE = https://github.com/coturn/coturn + +MAINTAINER = Ingo Feinerer + +# BSD +PERMIT_PACKAGE_CDROM = Yes + +WANTLIB += c crypto event_core event_extra event_openssl event_pthreads +WANTLIB += hiredis intl mysqlclient pq pthread sqlite3 ssl + +MASTER_SITES = http://turnserver.open-sys.org/downloads/v${V}/ \ + http://coturn.net/turnserver/v${V}/ + +LIB_DEPENDS = databases/mariadb \ + databases/postgresql \ + databases/sqlite3 \ + devel/gettext \ + devel/libevent2 \ + databases/libhiredis + +CONFIGURE_STYLE = simple +CONFIGURE_ARGS = --localstatedir='${LOCALSTATEDIR}' +# There is no port for MongoDB development libraries and/or headers +CONFIGURE_ENV = TURN_NO_MONGO=1 + +post-install: + rm -rf ${PREFIX}/etc + mv ${WRKINST}${LOCALSTATEDIR}/db/turndb \ + ${PREFIX}/share/examples/turnserver + +.include diff --git a/telephony/coturn/distinfo b/telephony/coturn/distinfo new file mode 100644 index 00000000000..9925408a6fd --- /dev/null +++ b/telephony/coturn/distinfo @@ -0,0 +1,2 @@ +SHA256 (turnserver-4.5.0.7.tar.gz) = hiSMVBoRhOs4jFTUF4z/vxbvU1BPu2AQbldRlPB4siE= +SIZE (turnserver-4.5.0.7.tar.gz) = 400577 diff --git a/telephony/coturn/pkg/DESCR b/telephony/coturn/pkg/DESCR new file mode 100644 index 00000000000..50e766565e3 --- /dev/null +++ b/telephony/coturn/pkg/DESCR @@ -0,0 +1 @@ +The TURN Server is a VoIP media traffic NAT traversal server and gateway. diff --git a/telephony/coturn/pkg/PLIST b/telephony/coturn/pkg/PLIST new file mode 100644 index 00000000000..c28735e47c0 --- /dev/null +++ b/telephony/coturn/pkg/PLIST @@ -0,0 +1,125 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2017/12/23 17:55:38 feinerer Exp $ +@newgroup _turnserver:795 +@newuser _turnserver:795:795:daemon:TURN Server user:/var/empty:/sbin/nologin +@bin bin/turnadmin +@bin bin/turnserver +@bin bin/turnutils_natdiscovery +@bin bin/turnutils_oauth +@bin bin/turnutils_peer +@bin bin/turnutils_stunclient +@bin bin/turnutils_uclient +include/turn/ +include/turn/client/ +include/turn/client/TurnMsgLib.h +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_experimental.h +include/turn/ns_turn_defs.h +lib/libturnclient.a +@man man/man1/coturn.1 +@man man/man1/turnadmin.1 +@man man/man1/turnserver.1 +@man man/man1/turnutils.1 +@man man/man1/turnutils_natdiscovery.1 +@man man/man1/turnutils_oauth.1 +@man man/man1/turnutils_peer.1 +@man man/man1/turnutils_stunclient.1 +@man man/man1/turnutils_uclient.1 +share/doc/turnserver/ +share/doc/turnserver/INSTALL +share/doc/turnserver/LICENSE +share/doc/turnserver/README.turnadmin +share/doc/turnserver/README.turnserver +share/doc/turnserver/README.turnutils +share/doc/turnserver/postinstall.txt +share/doc/turnserver/schema.mongo.sh +share/doc/turnserver/schema.sql +share/doc/turnserver/schema.stats.redis +share/doc/turnserver/schema.userdb.redis +share/examples/turnserver/ +share/examples/turnserver/etc/ +share/examples/turnserver/etc/turn_client_cert.pem +share/examples/turnserver/etc/turn_client_pkey.pem +share/examples/turnserver/etc/turn_server_cert.pem +share/examples/turnserver/etc/turn_server_pkey.pem +share/examples/turnserver/etc/turnserver.conf +@mode 640 +@group _turnserver +@sample ${SYSCONFDIR}/turnserver.conf +@mode +@group +share/examples/turnserver/scripts/ +share/examples/turnserver/scripts/basic/ +share/examples/turnserver/scripts/basic/dos_attack.sh +share/examples/turnserver/scripts/basic/relay.sh +share/examples/turnserver/scripts/basic/tcp_client.sh +share/examples/turnserver/scripts/basic/tcp_client_c2c_tcp_relay.sh +share/examples/turnserver/scripts/basic/udp_c2c_client.sh +share/examples/turnserver/scripts/basic/udp_client.sh +share/examples/turnserver/scripts/loadbalance/ +share/examples/turnserver/scripts/loadbalance/master_relay.sh +share/examples/turnserver/scripts/loadbalance/slave_relay_1.sh +share/examples/turnserver/scripts/loadbalance/slave_relay_2.sh +share/examples/turnserver/scripts/loadbalance/tcp_c2c_tcp_relay.sh +share/examples/turnserver/scripts/loadbalance/udp_c2c.sh +share/examples/turnserver/scripts/longtermsecure/ +share/examples/turnserver/scripts/longtermsecure/secure_dos_attack.sh +share/examples/turnserver/scripts/longtermsecure/secure_dtls_client.sh +share/examples/turnserver/scripts/longtermsecure/secure_dtls_client_cert.sh +share/examples/turnserver/scripts/longtermsecure/secure_relay.sh +share/examples/turnserver/scripts/longtermsecure/secure_relay_cert.sh +share/examples/turnserver/scripts/longtermsecure/secure_sctp_client.sh +share/examples/turnserver/scripts/longtermsecure/secure_tcp_client.sh +share/examples/turnserver/scripts/longtermsecure/secure_tcp_client_c2c_tcp_relay.sh +share/examples/turnserver/scripts/longtermsecure/secure_tls_client.sh +share/examples/turnserver/scripts/longtermsecure/secure_tls_client_c2c_tcp_relay.sh +share/examples/turnserver/scripts/longtermsecure/secure_tls_client_cert.sh +share/examples/turnserver/scripts/longtermsecure/secure_udp_c2c.sh +share/examples/turnserver/scripts/longtermsecure/secure_udp_client.sh +share/examples/turnserver/scripts/longtermsecuredb/ +share/examples/turnserver/scripts/longtermsecuredb/secure_relay_with_db_mongo.sh +share/examples/turnserver/scripts/longtermsecuredb/secure_relay_with_db_mysql.sh +share/examples/turnserver/scripts/longtermsecuredb/secure_relay_with_db_mysql_ssl.sh +share/examples/turnserver/scripts/longtermsecuredb/secure_relay_with_db_psql.sh +share/examples/turnserver/scripts/longtermsecuredb/secure_relay_with_db_redis.sh +share/examples/turnserver/scripts/longtermsecuredb/secure_relay_with_db_sqlite.sh +share/examples/turnserver/scripts/mobile/ +share/examples/turnserver/scripts/mobile/mobile_dtls_client.sh +share/examples/turnserver/scripts/mobile/mobile_relay.sh +share/examples/turnserver/scripts/mobile/mobile_tcp_client.sh +share/examples/turnserver/scripts/mobile/mobile_tls_client_c2c_tcp_relay.sh +share/examples/turnserver/scripts/mobile/mobile_udp_client.sh +share/examples/turnserver/scripts/oauth.sh +share/examples/turnserver/scripts/peer.sh +share/examples/turnserver/scripts/readme.txt +share/examples/turnserver/scripts/restapi/ +share/examples/turnserver/scripts/restapi/secure_relay_secret.sh +share/examples/turnserver/scripts/restapi/secure_relay_secret_with_db_mongo.sh +share/examples/turnserver/scripts/restapi/secure_relay_secret_with_db_mysql.sh +share/examples/turnserver/scripts/restapi/secure_relay_secret_with_db_psql.sh +share/examples/turnserver/scripts/restapi/secure_relay_secret_with_db_redis.sh +share/examples/turnserver/scripts/restapi/secure_relay_secret_with_db_sqlite.sh +share/examples/turnserver/scripts/restapi/secure_udp_client_with_secret.sh +share/examples/turnserver/scripts/restapi/shared_secret_maintainer.pl +share/examples/turnserver/scripts/selfloadbalance/ +share/examples/turnserver/scripts/selfloadbalance/secure_dos_attack.sh +share/examples/turnserver/scripts/selfloadbalance/secure_relay.sh +share/examples/turnserver/turndb +@mode 0640 +@owner _turnserver +@group _turnserver +@sample ${LOCALSTATEDIR}/db/turndb +@mode +@owner +@group +share/turnserver/ +share/turnserver/schema.mongo.sh +share/turnserver/schema.sql +share/turnserver/schema.stats.redis +share/turnserver/schema.userdb.redis +share/turnserver/testmongosetup.sh +share/turnserver/testredisdbsetup.sh +share/turnserver/testsqldbsetup.sql +@rcscript ${RCDIR}/turnserver diff --git a/telephony/coturn/pkg/turnserver.rc b/telephony/coturn/pkg/turnserver.rc new file mode 100644 index 00000000000..c831b79d03e --- /dev/null +++ b/telephony/coturn/pkg/turnserver.rc @@ -0,0 +1,12 @@ +#!/bin/sh +# +# $OpenBSD: turnserver.rc,v 1.1.1.1 2017/12/23 17:55:38 feinerer Exp $ + +daemon="${TRUEPREFIX}/bin/turnserver --daemon" +daemon_user="_turnserver" + +. /etc/rc.d/rc.subr + +rc_reload=NO + +rc_cmd $1