Advertisement
Guest User

AUR : coturn.git

a guest
Oct 19th, 2016
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.98 KB | None | 0 0
  1. # Original Maintainer: Vladimir Tsanev <tsachev@gmail.com>
  2. # Maintainer: MoeRT09 <https://aur.archlinux.org/account/MoeRT09>
  3.  
  4. pkgname=coturn
  5. _portname=turnserver
  6. pkgver=4.5.0.5
  7. pkgrel=1
  8. pkgdesc="Free open source implementation of TURN and STUN Server"
  9. arch=('i686' 'x86_64')
  10. url="https://github.com/coturn/coturn"
  11. license=('custom:New BSD')
  12. depends=('libevent' 'postgresql-libs' 'libmysqlclient' 'hiredis' 'sqlite')
  13. conflicts=('rfc5766-turn-server')
  14. provides=('rfc5766-turn-server')
  15. install="$_portname.install"
  16. backup=("etc/turnserver.conf")
  17. source=(http://$_portname.open-sys.org/downloads/v$pkgver/$_portname-$pkgver.tar.gz $_portname.service $_portname.tmpfiles.d)
  18.  
  19. sha256sums=('8484fa6c8d4aab43e1161c02eb8914154a21178b05f8a285e04094ddbb64acf4'
  20. '319030c1916d353bfc3375626cc7f60d6eeca762fe4fce354f010212902c49dc'
  21. 'fe7ed64dc6844aabdfa00b76134b22d69d9097bd3f77120d704d0ee08c036c21')
  22.  
  23. build() {
  24. cd "$srcdir/$_portname-$pkgver"
  25.  
  26. ./configure --prefix=/usr --manprefix=/usr/share --examplesdir="/usr/share/$_portname/examples" --disable-rpath
  27.  
  28. make
  29. }
  30.  
  31. check() {
  32. cd "$srcdir/$_portname-$pkgver"
  33.  
  34. make check
  35. }
  36.  
  37. package() {
  38. cd "$srcdir/$_portname-$pkgver"
  39.  
  40. make DESTDIR="$pkgdir" install
  41.  
  42. install -D "$pkgdir/usr/share/$_portname/examples/etc/turnserver.conf" "$pkgdir/etc/turnserver.conf"
  43.  
  44. rm -r "$pkgdir/usr/etc"
  45.  
  46. chmod 644 "$pkgdir/usr/lib/libturnclient.a"
  47.  
  48. install -Dm 644 "../$_portname.service" "$pkgdir/usr/lib/systemd/system/$_portname.service"
  49.  
  50. install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  51.  
  52. sed \
  53. -e '/^#log-file=\/var\/tmp\/turn.log$/c log-file=\/var\/log\/turnserver\/turn.log' \
  54. -i "$pkgdir/etc/turnserver.conf"
  55. sed \
  56. -e '/^#pidfile="\/var\/run\/turnserver.pid"$/c pidfile="\/var\/run\/turnserver\/turnserver.pid"' \
  57. -i "$pkgdir/etc/turnserver.conf"
  58.  
  59. install -Dm644 "$srcdir/$_portname.tmpfiles.d" "$pkgdir/usr/lib/tmpfiles.d/$_portname.conf"
  60. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement