1 Star 0 Fork 0

RuanJG/wolfssl

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Vagrantfile 1.17 KB
一键复制 编辑 原始数据 按行查看 历史
Moisés Guimarães 提交于 2016-05-15 15:03 . updates Linux deps on README
# -*- mode: ruby -*-
# vi: set ft=ruby :
$setup = <<SCRIPT
apt-get update
apt-get install -y git autoconf libtool make valgrind libpq-dev
URL=https://github.com/libevent/libevent/releases/download/release
LIB=libevent
VER=2.0.22-stable
wget -q $URL-$VER/$LIB-$VER.tar.gz && tar -zxf $LIB-$VER.tar.gz
cd $LIB-$VER/ && ./autogen.sh && ./configure -q && make -s
sudo make install && cd .. && rm -rf $LIB-$VER*
DST=wolfssl
cp -rp /vagrant/ $DST/
chown -hR vagrant:vagrant $DST/
echo "cd $DST" >> .bashrc
echo "read -p 'Sync $DST? (y/n) ' -n 1 -r" >> .bashrc
echo "echo # new line" >> .bashrc
echo 'if [[ \$REPLY =~ ^[Yy]$ ]]; then' >> .bashrc
echo " echo -e '\e[0;32mRunning $DST sync\e[0m'" >> .bashrc
echo " ./pull_to_vagrant.sh" >> .bashrc
echo "fi" >> .bashrc
SCRIPT
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.provision "shell", inline: $setup
config.vm.network "forwarded_port", guest: 11111, host: 33333
end
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ruanjg/wolfssl.git
git@gitee.com:ruanjg/wolfssl.git
ruanjg
wolfssl
wolfssl
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385