-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathlxrng.conf-dist
55 lines (46 loc) · 1.42 KB
/
lxrng.conf-dist
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
# -*- mode: perl -*-
# Configuration file
#
#
use LXRng::Index::PgBatch;
use LXRng::Repo::Git;
use LXRng::Search::Xapian;
my $gitrepo = LXRng::Repo::Git
->new('/var/lib/lxrng/repos/linux-2.6/.git',
release_re => qr/^v[^-]*$/,
author_timestamp => 0);
my $index = LXRng::Index::PgBatch->new(db_spec => 'dbname=lxrng;port=5432',
db_user => "", db_pass => "",
# table_prefix => 'lxr'
);
my $search = LXRng::Search::Xapian->new('/var/lib/lxrng/text-db/linux-2.6');
return {
'linux' => {
'repository' => $gitrepo,
'index' => $index,
'search' => $search,
'base_url' => 'http://localhost/lxr',
# Must be writable by httpd user:
'cache' => '/var/lib/lxrng/cache',
'fs_charset' => 'iso-8859-1',
# Tried successively
'content_charset' => ['utf-8', 'iso-8859-1'],
'languages' => ['C', 'GnuAsm', 'Kconfig'],
'ctags_flags' => ["-I\@$LXRng::ROOT/lxr-ctags-quirks"],
'ver_list' => [$gitrepo->allversions],
'ver_default' => 'v2.6.20.3',
'include_maps' =>
[
[qr|^arch/(.*?)/|, qr|^asm/(.*)|,
sub { "include/asm-$_[0]/$_[1]" }],
[qr|^include/asm-(.*?)/|, qr|^asm/(.*)|,
sub { "include/asm-$_[0]/$_[1]" }],
[qr|^|, qr|^asm/(.*)|,
sub { map { "include/asm-$_/$_[0]" }
qw(i386 alpha arm ia64 m68k mips mips64),
qw(ppc s390 sh sparc sparc64 x86_64) }],
[qr|^|, qr|(.*)|,
sub { "include/$_[0]" }],
],
},
};