From owner-dev-commits-ports-main@freebsd.org Sun Aug 8 10:04:49 2021 Return-Path: Delivered-To: dev-commits-ports-main@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id AAA0C6537B5; Sun, 8 Aug 2021 10:04:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GjFFF4J05z3wLQ; Sun, 8 Aug 2021 10:04:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 7B79C12E08; Sun, 8 Aug 2021 10:04:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 178A4n6o033530; Sun, 8 Aug 2021 10:04:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 178A4nKl033529; Sun, 8 Aug 2021 10:04:49 GMT (envelope-from git) Date: Sun, 8 Aug 2021 10:04:49 GMT Message-Id: <202108081004.178A4nKl033529@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Jesper Schmitz Mouridsen Subject: git: 31811bb4ff34 - main - www/janus: New port MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jsm X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 31811bb4ff34dda24e1c367eba5cca46fa577b00 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-main@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commits to the main branch of the FreeBSD ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Aug 2021 10:04:49 -0000 The branch main has been updated by jsm: URL: https://cgit.FreeBSD.org/ports/commit/?id=31811bb4ff34dda24e1c367eba5cca46fa577b00 commit 31811bb4ff34dda24e1c367eba5cca46fa577b00 Author: Vanilla I. Shu AuthorDate: 2021-08-08 09:54:05 +0000 Commit: Jesper Schmitz Mouridsen CommitDate: 2021-08-08 10:04:03 +0000 www/janus: New port Janus is an open source, general purpose, WebRTC gateway designed and developed by Meetecho PR: 219444 --- www/Makefile | 1 + www/janus/Makefile | 64 +++++++++++++ www/janus/distinfo | 3 + www/janus/files/janus.in | 28 ++++++ www/janus/files/patch-configure.ac | 11 +++ www/janus/files/patch-janus.c | 10 ++ www/janus/files/pkg-message.in | 8 ++ www/janus/pkg-descr | 4 + www/janus/pkg-plist | 186 +++++++++++++++++++++++++++++++++++++ 9 files changed, 315 insertions(+) diff --git a/www/Makefile b/www/Makefile index 8a38ae53fa34..9126f7baa036 100644 --- a/www/Makefile +++ b/www/Makefile @@ -260,6 +260,7 @@ SUBDIR += ilias6 SUBDIR += interchange SUBDIR += itop + SUBDIR += janus SUBDIR += jericho-html SUBDIR += jesred SUBDIR += jetty8 diff --git a/www/janus/Makefile b/www/janus/Makefile new file mode 100644 index 000000000000..91994d748e71 --- /dev/null +++ b/www/janus/Makefile @@ -0,0 +1,64 @@ +PORTNAME= janus +DISTVERSIONPREFIX= v +DISTVERSION= 0.11.3 +CATEGORIES= www + +MAINTAINER= vanilla@FreeBSD.org +COMMENT= WebRTC gateway + +LICENSE= GPLv3 + +BUILD_DEPENDS= gengetopt>0:devel/gengetopt +LIB_DEPENDS= libsrtp2.so:net/libsrtp2 \ + libusrsctp.so:net/libusrsctp \ + 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 \ + --enable-json-logger \ + --enable-data-channels +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 +SUB_FILES= pkg-message + +OPTIONS_SUB= yes +OPTIONS_DEFINE= JAVASCRIPT LUA NANOMSG RABBITMQ POSTPROCESSING +JAVASCRIPT_DESC= JavaScript scripting language support +#MQTT_DESC= MQTT integration +NANOMSG_DESC= Nanomsg integration +RABBITMQ_DESC= RabbitMQ integration +POSTPROCESSING_DESC= Post processing integration +JAVASCRIPT_LIB_DEPENDS= libduktape.so:lang/duktape-lib +NANOMSG_LIB_DEPENDS= libnanomsg.so:net/nanomsg +RABBITMQ_LIB_DEPENDS= librabbitmq.so:net/rabbitmq-c +JAVASCRIPT_CONFIGURE_ENABLE= plugin-duktape +NANOMSG_CONFIGURE_ENABLE= nanomsg +RABBITMQ_CONFIGURE_ENABLE= rabbitmq +LUA_CONFIGURE_ENABLE= plugin-lua +LUA_USES= lua +LUA_CONFIGURE_ENV= LUA_CFLAGS="-I${LUA_INCDIR}" LUA_LIBS="-L${LUA_LIBDIR} -llua-${LUA_VER}" +POSTPROCESSING_CONFIGURE_ENABLE= post-processing +POSTPROCESSING_LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg + +.include diff --git a/www/janus/distinfo b/www/janus/distinfo new file mode 100644 index 000000000000..7bb9f048fb61 --- /dev/null +++ b/www/janus/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1625046487 +SHA256 (meetecho-janus-gateway-v0.11.3_GH0.tar.gz) = bfe4bb0f5c1db7ca1ab7e294b377d604b21e5187a35a64ed93536e2da9f0e9db +SIZE (meetecho-janus-gateway-v0.11.3_GH0.tar.gz) = 7080692 diff --git a/www/janus/files/janus.in b/www/janus/files/janus.in new file mode 100644 index 000000000000..edcb24031455 --- /dev/null +++ b/www/janus/files/janus.in @@ -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 -f -o -F ${janus_config_dir} -C ${janus_conf} -b -L /var/log/janus.log" + +load_rc_config $name +run_rc_command "$1" diff --git a/www/janus/files/patch-configure.ac b/www/janus/files/patch-configure.ac new file mode 100644 index 000000000000..cc0df705b38a --- /dev/null +++ b/www/janus/files/patch-configure.ac @@ -0,0 +1,11 @@ +--- configure.ac.orig 2021-06-15 12:25:22 UTC ++++ configure.ac +@@ -363,8 +363,6 @@ freebsd*) + libconfig + nice + jansson >= $jansson_version +- libssl >= $ssl_version +- libcrypto + zlib" + esac + PKG_CHECK_MODULES([JANUS],"$PKGCHECKMODULES") diff --git a/www/janus/files/patch-janus.c b/www/janus/files/patch-janus.c new file mode 100644 index 000000000000..0a67c09d79c8 --- /dev/null +++ b/www/janus/files/patch-janus.c @@ -0,0 +1,10 @@ +--- janus.c.orig 2021-08-02 14:04:13 UTC ++++ janus.c +@@ -4282,6 +4282,7 @@ gint main(int argc, char *argv[]) + if (!event) { + JANUS_LOG(LOG_ERR, "\tCouldn't load logger plugin '%s': %s\n", eventent->d_name, dlerror()); + } else { ++ dlerror(); + create_l *create = (create_l*) dlsym(event, "create"); + const char *dlsym_error = dlerror(); + if (dlsym_error) { diff --git a/www/janus/files/pkg-message.in b/www/janus/files/pkg-message.in new file mode 100644 index 000000000000..be8f7416f80d --- /dev/null +++ b/www/janus/files/pkg-message.in @@ -0,0 +1,8 @@ +[ +{ type: install + message: <