From 7232e254f790608c959455fb1b7c4f2b8c13b7ab Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Sun, 23 Aug 2020 21:19:19 +0200 Subject: [PATCH] Check out and compile tools for taginfo This commit doesn't use the new versions of those tools yet, it just checks them out and compiles and them. --- cookbooks/taginfo/recipes/default.rb | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/cookbooks/taginfo/recipes/default.rb b/cookbooks/taginfo/recipes/default.rb index 7972f380f..7c31b3d33 100644 --- a/cookbooks/taginfo/recipes/default.rb +++ b/cookbooks/taginfo/recipes/default.rb @@ -98,6 +98,33 @@ node[:taginfo][:sites].each do |site| mode "755" end + git "#{directory}/taginfo-tools" do + action :sync + repository "https://github.com/taginfo/taginfo-tools.git" + revision "osmorg-taginfo-live" + depth 1 + enable_submodules true + user "taginfo" + group "taginfo" + end + + directory "#{directory}/build" do + owner "taginfo" + group "taginfo" + mode "755" + end + + execute "compile_taginfo_tools" do + action :nothing + owner "taginfo" + group "taginfo" + cwd "#{directory}/build" + command "cmake #{directory}/taginfo-tools && make" + subscribes :run, "apt_package[libprotozero-dev]" + subscribes :run, "apt_package[libosmium2-dev]" + subscribes :run, "git[#{directory}/taginfo-tools]" + end + git "#{directory}/taginfo" do action :sync repository "https://github.com/taginfo/taginfo.git" -- 2.39.5