diff --git a/precise/svn/hooks/install b/precise/svn/hooks/install new file mode 100755 index 0000000..5c9cff7 --- /dev/null +++ b/precise/svn/hooks/install @@ -0,0 +1,26 @@ +#!/bin/bash + +set -eux # -x for verbose logging to juju debug-log + + +apt-get install -y --force-yes kal-shlib-pretty kal-scripts subversion + + +mkdir -p /var/svn +mkdir -p /opt/apps + + +cat < /etc/cron.d/svnbackup + +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin + +30 3 * * * root ansi_colors=no dayold=3 nbold=5 svndump_to_dir /var/backups + +EOF + +## to create a subvsersion server: +# svnadmin create /var/svn/xxx + +## to load a dump (after creation) +# cat dump.gz | gunzip | svnadmin load /var/svn/xxx + diff --git a/precise/svn/hooks/start b/precise/svn/hooks/start new file mode 100755 index 0000000..9eb7853 --- /dev/null +++ b/precise/svn/hooks/start @@ -0,0 +1,3 @@ +#!/bin/bash + +juju-log "Nothing to Start for base." diff --git a/precise/svn/hooks/stop b/precise/svn/hooks/stop new file mode 100755 index 0000000..170162b --- /dev/null +++ b/precise/svn/hooks/stop @@ -0,0 +1,3 @@ +#!/bin/bash + +juju-log "Nothing to stop for base." diff --git a/precise/svn/metadata.yaml b/precise/svn/metadata.yaml new file mode 100644 index 0000000..008def9 --- /dev/null +++ b/precise/svn/metadata.yaml @@ -0,0 +1,10 @@ +name: svn +summary: "SVN server and services" +maintainer: "Valentin Lab " +inherit: base-0k +description: | + SVN repositories +config-resources: + - /etc/subversion +data-resources: + - /var/backups/svn diff --git a/precise/svn/revision b/precise/svn/revision new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/precise/svn/revision @@ -0,0 +1 @@ +1 diff --git a/precise/svn/shorewall b/precise/svn/shorewall new file mode 100644 index 0000000..f760d10 --- /dev/null +++ b/precise/svn/shorewall @@ -0,0 +1,6 @@ +DNAT net lan:%%NAME%%:22 tcp 10023 + +DNAT lan lan:%%NAME%%:22 tcp 10023 - %%HOST_INTERNET_IP%% + +DNAT fw lan:%%NAME%%:22 tcp 10023 - %%HOST_INTERNET_IP%% + diff --git a/precise/svn/src/etc/cron.daily/git-bzr-syncs b/precise/svn/src/etc/cron.daily/git-bzr-syncs new file mode 100755 index 0000000..40746e8 --- /dev/null +++ b/precise/svn/src/etc/cron.daily/git-bzr-syncs @@ -0,0 +1,5 @@ +#!/bin/bash + +ansi_color=no git-bzr-syncs | logger -t oe-sync + + diff --git a/precise/svn/src/etc/ssh/lxc_git_access_id_rsa.pub b/precise/svn/src/etc/ssh/lxc_git_access_id_rsa.pub new file mode 120000 index 0000000..7c206e1 --- /dev/null +++ b/precise/svn/src/etc/ssh/lxc_git_access_id_rsa.pub @@ -0,0 +1 @@ +../../../../base-0k/src/etc/ssh/lxc_git_access_id_rsa.pub \ No newline at end of file diff --git a/precise/svn/src/patch/bzr-fastimport/btree-except.patch b/precise/svn/src/patch/bzr-fastimport/btree-except.patch new file mode 100644 index 0000000..f66d999 --- /dev/null +++ b/precise/svn/src/patch/bzr-fastimport/btree-except.patch @@ -0,0 +1,13 @@ +=== modified file 'revision_store.py' +--- revision_store.py 2012-01-10 08:48:02 +0000 ++++ revision_store.py 2013-06-13 13:42:59 +0000 +@@ -170,7 +170,7 @@ + """ + self.repo = repo + self._graph = None +- self._use_known_graph = True ++ self._use_known_graph = False + self._supports_chks = getattr(repo._format, 'supports_chks', False) + + def expects_rich_root(self): +