[arch-commits] Commit in coturn/repos (5 files)

Antonio Rojas arojas at archlinux.org
Fri Jan 31 22:24:06 UTC 2020


    Date: Friday, January 31, 2020 @ 22:24:06
  Author: arojas
Revision: 560857

archrelease: copy trunk to community-staging-x86_64

Added:
  coturn/repos/community-staging-x86_64/
  coturn/repos/community-staging-x86_64/PKGBUILD
    (from rev 560856, coturn/trunk/PKGBUILD)
  coturn/repos/community-staging-x86_64/turnserver.service
    (from rev 560856, coturn/trunk/turnserver.service)
  coturn/repos/community-staging-x86_64/turnserver.sysusers.d
    (from rev 560856, coturn/trunk/turnserver.sysusers.d)
  coturn/repos/community-staging-x86_64/turnserver.tmpfiles.d
    (from rev 560856, coturn/trunk/turnserver.tmpfiles.d)

-----------------------+
 PKGBUILD              |   65 ++++++++++++++++++++++++++++++++++++++++++++++++
 turnserver.service    |   11 ++++++++
 turnserver.sysusers.d |    1 
 turnserver.tmpfiles.d |    3 ++
 4 files changed, 80 insertions(+)

Copied: coturn/repos/community-staging-x86_64/PKGBUILD (from rev 560856, coturn/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-01-31 22:24:06 UTC (rev 560857)
@@ -0,0 +1,65 @@
+# Maintainer: Sergej Pupykin <arch+pub at sergej.pp.ru>
+# Previous Maintainer: Jean Lucas <jean at 4ray.co>
+# Contributor: Vladimir Tsanev <tsachev at gmail.com>
+# Contributor: MoeRT09 <https://aur.archlinux.org/account/MoeRT09>
+# Contributor: jlkon13 <internet at devpi.de>
+
+pkgname=coturn
+pkgver=4.5.1.1
+pkgrel=7
+pkgdesc='Open-source implementation of TURN and STUN server'
+arch=(x86_64)
+url=https://github.com/coturn/coturn
+license=(BSD)
+depends=(libevent postgresql-libs libmariadbclient hiredis sqlite)
+backup=(etc/turnserver/turnserver.conf)
+source=($pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz
+        turnserver.service
+        turnserver.sysusers.d
+        turnserver.tmpfiles.d)
+sha256sums=('8eabe4c241ad9a74655d8516c69b1fa3275e020e7f7fca50a6cb822809e7c220'
+            'b6d4007e898e59ed280d665fc3f995cd41c0a2363ddea87d75f80be6398cad19'
+            '92e51ecd664ab53031baa0aeee615fa7c4e73f79c5a3ebc49ac8e0919e4d23fd'
+            '3b6ca82bb420404098e4b8563c246c450571f403e8f1b5acf3256f2b7c042f21')
+
+build() {
+  cd coturn-$pkgver
+  ./configure \
+    --prefix=/usr \
+    --manprefix=/usr/share \
+    --examplesdir=/usr/share/turnserver/examples \
+    --disable-rpath
+  make
+}
+
+check() {
+  cd coturn-$pkgver
+  make check
+}
+
+package() {
+  install -Dm 644 turnserver.service -t "$pkgdir"/usr/lib/systemd/system
+  install -Dm 644 turnserver.sysusers.d "$pkgdir"/usr/lib/sysusers.d/turnserver.conf
+  install -Dm 644 turnserver.tmpfiles.d "$pkgdir"/usr/lib/tmpfiles.d/turnserver.conf
+
+  cd coturn-$pkgver
+
+  make DESTDIR="$pkgdir" install
+  install -Dm 644 LICENSE -t "$pkgdir"/usr/share/licenses/coturn
+
+  cd "$pkgdir"
+
+  # Create needed directories
+  mkdir -p {etc/turnserver,var/log/turnserver}
+
+  # Use Arch-specific directories in config
+  mv {usr/etc/turnserver.conf.default,etc/turnserver/turnserver.conf}
+  sed \
+    -e '/^#log-file=\/var\/tmp\/turn.log$/c log-file=\/var\/log\/turnserver\/turn.log' \
+    -e '/^#pidfile="\/var\/run\/turnserver.pid"$/c pidfile=\/var\/run\/turnserver\/turnserver.pid' \
+    -i etc/turnserver/turnserver.conf
+  rmdir usr/etc
+
+  # Remove unneeded executable bits
+  find {etc,usr/include,usr/lib,usr/share,var} -type f ! -name '*.sh' ! -name '*.pl' -exec chmod 644 {} +
+}

Copied: coturn/repos/community-staging-x86_64/turnserver.service (from rev 560856, coturn/trunk/turnserver.service)
===================================================================
--- community-staging-x86_64/turnserver.service	                        (rev 0)
+++ community-staging-x86_64/turnserver.service	2020-01-31 22:24:06 UTC (rev 560857)
@@ -0,0 +1,11 @@
+[Unit]
+Description=STUN and TURN relay server for VoIP and WebRTC
+After=network.target
+
+[Service]
+User=turnserver
+Type=forking
+ExecStart=/usr/bin/turnserver -c /etc/turnserver/turnserver.conf -o -v
+
+[Install]
+WantedBy=multi-user.target

Copied: coturn/repos/community-staging-x86_64/turnserver.sysusers.d (from rev 560856, coturn/trunk/turnserver.sysusers.d)
===================================================================
--- community-staging-x86_64/turnserver.sysusers.d	                        (rev 0)
+++ community-staging-x86_64/turnserver.sysusers.d	2020-01-31 22:24:06 UTC (rev 560857)
@@ -0,0 +1 @@
+u turnserver - "TurnServer user" /etc/turnserver

Copied: coturn/repos/community-staging-x86_64/turnserver.tmpfiles.d (from rev 560856, coturn/trunk/turnserver.tmpfiles.d)
===================================================================
--- community-staging-x86_64/turnserver.tmpfiles.d	                        (rev 0)
+++ community-staging-x86_64/turnserver.tmpfiles.d	2020-01-31 22:24:06 UTC (rev 560857)
@@ -0,0 +1,3 @@
+d /etc/turnserver 0700 turnserver turnserver
+z /etc/turnserver/turnserver.conf 0600 turnserver turnserver
+d /run/turnserver 0700 turnserver turnserver



More information about the arch-commits mailing list