Tomas Cejka | 43380f1 | 2015-06-25 22:43:20 +0200 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | if which apt-get >/dev/null 2>/dev/null; then |
| 4 | sudo apt-get update -qq -y |
Michal Vasko | 58c1071 | 2016-03-16 08:49:25 +0100 | [diff] [blame] | 5 | sudo apt-get install -qq -y git libjson-c-dev pkg-config libtool cmake |
Tomas Cejka | e53c51e | 2015-06-26 20:22:44 +0200 | [diff] [blame] | 6 | wget http://security.ubuntu.com/ubuntu/pool/main/j/json-c/libjson-c-dev_0.11-3ubuntu1.2_amd64.deb http://security.ubuntu.com/ubuntu/pool/main/j/json-c/libjson-c2_0.11-3ubuntu1.2_amd64.deb |
| 7 | sudo dpkg -i ./libjson-c-dev_0.11-3ubuntu1.2_amd64.deb libjson-c2_0.11-3ubuntu1.2_amd64.deb |
Tomas Cejka | 43380f1 | 2015-06-25 22:43:20 +0200 | [diff] [blame] | 8 | else |
Michal Vasko | 58c1071 | 2016-03-16 08:49:25 +0100 | [diff] [blame] | 9 | sudo yum install -y git json-c-devel pkg-config libtool cmake |
Tomas Cejka | 43380f1 | 2015-06-25 22:43:20 +0200 | [diff] [blame] | 10 | fi |
| 11 | |
| 12 | ( |
Michal Vasko | 2fd6784 | 2016-03-16 09:25:51 +0100 | [diff] [blame] | 13 | wget --no-check-certificate https://red.libssh.org/attachments/download/195/libssh-0.7.3.tar.xz && tar -xJf libssh-0.7.3.tar.xz && cd libssh-0.7.3 && mkdir build && cd build && cmake -DCMAKE_INSTALL_PREFIX=/usr .. && make && sudo make install |
Tomas Cejka | 43380f1 | 2015-06-25 22:43:20 +0200 | [diff] [blame] | 14 | ) |
| 15 | |
| 16 | ( |
Michal Vasko | f84be25 | 2016-05-06 13:56:26 +0200 | [diff] [blame] | 17 | git clone -b v2.0-stable https://github.com/warmcat/libwebsockets lws && mkdir lws/build && cd lws/build && cmake .. && sudo make install |
Tomas Cejka | 43380f1 | 2015-06-25 22:43:20 +0200 | [diff] [blame] | 18 | ) |
| 19 | |
| 20 | ( |
Michal Vasko | e82cf9f | 2016-05-04 16:08:25 +0200 | [diff] [blame] | 21 | git clone git://github.com/CESNET/libyang && cd libyang && cmake . && make && sudo make install |
Tomas Cejka | 43380f1 | 2015-06-25 22:43:20 +0200 | [diff] [blame] | 22 | ) |
| 23 | |
| 24 | ( |
Michal Vasko | 2acde1a | 2016-04-06 13:24:54 +0200 | [diff] [blame] | 25 | git clone git://github.com/CESNET/libnetconf2 -b devel && cd libnetconf2 && cmake . && make && sudo make install |
Tomas Cejka | 43380f1 | 2015-06-25 22:43:20 +0200 | [diff] [blame] | 26 | ) |
| 27 | |