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

Sergej Pupykin spupykin at archlinux.org
Thu Jul 4 15:35:37 UTC 2019


    Date: Thursday, July 4, 2019 @ 15:35:37
  Author: spupykin
Revision: 487438

archrelease: copy trunk to community-x86_64

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

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

Copied: coturn/repos/community-x86_64/PKGBUILD (from rev 487437, coturn/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2019-07-04 15:35:37 UTC (rev 487438)
@@ -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 {} +
+}

Copied: coturn/repos/community-x86_64/turnserver.service (from rev 487437, coturn/trunk/turnserver.service)
===================================================================
--- community-x86_64/turnserver.service	                        (rev 0)
+++ community-x86_64/turnserver.service	2019-07-04 15:35:37 UTC (rev 487438)
@@ -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-x86_64/turnserver.sysusers.d (from rev 487437, coturn/trunk/turnserver.sysusers.d)
===================================================================
--- community-x86_64/turnserver.sysusers.d	                        (rev 0)
+++ community-x86_64/turnserver.sysusers.d	2019-07-04 15:35:37 UTC (rev 487438)
@@ -0,0 +1 @@
+u turnserver - "TurnServer user" /etc/turnserver

Copied: coturn/repos/community-x86_64/turnserver.tmpfiles.d (from rev 487437, coturn/trunk/turnserver.tmpfiles.d)
===================================================================
--- community-x86_64/turnserver.tmpfiles.d	                        (rev 0)
+++ community-x86_64/turnserver.tmpfiles.d	2019-07-04 15:35:37 UTC (rev 487438)
@@ -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