+ subscribes :run, "execute[/opt/planet-dump-ng/autogen.sh]"
+end
+
+execute "/opt/planet-dump-ng/Makefile" do
+ action :nothing
+ command "make"
+ cwd "/opt/planet-dump-ng"
+ user "root"
+ group "root"
+ subscribes :run, "execute[/opt/planet-dump-ng/configure]"
+end
+
+directory "/store/planetdump" do
+ owner "www-data"
+ group "www-data"
+ mode 0o755
+end
+
+["planetdump", "planet-mirror-redirect-update"].each do |program|
+ template "/usr/local/bin/#{program}" do
+ source "#{program}.erb"
+ owner "root"
+ group "root"
+ mode 0o755
+ end