blob: 11128744a3efe286ee94c16c9b20a15fe4fbbf68 [file] [log] [blame]
Tomas Cejka43380f12015-06-25 22:43:20 +02001#!/bin/bash
2
3if which apt-get >/dev/null 2>/dev/null; then
4sudo apt-get update -qq -y
Michal Vasko58c10712016-03-16 08:49:25 +01005sudo apt-get install -qq -y git libjson-c-dev pkg-config libtool cmake
Tomas Cejkae53c51e2015-06-26 20:22:44 +02006wget 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
7sudo dpkg -i ./libjson-c-dev_0.11-3ubuntu1.2_amd64.deb libjson-c2_0.11-3ubuntu1.2_amd64.deb
Tomas Cejka43380f12015-06-25 22:43:20 +02008else
Michal Vasko58c10712016-03-16 08:49:25 +01009sudo yum install -y git json-c-devel pkg-config libtool cmake
Tomas Cejka43380f12015-06-25 22:43:20 +020010fi
11
12(
Michal Vasko2fd67842016-03-16 09:25:51 +010013wget --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 Cejka43380f12015-06-25 22:43:20 +020014)
15
16(
Michal Vaskof84be252016-05-06 13:56:26 +020017git clone -b v2.0-stable https://github.com/warmcat/libwebsockets lws && mkdir lws/build && cd lws/build && cmake .. && sudo make install
Tomas Cejka43380f12015-06-25 22:43:20 +020018)
19
20(
Michal Vaskoe82cf9f2016-05-04 16:08:25 +020021git clone git://github.com/CESNET/libyang && cd libyang && cmake . && make && sudo make install
Tomas Cejka43380f12015-06-25 22:43:20 +020022)
23
24(
Michal Vasko2acde1a2016-04-06 13:24:54 +020025git clone git://github.com/CESNET/libnetconf2 -b devel && cd libnetconf2 && cmake . && make && sudo make install
Tomas Cejka43380f12015-06-25 22:43:20 +020026)
27