blob: 609a6c7b95025b4e320b2f0302ad9c4098c79cfa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
# Maintainer: Caleb Maclennan <caleb@alerque.com>
# Maintainer: feighur
# Maintainer: robertfoster
# Contributor: Maurizio Porrato <maurizio.porrato@gmail.com>
pkgname=janus-gateway
pkgver=0.10.9
pkgrel=1
pkgdesc="An open source, general purpose, WebRTC server"
arch=('x86_64' 'i686')
url='https://janus.conf.meetecho.com'
license=('GPL3')
depends=('glib2'
'jansson'
'libconfig'
'libmicrohttpd'
'libnice'
'libsrtp'
'libusrsctp'
'openssl')
optdepends=('libwebsockets: WebSockets support for Janus API'
'librabbitmq-c: RabbitMQ support for the Janus API or events'
'paho-mqtt-c-git: MQTT support for the Janus API or events'
'nanomsg: Nanomsg support for the Janus API'
'curl: TURN REST API support, RTSP support in Streaming/Event Handler plugin'
'sofia-sip: SIP plugin'
'opus: Bridge plugin'
'libogg: Voicemail plugin and/or post-processor'
'ffmpeg: Post-processor'
'lua: Lua plugin')
makedepends=('curl'
'ffmpeg'
'gengetopt'
'libogg'
'librabbitmq-c'
'libwebsockets'
'lua'
'nanomsg'
'opus'
'paho-mqtt-c-git'
'sofia-sip')
backup=('etc/janus/janus.eventhandler.gelfevh.jcfg'
'etc/janus/janus.eventhandler.mqttevh.jcfg'
'etc/janus/janus.eventhandler.nanomsgevh.jcfg'
'etc/janus/janus.eventhandler.rabbitmqevh.jcfg'
'etc/janus/janus.eventhandler.sampleevh.jcfg'
'etc/janus/janus.eventhandler.wsevh.jcfg'
'etc/janus/janus.jcfg'
'etc/janus/janus.logger.jsonlog.jcfg'
'etc/janus/janus.plugin.audiobridge.jcfg'
'etc/janus/janus.plugin.duktape.jcfg'
'etc/janus/janus.plugin.echotest.jcfg'
'etc/janus/janus.plugin.lua.jcfg'
'etc/janus/janus.plugin.nosip.jcfg'
'etc/janus/janus.plugin.recordplay.jcfg'
'etc/janus/janus.plugin.sip.jcfg'
'etc/janus/janus.plugin.streaming.jcfg'
'etc/janus/janus.plugin.textroom.jcfg'
'etc/janus/janus.plugin.videocall.jcfg'
'etc/janus/janus.plugin.videoroom.jcfg'
'etc/janus/janus.plugin.voicemail.jcfg'
'etc/janus/janus.transport.http.jcfg'
'etc/janus/janus.transport.mqtt.jcfg'
'etc/janus/janus.transport.nanomsg.jcfg'
'etc/janus/janus.transport.pfunix.jcfg'
'etc/janus/janus.transport.rabbitmq.jcfg'
'etc/janus/janus.transport.websockets.jcfg')
source=("$pkgname-$pkgver.tar.gz::https://github.com/meetecho/janus-gateway/archive/v${pkgver}.tar.gz"
'janus.service'
'janus.conf')
sha256sums=('b52d34e0da83957b53d5b5a5302b8b6f2bcf3af433216ba368597e7ab14f8cfd'
'cf2b6c8fdcd60ccfa179c4cd207a23ee7edfee90588c2c3847aa6cda418bed7f'
'bd6d7615e722adb64816fae3c5323f6aeb1b9561c39f1652568ed494ffdaa191')
build() {
cd "$pkgname-$pkgver"
./autogen.sh
./configure \
--prefix /usr \
--sysconfdir /etc \
--disable-docs \
--enable-json-logger \
--enable-mqtt \
--enable-plugin-duktape \
--enable-plugin-lua \
--enable-post-processing \
--enable-rabbitmq
make
}
package() {
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir" install configs
install -Dm644 -t "$pkgdir/usr/lib/systemd/system/" "$srcdir/janus.service"
install -Dm644 -t "$pkgdir/usr/lib/sysusers.d/" "$srcdir/janus.conf"
}
|