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 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144
|
chora2 for Debian
-----------------
Note: The format for this document and the basic packaging framework was mostly
robbed from horde3 and imp4 by Ola Lundqvist and Jose Carlos Medeiros.
To configure this package use the horde3 web configuration. To let
it write to the configuration files you have to change the owner
of the /etc/horde/chora2 dir and config files to be owned by www-data.
If you do not do that you have to cut from the web configuration
program and paste into the config file yourself.
The reason why this is not the default option is that to allow writing
to configuration files without any authentication is a big
security hole.
.....................................................................
Some notes from upstream INSTALL document follow here:
Prerequisites
=============
To function properly, Chora requires the following:
1. A working Horde installation.
Chora runs within the `Horde Application Framework`_, a set of common tools
for Web applications written in PHP. You must install Horde before
installing Chora.
.. _`Horde Application Framework`: http://www.horde.org/horde/
The Horde Framework can be obtained from the Horde website and FTP server,
at
http://www.horde.org/horde/
ftp://ftp.horde.org/pub/horde/
Many of Chora's prerequisites are also Horde prerequisites. Be sure to
have completed all of the steps in the INSTALL_ file for the Horde
Framework before installing Chora.
2. SVN, CVS or RCS repositories to view.
Chora can display any number of local CVS and RCS repositories, as well as
local and remote SVN repositories. Chora does **not** work on CVS
**checkouts**. The user under which the web server is running needs read
access to the repositories.
3. SVN, CVS and RCS binaries.
Depending on which kind of repositories you want to use, you need SVN
(http://subversion.tigris.org/) and RCS/CVS (http://www.cvshome.org/)
binaries.
Installing Chora
================
Chora is written in PHP, and must be installed in a web-accessible directory.
The precise location of this directory will differ from system to system.
Conventionally, Chora is installed directly underneath Horde in the
webserver's document tree.
Since Chora is written in PHP, there is no compilation necessary; simply
expand the distribution where you want it to reside and rename the root
directory of the distribution to whatever you wish to appear in the URL. For
example, with the Apache webserver's default document root of
``/usr/local/apache/htdocs``, you would type::
cd /usr/local/apache/htdocs/horde
tar zxvf /path/to/chora-2.0.tar.gz
mv chora-2.0 chora
and would then find Chora at the URL::
http://your-server/horde/chora/
Configuring Chora
=================
1. Configuring Horde for Chora
a. Register the application
In ``horde/config/registry.php``, find the ``applications['chora']``
stanza. The default settings here should be okay, but you can change
them if desired. If you have changed the location of Chora relative to
Horde, either in the URL, in the filesystem or both, you must update the
``fileroot`` and ``webroot`` settings to their correct values.
2. Configuring Chora
To configure Chora, change to the ``config/`` directory of the installed
distribution, and make copies of all of the configuration ``dist`` files
without the ``dist`` suffix::
cd config/
for foo in *.dist; do cp $foo `basename $foo .dist`; done
Documentation on the format of those files can be found in each file. With
the exception of the ``conf.*`` (see below) and ``sourceroots.php`` files,
the other files in ``config/`` need only be modified if you wish to
customize Chora's appearance or behavior, as the defaults will be correct
for most sites.
You must be sure to list your repository names and configuration
information in ``sourceroots.php``.
You must login to Horde as a Horde Administrator to finish the
configuration of Chora. Use the Horde ``Administration`` menu item to get
to the administration page, and then click on the ``Configuration`` icon to
get the configuration page. Select ``Version Control`` from the selection
list of applications. Fill in or change any configuration values as
needed. When done click on ``Generate Version Control Configuration`` to
generate the ``conf.php`` file. If your web server doesn't have write
permissions to the Chora configuration directory or file, it will not be
able to write the file. In this case, go back to ``Configuration`` and
choose one of the other methods to create the configuration file
``chora/config/conf.php``.
Note for international users: Chora uses GNU gettext to provide local
translations of text displayed by applications; the translations are found
in the po/ directory. If a translation is not yet available for your
locale (and you wish to create one), see the ``horde/po/README`` file, or
if you're having trouble using a provided translation, please see the
`horde/docs/TRANSLATIONS`_ file for instructions.
4. Testing Chora
Go to the Chora URL, and test out all the functionality to ensure it is
working.
If you run into a problem with annotationsin CVS repositories, it is
because some versions of CVS insist on having the ``CVSROOT/history`` file
as world-writable. Either make this file world-writable, or simply delete
it (you don't need to have it for CVS to work).
-- Roberto C. Sanchez <roberto@familiasanchez.net>, Fri, 13 May 2005 19:45:49 -0400
|