summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorfordprefect2020-04-22 13:30:29 +0200
committerfordprefect2020-04-22 13:30:29 +0200
commit0b748270e74e5f41ea91f31d4f3b0cd85a3bc9e7 (patch)
tree9fd2e586551030b24dab95b64f66fa31edab4ffb
downloadaur-0b748270e74e5f41ea91f31d4f3b0cd85a3bc9e7.tar.gz
created package
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD36
-rw-r--r--config1
-rw-r--r--service13
4 files changed, 71 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..11b6fcb4295
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = jitsi-videobridge-git
+ pkgdesc = Videobridge for Jitsi Meet
+ pkgver = r3045.fdd68a74
+ pkgrel = 1
+ url = https://github.com/jitsi/jitsi-videobridge
+ arch = x86_64
+ license = Apache
+ makedepends = unzip
+ depends = jdk8-openjdk
+ provides = jitsi-videobridge
+ conflicts = jitsi-videobridge
+ backup = etc/jitsi-videobridge/jitsi-videobridge.conf
+ source = jitsi-videobridge::git+https://github.com/jitsi/jitsi-videobridge.git
+ source = service
+ source = config
+ sha256sums = SKIP
+ sha256sums = e2c923b8183d08223df47236581bdd5cae4a96df2eab8826ec661ad7ceb35944
+ sha256sums = 5b185655f1ddfd6003001de47bc7715686182c3991d5e33e8ebd8053559cd5ca
+
+pkgname = jitsi-videobridge-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..cfd17dce547
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+pkgname=jitsi-videobridge-git
+pkgver=r3045.fdd68a74
+pkgrel=1
+pkgdesc="Videobridge for Jitsi Meet"
+arch=("x86_64")
+url="https://github.com/jitsi/jitsi-videobridge"
+license=("Apache")
+depends=("jdk8-openjdk")
+makedepends=("unzip")
+provides=(jitsi-videobridge)
+conflicts=(jitsi-videobridge)
+backup=("etc/jitsi-videobridge/jitsi-videobridge.conf")
+source=("jitsi-videobridge::git+https://github.com/jitsi/jitsi-videobridge.git"
+ service
+ config)
+sha256sums=("SKIP"
+ "e2c923b8183d08223df47236581bdd5cae4a96df2eab8826ec661ad7ceb35944"
+ "5b185655f1ddfd6003001de47bc7715686182c3991d5e33e8ebd8053559cd5ca")
+
+pkgver() {
+ cd "jitsi-videobridge"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "jitsi-videobridge"
+ mvn package -DskipTests -Dassembly.skipAssembly=false
+ unzip -o target/jitsi-videobridge-2.1-SNAPSHOT-archive.zip
+}
+
+package() {
+ install -d "${pkgdir}/opt"
+ cp -R "${srcdir}/jitsi-videobridge/jitsi-videobridge-2.1-SNAPSHOT/" "${pkgdir}/opt/${pkgname}"
+ install -Dm644 service "$pkgdir"/usr/lib/systemd/system/jitsi-videobridge.service
+ install -Dm644 config "$pkgdir"/etc/jitsi-videobridge/jitsi-videobridge.conf
+}
diff --git a/config b/config
new file mode 100644
index 00000000000..26289974fbe
--- /dev/null
+++ b/config
@@ -0,0 +1 @@
+flags="--host=localhost --domain=jitsi.example.com --port=5347 --secret=YOURSECRET1"
diff --git a/service b/service
new file mode 100644
index 00000000000..6fa7352b697
--- /dev/null
+++ b/service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Jitsi Videobridge
+Wants=network-online.target
+After=network-online.target
+
+[Service]
+Type=simple
+EnvironmentFile=/etc/jitsi-videobridge/jitsi-videobridge.conf
+ExecStart=/opt/jitsi-videobridge/jvb.sh ${flags}
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target