blob: c23456a39ec6c0bb7c2ccb7224ec8855f6f62047 (
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
97
98
|
# Maintainer: Caleb Maclennan <caleb@alerque.com>
# Maintainer: feighur
# Maintainer: robertfoster
# Contributor: Maurizio Porrato <maurizio.porrato@gmail.com>
pkgname=janus-gateway
pkgver=1.2.4
pkgrel=1
pkgdesc='An open source, general purpose, WebRTC server'
arch=(x86_64 i686)
url='https://janus.conf.meetecho.com'
license=(GPL-3.0-only)
depends=(glib2
jansson
libconfig
libmicrohttpd
libnice
libsrtp
libusrsctp
openssl
zlib)
makedepends=(curl
duktape
ffmpeg
libogg
librabbitmq-c
libwebsockets
lua
nanomsg
opus
paho-mqtt-c
sofia-sip)
optdepends=('curl: TURN REST API support, RTSP support in Streaming/Event Handler plugin'
'duktape: Javascript support'
'ffmpeg: Post-processor'
'libogg: Voicemail plugin and/or post-processor'
'librabbitmq-c: RabbitMQ support for the Janus API or events'
'libwebsockets: WebSockets support for Janus API'
'lua: Lua plugin'
'nanomsg: Nanomsg support for the Janus API'
'opus: Bridge plugin'
'paho-mqtt-c: MQTT support for the Janus API or events'
'sofia-sip: SIP plugin')
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.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)
_archive="$pkgname-$pkgver"
source=("https://github.com/meetecho/janus-gateway/archive/v$pkgver/$_archive.tar.gz"
janus.conf
janus.service)
sha256sums=('fd91b55294e896370e725f41df4c2780f97b3fd7e030a0574a8340e0da4ae3df'
'bd6d7615e722adb64816fae3c5323f6aeb1b9561c39f1652568ed494ffdaa191'
'cf2b6c8fdcd60ccfa179c4cd207a23ee7edfee90588c2c3847aa6cda418bed7f')
build() {
cd "$_archive"
./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 "$_archive"
make DESTDIR="$pkgdir" install configs
install -Dm0644 -t "$pkgdir/usr/lib/systemd/system/" "$srcdir/janus.service"
install -Dm0644 -t "$pkgdir/usr/lib/sysusers.d/" "$srcdir/janus.conf"
}
|