summaryrefslogtreecommitdiff
path: root/pcr/rfc5766-turn-server/PKGBUILD
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2013-09-11 10:51:13 -0300
committerNicolás Reynolds <fauno@endefensadelsl.org>2013-09-11 10:51:13 -0300
commitb2293b643b4b8e5031fd6e14aedb226371ad4b17 (patch)
tree5aa010a0d83f8b912057d84b72b49a9838003c77 /pcr/rfc5766-turn-server/PKGBUILD
parent7fb4c691ee96e9ea02b89d4fdd00c64186446d9c (diff)
downloadabslibre-b2293b643b4b8e5031fd6e14aedb226371ad4b17.tar.gz
abslibre-b2293b643b4b8e5031fd6e14aedb226371ad4b17.tar.bz2
abslibre-b2293b643b4b8e5031fd6e14aedb226371ad4b17.zip
rfc5766-turn-server upgrade
Diffstat (limited to 'pcr/rfc5766-turn-server/PKGBUILD')
-rw-r--r--pcr/rfc5766-turn-server/PKGBUILD49
1 files changed, 21 insertions, 28 deletions
diff --git a/pcr/rfc5766-turn-server/PKGBUILD b/pcr/rfc5766-turn-server/PKGBUILD
index e85f98bb8..c070ad309 100644
--- a/pcr/rfc5766-turn-server/PKGBUILD
+++ b/pcr/rfc5766-turn-server/PKGBUILD
@@ -2,15 +2,13 @@
pkgname=rfc5766-turn-server
_portname=turnserver
-pkgver=1.8.6.0
-pkgrel=2
-epoch=
-pkgdesc="Free open source implementation of TURN and STUN Server"
+pkgver=2.6.2.1
+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')
-makedepends=('gcc>=3.4.4' 'make' 'hiredis' 'postgresql-libs' 'libmariadbclient')
-depends=('libevent')
+depends=('libevent' 'postgresql-libs' 'libmysqlclient' 'hiredis')
optdepends=('postgresql-client: to use postgresql'
'mariadb: mariadb backend'
'redis: redis backend')
@@ -22,14 +20,9 @@ source=(https://${pkgname}.googlecode.com/files/${_portname}-$pkgver.tar.gz
build() {
cd "${srcdir}/$_portname-${pkgver}"
- PREFIX=/usr \
- MANPREFIX=/usr/share \
- EXAMPLESDIR="/usr/share/$pkgname/examples" \
- DOCSDIR="/usr/share/doc/$pkgname" \
- LIBDIR=/usr/lib \
- SCHEMADIR="/usr/share/$pkgname" \
- TURNINCLUDEDIR="/usr/include/turn"
- ./configure
+ ./configure --prefix=/usr \
+ --manprefix=/usr/share \
+ --examplesdir="/usr/share/$_portname/examples"
make
}
@@ -41,20 +34,12 @@ check() {
package() {
cd "${srcdir}/$_portname-${pkgver}"
- make \
- PREFIX="$pkgdir/usr" \
- MANPREFIX="$pkgdir/usr/share" \
- EXAMPLESDIR="$pkgdir/usr/share/$pkgname/examples" \
- DOCSDIR="$pkgdir/usr/share/doc/$pkgname" \
- LIBDIR="$pkgdir/usr/lib" \
- SCHEMADIR="$pkgdir/usr/share/$pkgname" \
- TURNINCLUDEDIR="$pkgdir/usr/include/turn" \
- install
+ make DESTDIR="$pkgdir" install
- install -D "$pkgdir/usr/share/$pkgname/examples/etc/turnserver.conf" \
+ install -D "$pkgdir/usr/share/$_portname/examples/etc/turnserver.conf" \
"$pkgdir/etc/turnserver.conf"
- install -D "$pkgdir/usr/share/$pkgname/examples/etc/turnuserdb.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"
@@ -65,7 +50,15 @@ package() {
chmod 644 "$pkgdir/usr/lib/libturnclient.a"
install -Dm 644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+ install -dm 755 "$pkgdir/var/log/$_portname"
+
+ sed \
+ -e '/^#log-file=\/var\/tmp\/turn.log$/c log-file=\/var\/log\/turnserver\/turn.log' \
+ -i "${pkgdir}"/etc/turnserver.conf
}
-md5sums=('def4cc2ea6239795edab12b5eee5f8ed'
- '1da26c3a1fe29a8961e6b9d73f9048d3'
- '83670d79026c67c7701481ee9d39f100')
+sha1sums=('d7f01e6fadbe56fe4535d67a7d178a9cfba110b8'
+ '0c5b348e793bd52ce0ee38d420b26c9b2a2e2ca5'
+ 'b12805c049787cd1433181afaba4111f89740e63')
+sha256sums=('4d131f353aadb15901d175755075af65abf2a0e820d7281c9c164285642ff9c1'
+ '319030c1916d353bfc3375626cc7f60d6eeca762fe4fce354f010212902c49dc'
+ '63198e4f802c7b4b44e671e0fcaebca36589ebb11405e51ab9f36c80327ac4d9')