chiark / gitweb /
Merge branch 'per-app-repos' into 'master'
[fdroidserver.git] / buildserver / cookbooks / fdroidbuild-general / recipes / default.rb
1
2 user = node[:settings][:user]
3 debian_mirror = node[:settings][:debian_mirror]
4
5 execute 'set_debian_mirror' do
6   command "sed -i 's,http://ftp.uk.debian.org/debian/,#{debian_mirror},g' /etc/apt/sources.list"
7 end
8
9 execute "apt-get-update" do
10   command "apt-get update"
11 end
12
13 %w{ant ant-contrib autoconf autoconf2.13 automake1.11 autopoint bison bzr cmake curl expect faketime flex gettext git-core git-svn gperf graphviz imagemagick inkscape javacc libarchive-zip-perl librsvg2-bin libsaxonb-java libssl-dev libssl1.0.0 libtool make maven mercurial nasm openjdk-7-jdk optipng pandoc perlmagick pkg-config python python-gnupg python-magic python-setuptools python3-gnupg quilt realpath scons subversion swig texinfo transfig unzip vorbis-tools xsltproc yasm zip}.each do |pkg|
14   package pkg do
15     action :install
16   end
17 end
18
19 if node['kernel']['machine'] == "x86_64"
20   %w{libstdc++6:i386 libgcc1:i386 zlib1g:i386 libncurses5:i386}.each do |pkg|
21     package pkg do
22       action :install
23     end
24   end
25 end
26
27 easy_install_package "compare-locales" do
28   options "-U"
29   action :install
30 end
31
32 execute "add-bsenv" do
33   user user
34   command "echo \". ./.bsenv \" >> /home/#{user}/.bashrc"
35   not_if "grep bsenv /home/#{user}/.bashrc"
36 end
37
38