#!/bin/sh # this is a shell script to encapsulate the configure setup script for rt3 3.8.2, installed from source. # downloaded from http://www.tlviewer.org/rt3/rt-3.8.2/VIA_SRC/rt3_C5_layout # date: 4-30-2009 (msp) # append new layout only once if grep -q "Layout Centos" "config.layout" ; then echo "skipping append" else echo "appending Centos layout" cat << \EOF >> config.layout # Centos directory layout. bindir: /usr/bin sbindir: /usr/sbin sysconfdir: /etc/rt3 datadir: /usr/share libdir: /usr/local/lib/perl5/site_perl/5.10.0/ manualdir: ${datadir}/rt3/doc localstatedir: /var htmldir: ${datadir}/rt3/html logfiledir: ${localstatedir}/log/rt3 masonstatedir: ${localstatedir}/cache/rt3/mason_data sessionstatedir: ${localstatedir}/cache/rt3/session_data customdir: /usr/local/lib/rt3 custometcdir: /usr/local/etc/rt3 customhtmldir: ${customdir}/html customlexdir: ${customdir}/po customlibdir: ${customdir}/lib EOF fi PERL=/usr/local/bin/perl ./configure --prefix=/usr --with-apachectl=/usr/sbin/apachectl \ --with-web-user=apache --with-web-group=apache \ --with-web-handler=modperl2 --enable-layout=Centos --with-mysql --disable-gpg # grab below from the VIA_SRC page cp rt3.conf /etc/httpd/conf.d/