+++ /dev/null
-#!/bin/sh
-
-/usr/bin/sudo -u trac /usr/bin/trac-admin /var/lib/trac changeset added "$1" "$2"
+++ /dev/null
-#!/bin/sh
-
-/usr/bin/sudo -u trac /usr/bin/trac-admin /var/lib/trac changeset modified "$1" "$2"
include_recipe "apache"
-package "subversion"
-
-repository_directory = "/var/lib/subversion/repos/openstreetmap"
-
-remote_directory "#{repository_directory}/hooks" do
- source "hooks"
- owner "www-data"
- group "www-data"
- mode "755"
- files_owner "www-data"
- files_group "www-data"
- files_mode "755"
- purge false
+package "subversion" do
+ action :remove
end
apache_module "dav" do
- package "apache2"
+ action :disable
end
apache_module "dav_fs" do
- package "apache2"
+ action :disable
end
apache_module "dav_svn" do
package "libapache2-mod-svn"
+ action [:disable, :delete]
end
apache_module "authz_svn" do
package "libapache2-mod-svn"
+ action [:disable, :delete]
end
ssl_certificate "svn.openstreetmap.org" do
apache_site "svn.openstreetmap.org" do
template "apache.erb"
- directory repository_directory
- variables :realm => "Subversion Repository", :password_file => "/etc/apache2/svn.passwd", :aliases => ["svn.osm.org"]
+ variables :aliases => ["svn.osm.org"]
end
-template "/etc/cron.daily/svn-backup" do
- source "backup.cron.erb"
- owner "root"
- group "root"
- mode "755"
+file "/etc/cron.daily/svn-backup" do
+ action :delete
end
ServerName <%= @name %>
ServerAdmin webmaster@openstreetmap.org
- Protocols http/1.1
-
SSLEngine on
SSLCertificateFile /etc/ssl/certs/<%= @name %>.pem
SSLCertificateKeyFile /etc/ssl/private/<%= @name %>.key
CustomLog /var/log/apache2/<%= @name %>-access.log combined
- CustomLog /var/log/apache2/<%= @name %>-svn-access.log "%h %t %u %{SVN-ACTION}e" env=SVN-ACTION
ErrorLog /var/log/apache2/<%= @name %>-error.log
- <Location />
- DAV svn
- SVNPath <%= @directory %>
- SVNIndexXSLT /svnindex.xsl
-
- LimitXMLRequestBody 0
- LimitRequestBody 0
+ RedirectPermanent /applications/editors/josm/plugins/cadastre-fr/images/cadastre_small.png https://raw.githubusercontent.com/openstreetmap/svn-archive/main/applications/editors/josm/plugins/cadastre-fr/images/cadastre_small.png
+ RedirectPermanent / https://github.com/openstreetmap/svn-archive
- <Limit GET PROPFIND OPTIONS REPORT>
- Require all granted
- </Limit>
+ ErrorDocument 404 https://github.com/openstreetmap/svn-archive
- <LimitExcept GET PROPFIND OPTIONS REPORT>
- Require all denied
- </LimitExcept>
- </Location>
</VirtualHost>
<% unless @aliases.empty? -%>
+++ /dev/null
-#!/bin/sh
-
-# DO NOT EDIT - This file is being maintained by Chef
-
-T=$(mktemp -d -t -p /var/tmp svn.XXXXXXXXXX)
-D=$(date +%Y-%m-%d)
-B=svn-$D.tar.gz
-
-mkdir $T/svn-$D
-ln -s /etc/apache2/svn.passwd $T/svn-$D/svn.passwd
-
-nice svnadmin hotcopy /var/lib/subversion/repos/openstreetmap $T/svn-$D/repo > /dev/null
-
-export RSYNC_RSH="ssh -ax"
-
-nice tar --create --dereference --directory=$T svn-$D | nice gzip --rsyncable -9 > $T/$B
-nice rsync --preallocate --fuzzy $T/$B backup::backup
-
-rm -rf $T