Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 May 2020 22:45:56 +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: r534106 - in head/net-im/jitsi-videobridge: . files
Message-ID:  <202005052245.045Mju1V056535@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: acm
Date: Tue May  5 22:45:56 2020
New Revision: 534106
URL: https://svnweb.freebsd.org/changeset/ports/534106

Log:
  - Add additional instruction lines about jitis-videobridge configuration into
    pkg-message file
  - Few rc script modifications
  - Bump PORTREVISION

Modified:
  head/net-im/jitsi-videobridge/Makefile
  head/net-im/jitsi-videobridge/files/jitsi-videobridge.in
  head/net-im/jitsi-videobridge/files/pkg-message.in

Modified: head/net-im/jitsi-videobridge/Makefile
==============================================================================
--- head/net-im/jitsi-videobridge/Makefile	Tue May  5 22:43:06 2020	(r534105)
+++ head/net-im/jitsi-videobridge/Makefile	Tue May  5 22:45:56 2020	(r534106)
@@ -2,7 +2,7 @@
 
 PORTNAME=	jitsi
 DISTVERSION=	2.1-183
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	net-im java
 PKGNAMESUFFIX=	-videobridge
 
@@ -24,6 +24,7 @@ DATADIR=	${JAVASHAREDIR}/${PORTNAME}${PKGNAMESUFFIX}-$
 USE_RC_SUBR=	${PORTNAME}${PKGNAMESUFFIX}
 
 SUB_FILES+=	pkg-message
+SUB_LIST+=	JAVA=${JAVA}
 ETCDIR=		${PREFIX}/etc/jitsi/videobridge
 
 DEV_UPDATE_MODE=        no

Modified: head/net-im/jitsi-videobridge/files/jitsi-videobridge.in
==============================================================================
--- head/net-im/jitsi-videobridge/files/jitsi-videobridge.in	Tue May  5 22:43:06 2020	(r534105)
+++ head/net-im/jitsi-videobridge/files/jitsi-videobridge.in	Tue May  5 22:45:56 2020	(r534106)
@@ -8,6 +8,8 @@
 #
 # Configuration settings for jitsi-videobridge in /etc/rc.conf:
 #
+# jitsi_videobridge_enable:	run jitsi_videobridge server (default=NO)
+# jitsi_videobridge_flags:	additional flags for jitsi_videobridge server (default="")
 #
 
 . /etc/rc.subr
@@ -15,7 +17,7 @@
 name="jitsi_videobridge"
 rcvar=${name}_enable
 
-jitsi_videobridge_env_file="%%LOCALBASE%%/etc/jitsi/videobridge/jitsi-videobridge.conf"
+jitsi_videobridge_env_file="%%ETCDIR%%/jitsi-videobridge.conf"
 jitsi_videobridge_jar="%%JAVAJARDIR%%/jitsi-videobridge.jar"
 jitsi_videobridge_logging_config="%%DATADIR%%/lib/logging.properties"
 
@@ -24,7 +26,7 @@ load_rc_config "${name}"
 : ${jitsi_videobridge_enable="NO"}
 : ${jitsi_videobridge_flags=""}
 
-command="%%LOCALBASE%%/bin/java"
+command="%%JAVA%%"
 
 pidfile="/var/run/jitsi-videobridge.pid"
 required_files="${jitsi_videobridge_env_file}"
@@ -35,8 +37,10 @@ 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 \
+	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 \
@@ -48,7 +52,7 @@ jitsi_videobridge_start()
                 --domain=${JVB_XMPP_DOMAIN} \
                 --port=${JVB_XMPP_PORT} \
                 --secret=${JVB_XMPP_SECRET} ${jitsi_videobridge_flags}
-		echo "Started"
+                echo "Started"
 }
 
 jitsi_videobridge_stop()

Modified: head/net-im/jitsi-videobridge/files/pkg-message.in
==============================================================================
--- head/net-im/jitsi-videobridge/files/pkg-message.in	Tue May  5 22:43:06 2020	(r534105)
+++ head/net-im/jitsi-videobridge/files/pkg-message.in	Tue May  5 22:45:56 2020	(r534106)
@@ -3,12 +3,10 @@
   message: <<EOM
 Jitsi Video Bridge was installed
 
-1) Jitsi VideoBridge global configuration file is located at:
+1) The configuration file is used by the startup rcfile and 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 
@@ -18,19 +16,28 @@ Jitsi Video Bridge was installed
 
    This file not exists by default
 
-4) More about jitsi-videobridge properties at:
+4) If jitsi-videobridge server is running behind NAT, you must add the 
+   following lines to sip-comunnicator.properties file
 
+   org.ice4j.ice.harvest.NAT_HARVESTER_LOCAL_ADDRESS=Local_IP_Address
+   org.ice4j.ice.harvest.NAT_HARVESTER_PUBLIC_ADDRESS=Public_IP_Address
+
+   Also, you must redirect TCP/4443 and UDP/10000 ports to jitsi-videobridge 
+   server
+
+5) 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
+6) If you want use jitsi-videobridge on FreeBSD 11.x, please apply the
    following patch file:
 
    https://reviews.freebsd.org/D14453
 
-   jitsi-videobridge rc script use ${name}_env_file funcitonality. It is 
+   jitsi-videobridge rc script use ${name}_env_file funcitonality, which is only
    available on FreeBSD >= 12.x
 
-6) Enjoy it
+7) Enjoy it
 EOM
 }
 ]



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202005052245.045Mju1V056535>