Index: www/janus/Makefile =================================================================== --- www/janus/Makefile (nonexistent) +++ www/janus/Makefile (working copy) @@ -0,0 +1,42 @@ +# $FreeBSD$ + +PORTNAME= janus +CATEGORIES= www +DISTVERSION= 0.10.1 +DISTVERSIONPREFIX= v +MAINTAINER= jhixson@gmail.com +COMMENT= WebRTC gateway + +LICENSE= GPLv3 + +BUILD_DEPENDS= gengetopt>0:devel/gengetopt +LIB_DEPENDS= libsrtp2.so:net/libsrtp2 \ + libjansson.so:devel/jansson \ + libnice.so:net-im/libnice \ + libmicrohttpd.so:www/libmicrohttpd \ + libwebsockets.so:net/libwebsockets \ + libcurl.so:ftp/curl \ + libopus.so:audio/opus \ + libsofia-sip-ua.so:net/sofia-sip \ + libogg.so:audio/libogg \ + libjansson.so:devel/jansson \ + libnice.so:net-im/libnice \ + libmicrohttpd.so:www/libmicrohttpd \ + libwebsockets.so:net/libwebsockets \ + libconfig.so:devel/libconfig + +USES= libtool pkgconfig autoreconf gmake localbase gnome ssl +USE_GNOME= glib20 +USE_GITHUB= yes +GH_ACCOUNT= meetecho +GH_PROJECT= janus-gateway +USE_RC_SUBR= janus +CONFIGURE_ARGS+= --disable-mqtt \ + --disable-rabbitmq \ +INSTALL_TARGET=install-strip +CFLAGS+= -I${OPENSSLINC} -I${LOCALBASE}/include/nice +LDFLAGS+= -L${OPENSSLLIB} -lcrypto -lssl -L${LOCALBASE} -lnice +GNU_CONFIGURE= yes +USE_LDCONFIG= yes + +.include Property changes on: www/janus/Makefile ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: www/janus/distinfo =================================================================== --- www/janus/distinfo (nonexistent) +++ www/janus/distinfo (working copy) @@ -0,0 +1,3 @@ +TIMESTAMP = 1592326502 +SHA256 (meetecho-janus-gateway-v0.10.1_GH0.tar.gz) = 731760e6911908bc523815809487e51320a738f3533f267d4beb83eaa725de85 +SIZE (meetecho-janus-gateway-v0.10.1_GH0.tar.gz) = 6951415 Property changes on: www/janus/distinfo ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: www/janus/files/janus.in =================================================================== --- www/janus/files/janus.in (nonexistent) +++ www/janus/files/janus.in (working copy) @@ -0,0 +1,28 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: janus +# REQUIRE: NETWORKING syslogd +# BEFORE: DAEMON +# KEYWORD: shutdown + +# Add the following lines to /etc/rc.conf to enable janus: +# janus_enable="YES" +# janus_flags="" + +. /etc/rc.subr + +name=janus +rcvar=janus_enable + +: ${janus_enable="NO"} +: ${janus_config_dir="%%PREFIX%%/etc/${name}"} +: ${janus_conf="${janus_config_dir}/$name.jcfg"} + +required_files="${janus_conf}" +command="%%PREFIX%%/bin/janus" +command_args="-D -o -F ${janus_config_dir} -C ${janus_conf} -b -L /var/log/janus.log" + +load_rc_config $name +run_rc_command "$1" Property changes on: www/janus/files/janus.in ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: www/janus/files/patch-configure.ac =================================================================== --- www/janus/files/patch-configure.ac (nonexistent) +++ www/janus/files/patch-configure.ac (working copy) @@ -0,0 +1,13 @@ +--- configure.ac.orig 2020-06-01 08:39:34 UTC ++++ configure.ac +@@ -341,10 +341,7 @@ PKG_CHECK_MODULES([JANUS], + glib-2.0 >= $glib_version + gio-2.0 >= $glib_version + libconfig +- nice + jansson >= $jansson_version +- libssl >= $ssl_version +- libcrypto + zlib + ]) + JANUS_MANUAL_LIBS="${JANUS_MANUAL_LIBS} -lm" Property changes on: www/janus/files/patch-configure.ac ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: www/janus/files/patch-janus.c =================================================================== --- www/janus/files/patch-janus.c (nonexistent) +++ www/janus/files/patch-janus.c (working copy) @@ -0,0 +1,10 @@ +--- janus.c.orig 2020-06-15 14:02:09 UTC ++++ janus.c +@@ -5154,6 +5154,7 @@ gint main(int argc, char *argv[]) + if (!transport) { + JANUS_LOG(LOG_ERR, "\tCouldn't load transport plugin '%s': %s\n", transportent->d_name, dlerror()); + } else { ++ dlerror(); + create_t *create = (create_t*) dlsym(transport, "create"); + const char *dlsym_error = dlerror(); + if (dlsym_error) { Property changes on: www/janus/files/patch-janus.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: www/janus/files/patch-plugins_janus__audiobridge.c =================================================================== --- www/janus/files/patch-plugins_janus__audiobridge.c (nonexistent) +++ www/janus/files/patch-plugins_janus__audiobridge.c (working copy) @@ -0,0 +1,11 @@ +--- plugins/janus_audiobridge.c.orig 2020-06-10 14:19:17 UTC ++++ plugins/janus_audiobridge.c +@@ -802,6 +802,8 @@ room-: { + */ + + #include "plugin.h" ++#include ++#include + + #include + #include Property changes on: www/janus/files/patch-plugins_janus__audiobridge.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: www/janus/files/patch-rtcp.h =================================================================== --- www/janus/files/patch-rtcp.h (nonexistent) +++ www/janus/files/patch-rtcp.h (working copy) @@ -0,0 +1,11 @@ +--- rtcp.h.orig 2017-03-08 10:25:35 UTC ++++ rtcp.h +@@ -20,7 +20,7 @@ + #ifdef __MACH__ + #include + #else +-#include ++#include + #endif + #include + #include Property changes on: www/janus/files/patch-rtcp.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: www/janus/files/patch-rtp.h =================================================================== --- www/janus/files/patch-rtp.h (nonexistent) +++ www/janus/files/patch-rtp.h (working copy) @@ -0,0 +1,11 @@ +--- rtp.h.orig 2020-06-15 20:40:17 UTC ++++ rtp.h +@@ -14,7 +14,7 @@ + #define JANUS_RTP_H + + #include +-#ifdef __MACH__ ++#if defined (__MACH__) || defined(__FreeBSD__) + #include + #define __BYTE_ORDER BYTE_ORDER + #define __BIG_ENDIAN BIG_ENDIAN Property changes on: www/janus/files/patch-rtp.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: www/janus/files/patch-text2pcap.c =================================================================== --- www/janus/files/patch-text2pcap.c (nonexistent) +++ www/janus/files/patch-text2pcap.c (working copy) @@ -0,0 +1,16 @@ +--- text2pcap.c.orig 2020-06-15 14:02:09 UTC ++++ text2pcap.c +@@ -41,8 +41,11 @@ + #define __BYTE_ORDER BYTE_ORDER + #define __BIG_ENDIAN BIG_ENDIAN + #define __LITTLE_ENDIAN LITTLE_ENDIAN +-#else +-#include ++#elif defined(__FreeBSD__) ++#include ++#define __BYTE_ORDER BYTE_ORDER ++#define __BIG_ENDIAN BIG_ENDIAN ++#define __LITTLE_ENDIAN LITTLE_ENDIAN + #endif + + #include "text2pcap.h" Property changes on: www/janus/files/patch-text2pcap.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: www/janus/files/patch-transports_janus__websockets.c =================================================================== --- www/janus/files/patch-transports_janus__websockets.c (nonexistent) +++ www/janus/files/patch-transports_janus__websockets.c (working copy) @@ -0,0 +1,48 @@ +--- transports/janus_websockets.c.orig 2020-06-01 08:39:34 UTC ++++ transports/janus_websockets.c +@@ -274,7 +274,7 @@ static const char *janus_websockets_reason_string(enum + #if (LWS_LIBRARY_VERSION_MAJOR >= 4) + static lws_retry_bo_t pingpong = { 0 }; + #endif +- ++struct in_addr addr; + /* Helper method to return the interface associated with a local IP address */ + static char *janus_websockets_get_interface_name(const char *ip) { + struct ifaddrs *addrs = NULL, *iap = NULL; +@@ -553,13 +553,6 @@ int janus_websockets_init(janus_transport_callbacks *c + /* Force single-thread server */ + wscinfo.count_threads = 1; + +- /* Create the base context */ +- wsc = lws_create_context(&wscinfo); +- if(wsc == NULL) { +- JANUS_LOG(LOG_ERR, "Error creating libwebsockets context...\n"); +- janus_config_destroy(config); +- return -1; /* No point in keeping the plugin loaded */ +- } + + /* Setup the Janus API WebSockets server(s) */ + item = janus_config_get(config, config_general, janus_config_type_item, "ws"); +@@ -580,12 +573,22 @@ int janus_websockets_init(janus_transport_callbacks *c + item = janus_config_get(config, config_general, janus_config_type_item, "ws_ip"); + if(item && item->value) { + ip = (char *)item->value; ++ if(inet_net_pton(AF_INET, ip, &addr, sizeof(addr))>0) { ++ wscinfo.options |= LWS_SERVER_OPTION_DISABLE_IPV6; ++ } + char *iface = janus_websockets_get_interface_name(ip); + if(iface == NULL) { + JANUS_LOG(LOG_WARN, "No interface associated with %s? Falling back to no interface...\n", ip); + } + ip = iface; + } ++ /* Create the base context */ ++ wsc = lws_create_context(&wscinfo); ++ if(wsc == NULL) { ++ JANUS_LOG(LOG_ERR, "Error creating libwebsockets context...\n"); ++ janus_config_destroy(config); ++ return -1; /* No point in keeping the plugin loaded */ ++ } + /* Prepare context */ + struct lws_context_creation_info info; + memset(&info, 0, sizeof info); Property changes on: www/janus/files/patch-transports_janus__websockets.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: www/janus/pkg-descr =================================================================== --- www/janus/pkg-descr (nonexistent) +++ www/janus/pkg-descr (working copy) @@ -0,0 +1,4 @@ +Janus is an open source, general purpose, WebRTC gateway designed and +developed by Meetecho + +WWW: https://github.com/meetecho/janus-gateway Property changes on: www/janus/pkg-descr ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: www/janus/pkg-plist =================================================================== --- www/janus/pkg-plist (nonexistent) +++ www/janus/pkg-plist (working copy) @@ -0,0 +1,143 @@ +bin/janus +bin/janus-cfgconv +@sample %%ETCDIR%%/janus.eventhandler.gelfevh.jcfg.sample +@sample %%ETCDIR%%/janus.eventhandler.sampleevh.jcfg.sample +@sample %%ETCDIR%%/janus.eventhandler.wsevh.jcfg.sample +@sample %%ETCDIR%%/janus.jcfg.sample +@sample %%ETCDIR%%/janus.plugin.audiobridge.jcfg.sample +@sample %%ETCDIR%%/janus.plugin.echotest.jcfg.sample +@sample %%ETCDIR%%/janus.plugin.nosip.jcfg.sample +@sample %%ETCDIR%%/janus.plugin.recordplay.jcfg.sample +@sample %%ETCDIR%%/janus.plugin.sip.jcfg.sample +@sample %%ETCDIR%%/janus.plugin.streaming.jcfg.sample +@sample %%ETCDIR%%/janus.plugin.textroom.jcfg.sample +@sample %%ETCDIR%%/janus.plugin.videocall.jcfg.sample +@sample %%ETCDIR%%/janus.plugin.videoroom.jcfg.sample +@sample %%ETCDIR%%/janus.plugin.voicemail.jcfg.sample +@sample %%ETCDIR%%/janus.transport.http.jcfg.sample +@sample %%ETCDIR%%/janus.transport.pfunix.jcfg.sample +@sample %%ETCDIR%%/janus.transport.websockets.jcfg.sample +include/janus/apierror.h +include/janus/config.h +include/janus/debug.h +include/janus/events/eventhandler.h +include/janus/ip-utils.h +include/janus/log.h +include/janus/loggers/logger.h +include/janus/mutex.h +include/janus/plugins/plugin.h +include/janus/record.h +include/janus/refcount.h +include/janus/rtcp.h +include/janus/rtp.h +include/janus/rtpsrtp.h +include/janus/sdp-utils.h +include/janus/text2pcap.h +include/janus/transports/transport.h +include/janus/utils.h +lib/janus/events/libjanus_gelfevh.so +lib/janus/events/libjanus_gelfevh.so.0 +lib/janus/events/libjanus_gelfevh.so.0.0.0 +lib/janus/events/libjanus_sampleevh.so +lib/janus/events/libjanus_sampleevh.so.0 +lib/janus/events/libjanus_sampleevh.so.0.0.0 +lib/janus/events/libjanus_wsevh.so +lib/janus/events/libjanus_wsevh.so.0 +lib/janus/events/libjanus_wsevh.so.0.0.0 +lib/janus/plugins/libjanus_audiobridge.so +lib/janus/plugins/libjanus_audiobridge.so.0 +lib/janus/plugins/libjanus_audiobridge.so.0.0.0 +lib/janus/plugins/libjanus_echotest.so +lib/janus/plugins/libjanus_echotest.so.0 +lib/janus/plugins/libjanus_echotest.so.0.0.0 +lib/janus/plugins/libjanus_nosip.so +lib/janus/plugins/libjanus_nosip.so.0 +lib/janus/plugins/libjanus_nosip.so.0.0.0 +lib/janus/plugins/libjanus_recordplay.so +lib/janus/plugins/libjanus_recordplay.so.0 +lib/janus/plugins/libjanus_recordplay.so.0.0.0 +lib/janus/plugins/libjanus_sip.so +lib/janus/plugins/libjanus_sip.so.0 +lib/janus/plugins/libjanus_sip.so.0.0.0 +lib/janus/plugins/libjanus_streaming.so +lib/janus/plugins/libjanus_streaming.so.0 +lib/janus/plugins/libjanus_streaming.so.0.0.0 +lib/janus/plugins/libjanus_textroom.so +lib/janus/plugins/libjanus_textroom.so.0 +lib/janus/plugins/libjanus_textroom.so.0.0.0 +lib/janus/plugins/libjanus_videocall.so +lib/janus/plugins/libjanus_videocall.so.0 +lib/janus/plugins/libjanus_videocall.so.0.0.0 +lib/janus/plugins/libjanus_videoroom.so +lib/janus/plugins/libjanus_videoroom.so.0 +lib/janus/plugins/libjanus_videoroom.so.0.0.0 +lib/janus/plugins/libjanus_voicemail.so +lib/janus/plugins/libjanus_voicemail.so.0 +lib/janus/plugins/libjanus_voicemail.so.0.0.0 +lib/janus/transports/libjanus_http.so +lib/janus/transports/libjanus_http.so.0 +lib/janus/transports/libjanus_http.so.0.0.0 +lib/janus/transports/libjanus_pfunix.so +lib/janus/transports/libjanus_pfunix.so.0 +lib/janus/transports/libjanus_pfunix.so.0.0.0 +lib/janus/transports/libjanus_websockets.so +lib/janus/transports/libjanus_websockets.so.0 +lib/janus/transports/libjanus_websockets.so.0.0.0 +man/man1/janus-cfgconv.1.gz +man/man1/janus.1.gz +share/doc/janus-gateway/README.md +%%DATADIR%%/demos/admin.html +%%DATADIR%%/demos/admin.js +%%DATADIR%%/demos/audiobridgetest.html +%%DATADIR%%/demos/audiobridgetest.js +%%DATADIR%%/demos/citeus.html +%%DATADIR%%/demos/css/demo.css +%%DATADIR%%/demos/demos.html +%%DATADIR%%/demos/devicetest.html +%%DATADIR%%/demos/devicetest.js +%%DATADIR%%/demos/docs/index.html +%%DATADIR%%/demos/echotest.html +%%DATADIR%%/demos/echotest.js +%%DATADIR%%/demos/favicon.ico +%%DATADIR%%/demos/footer.html +%%DATADIR%%/demos/index.html +%%DATADIR%%/demos/janus-logo.png +%%DATADIR%%/demos/janus.js +%%DATADIR%%/demos/meetecho-logo.png +%%DATADIR%%/demos/multiopus.html +%%DATADIR%%/demos/multiopus.js +%%DATADIR%%/demos/navbar.html +%%DATADIR%%/demos/nosiptest.html +%%DATADIR%%/demos/nosiptest.js +%%DATADIR%%/demos/recordplaytest.html +%%DATADIR%%/demos/recordplaytest.js +%%DATADIR%%/demos/screensharingtest.html +%%DATADIR%%/demos/screensharingtest.js +%%DATADIR%%/demos/siptest.html +%%DATADIR%%/demos/siptest.js +%%DATADIR%%/demos/streamingtest.html +%%DATADIR%%/demos/streamingtest.js +%%DATADIR%%/demos/support.html +%%DATADIR%%/demos/surround/ChID-BLITS-EBU.mp4 +%%DATADIR%%/demos/surround/ChID-BLITS-EBU.txt +%%DATADIR%%/demos/textroomtest.html +%%DATADIR%%/demos/textroomtest.js +%%DATADIR%%/demos/up_arrow.png +%%DATADIR%%/demos/videocalltest.html +%%DATADIR%%/demos/videocalltest.js +%%DATADIR%%/demos/videoroomtest.html +%%DATADIR%%/demos/videoroomtest.js +%%DATADIR%%/demos/voicemailtest.html +%%DATADIR%%/demos/voicemailtest.js +%%DATADIR%%/demos/vp9svctest.html +%%DATADIR%%/demos/vp9svctest.js +%%DATADIR%%/javascript/janus.js +%%DATADIR%%/recordings/1234.nfo +%%DATADIR%%/recordings/rec-sample-audio.mjr +%%DATADIR%%/recordings/rec-sample-video.mjr +%%DATADIR%%/streams/music.mulaw +%%DATADIR%%/streams/radio.alaw +%%DATADIR%%/streams/test_gstreamer.sh +%%DATADIR%%/streams/test_gstreamer_1.sh +@dir %%DATADIR%%/duktape +@dir %%DATADIR%%/lua Property changes on: www/janus/pkg-plist ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property