pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/chat/jicofo jicofo: import 2.0.8138



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bd37194039c5
branches:  trunk
changeset: 391051:bd37194039c5
user:      khorben <khorben%pkgsrc.org@localhost>
date:      Tue Jan 03 10:27:40 2023 +0000

description:
jicofo: import 2.0.8138

JItsi COnference FOcus is a server side focus component used in Jitsi Meet
conferences.

Conference focus is mandatory component of Jitsi Meet conferencing system next
to the videobridge. It is responsible for managing media sessions between each
of the participants and the videobridge. Whenever new conference is about to
start an IQ is sent to the component to allocate new focus instance. After that
special focus participant joins Multi User Chat room. It will be creating
Jingle session between Jitsi videobridge and the participant. Although the
session in terms of XMPP is between focus user and participant the media will
flow between participant and the videobridge. That's because focus user will
allocate Colibri channels on the bridge and use them as its own Jingle
transport.

diffstat:

 chat/jicofo/DESCR                             |  13 +++
 chat/jicofo/Makefile                          |  85 +++++++++++++++++++++++
 chat/jicofo/PLIST                             |  97 +++++++++++++++++++++++++++
 chat/jicofo/distinfo                          |   9 ++
 chat/jicofo/patches/patch-resources_jicofo.sh |  12 +++
 5 files changed, 216 insertions(+), 0 deletions(-)

diffs (236 lines):

diff -r 86e357666015 -r bd37194039c5 chat/jicofo/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/jicofo/DESCR Tue Jan 03 10:27:40 2023 +0000
@@ -0,0 +1,13 @@
+JItsi COnference FOcus is a server side focus component used in Jitsi Meet
+conferences.
+
+Conference focus is mandatory component of Jitsi Meet conferencing system next
+to the videobridge. It is responsible for managing media sessions between each
+of the participants and the videobridge. Whenever new conference is about to
+start an IQ is sent to the component to allocate new focus instance. After that
+special focus participant joins Multi User Chat room. It will be creating
+Jingle session between Jitsi videobridge and the participant. Although the
+session in terms of XMPP is between focus user and participant the media will
+flow between participant and the videobridge. That's because focus user will
+allocate Colibri channels on the bridge and use them as its own Jingle
+transport.
diff -r 86e357666015 -r bd37194039c5 chat/jicofo/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/jicofo/Makefile      Tue Jan 03 10:27:40 2023 +0000
@@ -0,0 +1,85 @@
+# $NetBSD: Makefile,v 1.1 2023/01/03 10:27:40 khorben Exp $
+
+.include "../../chat/jitsi-meet/Makefile.common"
+
+GITHUB_PROJECT=        jicofo
+PKGNAME=       ${GITHUB_PROJECT}-${JITSI_MEET_VERSION}
+
+HOMEPAGE=      https://github.com/jitsi/jicofo/
+COMMENT=       Server-side focus component used in Jitsi Meet conferences
+
+DISTINFO_FILE= ${.CURDIR}/../../chat/jicofo/distinfo
+DISTFILES=     ${DEFAULT_DISTFILES}
+DISTFILES+=    jicofo-java-deps-${JITSI_MEET_VERSION}.tar.gz
+SITES.jicofo-java-deps-${JITSI_MEET_VERSION}.tar.gz= \
+               ftp://ftp.NetBSD.org/pub/NetBSD/misc/khorben/
+
+USE_TOOLS+=    bash:run pax:build unzip
+
+USE_JAVA2=     17
+
+TOOL_DEPENDS+= apache-maven-[0-9]*:../../devel/apache-maven
+
+MAVEN_FLAGS+=  -Duser.home=${FAKEHOMEDIR}
+MAVEN_FLAGS+=  -Dmaven.repo.local=${WRKDIR}/deps
+MAVEN_FLAGS+=  --offline
+MAVEN_FLAGS+=  -DskipTests
+MAVEN_FLAGS+=  -Dassembly.skipAssembly=false
+MVN=           mvn ${MAVEN_FLAGS}
+
+REPLACE_BASH=  resources/collect-dump-logs.sh
+REPLACE_BASH+= resources/jicofo.sh
+
+EGDIR=                 share/examples/jicofo
+PKG_SYSCONFSUBDIR=     jitsi/jicofo
+CONF_FILES+=           ${EGDIR}/jicofo.conf \
+                       ${PKG_SYSCONFDIR}/jicofo.conf
+CONF_FILES+=           ${EGDIR}/logging.properties \
+                       ${PKG_SYSCONFDIR}/logging.properties
+
+SUBST_CLASSES+=                java
+SUBST_STAGE.java=      post-configure
+SUBST_FILES.java=      resources/jicofo.sh
+SUBST_SED.java=                -e 's,^exec java,exec ${JAVA_BINPREFIX}-java,'
+
+SUBST_CLASSES+=                logging
+SUBST_STAGE.logging=   post-configure
+SUBST_FILES.logging=   resources/jicofo.sh
+SUBST_SED.logging=     -e 's,$$SCRIPT_DIR/lib/logging\.properties,${PKG_SYSCONFDIR}/logging.properties,'
+
+MAKE_JOBS_SAFE=                no
+
+INSTALLATION_DIRS+=    bin
+INSTALLATION_DIRS+=    ${EGDIR} share/jicofo
+
+.PHONY: create-deps-file
+create-deps-file: build
+       #XXX disable offline mode for maven before using this rule
+       cd ${WRKSRC} && ${MVN} validate
+       cd ${WRKDIR} && \
+               ${PAX} -wz -f jicofo-java-deps-${JITSI_MEET_VERSION}.tar.gz deps
+
+do-configure:
+       cd ${WRKSRC} && ${MVN} versions:set -DnewVersion="${JITSI_MEET_VERSION}"
+
+do-build:
+       cd ${WRKSRC} && ${MVN} package
+
+do-install:
+       ${RM} -rf ${DESTDIR}${PREFIX}/share/jicofo \
+               ${DESTDIR}${PREFIX}/share/jicofo-${JITSI_MEET_VERSION}
+       cd ${DESTDIR}${PREFIX}/share && \
+               ${UNZIP_CMD} ${WRKSRC}/jicofo/target/jicofo-${JITSI_MEET_VERSION}-archive.zip
+       ${MV} ${DESTDIR}${PREFIX}/share/jicofo-${JITSI_MEET_VERSION} \
+               ${DESTDIR}${PREFIX}/share/jicofo
+       ${LN} -sf ../share/jicofo/jicofo.sh \
+               ${DESTDIR}${PREFIX}/bin/jicofo
+       ${INSTALL_DATA} ${WRKSRC}/jicofo-selector/src/main/resources/reference.conf \
+               ${DESTDIR}${PREFIX}/${EGDIR}/jicofo.conf
+       ${INSTALL_DATA} ${WRKSRC}/lib/logging.properties \
+               ${DESTDIR}${PREFIX}/${EGDIR}/logging.properties
+       ${INSTALL_SCRIPT} ${WRKSRC}/resources/collect-dump-logs.sh \
+               ${DESTDIR}${PREFIX}/share/jicofo/collect-dump-logs.sh
+
+.include "../../mk/java-vm.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 86e357666015 -r bd37194039c5 chat/jicofo/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/jicofo/PLIST Tue Jan 03 10:27:40 2023 +0000
@@ -0,0 +1,97 @@
+@comment $NetBSD: PLIST,v 1.1 2023/01/03 10:27:40 khorben Exp $
+bin/jicofo
+share/examples/jicofo/jicofo.conf
+share/examples/jicofo/logging.properties
+share/jicofo/collect-dump-logs.sh
+share/jicofo/jicofo.bat
+share/jicofo/jicofo.jar
+share/jicofo/jicofo.sh
+share/jicofo/lib/agafua-syslog-0.4.jar
+share/jicofo/lib/annotations-23.0.0.jar
+share/jicofo/lib/aopalliance-repackaged-3.0.1.jar
+share/jicofo/lib/cglib-nodep-2.2.jar
+share/jicofo/lib/commons-codec-1.11.jar
+share/jicofo/lib/commons-lang3-3.12.0.jar
+share/jicofo/lib/commons-logging-1.2.jar
+share/jicofo/lib/config-1.4.2.jar
+share/jicofo/lib/gson-2.8.5.jar
+share/jicofo/lib/hk2-api-3.0.1.jar
+share/jicofo/lib/hk2-locator-3.0.1.jar
+share/jicofo/lib/hk2-utils-3.0.1.jar
+share/jicofo/lib/httpclient-4.5.13.jar
+share/jicofo/lib/httpcore-4.4.14.jar
+share/jicofo/lib/jackson-annotations-2.13.0.jar
+share/jicofo/lib/jackson-core-2.13.0.jar
+share/jicofo/lib/jackson-databind-2.13.0.jar
+share/jicofo/lib/jackson-module-jakarta-xmlbind-annotations-2.13.0.jar
+share/jicofo/lib/jakarta.activation-2.0.1.jar
+share/jicofo/lib/jakarta.annotation-api-2.0.0.jar
+share/jicofo/lib/jakarta.inject-api-2.0.0.jar
+share/jicofo/lib/jakarta.validation-api-3.0.0.jar
+share/jicofo/lib/jakarta.ws.rs-api-3.0.0.jar
+share/jicofo/lib/jakarta.xml.bind-api-3.0.1.jar
+share/jicofo/lib/javassist-3.28.0-GA.jar
+share/jicofo/lib/jcl-core-2.8.jar
+share/jicofo/lib/jersey-client-3.0.4.jar
+share/jicofo/lib/jersey-common-3.0.4.jar
+share/jicofo/lib/jersey-container-jetty-http-3.0.4.jar
+share/jicofo/lib/jersey-container-servlet-3.0.4.jar
+share/jicofo/lib/jersey-container-servlet-core-3.0.4.jar
+share/jicofo/lib/jersey-entity-filtering-3.0.4.jar
+share/jicofo/lib/jersey-hk2-3.0.4.jar
+share/jicofo/lib/jersey-media-json-jackson-3.0.4.jar
+share/jicofo/lib/jersey-server-3.0.4.jar
+share/jicofo/lib/jetty-alpn-client-11.0.10.jar
+share/jicofo/lib/jetty-client-11.0.10.jar
+share/jicofo/lib/jetty-http-11.0.10.jar
+share/jicofo/lib/jetty-io-11.0.10.jar
+share/jicofo/lib/jetty-jakarta-servlet-api-5.0.2.jar
+share/jicofo/lib/jetty-proxy-11.0.10.jar
+share/jicofo/lib/jetty-security-11.0.10.jar
+share/jicofo/lib/jetty-server-11.0.10.jar
+share/jicofo/lib/jetty-servlet-11.0.10.jar
+share/jicofo/lib/jetty-servlets-11.0.10.jar
+share/jicofo/lib/jetty-util-11.0.10.jar
+share/jicofo/lib/jicoco-1.1-119-gc527d61.jar
+share/jicofo/lib/jicoco-config-1.1-119-gc527d61.jar
+share/jicofo/lib/jicoco-metrics-1.1-119-gc527d61.jar
+share/jicofo/lib/jicofo-common-${PKGVERSION}.jar
+share/jicofo/lib/jicofo-selector-${PKGVERSION}.jar
+share/jicofo/lib/jitsi-metaconfig-1.0-9-g5e1b624.jar
+share/jicofo/lib/jitsi-utils-1.0-119-ga7b23ff.jar
+share/jicofo/lib/jitsi-xmpp-extensions-1.0-59-g76a5c13.jar
+share/jicofo/lib/jna-5.9.0.jar
+share/jicofo/lib/json-simple-1.1.1.jar
+share/jicofo/lib/jsr305-3.0.2.jar
+share/jicofo/lib/jxmpp-core-1.0.3.jar
+share/jicofo/lib/jxmpp-jid-1.0.3.jar
+share/jicofo/lib/jxmpp-util-cache-1.0.3.jar
+share/jicofo/lib/kotlin-reflect-1.6.21.jar
+share/jicofo/lib/kotlin-stdlib-1.6.21.jar
+share/jicofo/lib/kotlin-stdlib-common-1.6.21.jar
+share/jicofo/lib/kotlin-stdlib-jdk7-1.6.21.jar
+share/jicofo/lib/kotlin-stdlib-jdk8-1.6.21.jar
+share/jicofo/lib/minidns-core-1.0.4.jar
+share/jicofo/lib/object-cloner-0.1.jar
+share/jicofo/lib/objenesis-3.2.jar
+share/jicofo/lib/osgi-resource-locator-1.0.3.jar
+share/jicofo/lib/sentry-5.4.0.jar
+share/jicofo/lib/simpleclient-0.16.0.jar
+share/jicofo/lib/simpleclient_common-0.16.0.jar
+share/jicofo/lib/simpleclient_tracer_common-0.16.0.jar
+share/jicofo/lib/simpleclient_tracer_otel-0.16.0.jar
+share/jicofo/lib/simpleclient_tracer_otel_agent-0.16.0.jar
+share/jicofo/lib/slf4j-api-1.7.32.jar
+share/jicofo/lib/slf4j-jdk14-1.7.32.jar
+share/jicofo/lib/smack-core-4.4.6.jar
+share/jicofo/lib/smack-extensions-4.4.6.jar
+share/jicofo/lib/smack-im-4.4.6.jar
+share/jicofo/lib/smack-java8-4.4.6.jar
+share/jicofo/lib/smack-resolver-javax-4.4.6.jar
+share/jicofo/lib/smack-sasl-javax-4.4.6.jar
+share/jicofo/lib/smack-streammanagement-4.4.6.jar
+share/jicofo/lib/smack-tcp-4.4.6.jar
+share/jicofo/lib/smack-xmlparser-4.4.6.jar
+share/jicofo/lib/smack-xmlparser-stax-4.4.6.jar
+share/jicofo/lib/spotbugs-annotations-4.6.0.jar
+@pkgdir share/examples/jicofo
diff -r 86e357666015 -r bd37194039c5 chat/jicofo/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/jicofo/distinfo      Tue Jan 03 10:27:40 2023 +0000
@@ -0,0 +1,9 @@
+$NetBSD: distinfo,v 1.1 2023/01/03 10:27:40 khorben Exp $
+
+BLAKE2s (jicofo/jicofo-java-deps-2.0.8138.tar.gz) = d06323602159959cb4a87d6d36bc978edb91a02cdc0c249cf254321308d1fa11
+SHA512 (jicofo/jicofo-java-deps-2.0.8138.tar.gz) = 0ebf0fd98dd24c143d301efd154eb1eac65a337125689917eb734d70322769fba2f888aee8e442498814de7c07adbb0a1a1426bfb8ebd4f7c7566900fa826667
+Size (jicofo/jicofo-java-deps-2.0.8138.tar.gz) = 164169960 bytes
+BLAKE2s (jicofo/jitsi-meet_8138.tar.gz) = d0df1114b51a1dbaf7b3049cb17240867501f9a9eac2e133e5ed2d0a09a046d2
+SHA512 (jicofo/jitsi-meet_8138.tar.gz) = 76464feba02c5ecd86e45e02bc703a39d0a70bb2080e539fa7177ab170bd7d84f9489040e2928af79c2b141900dc545db6f1bd47b9e34774b6bde0971296432b
+Size (jicofo/jitsi-meet_8138.tar.gz) = 237910 bytes
+SHA1 (patch-resources_jicofo.sh) = 986445ede72ec0333bb56a52bc3c57030eca8383
diff -r 86e357666015 -r bd37194039c5 chat/jicofo/patches/patch-resources_jicofo.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/jicofo/patches/patch-resources_jicofo.sh     Tue Jan 03 10:27:40 2023 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-resources_jicofo.sh,v 1.1 2023/01/03 10:27:40 khorben Exp $
+
+Fix quoting for additional command-line parameters
+
+--- resources/jicofo.sh.orig   2021-11-10 19:11:46.070570369 +0000
++++ resources/jicofo.sh
+@@ -29,4 +29,4 @@ fi
+ 
+ if [ -z "$JICOFO_MAX_MEMORY" ]; then JICOFO_MAX_MEMORY=3072m; fi
+ 
+-exec java -Xmx$JICOFO_MAX_MEMORY -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp -Djdk.tls.ephemeralDHKeySize=2048 $LOGGING_CONFIG_PARAM $JAVA_SYS_PROPS -cp $cp $mainClass $@
++exec java -Xmx$JICOFO_MAX_MEMORY -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp -Djdk.tls.ephemeralDHKeySize=2048 $LOGGING_CONFIG_PARAM $JAVA_SYS_PROPS -cp $cp $mainClass "$@"



Home | Main Index | Thread Index | Old Index