summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'www-apps/rt/files/3.4.2')
-rw-r--r--www-apps/rt/files/3.4.2/config.layout-gentoo22
-rw-r--r--www-apps/rt/files/3.4.2/postinstall-en.txt19
-rw-r--r--www-apps/rt/files/3.4.2/reconfig34
-rw-r--r--www-apps/rt/files/3.4.2/rt.conf.d14
-rwxr-xr-xwww-apps/rt/files/3.4.2/rt.init.d38
-rw-r--r--www-apps/rt/files/3.4.2/rt_apache.conf30
-rw-r--r--www-apps/rt/files/3.4.2/rt_apache1_fcgi.conf41
-rw-r--r--www-apps/rt/files/3.4.2/rt_apache2_fcgi.conf39
8 files changed, 237 insertions, 0 deletions
diff --git a/www-apps/rt/files/3.4.2/config.layout-gentoo b/www-apps/rt/files/3.4.2/config.layout-gentoo
new file mode 100644
index 000000000000..d612b24d1cc7
--- /dev/null
+++ b/www-apps/rt/files/3.4.2/config.layout-gentoo
@@ -0,0 +1,22 @@
+
+<Layout Gentoo>
+ prefix: PREFIX
+ exec_prefix: ${prefix}
+ bindir: ${exec_prefix}/bin
+ sbindir: ${exec_prefix}/sbin
+ sysconfdir: ${prefix}/etc
+ mandir: ${prefix}/man
+ libdir: ${prefix}/lib
+ datadir: ${prefix}/share
+ htmldir: HTMLDIR
+ manualdir: ${datadir}/doc
+ localstatedir: ${prefix}/var
+ logfiledir: ${localstatedir}/log
+ masonstatedir: ${localstatedir}/mason_data
+ sessionstatedir: ${localstatedir}/session_data
+ customdir: ${prefix}/local
+ custometcdir: ${customdir}/etc
+ customhtmldir: ${customdir}/html
+ customlexdir: ${customdir}/po
+ customlibdir: ${customdir}/lib
+</Layout>
diff --git a/www-apps/rt/files/3.4.2/postinstall-en.txt b/www-apps/rt/files/3.4.2/postinstall-en.txt
new file mode 100644
index 000000000000..821fbb28b410
--- /dev/null
+++ b/www-apps/rt/files/3.4.2/postinstall-en.txt
@@ -0,0 +1,19 @@
+
+***********************************************************
+Now you need to configure your RT installation.
+Please follow the Gentoo install guide found at
+http://wiki.bestpractical.com/index.cgi?GentooInstallGuide
+
+Your local config files are located here:
+${VHOST_ROOT}/${P}/etc/RT_Config.pm
+${VHOST_ROOT}/${P}/etc/RT_SiteConfig.pm
+
+If you need more help, consider searching the mailing list (Google site:lists.fsck.com )
+
+***********************************************************
+
+NOTE:
+
+Some file locations have changed. Everything is now installed into
+${VHOST_ROOT}. RT executables are no longer in /usr/bin
+You may need to modify your existing configuration files accordingly.
diff --git a/www-apps/rt/files/3.4.2/reconfig b/www-apps/rt/files/3.4.2/reconfig
new file mode 100644
index 000000000000..f2fdfe0451dc
--- /dev/null
+++ b/www-apps/rt/files/3.4.2/reconfig
@@ -0,0 +1,34 @@
+#!/bin/bash
+if [ $1 = "install" ]; then
+ # fix location
+ cd ${VHOST_ROOT}/${P}
+ sed -e "s|${MY_HOSTROOTDIR}/${P}|${VHOST_ROOT}/${P}|g
+ s|${MY_HTDOCSDIR}|${MY_INSTALLDIR}|g" -i bin/* lib/RT.pm sbin/* etc/RT_Config.pm
+
+ # fix Apache configs
+ sed -e "s|RT_DIR|${VHOST_ROOT}/${P}|g
+ s|HTDOCS|${MY_INSTALLDIR}|g" -i ${MY_SERVERCONFIGDIR}/apache*
+
+ # check for upgrades
+ cd ${VHOST_ROOT}/${P}/upgrade
+ echo "You may need to update your database."
+ echo "For each item in the output below"
+ echo "whose name is greater than your previously installed RT version,"
+ echo "rt-setup-database --action schema --datadir ${VHOST_ROOT}/${P}/upgrade/<version>"
+ echo "rt-setup-database --action acl --datadir ${VHOST_ROOT}/${P}/upgrade/<version>"
+ echo "rt-setup-database --action insert --datadir ${VHOST_ROOT}/${P}/upgrade/<version>"
+ echo "Don't forget to read the online installation guide for more details"
+ ls
+
+elif [ $1 = "clean" ]; then
+ # braindead - set ${P}
+ MY_PV=$(basename $(dirname ${MY_HOSTROOTDIR}))
+ MY_PN=$(basename $(dirname $(dirname ${MY_HOSTROOTDIR})))
+ MY_P="${MY_PN}-${MY_PV}"
+
+ if [[ "${VHOST_ROOT}${MY_P}" ]]; then
+ rm -rf ${VHOST_ROOT}/${MY_P}/bin ${VHOST_ROOT}/${MY_P}/lib/RT.pm ${VHOST_ROOT}/${MY_P}/sbin ${VHOST_ROOT}/${MY_P}/etc/RT_Config.pm
+ else
+ echo "Variables not set!"
+ fi
+fi
diff --git a/www-apps/rt/files/3.4.2/rt.conf.d b/www-apps/rt/files/3.4.2/rt.conf.d
new file mode 100644
index 000000000000..e43336fa8ecf
--- /dev/null
+++ b/www-apps/rt/files/3.4.2/rt.conf.d
@@ -0,0 +1,14 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/rt/files/3.4.2/rt.conf.d,v 1.1 2005/06/21 02:12:38 rl03 Exp $
+
+# Config file for /etc/init.d/rt
+
+RTUSER=rt
+RTGROUP=lighttpd
+
+# set RTPATH to rt's root
+RTPATH=/var/www/localhost/rt-3.4.2
+
+FCGI_SOCKET_PATH=${RTPATH}/var/appSocket
+PIDFILE=${RTPATH}/var/pid
diff --git a/www-apps/rt/files/3.4.2/rt.init.d b/www-apps/rt/files/3.4.2/rt.init.d
new file mode 100755
index 000000000000..a19aa0ffa51a
--- /dev/null
+++ b/www-apps/rt/files/3.4.2/rt.init.d
@@ -0,0 +1,38 @@
+#!/sbin/runscript
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/rt/files/3.4.2/rt.init.d,v 1.1 2005/06/21 02:12:38 rl03 Exp $
+
+depend() {
+ use mysql postgresql lighttpd
+}
+
+start() {
+ ebegin "Starting RT"
+ rm -f ${FCGI_SOCKET_PATH}
+ env -i PATH=$PATH FCGI_SOCKET_PATH=${FCGI_SOCKET_PATH}\
+ /sbin/start-stop-daemon -o --quiet --start \
+ --startas ${RTPATH}/bin/mason_handler.fcgi \
+ --pidfile ${PIDFILE} -c ${RTUSER} -g ${RTGROUP} -b -d ${RTPATH}
+ # if you experience problems, comment out the line above
+ # and uncomment the line below
+ # --pidfile ${PIDFILE} -c ${RTUSER} -g ${RTGROUP} -d ${RTPATH}
+
+ eend $?
+ while true; do
+ [[ -a ${FCGI_SOCKET_PATH} ]] && break
+ sleep 1
+ done
+ chmod g+rwx ${FCGI_SOCKET_PATH}
+}
+
+stop() {
+ ebegin "Stopping RT"
+ /sbin/start-stop-daemon -o --quiet --stop --pidfile ${PIDFILE}
+ eend $?
+}
+
+restart() {
+ svc_stop
+ svc_start
+}
diff --git a/www-apps/rt/files/3.4.2/rt_apache.conf b/www-apps/rt/files/3.4.2/rt_apache.conf
new file mode 100644
index 000000000000..896f642c55af
--- /dev/null
+++ b/www-apps/rt/files/3.4.2/rt_apache.conf
@@ -0,0 +1,30 @@
+<IfDefine PERL>
+ <VirtualHost MY_RT_DOMAIN:80>
+ ServerName MY_RT_DOMAIN
+
+ DocumentRoot HTDOCS
+ ServerAdmin YOUR_EMAIL_HERE
+
+ AddDefaultCharset UTF-8
+ <IfDefine USERDIR>
+ UserDir disabled
+ </IfDefine>
+
+ PerlModule Apache::DBI
+ PerlRequire RT_DIR/bin/webmux.pl
+
+ <Location />
+ SetHandler perl-script
+ PerlHandler RT::Mason
+ PerlSetEnv PERL5LIB /usr/lib
+ </Location>
+
+ <Directory "HTDOCS">
+ Options Indexes FollowSymLinks
+ AllowOverride None
+ Order allow,deny
+ Allow from all
+ </Directory>
+
+ </VirtualHost>
+</IfDefine>
diff --git a/www-apps/rt/files/3.4.2/rt_apache1_fcgi.conf b/www-apps/rt/files/3.4.2/rt_apache1_fcgi.conf
new file mode 100644
index 000000000000..0bff8a0556f9
--- /dev/null
+++ b/www-apps/rt/files/3.4.2/rt_apache1_fcgi.conf
@@ -0,0 +1,41 @@
+<IfDefine FASTCGI>
+
+ # Tell FastCGI to put its temporary files somewhere sane.
+ FastCgiIpcDir /tmp
+
+ # Tell FastCGI that it should use apache's "suexec" binary to call any FastCGI script.
+ # This is a GLOBAL setting
+ FastCgiWrapper /usr/sbin/suexec
+
+ # Apache 1.3 discards the user and group parameters on the FastCgiServer line.
+ # Apache 2.0 requires them.
+ FastCgiServer RT_DIR/bin/mason_handler.fcgi -idle-timeout 120 -user rt -group rt -processes 4
+
+
+ <VirtualHost MY_RT_DOMAIN:80>
+ ServerName MY_RT_DOMAIN
+
+ DocumentRoot HTDOCS
+ ServerAdmin YOUR_EMAIL_HERE
+
+ AddDefaultCharset UTF-8
+ <IfDefine USERDIR>
+ UserDir disabled
+ </IfDefine>
+
+ # Set the rt user and group as the executing user for this virtual host
+ User rt
+ Group rt
+
+ AddHandler fastcgi-script fcgi
+ ScriptAlias / RT_DIR/bin/mason_handler.fcgi/
+
+ <Directory "HTDOCS">
+ Options Indexes FollowSymLinks
+ AllowOverride None
+ Order allow,deny
+ Allow from all
+ </Directory>
+
+ </VirtualHost>
+</IfDefine>
diff --git a/www-apps/rt/files/3.4.2/rt_apache2_fcgi.conf b/www-apps/rt/files/3.4.2/rt_apache2_fcgi.conf
new file mode 100644
index 000000000000..aa6ccdc9a04e
--- /dev/null
+++ b/www-apps/rt/files/3.4.2/rt_apache2_fcgi.conf
@@ -0,0 +1,39 @@
+<IfDefine FASTCGI>
+
+ # Tell FastCGI to put its temporary files somewhere sane.
+ FastCgiIpcDir /tmp
+
+ # Tell FastCGI that it should use apache's "suexec" binary to call any FastCGI script.
+ # This is a GLOBAL setting
+ FastCgiWrapper /usr/sbin/suexec2
+
+ # Apache 1.3 discards the user and group parameters on the FastCgiServer line.
+ # Apache 2.0 requires them.
+ FastCgiServer RT_DIR/bin/mason_handler.fcgi -idle-timeout 120 -user rt -group rt -processes 4
+
+
+ <VirtualHost MY_RT_DOMAIN:80>
+ ServerName MY_RT_DOMAIN
+
+ DocumentRoot HTDOCS
+ ServerAdmin YOUR_EMAIL_HERE
+
+ AddDefaultCharset UTF-8
+ <IfDefine USERDIR>
+ UserDir disabled
+ </IfDefine>
+
+ # Set the rt user and group as the executing user for this virtual host
+ SuexecUserGroup rt rt
+ AddHandler fastcgi-script fcgi
+ ScriptAlias / RT_DIR/bin/mason_handler.fcgi/
+
+ <Directory "HTDOCS">
+ Options Indexes FollowSymLinks
+ AllowOverride None
+ Order allow,deny
+ Allow from all
+ </Directory>
+
+ </VirtualHost>
+</IfDefine>