README.ThirdParty and AllMake.stage5: Changed tabs to spaces, for editing coherence.
[foam-extend-3.2.git] / vagrantSandbox / initUbunutuScript.sh
blobea3de7bf2629634a0162f57a1887ecfad140168b
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 apt-get -y install mercurial
28 apt-get -y install bison
29 apt-get -y install flex
30 apt-get -y install g++
31 apt-get -y install make
32 #apt-get -y install python-dev
33 apt-get -y install ccache
34 apt-get -y install cmake
36 # test scripts with different shells
37 apt-get -y install csh
38 apt-get -y install tcsh
39 apt-get -y install zsh
41 # to make the ThirdParty-Stuff work
42 apt-get -y install rpm
44 # this is needed for the packaging stuff
45 echo
46 echo "Setting for postfix"
47 echo
49 # Make sure that default-mta installs
50 debconf-set-selections <<< "postfix postfix/mailname string vagrant.test.machine.com"
51 debconf-set-selections <<< "postfix postfix/myhostname string vagrant.test.machine.com"
52 debconf-set-selections <<< "postfix postfix/main_mailer_type string 'Internet Site'"
53 debconf-set-selections <<< "postfix postfix/destinations string localhost"
55 # this workaround doesn't work for lucid
56 export DEBIAN_FRONTEND=noninteractive
58 echo
59 echo "Tools for packaging"
60 echo
62 # Needed for packaging
63 apt-get -y install default-mta
64 apt-get -y install dpkg-dev
65 apt-get -y install debhelper devscripts cdbs
67 # Not needed. Just to keep Bernhard happy
68 apt-get -y install emacs
70 echo
71 echo "Ubuntu-specific ended. Now doing general stuff"
72 echo
74 /vagrant/initGeneralScript.sh
76 echo
77 echo "Ended"