6 echo "Init script for $boxName"
9 if [ "$boxName" == "lucid" ]
12 echo "Additional Python-Repository"
15 # needed for add-appt-repository
16 apt-get
-y install python-software-properties
18 add-apt-repository ppa
:mercurial-ppa
/releases
24 echo "Installing additional packages"
27 neededPackages
=(g
++ bison flex mercurial git
make ccache cmake rpm zlib1g-dev libiberty-dev
)
28 bonusPackages
=(emacs csh tcsh zsh
)
30 for p
in ${neededPackages[@]}; do
34 for p
in ${bonusPackages[@]}; do
38 # this is needed for the packaging stuff
40 echo "Setting for postfix"
43 # Make sure that default-mta installs
44 debconf-set-selections
<<< "postfix postfix/mailname string vagrant.test.machine.com"
45 debconf-set-selections
<<< "postfix postfix/myhostname string vagrant.test.machine.com"
46 debconf-set-selections
<<< "postfix postfix/main_mailer_type string 'Internet Site'"
47 debconf-set-selections
<<< "postfix postfix/destinations string localhost"
49 # this workaround doesn't work for lucid
50 export DEBIAN_FRONTEND
=noninteractive
53 echo "Tools for packaging"
56 packagingPackages
=(default-mta dpkg-dev debhelper devscripts cdbs binutils-dev
)
57 for p
in ${packagingPackages[@]}; do
62 echo "Ubuntu-specific ended. Now doing general stuff"
65 /vagrant
/initGeneralScript.sh