Skip to content

Instantly share code, notes, and snippets.

@Aslan
Created January 14, 2010 02:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Aslan/276807 to your computer and use it in GitHub Desktop.
Save Aslan/276807 to your computer and use it in GitHub Desktop.
svn_version = "1.6.5"
svn_dir = "/tmp/svn-#{svn_version}"
directory "#{svn_dir}" do
owner "root"
group "root"
mode "0755"
action :create
not_if "test -d #{svn_dir}"
end
# http://packages.ubuntu.com/karmic/subversion installing the karmic version :
remote_file "#{svn_dir}/subversion_#{svn_version}dfsg-1ubuntu1.dsc" do
source "http://archive.ubuntu.com/ubuntu/pool/main/s/subversion/subversion_#{svn_version}dfsg-1ubuntu1.dsc"
action :create
end
remote_file "#{svn_dir}/subversion_#{svn_version}dfsg.orig.tar.gz" do
source "http://archive.ubuntu.com/ubuntu/pool/main/s/subversion/subversion_#{svn_version}dfsg.orig.tar.gz"
action :create
end
remote_file "#{svn_dir}/subversion_1.6.5dfsg-1ubuntu1.diff.gz" do
source "http://archive.ubuntu.com/ubuntu/pool/main/s/subversion/subversion_1.6.5dfsg-1ubuntu1.diff.gz"
action :create
end
bash "comile_subversion_source" do
cwd "#{svn_dir}"
code <<-EOH
dpkg-source -x subversion_#{svn_version}dfsg-1ubuntu1.dsc
cd subversion-#{svn_version}dfsg && ./configure
make && make install
EOH
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment