-
Notifications
You must be signed in to change notification settings - Fork 2
/
Vagrantfile
34 lines (29 loc) · 1.09 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = if ENV.has_key?("SHILL_GUI")
then "shill/freebsd-9.3-mate"
else "shill/freebsd-9.3"
end
config.vm.synced_folder ".", "/vagrant", disabled: true
config.vm.provider "virtualbox" do |vb|
vb.gui = ENV.has_key?("SHILL_GUI")
vb.memory = "4096"
end
config.vm.provision "shell", inline: <<-SHELL
pkg install -y racket git
cd /usr/src && rm -Rf *
fetch https://codeload.github.com/HarvardPL/ShillBSD/zip/release/9.3.0
unzip 9.3.0
mv ShillBSD-release-9.3.0/* .
rm -Rf 9.3.0 ShillBSD-release-9.3.0
SHELL
config.vm.provision "shell", privileged: false, inline: <<-SHELL
cd /home/vagrant && git clone https://github.com/HarvardPL/shill.git
cd /home/vagrant/shill/racket && sudo raco link -i -n shill .
cd /home/vagrant/shill/stdlib && sudo raco link -i -n shill .
cd /home/vagrant/shill && make && sudo make install
sudo sh -c 'echo shill_load="YES" >> /boot/loader.conf'
SHELL
config.vm.provision :reload
end