diff options
author | Vianney le Clément de Saint-Marcq | 2020-03-14 17:01:18 +0100 |
---|---|---|
committer | Vianney le Clément de Saint-Marcq | 2020-03-14 17:01:18 +0100 |
commit | bf2b42cbe5939b4763f3842f148da704d2946313 (patch) | |
tree | f6ff5a65bdeb1b5cfdc2e119c4b5ec26570df188 | |
download | aur-bf2b42cbe5939b4763f3842f148da704d2946313.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 32 | ||||
-rw-r--r-- | PKGBUILD | 54 | ||||
-rw-r--r-- | config | 22 | ||||
-rw-r--r-- | jitsi-videobridge.service | 25 | ||||
-rw-r--r-- | sip-communicator.properties | 2 | ||||
-rw-r--r-- | sysusers.conf | 2 | ||||
-rw-r--r-- | tmpfiles.conf | 1 |
7 files changed, 138 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..26716e1cd217 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,32 @@ +pkgbase = jitsi-videobridge-bin + pkgdesc = WebRTC compatible Selective Forwarding Unit (SFU) + pkgver = 1126 + pkgrel = 1 + url = https://jitsi.org/jitsi-videobridge/ + arch = x86_64 + license = Apache + makedepends = tar + depends = java-runtime-headless + provides = jitsi-videobridge + conflicts = jitsi-videobridge + options = !strip + backup = etc/jitsi/videobridge/config + backup = etc/jitsi/videobridge/sip-communicator.properties + backup = etc/jitsi/videobridge/callstats-java-sdk.properties + backup = etc/jitsi/videobridge/log4j2.xml + backup = etc/jitsi/videobridge/logging.properties + source = https://download.jitsi.org/stable/jitsi-videobridge_1126-1_amd64.deb + source = jitsi-videobridge.service + source = sysusers.conf + source = tmpfiles.conf + source = config + source = sip-communicator.properties + sha256sums = 19fa3f9a3d8989b5619c5c69ad5ac60f7390881733670547bfa638f29add495b + sha256sums = 076a945d5b188e2800d8f0d7f3024de1bf272710026fd48c9f2bbd6c39199c23 + sha256sums = 5b47b031d7a1dec536d3fc53e71d971b1052ea2e78e1060b404a792211363515 + sha256sums = 885923de1718b757826596aaec8e58025ae40ed622bad4b5f43b12ab975c86a2 + sha256sums = 0ede8fcca8600afa2195fdc839639735cb9ab2fd4ae6ee9b03d22d1ba129b8f7 + sha256sums = 8b16b8ef0745677421123812c8d015924dfdec4fd48dcc17842dfc3d2bfe68b2 + +pkgname = jitsi-videobridge-bin + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7f298e90c0a2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,54 @@ +_pkgname=jitsi-videobridge +pkgname=${_pkgname}-bin +pkgver=1126 +pkgrel=1 +_debrel=1 +pkgdesc="WebRTC compatible Selective Forwarding Unit (SFU)" +arch=('x86_64') +url="https://jitsi.org/jitsi-videobridge/" +license=('Apache') +depends=('java-runtime-headless') +conflicts=(${_pkgname}) +provides=(${_pkgname}) +makedepends=('tar') +options=('!strip') +backup=('etc/jitsi/videobridge/config' + 'etc/jitsi/videobridge/sip-communicator.properties' + 'etc/jitsi/videobridge/callstats-java-sdk.properties' + 'etc/jitsi/videobridge/log4j2.xml' + 'etc/jitsi/videobridge/logging.properties') + +source=("https://download.jitsi.org/stable/${_pkgname}_${pkgver}-${_debrel}_amd64.deb" + "${_pkgname}.service" + 'sysusers.conf' + 'tmpfiles.conf' + 'config' + 'sip-communicator.properties') +sha256sums=('19fa3f9a3d8989b5619c5c69ad5ac60f7390881733670547bfa638f29add495b' + '076a945d5b188e2800d8f0d7f3024de1bf272710026fd48c9f2bbd6c39199c23' + '5b47b031d7a1dec536d3fc53e71d971b1052ea2e78e1060b404a792211363515' + '885923de1718b757826596aaec8e58025ae40ed622bad4b5f43b12ab975c86a2' + '0ede8fcca8600afa2195fdc839639735cb9ab2fd4ae6ee9b03d22d1ba129b8f7' + '8b16b8ef0745677421123812c8d015924dfdec4fd48dcc17842dfc3d2bfe68b2') + +package() { + cd "${srcdir}" + tar -xJvf data.tar.xz -C "${pkgdir}" + + install -d "${pkgdir}/usr/lib" + rm -r "${pkgdir}/etc/init.d" + rm -r "${pkgdir}/etc/logrotate.d" + mv "${pkgdir}/etc/sysctl.d" "${pkgdir}/usr/lib/sysctl.d" + rm -r "${pkgdir}/lib" + rm -r "${pkgdir}/usr/share/doc" + + sed -i "s@/var/log/jitsi@/var/log/jitsi-videobridge@" "${pkgdir}/etc/jitsi/videobridge/log4j2.xml" + + install -Dm644 "${_pkgname}.service" "${pkgdir}/usr/lib/systemd/system/${_pkgname}.service" + install -Dm644 'sysusers.conf' "${pkgdir}/usr/lib/sysusers.d/${_pkgname}.conf" + install -Dm644 'tmpfiles.conf' "${pkgdir}/usr/lib/tmpfiles.d/${_pkgname}.conf" + install -Dm644 'config' "${pkgdir}/etc/jitsi/videobridge/config" + install -Dm644 'sip-communicator.properties' "${pkgdir}/etc/jitsi/videobridge/sip-communicator.properties" +} + +# vim: set ts=2 sw=2 et: diff --git a/config b/config new file mode 100644 index 000000000000..b93f882a817f --- /dev/null +++ b/config @@ -0,0 +1,22 @@ +# Jitsi Videobridge settings + +# sets the XMPP domain (default: none) +JVB_HOSTNAME= + +# sets the hostname of the XMPP server (default: domain if set, localhost otherwise) +JVB_HOST=localhost + +# sets the port of the XMPP server (default: 5275) +JVB_PORT=5347 + +# sets the shared secret used to authenticate to the XMPP server +JVB_SECRET= + +# extra options to pass to the JVB daemon +JVB_OPTS="" + +# adds java system props that are passed to jvb (default are for home and logging config file) +JAVA_SYS_PROPS="-Dnet.java.sip.communicator.SC_HOME_DIR_LOCATION=/etc/jitsi\ + -Dnet.java.sip.communicator.SC_HOME_DIR_NAME=videobridge\ + -Dnet.java.sip.communicator.SC_LOG_DIR_LOCATION=/var/log/jitsi-videobridge\ + -Djava.util.logging.config.file=/etc/jitsi/videobridge/logging.properties" diff --git a/jitsi-videobridge.service b/jitsi-videobridge.service new file mode 100644 index 000000000000..302e347b03d8 --- /dev/null +++ b/jitsi-videobridge.service @@ -0,0 +1,25 @@ +[Unit] +Description=Jitsi Videobridge +After=network.target + +[Service] +EnvironmentFile=/etc/jitsi/videobridge/config +User=jitsi-videobridge +ExecStart=/bin/bash /usr/share/jitsi-videobridge/jvb.sh --host=${JVB_HOST} --domain=${JVB_HOSTNAME} --port=${JVB_PORT} --secret=${JVB_SECRET} ${JVB_OPTS} +WorkingDirectory=~ +StateDirectory=jitsi-videobridge +StateDirectoryMode=0750 +LogsDirectory=jitsi-videobridge +LogsDirectoryMode=0750 + +# Hardening +NoNewPrivileges=yes +PrivateTmp=yes +PrivateDevices=yes +ProtectHome=yes +ProtectKernelTunables=yes +ProtectControlGroups=yes +ProtectSystem=strict + +[Install] +WantedBy=multi-user.target diff --git a/sip-communicator.properties b/sip-communicator.properties new file mode 100644 index 000000000000..6e75da048a69 --- /dev/null +++ b/sip-communicator.properties @@ -0,0 +1,2 @@ +# Replace JVB_HOSTNAME by the value in config +#org.jitsi.videobridge.AUTHORIZED_SOURCE_REGEXP=focus@auth.JVB_HOSTNAME/.* diff --git a/sysusers.conf b/sysusers.conf new file mode 100644 index 000000000000..ea7619bbb577 --- /dev/null +++ b/sysusers.conf @@ -0,0 +1,2 @@ +g jitsi +u jitsi-videobridge -:jitsi - /var/lib/jitsi-videobridge diff --git a/tmpfiles.conf b/tmpfiles.conf new file mode 100644 index 000000000000..bfbcfbccc16f --- /dev/null +++ b/tmpfiles.conf @@ -0,0 +1 @@ +z /etc/jitsi/videobridge 0750 root jitsi |