Permalink
Browse files

Updated vagrant

  • Loading branch information...
1 parent 0558650 commit aa6950bfe3be038128decdafeca0b545944f296d @jaytaph jaytaph committed Nov 12, 2013
Showing with 18 additions and 10 deletions.
  1. +9 −5 Vagrantfile
  2. +9 −5 support/vagrant-provision.sh
View
14 Vagrantfile
@@ -1,8 +1,12 @@
-Vagrant::Config.run do |config|
- config.vm.box = 'lucid64'
- config.vm.box_url = 'http://files.vagrantup.com/lucid64.box'
+Vagrant.configure("2") do |config|
- config.vm.host_name = "vagrant"
+ config.vm.box = "lucid64"
+ config.vm.box_url = 'http://files.vagrantup.com/lucid64.box'
- config.vm.provision :shell, :path => "support/vagrant-provision.sh"
+
+ config.vm.provider :virtualbox do |vb|
+ vb.gui = false
+ end
+
+ config.vm.provision "shell", :path => "support/vagrant-provision.sh"
end
View
14 support/vagrant-provision.sh
@@ -1,18 +1,22 @@
#!/bin/sh
#
-# This is a simple provisioning script that will create a propper
-#
+# This is a simple provisioning script that will create a proper saffire compilation setup
#
apt-get update
# Install compile tools
-apt-get install -y git-core make automake gcc pkg-config bison flex php5-cli
+apt-get install -y git-core make automake gcc pkg-config bison flex colormake
# Install mandatory libraries
apt-get install -y libpcre3-dev libfcgi-dev libedit-dev libbz2-dev libcunit1-dev libxml2-dev
+# Mandatory PHP scripts, needed for generating some files
+apt-get install -y php5-cli php5-dev libyaml-dev php-pear
+printf "\n" | pecl install yaml
+echo "extension=yaml.so" >> /etc/php5/cli/php.ini
+
# Symlink SFL library
mkdir -p /usr/share/saffire/modules
ln -s /vagrant/sfl /usr/share/saffire/modules/sfl
@@ -21,12 +25,12 @@ ln -s /vagrant/sfl /usr/share/saffire/modules/sfl
cat << 'EOF' > /etc/motd.tail
Vagrant Development Box. This box runs on ubuntu64 bit server edition.
-All neccessary tools and libraries are installed to compile Saffire. Please run the following:
+All necessary tools and libraries are installed to compile Saffire. Please run the following:
$ cd /vagrant
$ ./autogen.sh
$ ./configure [--enable-debug]
- $ make
+ $ colormake
$ sudo make install
This will compile and install a Saffire binary in /usr/local/bin/saffire. From this point you can use

0 comments on commit aa6950b

Please sign in to comment.