-package "gcc"
-package "make"
-package "autoconf"
-package "automake"
-package "libtool"
-package "libfcgi-dev"
-package "libxml2-dev"
-package "libmemcached-dev"
-package "libboost-regex-dev"
-package "libboost-system-dev"
-package "libboost-program-options-dev"
-package "libboost-date-time-dev"
-package "libboost-filesystem-dev"
-package "libpqxx3-dev"
-package "zlib1g-dev"
-
-cgimap_directory = "#{node[:web][:base_directory]}/cgimap"
-pid_directory = node[:web][:pid_directory]
-log_directory = node[:web][:log_directory]
-
-execute "cgimap-build" do
- action :nothing
- command "make"
- cwd cgimap_directory
- user "rails"
- group "rails"
-end
-
-execute "cgimap-configure" do
- action :nothing
- command "./configure --with-fcgi=/usr --with-boost-libdir=/usr/lib/x86_64-linux-gnu"
- cwd cgimap_directory
- user "rails"
- group "rails"
- notifies :run, "execute[cgimap-build]", :immediate
-end
-
-execute "cgimap-autogen" do
- action :nothing
- command "./autogen.sh"
- cwd cgimap_directory
- user "rails"
- group "rails"
- notifies :run, "execute[cgimap-configure]", :immediate
-end
-
-git cgimap_directory do
- action :sync
- repository "git://git.openstreetmap.org/cgimap.git"
- revision "live"
- user "rails"
- group "rails"
- notifies :run, "execute[cgimap-autogen]", :immediate