--- /dev/null
+#!/usr/bin/env python
+
+print """
+<html>
+ <head>
+ <title>OpenStreetMap replication diffs</title>
+ <link href="/style.css" rel="stylesheet" type="text/css">
+ </head>
+ <body>
+<img id="logo" src="/logo.png" alt="OSM logo" width="128" height="128">
+<h1>planet.openstreetmap.org - replication diffs</h1>
+<p>OpenStreetMap is <i>open data</i>, licensed under the <a href="http://opendatacommons.org/licenses/odbl/">Open Data Commons Open Database License</a> (ODbL)</p>
+<p> </p>
+"""
gem_package "pg"
-template "/usr/local/bin/replicate-changesets" do
- source "changesets.bin.erb"
+remote_directory "/usr/local/bin" do
+ source "replication-bin"
owner "root"
group "root"
mode 0755
+ files_owner "root"
+ files_group "root"
+ files_mode 0755
+end
+
+remote_directory "/store/planet/replication" do
+ source "replication-cgi"
+ owner "root"
+ group "root"
+ mode 0755
+ files_owner "root"
+ files_group "root"
+ files_mode 0755
+end
+
+directory "/store/planet/replication/changesets" do
+ owner "planet"
+ group "planet"
+ mode 0755
+end
+
+directory "/store/planet/replication/day" do
+ owner "planet"
+ group "planet"
+ mode 0755
+end
+
+directory "/store/planet/replication/hour" do
+ owner "planet"
+ group "planet"
+ mode 0755
+end
+
+directory "/store/planet/replication/minute" do
+ owner "planet"
+ group "planet"
+ mode 0755
end
directory "/etc/replication" do