Date: Sun, 26 Apr 2020 00:11:24 +0000 (UTC) From: Jose Alonso Cardenas Marquez <acm@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r532991 - in head/net-im: . jitsi-videobridge jitsi-videobridge/files Message-ID: <202004260011.03Q0BOUO087578@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: acm Date: Sun Apr 26 00:11:24 2020 New Revision: 532991 URL: https://svnweb.freebsd.org/changeset/ports/532991 Log: - New port: net-im/jitsi-videobridge Jitsi Videobridge is a WebRTC compatible video router or SFU that lets build highly scalable video conferencing infrastructure (i.e., up to hundreds of conferences per server). WWW: https://jitsi.org/jitsi-videobridge Added: head/net-im/jitsi-videobridge/ head/net-im/jitsi-videobridge/Makefile (contents, props changed) head/net-im/jitsi-videobridge/distinfo (contents, props changed) head/net-im/jitsi-videobridge/files/ head/net-im/jitsi-videobridge/files/jitsi-videobridge.in (contents, props changed) head/net-im/jitsi-videobridge/files/pkg-message.in (contents, props changed) head/net-im/jitsi-videobridge/pkg-descr (contents, props changed) head/net-im/jitsi-videobridge/pkg-plist (contents, props changed) Modified: head/net-im/Makefile Modified: head/net-im/Makefile ============================================================================== --- head/net-im/Makefile Sun Apr 26 00:09:28 2020 (r532990) +++ head/net-im/Makefile Sun Apr 26 00:11:24 2020 (r532991) @@ -38,6 +38,7 @@ SUBDIR += jggtrans SUBDIR += jicofo SUBDIR += jitsi + SUBDIR += jitsi-videobridge SUBDIR += kaccounts-integration SUBDIR += kaccounts-providers SUBDIR += kaidan Added: head/net-im/jitsi-videobridge/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-im/jitsi-videobridge/Makefile Sun Apr 26 00:11:24 2020 (r532991) @@ -0,0 +1,68 @@ +# $FreeBSD$ + +PORTNAME= jitsi +DISTVERSION= 2.1-183 +CATEGORIES= net-im java +PKGNAMESUFFIX= -videobridge +#DISTNAME= ${PORTNAME}-src-${PORTVERSION} + +MAINTAINER= acm@FreeBSD.org +COMMENT= WebRTC compatible video router or SFU + +LICENSE= APACHE20 + +BUILD_DEPENDS= ${LOCALBASE}/share/java/maven/bin/mvn:devel/maven + +ONLY_FOR_ARCHS= i386 amd64 + +USE_GITHUB= yes +GH_PROJECT= ${PORTNAME}${PKGNAMESUFFIX} +GH_TAGNAME= dbddd16 +USE_JAVA= yes + +DATADIR= ${JAVASHAREDIR}/${PORTNAME}${PKGNAMESUFFIX}-${PORTVERSION} +USE_RC_SUBR= ${PORTNAME}${PKGNAMESUFFIX} + +SUB_FILES+= pkg-message +ETCDIR= ${PREFIX}/etc/jitsi/videobridge + +DEV_UPDATE_MODE= no + +.if (${DEV_UPDATE_MODE} == "yes") +post-build: + @cd ${WRKDIR} && ${TAR} czf ${DISTDIR}/${PORTNAME}${PKGNAMESUFFIX}-${DISTVERSION}-deps${EXTRACT_SUFX} m2 + @${ECHO} "(!!!) Please upload the maven deps archive: ${DISTDIR}/${PORTNAME}${PKGNAMESUFFIX}-${DISTVERSION}-deps${EXTRACT_SUFX}" +.else +MASTER_SITES+= LOCAL/acm/:maven +DISTFILES+= ${PORTNAME}${PKGNAMESUFFIX}-${DISTVERSION}-deps${EXTRACT_SUFX}:maven +MAVEN_ARGS= --offline +.endif + +MAVEN_ARGS+= -PbuildFatJar -DskipTests -Dassembly.skipAssembly=false +MAVEN_REPO= -Dmaven.repo.local=${WRKDIR}/m2 + +post-patch: + @${REINPLACE_CMD} -e 's|1.0-20190319.172750-1|1.0-0-ge979298|g' ${WRKSRC}/pom.xml + +do-build: + cd ${WRKSRC}; \ + ${SETENV} mvn ${MAVEN_REPO} ${MAVEN_ARGS} package + +do-install: + @${MKDIR} ${STAGEDIR}${DATADIR}/lib + @${MKDIR} ${STAGEDIR}${ETCDIR} + cd ${WRKSRC}/lib \ + && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${DATADIR}/lib/{} \; + + @(echo "JVB_XMPP_HOST=localhost"; \ + echo "JVB_XMPP_DOMAIN=jitsi.example.com"; \ + echo "JVB_XMPP_PORT=5347"; \ + echo "JVB_XMPP_SECRET=YOURSECRET1"; \ + echo ""; \ + echo "VIDEOBRIDGE_MAX_MEMORY=3072m"; \ + echo "# VIDEOBRIDGE_DEBUG_OPTIONS=\"-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000\" "; \ + ) > ${STAGEDIR}${ETCDIR}/${PORTNAME}${PKGNAMESUFFIX}.conf.sample + + ${INSTALL_DATA} ${WRKSRC}/target/${PORTNAME}${PKGNAMESUFFIX}-2.1-SNAPSHOT-jar-with-dependencies.jar ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}${PKGNAMESUFFIX}.jar + +.include <bsd.port.mk> Added: head/net-im/jitsi-videobridge/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-im/jitsi-videobridge/distinfo Sun Apr 26 00:11:24 2020 (r532991) @@ -0,0 +1,5 @@ +TIMESTAMP = 1587857041 +SHA256 (jitsi-videobridge-2.1-183-deps.tar.gz) = 20c2c63d4ab3936245b69a9c4400c3855945c512ab86a9bfde3365cfdba89b27 +SIZE (jitsi-videobridge-2.1-183-deps.tar.gz) = 159703250 +SHA256 (jitsi-jitsi-videobridge-2.1-183-dbddd16_GH0.tar.gz) = e8da60e17f4825f06629e66dee8b9236d641fb2b3ba22a9c7da0f12a1e189349 +SIZE (jitsi-jitsi-videobridge-2.1-183-dbddd16_GH0.tar.gz) = 277281 Added: head/net-im/jitsi-videobridge/files/jitsi-videobridge.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-im/jitsi-videobridge/files/jitsi-videobridge.in Sun Apr 26 00:11:24 2020 (r532991) @@ -0,0 +1,83 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: jitsi-videobridge +# REQUIRE: NETWORKING SERVERS +# KEYWORD: shutdown +# +# Configuration settings for jitsi-videobridge in /etc/rc.conf: +# +# + +. /etc/rc.subr + +name="jitsi_videobridge" +rcvar=${name}_enable + +jitsi_videobridge_env_file="%%LOCALBASE%%/etc/jitsi/jitsi-videobridge.conf" +jitsi_videobridge_jar="%%JAVAJARDIR%%/jitsi-videobridge.jar" +jitsi_videobridge_logging_config="%%DATADIR%%/lib/logging.properties" + +load_rc_config "${name}" + +: ${jitsi_videobridge_enable="NO"} +: ${jitsi_videobridge_flags=""} + +command="%%LOCALBASE%%/bin/java" + +pidfile="/var/run/jitsi-videobridge.pid" +required_files="${jitsi_videobridge_env_file}" +start_cmd=${name}_start +stop_cmd=${name}_stop +status_cmd=${name}_status +restart_cmd=${name}_restart + +jitsi_videobridge_start() +{ + daemon -p ${pidfile} -o /var/log/jitsi-videobridge.log ${command} -Xmx${VIDEOBRIDGE_MAX_MEMORY} \ + -XX:+UseConcMarkSweepGC -XX:+HeapDumpOnOutOfMemoryError \ + -XX:HeapDumpPath=/tmp \ + -Djava.util.logging.config.file=${jitsi_videobridge_logging_config} \ + -Dnet.java.sip.communicator.SC_HOME_DIR_LOCATION=%%LOCALBASE%%/etc/jitsi \ + -Dnet.java.sip.communicator.SC_HOME_DIR_NAME=videobridge \ + -Dnet.java.sip.communicator.SC_LOG_DIR_LOCATION=/var/log/ \ + -cp ${jitsi_videobridge_jar} \ + org.jitsi.videobridge.Main \ + --host=${JVB_XMPP_HOST} \ + --domain=${JVB_XMPP_DOMAIN} \ + --port=${JVB_XMPP_PORT} \ + --secret=${JVB_XMPP_SECRET} ${jitsi_videobridge_flags} + echo "Started" +} + +jitsi_videobridge_stop() +{ + if [ -f ${pidfile} ] + then + kill `cat ${pidfile}` + rm ${pidfile} + echo "Stopped" + fi +} + +jitsi_videobridge_status() +{ + # If running, show pid + if [ -f ${pidfile} ] + then + echo "${name} is running as pid" `cat ${pidfile}` + else + echo "${name} is not running" + fi +} + +jitsi_videobridge_restart() +{ + echo "Performing restart" + jitsi_videobridge_stop + sleep 5 + jitsi_videobridge_start +} + +run_rc_command "$1" Added: head/net-im/jitsi-videobridge/files/pkg-message.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-im/jitsi-videobridge/files/pkg-message.in Sun Apr 26 00:11:24 2020 (r532991) @@ -0,0 +1,36 @@ +[ +{ type: install + message: <<EOM +Jitsi Video Bridge was installed + +1) Jitsi VideoBridge global configuration file is located at: + + %%ETCDIR%%/jitsi-videobridge.conf + + Values defined there are used by startup script file + +2) Add jitsi_videobridge_enable="YES" to /etc/rc.conf. + +3) Additional jitsi-videobridge properties to control the TCP-related + functionality can be defined at: + + %%ETCDIR%%/sip-communicator.properties + + This file not exists by default + +4) More about jitsi-videobridge properties at: + + https://github.com/jitsi/jitsi-videobridge/blob/master/doc/tcp.md + +5) If you want use jitsi-videobridge on FreeBSD 11.x, please look for apply the + following patch file: + + https://reviews.freebsd.org/D14453 + + jitsi-videobridge rc script use ${name}_env_file funcitonality. It is + available on FreeBSD >= 12.x + +6) Enjoy it +EOM +} +] Added: head/net-im/jitsi-videobridge/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-im/jitsi-videobridge/pkg-descr Sun Apr 26 00:11:24 2020 (r532991) @@ -0,0 +1,5 @@ +Jitsi Videobridge is a WebRTC compatible video router or SFU that lets build +highly scalable video conferencing infrastructure (i.e., up to hundreds of +conferences per server). + +WWW: https://jitsi.org/jitsi-videobridge Added: head/net-im/jitsi-videobridge/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-im/jitsi-videobridge/pkg-plist Sun Apr 26 00:11:24 2020 (r532991) @@ -0,0 +1,4 @@ +@sample %%ETCDIR%%/jitsi-videobridge.conf.sample +%%JAVAJARDIR%%/jitsi-videobridge.jar +%%DATADIR%%/lib/logging.properties +%%DATADIR%%/lib/videobridge.rc
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202004260011.03Q0BOUO087578>