#! /usr/bin/env bash
boxName=$1
echo
echo "Init script for $boxName"
pkg install -fy virtualbox-ose-additions
neededPackages=(mercurial git flex bison ccache rpm4 wget)
bonusPackages=(emacs24 zsh)
for p in ${neededPackages[@]}; do
pkg install -y $p
done
for p in ${bonusPackages[@]}; do
echo "Upgrading all to get working packages"
pkg upgrade -y
echo "FreeBSD-specific ended. Now doing general stuff"
/vagrant/initGeneralScript.sh
echo "Ended"