summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2005-03-12 16:07:29 +0000
committerivan <ivan>2005-03-12 16:07:29 +0000
commitd069ae1df141abf4a4c2c258e8255b974e730a47 (patch)
tree47ff3cf60a1ac282ee58786f584699c9b6bfbef1
parenta6cbda0b7e6779b89abc1d466af9c3a880d8e030 (diff)
popurl(3) won't give us a good freeside base url since RT calls it from multiple directory depths... have to specify explicity, like external integration
-rw-r--r--Makefile2
-rw-r--r--httemplate/docs/install-rt.html2
-rw-r--r--rt/etc/RT_SiteConfig.pm1
-rw-r--r--rt/lib/RT/URI/freeside.pm4
-rw-r--r--rt/lib/RT/URI/freeside/Internal.pm6
-rw-r--r--rt/lib/RT/URI/freeside/XMLRPC.pm8
6 files changed, 8 insertions, 15 deletions
diff --git a/Makefile b/Makefile
index 215ec14a5..4f8bebecd 100644
--- a/Makefile
+++ b/Makefile
@@ -83,6 +83,7 @@ RT_ENABLED = 0
RT_DOMAIN = example.com
RT_TIMEZONE = US/Pacific;
#RT_TIMEZONE = US/Eastern;
+FREESIDE_URL = "http://localhost/freeside/"
#for now, same db as specified in DATASOURCE... eventually, otherwise?
RT_DB_DATABASE = freeside
@@ -273,6 +274,7 @@ create-rt: configure-rt
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
install-rt:
diff --git a/httemplate/docs/install-rt.html b/httemplate/docs/install-rt.html
index 43d91554c..328914b86 100644
--- a/httemplate/docs/install-rt.html
+++ b/httemplate/docs/install-rt.html
@@ -32,6 +32,8 @@
<p>Create a new Unix group called 'rt'
+<p>Edit the top-level Makefile, set RT_ENABLED to 1 and set the RT_DOMAIN, RT_TIMEZONE, and FREESIDE_URL variables.
+
<p><pre>make configure-rt
make create-rt
make install-rt
diff --git a/rt/etc/RT_SiteConfig.pm b/rt/etc/RT_SiteConfig.pm
index 5b97471af..5c116c462 100644
--- a/rt/etc/RT_SiteConfig.pm
+++ b/rt/etc/RT_SiteConfig.pm
@@ -11,6 +11,7 @@ $RT::WebFallbackToInternal = 1; #no
$RT::WebExternalAuto = 1;
$RT::URI::freeside::IntegrationType = 'Internal';
+$RT::URI::freeside::URL = '%%%FREESIDE_URL%%%';
Set($DatabaseHost , '');
diff --git a/rt/lib/RT/URI/freeside.pm b/rt/lib/RT/URI/freeside.pm
index bd617f907..687f92322 100644
--- a/rt/lib/RT/URI/freeside.pm
+++ b/rt/lib/RT/URI/freeside.pm
@@ -28,7 +28,7 @@ package RT::URI::freeside;
use RT::URI::base;
use strict;
-use vars qw(@ISA $IntegrationType);
+use vars qw(@ISA $IntegrationType $URL);
@ISA = qw/RT::URI::base/;
@@ -62,7 +62,7 @@ Returns the URL for freeside's web interface.
=cut
-sub FreesideURL { return undef; }
+sub FreesideURL { return $URL; }
=item FreesideVersion
diff --git a/rt/lib/RT/URI/freeside/Internal.pm b/rt/lib/RT/URI/freeside/Internal.pm
index cdadd1ed1..18307792b 100644
--- a/rt/lib/RT/URI/freeside/Internal.pm
+++ b/rt/lib/RT/URI/freeside/Internal.pm
@@ -86,12 +86,6 @@ sub _FreesideGetRecord {
}
-sub FreesideURL {
-
- return popurl(3);
-
-}
-
sub FreesideVersion {
return $FS::VERSION;
diff --git a/rt/lib/RT/URI/freeside/XMLRPC.pm b/rt/lib/RT/URI/freeside/XMLRPC.pm
index 618364c00..a8a731fcd 100644
--- a/rt/lib/RT/URI/freeside/XMLRPC.pm
+++ b/rt/lib/RT/URI/freeside/XMLRPC.pm
@@ -28,7 +28,7 @@
use strict;
no warnings qw(redefine);
-use vars qw($URL $XMLRPC_URL $_FS_VERSION);
+use vars qw($XMLRPC_URL $_FS_VERSION);
use Frontier::Client;
@@ -95,12 +95,6 @@ sub FreesideGetConfig {
}
-sub FreesideURL {
-
- return $URL;
-
-}
-
sub FreesideVersion {
return $_FS_VERSION if ($_FS_VERSION =~ /^\d+\.\d+\.\d+/);