Package: lxr-cvs
Version: 0.9.5+cvs20071020-1
Severity: normal

--- Please enter the report below this line. ---
This is a proposal to update the README.Debian file regarding mainly the 
postgresql setup.

Suggested changes are in Dependencies, Setup 1, Edit the lxr config and Build 
the cross-reference.


I propose:
---------------

Dependencies
-----------------------
...
This packages need:
...
- swish-e package (not to be confused with swish++)

(I suggest to add this because lxr-cvs was not working for me until I add this 
package, but I use lxr-cvs to browse Perl code, not Linux-src)

Setup
----------
...
1) Set up the database.
...
  For Postgresql:

   Create a Linux user account for lxr, named "lxr".

   Get a shell for the database superuser 'postgres'. If your system has an 
active root user, use su:
           $ su -c "su -s /bin/sh postgres"
   If your system uses sudo to get administrative rights, use sudo instead:
           $ sudo -u postgres sh
   Add the previously created user account in Postgresql and give the user 
permission to create databases:
            createuser lxr
    Create a database for lxr:
            createdb -U lxr lxr
    Add a web server account (unprivilege):
            createuser www-data
    Logout and login in the normal shell as "lxr"
    Initialize the database:
             psql -U lxr lxr
              \i /usr/share/doc/lxr-cvs/examples/initdb-postgres
    Just ignore the errors (if any) about unimplemented functions.

...

3) Edit the lxr configuration file. (/etc/lxr-cvs/lxr.conf)
...
    You should check the location of swish-e index database files. The 
directory should be writable for the "lxr" user:
             'swishdir' => '/var/lib/lxr-cvs/index/',

...
5) Build the cross-reference:
    Open a shell for the lxr user and do:
            genxref --url=http://localhost/lxr --allversions


---
end of suggests!

As I used lxr to browse a different source tree than the linux one, if you 
think that a little documentation can help users, I can write it.

regards
xavier

--- System information. ---
Architecture: amd64
Kernel:       Linux 2.6.32-5-amd64

Debian Release: squeeze/sid
  500 unstable        ftp.fr.debian.org 
  500 unstable        debian-multimedia.gnali.org 
  500 instable        download.tuxfamily.org 
  101 experimental-snapshots qt-kde.debian.net 
  101 experimental    ftp2.fr.debian.org 

--- Package information. ---
Depends                     (Version) | Installed
=====================================-+-==============
apache2                               | 2.2.15-5
 OR apache-ssl                        | 
 OR apache-perl                       | 
 OR apache                            | 
 OR httpd-cgi                         | 
exuberant-ctags                       | 1:5.8-2
perl5                                 | 
libfile-mmagic-perl                   | 1.27-1
perl                    (>= 5.6.0-16) | 5.10.1-12


Recommends             (Version) | Installed
================================-+-===========
mysql-server                     | 
 OR postgresql                   | 8.4.4-1
libdbd-mysql-perl                | 4.014-1
 OR libdbd-pg-perl               | 2.17.1-2


Suggests                  (Version) | Installed
===================================-+-===========
swish-e                    (>= 2.1) | 2.4.7-1
libapache2-mod-perl2                | 
 OR libapache-mod-perl              | 





Xavier
xav...@alternatif.org - 09 54 06 16 26



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to