Date: Sun, 26 Apr 2020 00:09:29 +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: r532990 - in head/net-im: . jicofo jicofo/files Message-ID: <202004260009.03Q09TLc086460@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: acm Date: Sun Apr 26 00:09:28 2020 New Revision: 532990 URL: https://svnweb.freebsd.org/changeset/ports/532990 Log: - New port: net-im/jicofo JItsi COnference FOcus is a server side focus component used in Jitsi Meet conferences. WWW: https://github.com/jitsi/jicofo/ Added: head/net-im/jicofo/ head/net-im/jicofo/Makefile (contents, props changed) head/net-im/jicofo/distinfo (contents, props changed) head/net-im/jicofo/files/ head/net-im/jicofo/files/jicofo.in (contents, props changed) head/net-im/jicofo/files/pkg-message.in (contents, props changed) head/net-im/jicofo/pkg-descr (contents, props changed) head/net-im/jicofo/pkg-plist (contents, props changed) Modified: head/net-im/Makefile Modified: head/net-im/Makefile ============================================================================== --- head/net-im/Makefile Sun Apr 26 00:06:32 2020 (r532989) +++ head/net-im/Makefile Sun Apr 26 00:09:28 2020 (r532990) @@ -36,6 +36,7 @@ SUBDIR += jabberd SUBDIR += jarl SUBDIR += jggtrans + SUBDIR += jicofo SUBDIR += jitsi SUBDIR += kaccounts-integration SUBDIR += kaccounts-providers Added: head/net-im/jicofo/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-im/jicofo/Makefile Sun Apr 26 00:09:28 2020 (r532990) @@ -0,0 +1,64 @@ +# $FreeBSD$ + +PORTNAME= jicofo +DISTVERSION= 1.0-555 +CATEGORIES= net-im java + +MAINTAINER= acm@FreeBSD.org +COMMENT= Server side focus component used in Jitsi Meet conferences + +LICENSE= APACHE20 + +BUILD_DEPENDS= ${LOCALBASE}/share/java/maven/bin/mvn:devel/maven + +ONLY_FOR_ARCHS= i386 amd64 + +USE_GITHUB= yes +GH_ACCOUNT= jitsi +GH_PROJECT= jicofo +GH_TAGNAME= ec1b29e +USE_JAVA= yes + +USE_RC_SUBR= ${PORTNAME} +SUB_FILES+= pkg-message +ETCDIR= ${PREFIX}/etc/jitsi/jicofo + +DEV_UPDATE_MODE= no + +.if (${DEV_UPDATE_MODE} == "yes") +post-build: + @cd ${WRKDIR} && ${TAR} czf ${DISTDIR}/${PORTNAME}-${DISTVERSION}-deps${EXTRACT_SUFX} m2 + @${ECHO} "(!!!) Please upload the maven deps archive: ${DISTDIR}/${PORTNAME}-${DISTVERSION}-deps${EXTRACT_SUFX}" +.else +MASTER_SITES+= LOCAL/acm/:maven +DISTFILES+= ${PORTNAME}-${DISTVERSION}-deps${EXTRACT_SUFX}:maven +MAVEN_ARGS= --offline +.endif + +MAVEN_ARGS+= -DskipTests -Dassembly.skipAssembly=false +MAVEN_REPO= -Dmaven.repo.local=${WRKDIR}/m2 + +do-build: + cd ${WRKSRC}; \ + ${SETENV} mvn ${MAVEN_REPO} ${MAVEN_ARGS} package + +do-install: + @${MKDIR} ${STAGEDIR}${ETCDIR} + @${MKDIR} ${STAGEDIR}${DATADIR}/lib + 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=YOURSECRET3"; \ + echo "JVB_XMPP_USER_DOMAIN=auth.jitsi.example.com"; \ + echo "JVB_XMPP_USER_NAME=focus"; \ + echo "JVB_XMPP_USER_SECRET=YOURSECRET3"; \ + echo ""; \ + echo "MAX_MEMORY=3072m"; \ + ) > ${STAGEDIR}${ETCDIR}/${PORTNAME}.conf.sample + + ${INSTALL_DATA} ${WRKSRC}/target/${PORTNAME}-1.1-SNAPSHOT-jar-with-dependencies.jar ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar + +.include <bsd.port.mk> Added: head/net-im/jicofo/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-im/jicofo/distinfo Sun Apr 26 00:09:28 2020 (r532990) @@ -0,0 +1,5 @@ +TIMESTAMP = 1587854975 +SHA256 (jicofo-1.0-555-deps.tar.gz) = 25cb5f8263922415c07f83daf4b4c3d3ff387f0344fda9bfdf4787d4951c4b88 +SIZE (jicofo-1.0-555-deps.tar.gz) = 122309690 +SHA256 (jitsi-jicofo-1.0-555-ec1b29e_GH0.tar.gz) = 6d0222aebdff1d32397d462b97f12c190505e5526fb8a140944192f6685264ca +SIZE (jitsi-jicofo-1.0-555-ec1b29e_GH0.tar.gz) = 291752 Added: head/net-im/jicofo/files/jicofo.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-im/jicofo/files/jicofo.in Sun Apr 26 00:09:28 2020 (r532990) @@ -0,0 +1,87 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: jicofo +# REQUIRE: NETWORKING SERVERS +# KEYWORD: shutdown +# +# Configuration settings for jicofo in /etc/rc.conf: +# +# + +. /etc/rc.subr + +name="jicofo" +rcvar=${name}_enable + +jicofo_env_file="/usr/local/etc/jicofo.conf" +jicofo_jar="%%JAVAJARDIR%%/jicofo.jar" +jicofo_logging_config="%%DATADIR%%/lib/logging.properties" + +load_rc_config "${name}" + +: ${jicofo_enable="NO"} +: ${jicofo_flags=""} + +command="%%LOCALBASE%%/bin/java" +pidfile="/var/run/jicofo.pid" +required_files="${jicofo_env_file} %%LOCALBASE%%/etc/ssl/java.pem" + +start_cmd=${name}_start +stop_cmd=${name}_stop +status_cmd=${name}_status +restart_cmd=${name}_restart + +jicofo_start() +{ + daemon -p ${pidfile} -o /var/log/${name}.log ${command} -Xmx${MAX_MEMORY} \ + -XX:+HeapDumpOnOutOfMemoryError \ + -XX:HeapDumpPath=/tmp \ + -Djava.util.logging.config.file=${jicofo_logging_config} \ + -Dnet.java.sip.communicator.SC_HOME_DIR_LOCATION=%%LOCALBASE%%/etc/jitsi \ + -Dnet.java.sip.communicator.SC_HOME_DIR_NAME=jicofo \ + -Dnet.java.sip.communicator.SC_LOG_DIR_LOCATION=/var/log/ \ + -Djavax.net.ssl.trustStore=%%LOCALBASE%%/etc/ssl/java.pem \ + -cp ${jicofo_jar} \ + org.jitsi.jicofo.Main \ + --host=${JVB_XMPP_HOST} \ + --domain=${JVB_XMPP_DOMAIN} \ + --port=${JVB_XMPP_PORT} \ + --secret=${JVB_XMPP_SECRET} \ + --user_domain=${JVB_XMPP_USER_DOMAIN} \ + --user_name=${JVB_XMPP_USER_NAME} \ + --user_password=${JVB_XMPP_USER_SECRET} ${jicofo_flags} + echo "Started" +} + +jicofo_stop() +{ + if [ -f ${pidfile} ] + then + kill `cat ${pidfile}` + rm ${pidfile} + echo "Stopped" + fi +} + +jicofo_status() +{ + # If running, show pid + if [ -f ${pidfile} ] + then + echo "${name} is running as pid" `cat ${pidfile}` + else + echo "${name} is not running" + fi +} + +jicofo_restart() +{ + echo "Performing restart" + jicofo_stop + sleep 5 + jicofo_start +} + +run_rc_command "$1" Added: head/net-im/jicofo/files/pkg-message.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-im/jicofo/files/pkg-message.in Sun Apr 26 00:09:28 2020 (r532990) @@ -0,0 +1,30 @@ +[ +{ type: install + message: <<EOM +Jitsi Conference Focus was installed + +1) Configuration file is located at: + + %%ETCDIR%%/jicofo.conf + + Values defined there are used by startup script file + +2) Add jicofo_enable="YES" to /etc/rc.conf. + +3) If you are using net-im/prosody with jicofo, do not forget import trusted + certificate file + + # keytool -noprompt -keystore %%LOCALBASE%%/etc/ssl/java.pem -importcert -alias prosody -file /path/to/prosody/auth.jitsi.example.com.crt + +4) If you want use jicofo on FreeBSD 11.x, please look for apply the + following patch file: + + https://reviews.freebsd.org/D14453 + + jicofo rc script use ${name}_env_file functionality. It is + available on FreeBSD >= 12.x + +5) Enjoy it +EOM +} +] Added: head/net-im/jicofo/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-im/jicofo/pkg-descr Sun Apr 26 00:09:28 2020 (r532990) @@ -0,0 +1,4 @@ +JItsi COnference FOcus is a server side focus component used in Jitsi Meet +conferences. + +WWW: https://github.com/jitsi/jicofo/ Added: head/net-im/jicofo/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-im/jicofo/pkg-plist Sun Apr 26 00:09:28 2020 (r532990) @@ -0,0 +1,3 @@ +@sample %%ETCDIR%%/jicofo.conf.sample +%%JAVAJARDIR%%/jicofo.jar +%%DATADIR%%/lib/logging.properties
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202004260009.03Q09TLc086460>