STYLE: Foamization
[foam-extend-3.2.git] / vagrantSandbox / initUbunutuScript.sh
blobd883e1df5958a0b3812fe338a571e6c2ff602f36
1 #! /bin/bash
3 boxName=$1
5 echo
6 echo "Init script for $boxName"
7 echo
9 if [ "$boxName" == "lucid" ]
10 then
11 echo
12 echo "Additional Python-Repository"
13 echo
15 # needed for add-appt-repository
16 apt-get -y install python-software-properties
18 add-apt-repository ppa:mercurial-ppa/releases
21 apt-get update -y
23 echo
24 echo "Installing additional packages"
25 echo
27 neededPackages=(g++ bison flex mercurial git make ccache cmake rpm)
28 bonusPackages=(emacs csh tcsh zsh)
30 for p in ${neededPackages[@]}; do
31 apt-get -y install $p
32 done
34 for p in ${bonusPackages[@]}; do
35 apt-get -y install $p
36 done
38 # this is needed for the packaging stuff
39 echo
40 echo "Setting for postfix"
41 echo
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
52 echo
53 echo "Tools for packaging"
54 echo
56 packagingPackages=(default-mta dpkg-dev debhelper devscripts cdbs binutils-dev)
57 for p in ${packagingPackages[@]}; do
58 apt-get -y install $p
59 done
61 echo
62 echo "Ubuntu-specific ended. Now doing general stuff"
63 echo
65 /vagrant/initGeneralScript.sh
67 echo
68 echo "Ended"