#to throw a real error instead of just a mysterious unstyled RT
use CSS::Squish 0.06;
+ use RT::Interface::Web::Request;
+
#slow, unreliable, segfaults and is optional
#see rt/html/Ticket/Elements/ShowTransactionAttachments
- use Text::Quoted;
+ #use Text::Quoted;
#?#use File::Path qw( rmtree );
#?#use File::Glob qw( bsd_glob );
--with-db-rt-pass=${DB_PASSWORD} \
--with-web-user=freeside \
--with-web-group=freeside \
- --with-rt-group=freeside
+ --with-rt-group=freeside \
+ --with-web-handler=modperl2
create-rt: configure-rt
[ -d /opt ] || mkdir /opt #doh
|| true
install-rt:
- perl -p -i -e "\
+ [ ${RT_ENABLED} -eq 1 ] && ( cd rt; make install ) || true
+ [ ${RT_ENABLED} -eq 1 ] && perl -p -i -e "\
s'%%%RT_DOMAIN%%%'${RT_DOMAIN}'g;\
s'%%%RT_TIMEZONE%%%'${RT_TIMEZONE}'g;\
s'%%%FREESIDE_URL%%%'${FREESIDE_URL}'g;\
" ${RT_PATH}/etc/RT_SiteConfig.pm
- [ ${RT_ENABLED} -eq 1 ] && ( cd rt; make install ) || true
clean:
rm -rf masondocs
# Sometimes you may want to change domain, timezone, or freeside::URL later,
# everything else should probably stay untouched.
-$RT::rtname = '%%%RT_DOMAIN%%%';
-$RT::Organization = '%%%RT_DOMAIN%%%';
+Set($rtname, '%%%RT_DOMAIN%%%');
+Set($Organization, '%%%RT_DOMAIN%%%');
-$RT::Timezone = '%%%RT_TIMEZONE%%%';
+Set($Timezone, '%%%RT_TIMEZONE%%%');
-$RT::WebExternalAuth = 1;
-$RT::WebFallbackToInternal = 1; #no
-$RT::WebExternalAuto = 1;
+Set($WebExternalAuth, 1);
+Set($WebFallbackToInternal, 1); #no
+Set($WebExternalAuto, 1);
$RT::URI::freeside::IntegrationType = 'Internal';
$RT::URI::freeside::URL = '%%%FREESIDE_URL%%%';
$RT::URI::freeside::URL =~ m(^(https?://[^/]+)(/.*)$)i;
-$RT::WebBaseURL = $1;
-$RT::WebPath = "$2/rt";
+Set($WebBaseURL, $1);
+Set($WebPath, "$2/rt");
Set($DatabaseHost , '');
#NEW, RT 3.6 style (uncomment to use):
#Set($DefaultSummaryRows, 10);
-$RT::QuickCreateLong = 0; #set to true to cause quick ticket creation to
+#does this do anything in RT 3.8??
+Set($QuickCreateLong, 0); #set to true to cause quick ticket creation to
#redirect to the "long" ticket creation screen
#instead of just creating a ticket with the subject.
-Set($MessageBoxWidth , 80);
+Set($MessageBoxWidth, 80);
#Set(@Plugins,(qw(Extension::QuickDelete RT::FM)));
1;