changeset 41:a0a10f5bbe05

Update all the script examples
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 17 Mar 2025 13:52:26 +0100
parents bbc1de47fe9b
children 986f63aa4bdd
files Makefile pkg-plist
diffstat 2 files changed, 29 insertions(+), 16 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Mon Mar 17 13:24:21 2025 +0100
+++ b/Makefile	Mon Mar 17 13:52:26 2025 +0100
@@ -16,7 +16,7 @@
 LIB_DEPENDS=	libevent.so:devel/libevent
 
 USES=		perl5 pkgconfig shebangfix ssl
-SHEBANG_FILES=	examples/scripts/restapi/shared_secret_maintainer.pl
+SHEBANG_FILES=	examples/scripts/restapi/shared_secret_maintainer.pl examples/scripts/oauth.sh
 HAS_CONFIGURE=	yes
 CONFIGURE_ENV+=	PTHREAD_LIBS=-pthread TURN_DISABLE_RPATH=1
 # MongoDB support is disabled until devel/mongo-c-driver is updated
@@ -45,7 +45,7 @@
 
 _ETC_EXAMPLES=	turnserver.conf turn_client_cert.pem \
 		turn_client_pkey.pem turn_server_cert.pem turn_server_pkey.pem
-_SCRIPT_EXAMPLES=	peer.sh	\
+_SCRIPT_EXAMPLES=	peer.sh	oauth.sh pack.sh rfc5769.sh \
 	basic/relay.sh basic/dos_attack.sh \
 	basic/tcp_client_c2c_tcp_relay.sh basic/udp_c2c_client.sh \
 	basic/udp_client.sh basic/tcp_client.sh \
@@ -75,7 +75,12 @@
 	restapi/secure_relay_secret_with_db_psql.sh \
 	restapi/shared_secret_maintainer.pl \
 	selfloadbalance/secure_dos_attack.sh \
-	selfloadbalance/secure_relay.sh
+	selfloadbalance/secure_relay.sh \
+	mobile/mobile_dtls_client.sh \
+	mobile/mobile_relay.sh \
+	mobile/mobile_tcp_client.sh \
+	mobile/mobile_tls_client_c2c_tcp_relay.sh \
+	mobile/mobile_udp_client.sh
 
 OPTIONS_DEFINE=	DOCS EXAMPLES MYSQL PGSQL REDIS SQLITE PROMETHEUS
 OPTIONS_DEFAULT=	REDIS SQLITE
@@ -125,7 +130,7 @@
 	${INSTALL_DATA} ${WRKSRC}/sqlite/turndb ${STAGEDIR}/var/lib/turn/turndb.sample
 
 do-install-EXAMPLES-on:
-.for dir in basic loadbalance longtermsecure longtermsecuredb restapi selfloadbalance
+.for dir in basic loadbalance longtermsecure longtermsecuredb mobile restapi selfloadbalance
 	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/scripts/${dir}
 .endfor
 	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/etc
--- a/pkg-plist	Mon Mar 17 13:24:21 2025 +0100
+++ b/pkg-plist	Mon Mar 17 13:52:26 2025 +0100
@@ -30,45 +30,53 @@
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/etc/turn_server_cert.pem
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/etc/turn_server_pkey.pem
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/readme.txt
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/peer.sh
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/basic/dos_attack.sh
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/basic/relay.sh
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/basic/dos_attack.sh
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/basic/tcp_client.sh
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/basic/tcp_client_c2c_tcp_relay.sh
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/basic/udp_c2c_client.sh
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/basic/udp_client.sh
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/basic/tcp_client.sh
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/loadbalance/master_relay.sh
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/loadbalance/slave_relay_1.sh
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/loadbalance/slave_relay_2.sh
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/loadbalance/tcp_c2c_tcp_relay.sh
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/loadbalance/udp_c2c.sh
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/loadbalance/tcp_c2c_tcp_relay.sh
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/longtermsecure/secure_dos_attack.sh
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/longtermsecure/secure_dtls_client.sh
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/longtermsecure/secure_dtls_client_cert.sh
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/longtermsecure/secure_tls_client_cert.sh
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/longtermsecure/secure_relay.sh
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/longtermsecure/secure_relay_cert.sh
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/longtermsecure/secure_tcp_client_c2c_tcp_relay.sh
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/longtermsecure/secure_sctp_client.sh
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/longtermsecure/secure_tcp_client.sh
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/longtermsecure/secure_tcp_client_c2c_tcp_relay.sh
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/longtermsecure/secure_tls_client.sh
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/longtermsecure/secure_tls_client_c2c_tcp_relay.sh
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/longtermsecure/secure_tls_client.sh
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/longtermsecure/secure_tls_client_cert.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_mongo.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_psql.sh
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/longtermsecuredb/secure_relay_with_db_redis.sh
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/longtermsecuredb/secure_relay_with_db_sqlite.sh
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/mobile/mobile_dtls_client.sh
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/mobile/mobile_relay.sh
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/mobile/mobile_tcp_client.sh
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/mobile/mobile_tls_client_c2c_tcp_relay.sh
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/mobile/mobile_udp_client.sh
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/oauth.sh
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/pack.sh
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/peer.sh
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/restapi/secure_relay_secret.sh
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/restapi/secure_relay_secret_with_db_mongo.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/rfc5769.sh
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/selfloadbalance/secure_dos_attack.sh
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/selfloadbalance/secure_relay.sh
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/var/db/turndb