-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathVagrantfile
49 lines (46 loc) · 1.57 KB
/
Vagrantfile
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
Vagrant.configure('2') do |config|
config.vm.box = 'cargomedia/debian-7-amd64-default'
config.vm.provision 'deps', type: 'shell', inline: [
'cd /vagrant',
'sudo apt-get update',
'apt-get -y install libmicrohttpd-dev libjansson-dev libnice-dev \
libssl-dev libsrtp-dev libsofia-sip-ua-dev libglib2.0-dev \
libopus-dev libogg-dev libini-config-dev libcollection-dev \
libavutil-dev libavcodec-dev libavformat-dev \
pkg-config gengetopt libcurl4-openssl-dev libtool automake cmake',
'cd',
# Dep 1
'wget https://github.com/cisco/libsrtp/archive/v1.5.0.tar.gz',
'tar xfv v1.5.0.tar.gz',
'cd libsrtp-1.5.0',
'./configure --prefix=/usr --enable-openssl --libdir=/usr/lib64',
'make libsrtp.so && make uninstall && make install',
'cd -',
# Dep 2
'rm -fr usrsctp',
'git clone https://github.com/sctplab/usrsctp',
'cd usrsctp',
'./bootstrap',
'./configure --prefix=/usr && make && make uninstall && make install',
'cd -',
# Dep 3
'rm -fr libwebsockets',
'git clone git://git.libwebsockets.org/libwebsockets',
'cd libwebsockets',
'mkdir build',
'cd build',
'cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr ..',
'make && make install',
'cd -',
].join(' && ')
config.vm.provision 'janus', type: 'shell', inline: [
'cd /vagrant/',
'./get-janus-headers.sh'
].join(' && ')
config.vm.provision 'cm-plugin', type: 'shell', inline: [
'cd /vagrant/',
'./autogen.sh',
'./configure --prefix=/usr',
'make && make install'
].join(' && ')
end