[arch-commits] Commit in (7 files)

Sergej Pupykin spupykin at archlinux.org
Thu Jul 4 15:33:40 UTC 2019


    Date: Thursday, July 4, 2019 @ 15:33:39
  Author: spupykin
Revision: 487437

add coturn

Added:
  coturn/
  coturn/repos/
  coturn/trunk/
  coturn/trunk/PKGBUILD
  coturn/trunk/turnserver.service
  coturn/trunk/turnserver.sysusers.d
  coturn/trunk/turnserver.tmpfiles.d

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

Added: coturn/trunk/PKGBUILD
===================================================================
--- coturn/trunk/PKGBUILD	                        (rev 0)
+++ coturn/trunk/PKGBUILD	2019-07-04 15:33:39 UTC (rev 487437)
@@ -0,0 +1,66 @@
+# $Id$
+# 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=5
+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=($url/archive/$pkgver.tar.gz
+        turnserver.service
+        turnserver.sysusers.d
+        turnserver.tmpfiles.d)
+sha512sums=('a5e1aecdab5a7060ffbc73cc8dd294cafa701f2e0d2a827e40901cb6001af5a2c5ecbafdf14662410713818aad0ad259133f0dc9b34730bf7911863e1e255f70'
+            '47af7bbf28f8a5fc674b90d1370026405ccb43623f05e47cf915c594e7e35865f4dce64d2b3001bc609a843a54661d1a1172790153f0b8ba9186db48c42b0024'
+            '32596f741e561c707f69c1ea90adf75c83742906d33c50e1fa5ec0899eeb607d96a48c36fcbb6facb62947beedcace9f6c3fb748c4d67f058bf3f72413766f82'
+            '9d9ef805d793ee49d23e000a66130f30b6c256943f8004ac43f4712c6ecc7dcf82f24a7e77bb1db041ecf714c869769287ea03fe66f3ab4ad6f8f817d389bca5')
+
+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 {} +
+}


Property changes on: coturn/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Added: coturn/trunk/turnserver.service
===================================================================
--- coturn/trunk/turnserver.service	                        (rev 0)
+++ coturn/trunk/turnserver.service	2019-07-04 15:33:39 UTC (rev 487437)
@@ -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

Added: coturn/trunk/turnserver.sysusers.d
===================================================================
--- coturn/trunk/turnserver.sysusers.d	                        (rev 0)
+++ coturn/trunk/turnserver.sysusers.d	2019-07-04 15:33:39 UTC (rev 487437)
@@ -0,0 +1 @@
+u turnserver - "TurnServer user" /etc/turnserver

Added: coturn/trunk/turnserver.tmpfiles.d
===================================================================
--- coturn/trunk/turnserver.tmpfiles.d	                        (rev 0)
+++ coturn/trunk/turnserver.tmpfiles.d	2019-07-04 15:33:39 UTC (rev 487437)
@@ -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