Date: Thursday, November 17, 2022 @ 15:27:34
Author: blakkheim
Revision: 1349340
archrelease: copy trunk to community-staging-x86_64
Added:
coturn/repos/community-staging-x86_64/
coturn/repos/community-staging-x86_64/PKGBUILD
(from rev 1349339, coturn/trunk/PKGBUILD)
coturn/repos/community-staging-x86_64/turnserver.service
(from rev 1349339, coturn/trunk/turnserver.service)
coturn/repos/community-staging-x86_64/turnserver.sysusers.d
(from rev 1349339, coturn/trunk/turnserver.sysusers.d)
coturn/repos/community-staging-x86_64/turnserver.tmpfiles.d
(from rev 1349339, coturn/trunk/turnserver.tmpfiles.d)
-----------------------+
PKGBUILD | 74 ++++++++++++++++++++++++++++++++++++++++++++++++
turnserver.service | 16 ++++++++++
turnserver.sysusers.d | 1
turnserver.tmpfiles.d | 2 +
4 files changed, 93 insertions(+)
Copied: coturn/repos/community-staging-x86_64/PKGBUILD (from rev 1349339,
coturn/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2022-11-17 15:27:34 UTC (rev 1349340)
@@ -0,0 +1,74 @@
+# Maintainer: Sergej Pupykin <[email protected]>
+# Previous Maintainer: Jean Lucas <[email protected]>
+# Contributor: Vladimir Tsanev <[email protected]>
+# Contributor: MoeRT09 <https://aur.archlinux.org/account/MoeRT09>
+# Contributor: jlkon13 <[email protected]>
+
+pkgname=coturn
+pkgver=4.6.0
+pkgrel=3
+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
+
coturn-openssl3.patch::https://github.com/coturn/coturn/commit/4ce784a8781ab086c150e2b9f5641b1a37fd9b31.patch
+ turnserver.service
+ turnserver.sysusers.d
+ turnserver.tmpfiles.d)
+sha256sums=('42206be7696014920dbe0ce309c602283ba71275eff51062e5456370fbacb863'
+ '97ffe32d53491ba11e13a086ad497f222ed4d5759eff78ab3001fd3e8068e24e'
+ 'd625a21c96c34adeb74650892e84ee9e0b5c6774ee30e386218ef84d986b39c6'
+ '92e51ecd664ab53031baa0aeee615fa7c4e73f79c5a3ebc49ac8e0919e4d23fd'
+ 'd765d14ff3a6527498257e4dc9e76231742cd41d8fe658004e171b8937db6a75')
+
+prepare() {
+ cd coturn-$pkgver
+ patch -Np1 -i ../coturn-openssl3.patch
+}
+
+build() {
+ cd coturn-$pkgver
+ export CFLAGS="$CFLAGS -ffat-lto-objects"
+ ./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
+ ln -s turnserver.service "$pkgdir"/usr/lib/systemd/system/coturn.service
+
+ cd coturn-$pkgver
+
+ make DESTDIR="$pkgdir" install
+ install -Dm 644 LICENSE -t "$pkgdir"/usr/share/licenses/coturn
+
+ cd "$pkgdir"
+
+ # Create needed directories
+ install -dm 700 "$pkgdir"/etc/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=\/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
1349339, coturn/trunk/turnserver.service)
===================================================================
--- community-staging-x86_64/turnserver.service (rev 0)
+++ community-staging-x86_64/turnserver.service 2022-11-17 15:27:34 UTC (rev
1349340)
@@ -0,0 +1,16 @@
+[Unit]
+Description=STUN and TURN relay server for VoIP and WebRTC
+After=network-online.target
+After=remote-fs.target
+Wants=network-online.target
+
+[Service]
+User=turnserver
+Type=forking
+ExecStart=/usr/bin/turnserver -c /etc/turnserver/turnserver.conf -o -v
+RuntimeDirectory=turnserver
+LogsDirectory=turnserver
+RuntimeDirectoryMode=0700
+
+[Install]
+WantedBy=multi-user.target
Copied: coturn/repos/community-staging-x86_64/turnserver.sysusers.d (from rev
1349339, coturn/trunk/turnserver.sysusers.d)
===================================================================
--- community-staging-x86_64/turnserver.sysusers.d
(rev 0)
+++ community-staging-x86_64/turnserver.sysusers.d 2022-11-17 15:27:34 UTC
(rev 1349340)
@@ -0,0 +1 @@
+u turnserver - "TurnServer user" /etc/turnserver
Copied: coturn/repos/community-staging-x86_64/turnserver.tmpfiles.d (from rev
1349339, coturn/trunk/turnserver.tmpfiles.d)
===================================================================
--- community-staging-x86_64/turnserver.tmpfiles.d
(rev 0)
+++ community-staging-x86_64/turnserver.tmpfiles.d 2022-11-17 15:27:34 UTC
(rev 1349340)
@@ -0,0 +1,2 @@
+d /etc/turnserver 0700 turnserver turnserver
+Z /etc/turnserver/turnserver.conf 0600 turnserver turnserver