-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
122 changed files
with
13,611 additions
and
7,276 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
[submodule "install/mod_netconf"] | ||
[submodule "mod_netconf"] | ||
path = install/mod_netconf | ||
url = https://github.com/CESNET/mod_netconf.git | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
dir_base=$(pwd) | ||
cmd_base='php app/console' | ||
|
||
cp app/config/parameters.yml.dist app/config/parameters.yml | ||
php vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Resources/bin/build_bootstrap.php | ||
${cmd_base} cache:clear --env=prod | ||
${cmd_base} assets:install --symlink --relative | ||
${cmd_base} doctrine:database:create | ||
${cmd_base} doctrine:generate:entities FIT | ||
${cmd_base} doctrine:schema:update --force | ||
${cmd_base} app:user --action=add --user=admin --pass=pass | ||
${cmd_base} assetic:dump --env=prod --no-debug | ||
${cmd_base} app:install --post=install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# -*- mode: ruby -*- | ||
# vi: set ft=ruby : | ||
|
||
Vagrant.configure(2) do |config| | ||
config.vm.box = "centos/7" | ||
|
||
config.vm.network "forwarded_port", guest: 80, host: 2280 | ||
|
||
config.vm.provision "shell" do |s| | ||
s.path = "centos7/install.sh" | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
sudo yum install -y wget git gcc gcc-c++ | ||
|
||
sudo yum install -y zlib1g-devel libssl-devel openssl-devel cmake pcre-devel | ||
wget https://red.libssh.org/attachments/download/177/libssh-0.7.2.tar.xz | ||
tar -xJf libssh-0.7.2.tar.xz | ||
mkdir -p libssh-0.7.2/build && cd libssh-0.7.2/build | ||
cmake .. && make -j2 && sudo make install | ||
cd ../.. | ||
|
||
git clone https://github.com/CESNET/libyang.git | ||
mkdir -p libyang/build | ||
cd libyang/build | ||
git checkout devel | ||
cmake -DENABLE_BUILD_TESTS=OFF .. && sudo make install && sudo make install | ||
|
||
cd ../.. | ||
wget https://cmocka.org/files/1.0/cmocka-1.0.1.tar.xz | ||
tar -xJf cmocka-1.0.1.tar.xz | ||
mkdir -p cmocka-1.0.1/build && cd cmocka-1.0.1/build | ||
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .. && make -j2 && sudo make install | ||
|
||
cd ../.. | ||
git clone git://github.com/cejkato2/libwebsockets lws | ||
mkdir lws/b | ||
cd lws/b | ||
cmake .. && sudo make install | ||
|
||
|
||
# libnetconf2 | ||
# | ||
cd ../.. | ||
git clone https://github.com/CESNET/libnetconf2.git | ||
mkdir -p libnetconf2/build | ||
cd libnetconf2/build | ||
git checkout devel | ||
cmake -DENABLE_TLS=ON -DENABLE_SSH=ON -DENABLE_BUILD_TESTS=OFF .. && sudo make install | ||
|
||
|
||
# libnetconf | ||
# | ||
# cd ../.. | ||
# sudo yum install -y python-setuptools | ||
# git clone https://github.com/mbj4668/pyang.git | ||
# cd pyang | ||
# python setup.py install | ||
|
||
# cd ../.. | ||
# git clone --depth 1 https://github.com/CESNET/libnetconf.git | ||
# sudo yum install -y libxml2-devel libxslt-devel curl-devel libtool | ||
# cd libnetconf | ||
# ./configure --prefix=/usr --libdir=/usr/lib -q | ||
|
||
|
||
cd ../.. | ||
cd mod_netconf | ||
# sudo yum install -y json-c-devel | ||
./bootstrap.sh | ||
./configure | ||
make | ||
make install | ||
|
||
ldconfig | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
sudo yum install -y wget git gcc gcc-c++ zlib1g-devel libssl-devel openssl-devel cmake pcre-devel autoconf automake json-c-devel | ||
|
||
# PHP dependencies: | ||
yum install -y php php-common php-json php-dom php-pdo php-intl php-sysvsem | ||
|
||
( | ||
wget https://red.libssh.org/attachments/download/177/libssh-0.7.2.tar.xz | ||
tar -xJf libssh-0.7.2.tar.xz | ||
mkdir -p libssh-0.7.2/build | ||
cd libssh-0.7.2/build | ||
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DLIB_INSTALL_DIR=/usr/lib64 .. && make -j2 && sudo make install | ||
) | ||
|
||
( | ||
git clone -b devel --depth 1 https://github.com/CESNET/libyang.git | ||
mkdir -p libyang/build | ||
cd libyang/build | ||
cmake -DCMAKE_INSTALL_PREFIX=/usr -DLIB_INSTALL_DIR=lib64 -DENABLE_BUILD_TESTS=OFF .. && sudo make install && sudo make install | ||
) | ||
|
||
( | ||
wget https://cmocka.org/files/1.0/cmocka-1.0.1.tar.xz | ||
tar -xJf cmocka-1.0.1.tar.xz | ||
mkdir -p cmocka-1.0.1/build | ||
cd cmocka-1.0.1/build | ||
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .. && make -j2 && sudo make install | ||
) | ||
|
||
( | ||
git clone --depth 1 git://github.com/cejkato2/libwebsockets lws | ||
mkdir lws/b | ||
cd lws/b | ||
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DLWS_INSTALL_LIB_DIR=/usr/lib -DLIB_SUFFIX=64 .. && sudo make install | ||
) | ||
|
||
# libnetconf2 | ||
( | ||
git clone -b devel --depth 1 https://github.com/CESNET/libnetconf2.git | ||
mkdir -p libnetconf2/build | ||
cd libnetconf2/build | ||
cmake -DENABLE_TLS=ON -DENABLE_SSH=ON -DENABLE_BUILD_TESTS=OFF -DCMAKE_INSTALL_PREFIX=/usr -DLIB_INSTALL_DIR=lib64 .. && sudo make install | ||
) | ||
ldconfig | ||
|
||
( | ||
git clone -b netopeerguid --depth 1 https://github.com/CESNET/mod_netconf | ||
cd mod_netconf | ||
./bootstrap.sh | ||
./configure | ||
make | ||
make install | ||
) | ||
|
||
( | ||
cd /var/www/ | ||
git clone -b netopeerguid --depth 1 https://github.com/CESNET/Netopeer-GUI netopeergui | ||
cd netopeergui | ||
cp app/config/parameters.yml.dist app/config/parameters.yml | ||
php app/check.php | ||
php ./composer.phar self-update | ||
php ./composer.phar install | ||
cd install | ||
./bootstrap.sh && ./configure --without-modnetconf -q && make install | ||
service httpd restart | ||
service netopeerguid restart | ||
cd /var/www/netopeergui | ||
php app/console app:install --post=install | ||
chcon -R -t httpd_sys_rw_content_t /var/www/netopeergui/app/{cache,logs} | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.