diff options
Diffstat (limited to 'pcr/rfc5766-turn-server/PKGBUILD')
-rw-r--r-- | pcr/rfc5766-turn-server/PKGBUILD | 71 |
1 files changed, 33 insertions, 38 deletions
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') |