summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorC0rn3j2020-03-16 19:33:55 +0100
committerC0rn3j2020-03-16 19:33:55 +0100
commitce68de7d7395b32864755b5d8e4a8fad02532dcd (patch)
tree9f8cf8f268d412f60e4fca96ec2984bb93d3c438
parent22a0835c692d26d3144cefc01dca60efeef99d15 (diff)
downloadaur-ce68de7d7395b32864755b5d8e4a8fad02532dcd.tar.gz
fix deps, add service
-rw-r--r--.SRCINFO10
-rw-r--r--.gitignore2
-rw-r--r--PKGBUILD20
-rw-r--r--config1
-rw-r--r--service13
5 files changed, 38 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 86bd4a41fc7..fba1beb542d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,15 +1,23 @@
pkgbase = jicofo-git
pkgdesc = JItsi Meet COnference FOcus
pkgver = r1.938738f
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/jitsi/jicofo
arch = x86_64
license = Apache
+ makedepends = git
depends = java-runtime-headless
depends = maven
depends = unzip
+ provides = jicofo
+ conflicts = jicofo
+ backup = etc/jicofo/jicofo.conf
source = jicofo-git::git+https://github.com/jitsi/jicofo
+ source = service
+ source = config
sha256sums = SKIP
+ sha256sums = c1e17cf1de2274d375d08afee1853e1314d74763ec600b7bba740cfb7df09258
+ sha256sums = fea884f52b5c91b7514212d989fae36fd2113967c2617fae1b686ac6c774a7f8
pkgname = jicofo-git
diff --git a/.gitignore b/.gitignore
index e4f9ba3007c..aaca6fbbadd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,5 @@
!.SRCINFO
!PKGBUILD
!.gitignore
+!service
+!config
diff --git a/PKGBUILD b/PKGBUILD
index 7dc9490c139..de64b9bcad4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Martin Rys <rys.pw/#contact_me>
pkgname=jicofo-git
pkgver=r1.938738f
-pkgrel=1
+pkgrel=2
epoch=
pkgdesc="JItsi Meet COnference FOcus"
arch=("x86_64")
@@ -9,19 +9,23 @@ url="https://github.com/jitsi/jicofo"
license=("Apache")
groups=()
depends=("java-runtime-headless" "maven" "unzip")
-makedepends=()
+makedepends=("git")
checkdepends=()
optdepends=()
-provides=()
-conflicts=()
+provides=("jicofo")
+conflicts=("jicofo")
replaces=()
-backup=()
+backup=("etc/jicofo/jicofo.conf")
options=()
install=
changelog=
-source=($pkgname::git+https://github.com/jitsi/jicofo)
+source=($pkgname::git+https://github.com/jitsi/jicofo
+ service
+ config)
noextract=()
-sha256sums=("SKIP")
+sha256sums=("SKIP"
+ "c1e17cf1de2274d375d08afee1853e1314d74763ec600b7bba740cfb7df09258"
+ "fea884f52b5c91b7514212d989fae36fd2113967c2617fae1b686ac6c774a7f8")
validpgpkeys=()
build() {
@@ -33,4 +37,6 @@ build() {
package() {
install -d "${pkgdir}/opt"
cp -R "${srcdir}/jicofo-git/jicofo-1.1-SNAPSHOT/" "${pkgdir}/opt/jicofo"
+ install -Dm644 service "$pkgdir"/usr/lib/systemd/system/jicofo.service
+ install -Dm644 config "$pkgdir"/etc/jicofo/jicofo.conf
}
diff --git a/config b/config
new file mode 100644
index 00000000000..de0b6edd418
--- /dev/null
+++ b/config
@@ -0,0 +1 @@
+flags="--host=localhost --domain=jitsi.example.com --secret=YOURSECRET2 --user_domain=auth.jitsi.example.com --user_name=focus --user_password=YOURSECRET3"
diff --git a/service b/service
new file mode 100644
index 00000000000..902fd8b5995
--- /dev/null
+++ b/service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Jicofo
+Wants=network-online.target
+After=network-online.target
+
+[Service]
+Type=simple
+EnvironmentFile=/etc/jicofo/jicofo.conf
+ExecStart=/opt/jicofo/jicofo.sh ${flags}
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target