diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-03-03 03:39:05 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-03-03 03:39:05 +0000 |
commit | f0127fa225ad83116fabd5f7d9df4c92cd23f6f1 (patch) | |
tree | d99dfac9224fe3e070b5516f32d155d1b729c7cc /pcr | |
parent | 20baa30c3c0e442a770f2906d12784ab7ef719ec (diff) |
Mon Mar 3 03:35:30 UTC 2014
Diffstat (limited to 'pcr')
-rw-r--r-- | pcr/command-not-found/PKGBUILD | 8 | ||||
-rw-r--r-- | pcr/hiredis/ChangeLog | 10 | ||||
-rw-r--r-- | pcr/hiredis/PKGBUILD | 46 | ||||
-rw-r--r-- | pcr/hiredis/hiredis-fix-tests.patch | 11 | ||||
-rw-r--r-- | pcr/nginx-passenger/PKGBUILD | 113 | ||||
-rw-r--r-- | pcr/nginx-passenger/logrotate | 9 | ||||
-rw-r--r-- | pcr/nginx-passenger/nginx.install | 17 | ||||
-rw-r--r-- | pcr/nginx-passenger/service | 14 | ||||
-rw-r--r-- | pcr/qt-at-spi-git/PKGBUILD | 11 | ||||
-rw-r--r-- | pcr/rfc5766-turn-server/ChangeLog | 86 | ||||
-rw-r--r-- | pcr/rfc5766-turn-server/PKGBUILD | 71 | ||||
-rw-r--r-- | pcr/rfc5766-turn-server/stun.service | 10 | ||||
-rw-r--r-- | pcr/rfc5766-turn-server/turn.service | 10 | ||||
-rw-r--r-- | pcr/rfc5766-turn-server/turnserver.install | 17 | ||||
-rw-r--r-- | pcr/rfc5766-turn-server/turnserver.service | 11 | ||||
-rw-r--r-- | pcr/rfc5766-turn-server/turnserver.tmpfiles.d | 1 |
16 files changed, 358 insertions, 87 deletions
diff --git a/pcr/command-not-found/PKGBUILD b/pcr/command-not-found/PKGBUILD index e2131a3d5..60aaa4fd5 100644 --- a/pcr/command-not-found/PKGBUILD +++ b/pcr/command-not-found/PKGBUILD @@ -5,7 +5,7 @@ pkgname=command-not-found pkgver=0.4.5 -pkgrel=1 +pkgrel=2 pkgdesc="In case a command could not be found this utility searches for packages containing this or a similar command (bash,zsh)." arch=('i686' 'x86_64') url="http://github.com/metti/command-not-found" @@ -14,7 +14,9 @@ depends=('boost-libs' 'tdb' 'libarchive' 'wget') makedepends=('boost' 'cmake') install='install' -source=("libre://$pkgname-$pkgver.tar.gz") +source=("https://repo.parabolagnulinux.org/other/$pkgname/$pkgname-$pkgver.tar.gz") +md5sums=('cceea11367dd1847f08c94212f380ea5') + mksource=("$pkgname-$pkgver::git+https://github.com/metti/$pkgname.git#tag=v${pkgver}") mkmd5sums=('SKIP') @@ -28,5 +30,3 @@ package(){ cd "$srcdir/$pkgname-$pkgver" make DESTDIR="$pkgdir" install } - -md5sums=('c055522251b2c58b9c6e0d0f0df481c0') diff --git a/pcr/hiredis/ChangeLog b/pcr/hiredis/ChangeLog index fbe55643a..b804e1b67 100644 --- a/pcr/hiredis/ChangeLog +++ b/pcr/hiredis/ChangeLog @@ -1,3 +1,13 @@ +2013-12-11 Vladimir Tsanev <tsachev@gamil.com> + + * 0.11.0-3 : + Tests enabled thanks to Massimiliano Torromeo. + +2013-11-23 Vladimir Tsanev <tsachev@gamil.com> + + * 0.11.0-2 : + added i686 arch. + 2013-06-07 Vladimir Tsanev <tsachev@gamil.com> * 0.11.0-1 : diff --git a/pcr/hiredis/PKGBUILD b/pcr/hiredis/PKGBUILD index 29762e87e..a6ad20868 100644 --- a/pcr/hiredis/PKGBUILD +++ b/pcr/hiredis/PKGBUILD @@ -1,33 +1,43 @@ -# Maintainer: Vladimir Tsanev <tsachev@gmail.com> +# Maintainer: orphan +# Contributor: Nicolás Reynolds <fauno@kiwwwi.com.ar> +# Contributor: Luke Shumaker <lukeshu@sbcglobal.net> +# Maintainer (AUR): Vladimir Tsanev <tsachev@gmail.com> +# Contributor (AUR): Massimiliano Torromeo <massimiliano.torromeo@gmail.com> pkgname=hiredis pkgver=0.11.0 -pkgrel=1 -pkgdesc='minimalistic C client library for Redis' +pkgrel=3 +pkgdesc='Minimalistic C client library for Redis' arch=('x86_64' 'i686') url="https://github.com/redis/hiredis/" -license=('BSD') +license=('BSD3') depends=('glibc') +checkdepends=('redis') changelog='ChangeLog' -source=(https://codeload.github.com/redis/${pkgname}/tar.gz/v${pkgver}) -md5sums=('e2ac29509823ccc96990b6fe765b5d46') +source=($pkgname-$pkgver.tar.gz::https://codeload.github.com/redis/$pkgname/tar.gz/v$pkgver + hiredis-fix-tests.patch) +md5sums=('e2ac29509823ccc96990b6fe765b5d46' + 'ddcc73042a8ec278aca6cc2b2d26bc03') + +prepare() { + cd "$srcdir/$pkgname-$pkgver" + patch -Np1 -i ../hiredis-fix-tests.patch +} build() { - cd "${srcdir}/${pkgname}-${pkgver}" - make + cd "$srcdir/$pkgname-$pkgver" + make } -# -#check() { -# cd "${srcdir}/${pkgname}-${pkgver}" -# make test check c -#} +check() { + cd "$srcdir/$pkgname-$pkgver" + sed -r 's|echo \\|echo -e \\|' -i Makefile + make check +} package() { - - cd "${srcdir}/${pkgname}-${pkgver}" - make PREFIX="$pkgdir/usr" clean dep install - - install -Dm 644 COPYING "$pkgdir/usr/share/licenses/${pkgname}/COPYING" + cd "$srcdir/$pkgname-$pkgver" + make PREFIX="$pkgdir/usr" install + install -Dm 644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING" } diff --git a/pcr/hiredis/hiredis-fix-tests.patch b/pcr/hiredis/hiredis-fix-tests.patch new file mode 100644 index 000000000..51e49bf71 --- /dev/null +++ b/pcr/hiredis/hiredis-fix-tests.patch @@ -0,0 +1,11 @@ +diff -ru hiredis-0.11.0.orig/test.c hiredis-0.11.0/test.c +--- hiredis-0.11.0.orig/test.c 2012-08-28 02:55:52.000000000 -0400 ++++ hiredis-0.11.0/test.c 2014-03-02 17:49:24.396739767 -0500 +@@ -286,6 +286,7 @@ + c = redisConnect((char*)"idontexist.local", 6379); + test_cond(c->err == REDIS_ERR_OTHER && + (strcmp(c->errstr,"Name or service not known") == 0 || ++ strcmp(c->errstr,"Temporary failure in name resolution") == 0 || + strcmp(c->errstr,"Can't resolve: idontexist.local") == 0)); + redisFree(c); + diff --git a/pcr/nginx-passenger/PKGBUILD b/pcr/nginx-passenger/PKGBUILD new file mode 100644 index 000000000..b6badd8aa --- /dev/null +++ b/pcr/nginx-passenger/PKGBUILD @@ -0,0 +1,113 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net +# Maintainer (AUR): Tom Richards <tom@tomrichards.net> +# Maintainer (Arch): Bartłomiej Piotrowski <bpiotrowski@archlinux.org> +# Maintainer (Arch): Sébastien Luttringer +# Contributor (Arch): Sergej Pupykin <pupykin.s+arch@gmail.com> +# Contributor (Arch): Miroslaw Szot <mss@czlug.icis.pcz.pl> + +pkgname=nginx-passenger +_nginxver=1.4.5 +_passengerver=4.0.37 +pkgver=$_nginxver +pkgrel=1 +pkgdesc='Lightweight HTTP server and IMAP/POP3 proxy server' +pkgdesc+=" (with Passenger module)" +arch=('i686' 'x86_64') +url='http://nginx.org' +license=('custom') +depends=('pcre' 'zlib' 'openssl') +depends+=("passenger=$_passengerver") +depends+=('ruby' 'ruby-rack' 'curl') +conflicts=('nginx') +provides=("nginx=$_nginxver") +backup=('etc/nginx/fastcgi.conf' + 'etc/nginx/fastcgi_params' + 'etc/nginx/koi-win' + 'etc/nginx/koi-utf' + 'etc/nginx/mime.types' + 'etc/nginx/nginx.conf' + 'etc/nginx/scgi_params' + 'etc/nginx/uwsgi_params' + 'etc/nginx/win-utf' + 'etc/logrotate.d/nginx') +install=nginx.install +source=($url/download/nginx-$_nginxver.tar.gz + passenger-$_passengerver.tar.gz::https://github.com/phusion/passenger/archive/release-$_passengerver.tar.gz + service + logrotate) +md5sums=('1a635e9543570f0c881b8ec9db0c6898' + '7040af5314fe19a420f38732c6bd4f5b' + 'ce9a06bcaf66ec4a3c4eb59b636e0dfd' + '3441ce77cdd1aab6f0ab7e212698a8a7') + +build() { + cd "$srcdir/passenger-release-$_passengerver" + _nginx_addon_dir=$(bin/passenger-config --nginx-addon-dir) + + cd "$srcdir/nginx-$_nginxver" + ./configure \ + --prefix=/etc/nginx \ + --conf-path=/etc/nginx/nginx.conf \ + --sbin-path=/usr/bin/nginx \ + --pid-path=/run/nginx.pid \ + --lock-path=/run/lock/nginx.lock \ + --user=http \ + --group=http \ + --http-log-path=/var/log/nginx/access.log \ + --error-log-path=stderr \ + --http-client-body-temp-path=/var/lib/nginx/client-body \ + --http-proxy-temp-path=/var/lib/nginx/proxy \ + --http-fastcgi-temp-path=/var/lib/nginx/fastcgi \ + --http-scgi-temp-path=/var/lib/nginx/scgi \ + --http-uwsgi-temp-path=/var/lib/nginx/uwsgi \ + --with-imap \ + --with-imap_ssl_module \ + --with-ipv6 \ + --with-pcre-jit \ + --with-file-aio \ + --with-http_dav_module \ + --with-http_gunzip_module \ + --with-http_gzip_static_module \ + --with-http_realip_module \ + --with-http_spdy_module \ + --with-http_ssl_module \ + --with-http_stub_status_module \ + --with-http_addition_module \ + --with-http_degradation_module \ + --with-http_flv_module \ + --with-http_mp4_module \ + --with-http_secure_link_module \ + --with-http_sub_module \ + --add-module="$_nginx_addon_dir" + + make +} + +package() { + cd "$srcdir/nginx-$_nginxver" + make DESTDIR="$pkgdir" install + + sed -e 's|\<user\s\+\w\+;|user html;|g' \ + -e '44s|html|/usr/share/nginx/html|' \ + -e '54s|html|/usr/share/nginx/html|' \ + -i "$pkgdir"/etc/nginx/nginx.conf + + rm "$pkgdir"/etc/nginx/*.default + + install -d "$pkgdir"/var/lib/nginx + install -dm700 "$pkgdir"/var/lib/nginx/proxy + + chmod 750 "$pkgdir"/var/log/nginx + chown http:log "$pkgdir"/var/log/nginx + + install -d "$pkgdir"/usr/share/nginx + mv "$pkgdir"/etc/nginx/html/ "$pkgdir"/usr/share/nginx + + install -Dm644 ../logrotate "$pkgdir"/etc/logrotate.d/nginx + install -Dm644 ../service "$pkgdir"/usr/lib/systemd/system/nginx.service + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE + + rmdir "$pkgdir/run" +} + +# vim:set ts=2 sw=2 et: diff --git a/pcr/nginx-passenger/logrotate b/pcr/nginx-passenger/logrotate new file mode 100644 index 000000000..e0fa9ec4c --- /dev/null +++ b/pcr/nginx-passenger/logrotate @@ -0,0 +1,9 @@ +/var/log/nginx/*log { + missingok + create 640 http log + sharedscripts + compress + postrotate + test ! -r /var/run/nginx.pid || kill -USR1 `cat /var/run/nginx.pid` + endscript +} diff --git a/pcr/nginx-passenger/nginx.install b/pcr/nginx-passenger/nginx.install new file mode 100644 index 000000000..dfad9a034 --- /dev/null +++ b/pcr/nginx-passenger/nginx.install @@ -0,0 +1,17 @@ +post_upgrade() { + if (( $(vercmp $2 1.2.7-4) <= 0 )); then + chmod 750 var/log/nginx + chown http:log var/log/nginx + fi + if (( $(vercmp $2 1.2.1-2) <= 0 )); then + echo ' >>> Since 1.2.1-2 several changes has been made in package:' + echo ' - *.conf files have been moved to /etc/nginx' + echo ' - /etc/conf.d/nginx has been removed' + echo ' Main configuration file is set to /etc/nginx/nginx.conf' + echo ' - access.log and error.log can be found in /var/log/nginx by default' + echo ' - bundled *.html files have been moved to /usr/share/nginx/html' + echo ' - /etc/nginx/{html,logs} symbolic links and *.default files have been removed' + fi +} + +# vim:set ts=4 sw=4 et: diff --git a/pcr/nginx-passenger/service b/pcr/nginx-passenger/service new file mode 100644 index 000000000..29d3aa877 --- /dev/null +++ b/pcr/nginx-passenger/service @@ -0,0 +1,14 @@ +[Unit] +Description=A high performance web server and a reverse proxy server +After=syslog.target network.target + +[Service] +Type=forking +PIDFile=/run/nginx.pid +ExecStartPre=/usr/bin/nginx -t -q -g 'pid /run/nginx.pid; daemon on; master_process on;' +ExecStart=/usr/bin/nginx -g 'pid /run/nginx.pid; daemon on; master_process on;' +ExecReload=/usr/bin/nginx -g 'pid /run/nginx.pid; daemon on; master_process on;' -s reload +ExecStop=/usr/bin/nginx -g 'pid /run/nginx.pid;' -s quit + +[Install] +WantedBy=multi-user.target diff --git a/pcr/qt-at-spi-git/PKGBUILD b/pcr/qt-at-spi-git/PKGBUILD index d69e670c6..fb42af603 100644 --- a/pcr/qt-at-spi-git/PKGBUILD +++ b/pcr/qt-at-spi-git/PKGBUILD @@ -13,15 +13,18 @@ license=('LGPL') provides=("$_pkgname=$_pkgver") -pkgrel=1 +pkgrel=2 arch=('i686' 'x86_64') depends=('at-spi2-core' 'qt4>=4.8' 'kdelibs>=4.8') makedepends=('cmake' 'automoc4') -source=("libre://$pkgname-$pkgver.tar.gz" 'qt-accessibility.sh') +source=("https://repo.parabolagnulinux.org/other/$_pkgname/$pkgname-$pkgver.tar.gz" 'qt-accessibility.sh') +md5sums=('688accf9c2f517a526885733aad821a4' + 'f0c8551ed54f5d4e5daf7ddac9189aaa') mkdepends=('git') mksource=("$pkgname-$pkgver::git://anongit.kde.org/qtatspi#$_gitver") +mkmd5sums=('SKIP') mksource() { cd "$srcdir/$pkgname-$pkgver" rm -f examples/tabbar/{simple,tabbar} @@ -39,7 +42,3 @@ package() { install -D -m755 "$srcdir/qt-accessibility.sh" "$pkgdir/etc/profile.d/qt-accessibility.sh" } - -mkmd5sums=('SKIP') -md5sums=('d48fbf6d429260f7b279964972b7ab25' - 'f0c8551ed54f5d4e5daf7ddac9189aaa') diff --git a/pcr/rfc5766-turn-server/ChangeLog b/pcr/rfc5766-turn-server/ChangeLog index 5accefa5b..fd52b6d89 100644 --- a/pcr/rfc5766-turn-server/ChangeLog +++ b/pcr/rfc5766-turn-server/ChangeLog @@ -1,5 +1,89 @@ +2014-02-24 Vladimir Tsanev <tsachev@gmail.com> + * 3.2.2.8-1 : + New upstream release. +2014-02-18 Vladimir Tsanev <tsachev@gmail.com> + * 3.2.2.7-1 : + New upstream release. + +2014-02-12 Vladimir Tsanev <tsachev@gmail.com> + * 3.2.2.6-1 : + New upstream release. + +2014-02-04 Vladimir Tsanev <tsachev@gmail.com> + * 3.2.2.5-1 : + New upstream release and PKGBUILD cleanup. + +2014-01-31 Vladimir Tsanev <tsachev@gmail.com> + * 3.2.2.4-1 : + New upstream release. New download site. + +2013-12-11 Vladimir Tsanev <tsachev@gamil.com> + * 3.1.2.2-1 : + New upstream release. + +2013-11-23 Vladimir Tsanev <tsachev@gamil.com> + * 3.0.0.0-1 : + New upstream release. + +2013-10-22 Vladimir Tsanev <tsachev@gamil.com> + * 2.6.6.0-1 : + New upstream release. --disable-rpath flag added to configure + +2013-10-16 Vladimir Tsanev <tsachev@gamil.com> + * 2.6.5.2-1 : + New upstream release. + +2013-09-07 Vladimir Tsanev <tsachev@gamil.com> + * 2.6.2.1-1 : + New upstream release. + Trivial PKGBUILD fixes. + +2013-08-09 Vladimir Tsanev <tsachev@gamil.com> + * 2.6.1.4-1 : + New upstream release. + +2013-08-09 Vladimir Tsanev <tsachev@gamil.com> + * 2.6.1.1-1 : + New upstream release. + +2013-07-19 Vladimir Tsanev <tsachev@gamil.com> + * 2.5.1.2-1 : + New upstream release. + +2013-07-19 Vladimir Tsanev <tsachev@gamil.com> + * 2.1.1.1-1 : + New upstream release. + +2013-07-16 Vladimir Tsanev <tsachev@gamil.com> + * 2.0.0.0-1 : + New upstream release. + +2013-06-24 Vladimir Tsanev <tsachev@gamil.com> + * 1.8.7.0-2 : + More packaging cleanup. + + * 1.8.7.0-1 : + New upstream release and package cleanup. + +2013-06-12 Vladimir Tsanev <tsachev@gamil.com> + + * 1.8.6.3-1 : + Upstream release. + +2013-06-07 Vladimir Tsanev <tsachev@gamil.com> + + * 1.8.6.1-3 : + 'postgresql-libs' 'libmysqlclient' and 'hiredis' cannot be optional. + +2013-06-06 Vladimir Tsanev <tsachev@gamil.com> + + * 1.8.6.1-2 : + Added systemd service. Fixed redis support. + + * 1.8.6.1-1 : + New upstream release. + 2013-06-05 Vladimir Tsanev <tsachev@gamil.com> * 1.8.6.0-1 : Initial package created. - diff --git a/pcr/rfc5766-turn-server/PKGBUILD b/pcr/rfc5766-turn-server/PKGBUILD index c070ad309..fc14b4a76 100644 --- a/pcr/rfc5766-turn-server/PKGBUILD +++ b/pcr/rfc5766-turn-server/PKGBUILD @@ -1,64 +1,59 @@ -# Maintainer: Vladimir Tsanev <tsachev@gmail.com> +# Maintainer: orphan +# Contributor: Nicolás Reynolds <fauno@kiwwwi.com.ar> +# Contributor: Luke Shumaker <lukeshu@sbcglobal.net> +# Contributor: Michał Masłowski <mtjm@mtjm.eu> +# Maintainer (AUR): Vladimir Tsanev <tsachev@gmail.com> pkgname=rfc5766-turn-server _portname=turnserver -pkgver=2.6.2.1 +pkgver=3.2.2.8 pkgrel=1 pkgdesc="STUN and TURN Relay Server for VoIP and WebRTC" arch=('i686' 'x86_64' 'mips64el') url="http://code.google.com/p/rfc5766-turn-server/" -license=('custom:BSDNew') +license=('BSD3') depends=('libevent' 'postgresql-libs' 'libmysqlclient' 'hiredis') -optdepends=('postgresql-client: to use postgresql' - 'mariadb: mariadb backend' - 'redis: redis backend') +install="$_portname.install" backup=("etc/turnserver.conf" "etc/turnuserdb.conf") -changelog=ChangeLog -source=(https://${pkgname}.googlecode.com/files/${_portname}-$pkgver.tar.gz - turn.service stun.service) +changelog='ChangeLog' +source=(http://$_portname.open-sys.org/downloads/v$pkgver/$_portname-$pkgver.tar.gz $_portname.service $_portname.tmpfiles.d) +md5sums=('c16ff9ced1ba0797fbd16a66161dca2c' + 'bf568b614a17ee439e831b8f8aa7236a' + 'aa7bf422a9dfba7febb56dc172feb1cf') +sha1sums=('0faa1514f6819827f3ad0cffe2dc7bc6eef257cc' + '0c5b348e793bd52ce0ee38d420b26c9b2a2e2ca5' + '445e9982549d7ed018bc1fb6176a730313ae3d26') build() { - cd "${srcdir}/$_portname-${pkgver}" - - ./configure --prefix=/usr \ - --manprefix=/usr/share \ - --examplesdir="/usr/share/$_portname/examples" + cd "$srcdir/$_portname-$pkgver" + ./configure --prefix=/usr --manprefix=/usr/share --examplesdir="/usr/share/$_portname/examples" --disable-rpath make } check() { - cd "${srcdir}/$_portname-${pkgver}" + cd "$srcdir/$_portname-$pkgver" make check } package() { - cd "${srcdir}/$_portname-${pkgver}" + cd "$srcdir/$_portname-$pkgver" make DESTDIR="$pkgdir" install - - install -D "$pkgdir/usr/share/$_portname/examples/etc/turnserver.conf" \ - "$pkgdir/etc/turnserver.conf" - install -D "$pkgdir/usr/share/$_portname/examples/etc/turnuserdb.conf" \ - "$pkgdir/etc/turnuserdb.conf" - install -D "$srcdir/stun.service" \ - "$pkgdir/usr/lib/systemd/system/stun.service" - install -D "$srcdir/turn.service" \ - "$pkgdir/usr/lib/systemd/system/turn.service" - rm -r "$pkgdir/usr/etc" - chmod 644 "$pkgdir/usr/lib/libturnclient.a" - install -Dm 644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE - install -dm 755 "$pkgdir/var/log/$_portname" + mv "$pkgdir/usr/etc" "$pkgdir/etc" + local file + for file in "$pkgdir/etc"/*.default; do + mv "$file" "${file%.default}" + chmod 644 "${file%.default}" + done + 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 "$pkgdir/etc/turnserver.conf" + + install -Dm644 "../$_portname.service" "$pkgdir/usr/lib/systemd/system/$_portname.service" + install -Dm644 "../$_portname.tmpfiles.d" "$pkgdir/usr/lib/tmpfiles.d/$_portname.conf" - sed \ - -e '/^#log-file=\/var\/tmp\/turn.log$/c log-file=\/var\/log\/turnserver\/turn.log' \ - -i "${pkgdir}"/etc/turnserver.conf + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } -sha1sums=('d7f01e6fadbe56fe4535d67a7d178a9cfba110b8' - '0c5b348e793bd52ce0ee38d420b26c9b2a2e2ca5' - 'b12805c049787cd1433181afaba4111f89740e63') -sha256sums=('4d131f353aadb15901d175755075af65abf2a0e820d7281c9c164285642ff9c1' - '319030c1916d353bfc3375626cc7f60d6eeca762fe4fce354f010212902c49dc' - '63198e4f802c7b4b44e671e0fcaebca36589ebb11405e51ab9f36c80327ac4d9') diff --git a/pcr/rfc5766-turn-server/stun.service b/pcr/rfc5766-turn-server/stun.service deleted file mode 100644 index bddb6168a..000000000 --- a/pcr/rfc5766-turn-server/stun.service +++ /dev/null @@ -1,10 +0,0 @@ -[Unit] -Description=STUN Server -After=network.target - -[Service] -Type=simple -ExecStart=/usr/bin/turnserver --stun-only - -[Install] -WantedBy=multi-user.target diff --git a/pcr/rfc5766-turn-server/turn.service b/pcr/rfc5766-turn-server/turn.service deleted file mode 100644 index 54cc5f01a..000000000 --- a/pcr/rfc5766-turn-server/turn.service +++ /dev/null @@ -1,10 +0,0 @@ -[Unit] -Description=TURN Server -After=network.target - -[Service] -Type=simple -ExecStart=/usr/bin/turnserver - -[Install] -WantedBy=multi-user.target diff --git a/pcr/rfc5766-turn-server/turnserver.install b/pcr/rfc5766-turn-server/turnserver.install new file mode 100644 index 000000000..84f31ca7f --- /dev/null +++ b/pcr/rfc5766-turn-server/turnserver.install @@ -0,0 +1,17 @@ +post_install() { + id turnserver &>/dev/null || \ + useradd -g daemon -M -s /usr/bin/false turnserver + + install -dm 755 "/var/log/turnserver" + chown -R turnserver:daemon /var/log/turnserver + + systemd-tmpfiles --create turnserver.conf +} + +post_upgrade() { + post_install +} + +pre_remove() { + userdel turnserver +} diff --git a/pcr/rfc5766-turn-server/turnserver.service b/pcr/rfc5766-turn-server/turnserver.service new file mode 100644 index 000000000..8e267b2e0 --- /dev/null +++ b/pcr/rfc5766-turn-server/turnserver.service @@ -0,0 +1,11 @@ +[Unit] +Description=STUN and TURN Relay Server for VoIP and WebRTC +After=network.target + +[Service] +Type=forking +User=turnserver +ExecStart=/usr/bin/turnserver -c /etc/turnserver.conf -o -v + +[Install] +WantedBy=multi-user.target diff --git a/pcr/rfc5766-turn-server/turnserver.tmpfiles.d b/pcr/rfc5766-turn-server/turnserver.tmpfiles.d new file mode 100644 index 000000000..ec1a89758 --- /dev/null +++ b/pcr/rfc5766-turn-server/turnserver.tmpfiles.d @@ -0,0 +1 @@ +d /run/turnserver 0755 turnserver daemon - |