I added experimental support for lighttpd in 0.11-beta with scripts for semi automatic configuration/installation.
If someone volunteers for testing, send me a e-mail using my SourceForge @ddress (available on the LXR site: lxr.sf.net or sf.net/projects/lxr) for tarball transmission. Anyway it won't be bad to upgrade to current version.
ajlittoz, LXR administrator
Search Criteria
Package Details: lxr 2.0.2-1
Package Actions
- View PKGBUILD
- Download tarball
- Search wiki
- Flagged out-of-date (2015-02-26)
| Package Base: | lxr |
|---|---|
| Description: | general purpose source code indexer and cross-referencer |
| Upstream URL: | http://sourceforge.net/projects/lxr/ |
| Category: | devel |
| Licenses: | |
| Conflicts: | |
| Provides: | |
| Submitter: | None |
| Maintainer: | isaky |
| Last Packager: | TrialnError |
| Votes: | 0 |
| First Submitted: | 2011-01-30 18:44 |
| Last Updated: | 2014-09-11 11:43 |
Dependencies (13)
- ctags (make)
- perl-dbi (make)
- perl-file-mmagic (make)
- swish-e (make)
- apache (optional) – Webserver
- lighttpd (optional) – Webserver
- mod_perl (optional) – (unknown)
- nginx (optional) – Webserver
- perl-dbd-mysql (optional) – mariadb/mysql support
- perl-dbd-pg (optional) – postgresqql support
- perl-dbd-sqlite (optional) – sqlite support
- perl-file-mmagic (optional) – (unknown)
- swish-e (optional) – Freetext search
Required by (0)
Sources
- http://downloads.sourceforge.net/project/lxr/stable/lxr-2.0.2.tgz
- httpd.lxr.conf
- lxr.conf
Latest Comments
Anonymous comment
Anonymous comment
> I tried to assign perl -T from withing lighttpd configuration, but did not succeed.
I investigated a bit and it looks like it's currently not possible to do assign a cgi command with arguments in lighttpd.
I tried to not assign a handler, and therefore, make lxr scripts execute by themselves, but it appears that execv a script whose shebang is
#!perl -W does not work. I managed to have a simpler lighttpd conf (ie: without an perlTaint script) by putting the full path to perl interpreter in lxr scripts:
#!/usr/bin/perl -W
then my lighttpd conf for cgi.assign was:
cgi.assign = ( "search" => "/usr/bin/perlTaint",
"diff" => "/usr/bin/perlTaint",
"ident" => "/usr/bin/perlTaint",
"source" => "/usr/bin/perlTaint" )
}
I don't known if this shebang limitation is specific to linux.
Anonymous comment
@ajlittoz: I put the DBM modules into optdepends. These dependencies are not installed automatically. So it's up to the user to install the package he needs.
Anonymous comment
Here is my lighttpd configuration
alias.url += ( "/lxr/" => "/usr/lib/lxr/cgi-bin/" )
$HTTP["url"] =~ "^/lxr/" {
cgi.assign = ( "search" => "/usr/bin/perlTaint",
"diff" => "/usr/bin/perlTaint",
"ident" => "/usr/bin/perlTaint",
"source" => "/usr/bin/perlTaint" )
}
perlTaint contains:
$ cat /usr/bin/perlTaint
#!/bin/sh
perl -T "${@}"
I tried to assign perl -T from withing lighttpd configuration, but did not succeed.
Note, that mod_cgi is enabled in my main lighttpd.conf file, I don't remember if that's the default on archlinux.
Anonymous comment
The behaviour mentioned below results from the fact you must use "HTML-context" paths for 'stylesheet' and some other parameters in lxr.conf (see http://lxr.sf.net/LxrConf/lxrconffilepaths.shtml). The solution given is the right one.
By the way, I'm interesting in packaging LXR but my skills in this area are rather limited. What puzzles me is the various dependencies on Perl's DBI and DBM modules. How do you solve that?
@arenevier: Have you a working configuration for lighttpd I could add to the installation guide?
ajlittoz
LXR administrator
Anonymous comment
@arenevier: Thank you for your hints. I moved some of the dependencies to optdepends and fixed the stylesheet issue.
Anonymous comment
Thanks for the package.
I have a few suggestions about it:
First, I use lighttpd and postgresql, so I could not install the package with the given dependencies.
Then, the stylesheet configuration did not work for me.
Whith,
, 'stylesheet' => '/usr/share/lxr/templates/lxr.css'
I got
<link href="/usr/share/lxr/templates/lxr.css" rel="STYLESHEET" type="text/css">
To fix it, I used , 'stylesheet' => 'lxr.css' in my conf file, and put (actually, symlinked) lxr.css in /usr/lib/lxr/cgi-bin/
Regards,
arno