diff options
author | 2006-01-10 20:38:07 +0000 | |
---|---|---|
committer | 2006-01-10 20:38:07 +0000 | |
commit | cb874c543bb94c555e9b0722043663e8fc744f5f (patch) | |
tree | 4a128e4a5ef475640e4647abb5dea9f8e4073910 /www-apps/lxr/files | |
parent | Added cvs and freetext USE flags for www-apps/lxr (diff) | |
download | gentoo-2-cb874c543bb94c555e9b0722043663e8fc744f5f.tar.gz gentoo-2-cb874c543bb94c555e9b0722043663e8fc744f5f.tar.bz2 gentoo-2-cb874c543bb94c555e9b0722043663e8fc744f5f.zip |
Version bump wrt bug #108924.
(Portage version: 2.0.53)
Diffstat (limited to 'www-apps/lxr/files')
-rw-r--r-- | www-apps/lxr/files/digest-lxr-0.9.4 | 1 | ||||
-rw-r--r-- | www-apps/lxr/files/postinstall-en.txt | 43 | ||||
-rw-r--r-- | www-apps/lxr/files/reconfig | 16 |
3 files changed, 60 insertions, 0 deletions
diff --git a/www-apps/lxr/files/digest-lxr-0.9.4 b/www-apps/lxr/files/digest-lxr-0.9.4 new file mode 100644 index 000000000000..9aacef82f7a8 --- /dev/null +++ b/www-apps/lxr/files/digest-lxr-0.9.4 @@ -0,0 +1 @@ +MD5 15846a8be01a792cfd2f6adfb90b3738 lxr-0.9.4.tgz 79867 diff --git a/www-apps/lxr/files/postinstall-en.txt b/www-apps/lxr/files/postinstall-en.txt new file mode 100644 index 000000000000..1139efd64a2f --- /dev/null +++ b/www-apps/lxr/files/postinstall-en.txt @@ -0,0 +1,43 @@ +0. Create a db for lxr: + MySQL: run mysql and read in the initdb file using: + \. ${MY_SQLSCRIPTSDIR}/mysql/${PVR}_create.sql + + PostgreSQL: + createuser lxr + createdb -U lxr lxr + psql -U lxr lxr + \i ${MY_SQLSCRIPTSDIR}/postgressql/${PVR}_create.sql + +1. Edit ${MY_INSTALLDIR}/lxr.conf and set: + - db settings + - 'v' + - 'sourceroot' + - 'graphicfile' + - 'filetype' + - 'incprefix' + +2. If you want to use CVS, also set: + 'range' => sub { return + ($files->allreleases($LXR::Common::pathname), + $files->allrevisions($LXR::Common::pathname)) + }, # deferred function call. + + You should also set the default version retrieved to a version that really + does exist otherwise you will receive errors when generating your index. + + A good value for the default version is head. + 'default' => 'head' + Set 'sourceroot' and 'sourcerootname'. + +3. If you want to use swish-e: + Create a directory for the swish index files to go in, and put the + path of this directory in the 'swishdir' variable. + +4. An .htaccess file has been installed into ${MY_HTDOCSDIR}. Please note that +you must take special care not to make lxr.conf visible to the world. If you +are not using mod_perl, use .htaccess_cgi instead. + +5. Create the index: + ${MY_INSTALLDIR}/genxref --url http://${VHOST_HOSTNAME}/${VHOST_APPDIR} + +6. Browse to http://${VHOST_HOSTNAME}/${VHOST_APPDIR}/source diff --git a/www-apps/lxr/files/reconfig b/www-apps/lxr/files/reconfig new file mode 100644 index 000000000000..bf90b9f92657 --- /dev/null +++ b/www-apps/lxr/files/reconfig @@ -0,0 +1,16 @@ +#!/bin/bash + +die() { + echo "#####" + echo $1 + echo "#####" + exit 1 +} + +if [ $1 = "install" ]; then + sed -e "s|/lxr|/${VHOST_APPDIR}| + s|http://192.168.1.3/lxr|${VHOST_HOSTNAME}/${VHOST_APPDIR}|" -i ${MY_INSTALLDIR}/lxr.conf || die + +elif [ $1 = "clean" ]; then + echo $1 +fi |