~hanno-stock/revu/updated-revu-workflow

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
===============================================================
= REVU - A review tool for Ubuntu Developers and Contributors =
===============================================================

---------------------------------------------------------------
 AUTHORS / COPYRIGHT

Copyright (c) 2005-2008 All contributors.

Main Developers:
 Reinhard Tartler <siretart@ubuntu.com>
 Stefan Potyra <sistpoty@ubuntu.com> 
 Siegfried-Angel Gevatter Pujals <rainct@ubuntu.com>
 Michael Casadevall <sonicmctails@ubuntu.com>

Contributors:
 Andrew Mitchell <ajmitch@ubuntu.com>
 Emilio Pozuelo Monfort <pochu@ubuntu.com>
 Others...

Ubiquity plugin:
 Olivier Girardot <ssaboum@gmail.com>
 Jonathan Winandy <jonathan.winandy@gmail.com>


The following files have different copyright and licenses:

 - All icons except for the Ubuntu Developer emblem are taken from
   Oxygen icon theme, which is released under the GNU Lesser General
   Public License (http://www.gnu.org/licenses/lgpl.html). Some of
   them have been adapted by Harald Sitter <apachelogger@ubuntu.com>.

 - The Ubuntu Developer emblem has been was taken from
   https://launchpad.net/~ubuntu-dev. It's license is unclear.

 - Flot (templates/flot) is released under the MIT License.
   http://code.google.com/p/flot/

---------------------------------------------------------------
 LICENSE (REVISED BSD)

All rights reserved.

Redistribution and use in source and binary forms, with or without modi-
fication, are permitted provided that the following conditions are met:

 * Redistributions of source code must retain the above copyright
   notice, this list of conditions and the following disclaimer.

 * Redistributions in binary form must reproduce the above copyright
   notice, this list of conditions and the following disclaimer in the
   documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICU-
LAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

---------------------------------------------------------------
 DEPENDENCIES

These are the packages names on Ubuntu. They may be called different
on other systems, and some of them may be replaced with similar
applications. However, we have only tested REVU with those listed here.

 - apache2
 - postgresql-8.3
 - libapache2-mod-python
 - python2.5
 - python-pygresql
 - python-librdf
 - python-openid
 - python-debian
 - python-mako
 - curl

---------------------------------------------------------------
 QUICK START

/// PostgreSQL ///

Create a PostgreSQL user for REVU and a database. When you do the following,
replace "uver" with whichever password you want.
  * sudo su postgres -c "psql template1 -c \"CREATE USER revu WITH
    PASSWORD 'uver';\""
  * sudo su postgres -c "psql template1 -c \"CREATE DATABASE revubase;\""
  * sudo su postgres -c "psql template1 -c \"GRANT ALL ON DATABASE revubase
    TO revu;\""

Open file /etc/postgresql/8.3/main/pg_hba.conf (as root or as user
"postgres"), search for:
  # "local" is for Unix domain socket connections only
  local   all         all                               ident samuser
... and replace the "ident samuser" in the second line with "md5".

Restart PostgreSQL for the changes to take effect:
  sudo /etc/init.d/postgresql-8.3 restart

Now create the necessary tables for REVU:
  psql -Urevu revubase -c "\i db/create_schema.sql"

/// Apache ///

Run the following commands to enable the necessary Apache 2 modules:
  sudo a2enmod python
  sudo a2enmod rewrite

Add the following line to /etc/apache2/sites-available/default (or
whatever file you use for REVU). It doesn't need to be exactly this
line, but at least the overrides listed below must be allowed.
  AllowOverride Indexes FileInfo Limit

Restart the web server:
  sudo /etc/init.d/apache2 restart

/// Configuration ///

Copy file config/revu.cfg.tmpl to config/revu.cfg, and htaccess.tmpl to
.htaccess, and adjust both to your needs.