pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc
Module Name: pkgsrc
Committed By: manu
Date: Wed Jan 15 14:13:40 UTC 2025
Modified Files:
pkgsrc/doc: CHANGES-2025
pkgsrc/net: Makefile
Added Files:
pkgsrc/net/coturn: DESCR Makefile PLIST distinfo options.mk
pkgsrc/net/coturn/files: turnserver.sh
Log Message:
Add net/coturn 4.6.3, contributed to pkgsrc-wip by kethzer.dr%gmail.com@localhost
>From contributor TODO list:
> Install upstream's postinstall as documentation.
>
> Fix path to examples.
>
> Fix detection of libevent2.
>
> This package has known vulnerabilities, please investigate and fix if
> possible:
> CVE-2018-4056, CVE-2018-4058, CVE-2018-4059
To generate a diff of this commit:
cvs rdiff -u -r1.401 -r1.402 pkgsrc/doc/CHANGES-2025
cvs rdiff -u -r1.1585 -r1.1586 pkgsrc/net/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/net/coturn/DESCR pkgsrc/net/coturn/Makefile \
pkgsrc/net/coturn/PLIST pkgsrc/net/coturn/distinfo \
pkgsrc/net/coturn/options.mk
cvs rdiff -u -r0 -r1.1 pkgsrc/net/coturn/files/turnserver.sh
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/doc/CHANGES-2025
diff -u pkgsrc/doc/CHANGES-2025:1.401 pkgsrc/doc/CHANGES-2025:1.402
--- pkgsrc/doc/CHANGES-2025:1.401 Wed Jan 15 13:50:02 2025
+++ pkgsrc/doc/CHANGES-2025 Wed Jan 15 14:13:39 2025
@@ -1,4 +1,4 @@
-$NetBSD: CHANGES-2025,v 1.401 2025/01/15 13:50:02 leot Exp $
+$NetBSD: CHANGES-2025,v 1.402 2025/01/15 14:13:39 manu Exp $
Changes to the packages collection and infrastructure in 2025:
@@ -540,3 +540,4 @@ Changes to the packages collection and i
Updated devel/py-faker to 33.3.1 [adam 2025-01-15]
Added net/openbfdd 0.5.3 [manu 2025-01-15]
Updated devel/regal to 0.30.0 [leot 2025-01-15]
+ Added net/coturn-4.6.3 [manu 2025-01-15]
Index: pkgsrc/net/Makefile
diff -u pkgsrc/net/Makefile:1.1585 pkgsrc/net/Makefile:1.1586
--- pkgsrc/net/Makefile:1.1585 Wed Jan 15 13:28:29 2025
+++ pkgsrc/net/Makefile Wed Jan 15 14:13:39 2025
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1585 2025/01/15 13:28:29 manu Exp $
+# $NetBSD: Makefile,v 1.1586 2025/01/15 14:13:39 manu Exp $
#
COMMENT= Networking tools
@@ -81,6 +81,7 @@ SUBDIR+= coda
SUBDIR+= connect
SUBDIR+= corebird
SUBDIR+= corkscrew
+SUBDIR+= coturn
SUBDIR+= couriertcpd
SUBDIR+= coursera-dl
SUBDIR+= cppzmq
Added files:
Index: pkgsrc/net/coturn/DESCR
diff -u /dev/null pkgsrc/net/coturn/DESCR:1.1
--- /dev/null Wed Jan 15 14:13:40 2025
+++ pkgsrc/net/coturn/DESCR Wed Jan 15 14:13:39 2025
@@ -0,0 +1 @@
+The TURN Server is a VoIP media traffic NAT traversal server
Index: pkgsrc/net/coturn/Makefile
diff -u /dev/null pkgsrc/net/coturn/Makefile:1.1
--- /dev/null Wed Jan 15 14:13:40 2025
+++ pkgsrc/net/coturn/Makefile Wed Jan 15 14:13:39 2025
@@ -0,0 +1,55 @@
+# $NetBSD: Makefile,v 1.1 2025/01/15 14:13:39 manu Exp $
+
+DISTNAME= coturn-4.6.3
+CATEGORIES= net
+MASTER_SITES= ${MASTER_SITE_GITHUB:=coturn/}
+GITHUB_PROJECT= coturn
+
+MAINTAINER= kethzer.dr%gmail.com@localhost
+HOMEPAGE= https://github.com/coturn/coturn
+COMMENT= VoIP media traffic NAT traversal server
+LICENSE= modified-bsd
+
+USE_LANGUAGES= c c++
+
+USE_TOOLS+= pkg-config
+USE_LIBTOOL= yes
+
+HAS_CONFIGURE= yes
+
+# Pass cflags/libs
+CONFIGURE_ENV+= PTHREAD_LIBS=-pthread TURN_DISABLE_RPATH=1
+CONFIGURE_ENV+= LIBEVENT_OPENSSL_CFLAGS="-I${BUILDLINK_PREFIX.libevent}/include"
+CONFIGURE_ENV+= LIBEVENT_OPENSSL_LIBS="-L${BUILDLINK_PREFIX.libevent}/lib -levent_openssl -levent"
+
+# Configure installation paths.
+# \todo Why is this not setting PREFIX?
+CONFIGURE_ENV+= BINDIR=${PREFIX}/bin
+CONFIGURE_ENV+= LIBDIR=${PREFIX}/lib
+CONFIGURE_ENV+= MANPREFIX=${PREFIX}
+CONFIGURE_ENV+= CONFDIR=${PKG_SYSCONFDIR}
+CONFIGURE_ENV+= INCLUDEDIR=${PREFIX}/include
+CONFIGURE_ENV+= LOCALSTATEDIR=${PREFIX}/var/turnserver
+CONFIGURE_ENV+= DOCSDIR=${PREFIX}/share/doc/coturn
+CONFIGURE_ENV+= EXAMPLESDIR=${PREFIX}/share/examples/coturn
+CONFIGURE_ENV+= TURNDBDIR=${VARBASE}/turnserver
+CONFIGURE_ENV+= TURNINCLUDEDIR=${PREFIX}/include/turn
+CONFIGURE_ENV+= TURN_NO_MYSQL=1
+
+CFLAGS+= -Wno-stringop-truncation
+
+COTURN_CONFIG= ${PKG_SYSCONFDIR}/turnserver.conf
+COTURN_EGDIR= ${PKG_SYSCONFDIR}
+CONF_FILES+= ${COTURN_EGDIR}/turnserver.conf.default ${COTURN_CONFIG}
+
+RCD_SCRIPTS= turnserver
+
+WRKSRC= ${WRKDIR}/${DISTNAME}
+
+BUILD_DEFS+= VARBASE
+
+.include "options.mk"
+
+.include "../../security/openssl/buildlink3.mk"
+.include "../../devel/libevent/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/net/coturn/PLIST
diff -u /dev/null pkgsrc/net/coturn/PLIST:1.1
--- /dev/null Wed Jan 15 14:13:40 2025
+++ pkgsrc/net/coturn/PLIST Wed Jan 15 14:13:39 2025
@@ -0,0 +1,100 @@
+@comment $NetBSD: PLIST,v 1.1 2025/01/15 14:13:39 manu Exp $
+bin/turnadmin
+bin/turnserver
+bin/turnutils_natdiscovery
+bin/turnutils_oauth
+bin/turnutils_peer
+bin/turnutils_stunclient
+bin/turnutils_uclient
+etc/turnserver.conf.default
+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/man1/coturn.1
+man/man1/turnadmin.1
+man/man1/turnserver.1
+man/man1/turnutils.1
+man/man1/turnutils_natdiscovery.1
+man/man1/turnutils_oauth.1
+man/man1/turnutils_peer.1
+man/man1/turnutils_stunclient.1
+man/man1/turnutils_uclient.1
+share/doc/coturn/INSTALL
+share/doc/coturn/LICENSE
+share/doc/coturn/README.turnadmin
+share/doc/coturn/README.turnserver
+share/doc/coturn/README.turnutils
+share/doc/coturn/postinstall.txt
+share/doc/coturn/schema.mongo.sh
+share/doc/coturn/schema.sql
+share/doc/coturn/schema.stats.redis
+share/doc/coturn/schema.userdb.redis
+share/examples/coturn/etc/cacert.pem
+share/examples/coturn/etc/coturn.service
+share/examples/coturn/etc/turn_client_cert.pem
+share/examples/coturn/etc/turn_client_pkey.pem
+share/examples/coturn/etc/turn_server_cert.pem
+share/examples/coturn/etc/turn_server_pkey.pem
+share/examples/coturn/etc/turnserver.conf
+share/examples/coturn/scripts/basic/dos_attack.sh
+share/examples/coturn/scripts/basic/relay.sh
+share/examples/coturn/scripts/basic/tcp_client.sh
+share/examples/coturn/scripts/basic/tcp_client_c2c_tcp_relay.sh
+share/examples/coturn/scripts/basic/udp_c2c_client.sh
+share/examples/coturn/scripts/basic/udp_client.sh
+share/examples/coturn/scripts/loadbalance/master_relay.sh
+share/examples/coturn/scripts/loadbalance/slave_relay_1.sh
+share/examples/coturn/scripts/loadbalance/slave_relay_2.sh
+share/examples/coturn/scripts/loadbalance/tcp_c2c_tcp_relay.sh
+share/examples/coturn/scripts/loadbalance/udp_c2c.sh
+share/examples/coturn/scripts/longtermsecure/secure_dos_attack.sh
+share/examples/coturn/scripts/longtermsecure/secure_dtls_client.sh
+share/examples/coturn/scripts/longtermsecure/secure_dtls_client_cert.sh
+share/examples/coturn/scripts/longtermsecure/secure_relay.sh
+share/examples/coturn/scripts/longtermsecure/secure_relay_cert.sh
+share/examples/coturn/scripts/longtermsecure/secure_sctp_client.sh
+share/examples/coturn/scripts/longtermsecure/secure_tcp_client.sh
+share/examples/coturn/scripts/longtermsecure/secure_tcp_client_c2c_tcp_relay.sh
+share/examples/coturn/scripts/longtermsecure/secure_tls_client.sh
+share/examples/coturn/scripts/longtermsecure/secure_tls_client_c2c_tcp_relay.sh
+share/examples/coturn/scripts/longtermsecure/secure_tls_client_cert.sh
+share/examples/coturn/scripts/longtermsecure/secure_udp_c2c.sh
+share/examples/coturn/scripts/longtermsecure/secure_udp_client.sh
+share/examples/coturn/scripts/longtermsecuredb/secure_relay_with_db_mongo.sh
+share/examples/coturn/scripts/longtermsecuredb/secure_relay_with_db_mysql.sh
+share/examples/coturn/scripts/longtermsecuredb/secure_relay_with_db_mysql_ssl.sh
+share/examples/coturn/scripts/longtermsecuredb/secure_relay_with_db_psql.sh
+share/examples/coturn/scripts/longtermsecuredb/secure_relay_with_db_redis.sh
+share/examples/coturn/scripts/longtermsecuredb/secure_relay_with_db_sqlite.sh
+share/examples/coturn/scripts/mobile/mobile_dtls_client.sh
+share/examples/coturn/scripts/mobile/mobile_relay.sh
+share/examples/coturn/scripts/mobile/mobile_tcp_client.sh
+share/examples/coturn/scripts/mobile/mobile_tls_client_c2c_tcp_relay.sh
+share/examples/coturn/scripts/mobile/mobile_udp_client.sh
+share/examples/coturn/scripts/oauth.sh
+share/examples/coturn/scripts/pack.sh
+share/examples/coturn/scripts/peer.sh
+share/examples/coturn/scripts/readme.txt
+share/examples/coturn/scripts/restapi/secure_relay_secret.sh
+share/examples/coturn/scripts/restapi/secure_relay_secret_with_db_mongo.sh
+share/examples/coturn/scripts/restapi/secure_relay_secret_with_db_mysql.sh
+share/examples/coturn/scripts/restapi/secure_relay_secret_with_db_psql.sh
+share/examples/coturn/scripts/restapi/secure_relay_secret_with_db_redis.sh
+share/examples/coturn/scripts/restapi/secure_relay_secret_with_db_sqlite.sh
+share/examples/coturn/scripts/restapi/secure_udp_client_with_secret.sh
+share/examples/coturn/scripts/restapi/shared_secret_maintainer.pl
+share/examples/coturn/scripts/selfloadbalance/secure_dos_attack.sh
+share/examples/coturn/scripts/selfloadbalance/secure_relay.sh
+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
+@pkgdir var/turnserver
Index: pkgsrc/net/coturn/distinfo
diff -u /dev/null pkgsrc/net/coturn/distinfo:1.1
--- /dev/null Wed Jan 15 14:13:40 2025
+++ pkgsrc/net/coturn/distinfo Wed Jan 15 14:13:39 2025
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2025/01/15 14:13:39 manu Exp $
+
+BLAKE2s (coturn-4.6.3.tar.gz) = a0fc17a5306e458a0576342bdb92637586db33e38502d64168f6c8437c8012da
+SHA512 (coturn-4.6.3.tar.gz) = 5e5f4a1713847e25396a88f64234ac9bcbbb29f9069d8c3a52c91d28a43bd4c666eeb9877d88a6d48bb1cfca136d8252d1e9e91bb7415ab29b0ba5cfcac0724d
+Size (coturn-4.6.3.tar.gz) = 535778 bytes
Index: pkgsrc/net/coturn/options.mk
diff -u /dev/null pkgsrc/net/coturn/options.mk:1.1
--- /dev/null Wed Jan 15 14:13:40 2025
+++ pkgsrc/net/coturn/options.mk Wed Jan 15 14:13:39 2025
@@ -0,0 +1,28 @@
+# $NetBSD: options.mk,v 1.1 2025/01/15 14:13:39 manu Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.coturn
+PKG_SUPPORTED_OPTIONS= hiredis mysql pgsql sqlite redis
+
+PKG_SUGGESTED_OPTIONS= sqlite
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mhiredis)
+.include "../../databases/hiredis/buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Mmysql)
+.include "../../mk/mysql.buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Mpgsql)
+.include "../../mk/pgsql.buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Msqlite)
+.include "../../databases/sqlite3/buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Mredis)
+DEPENDS+= redis-[0-9]*:../../databases/redis
+.endif
Index: pkgsrc/net/coturn/files/turnserver.sh
diff -u /dev/null pkgsrc/net/coturn/files/turnserver.sh:1.1
--- /dev/null Wed Jan 15 14:13:40 2025
+++ pkgsrc/net/coturn/files/turnserver.sh Wed Jan 15 14:13:39 2025
@@ -0,0 +1,31 @@
+#!/bin/sh
+#
+# $NetBSD: head/net/coturn/files/turnserver.sh
+#
+# PROVIDE: turnserver
+# REQUIRE: LOGIN
+# KEYWORD: shutdown
+#
+# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
+# to enable this service:
+#
+# turnserver (bool): Set to NO by default.
+# Set it to YES to enable turnserver.
+# turnserver_config (path): Set to @PREFIX@/etc/turnserver.conf
+# by default.
+
+. /etc/rc.subr
+
+name="turnserver"
+rcvar=$name
+
+load_rc_config $name
+
+: ${turnserver:=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"
Home |
Main Index |
Thread Index |
Old Index