Rt 3.8.4 customization (FreeBSD)

I’ve migrated an older rt 3.6 installation from linux to
FreeBSD 7.2, and upgraded successfully to 3.8.4. There’s
only one missing piece: our previous installation had
a customized ticket display.
…/rt-3.6.7/share/html/Ticket/Display.html
was customized by
…/rt-3.6.7/local/html/Ticket/Display.html

The FreeBSD port installs rt as /usr/local/share/rt38, and there
is no local directory. I’m not sure whether this is a difference
in 3.8 vs 3.6, or a nuance introduced by the new layout of 3.8 in
FreeBSD, but I can’t figure out where to put the customized version
of Display.html.

I’ve tried /usr/local/share/rt38/local/html/Ticket/Display.html,
as well as /usr/local/share/rt38/local/html/Ticket/Display_Local.html,
and neither works.

Does anyone know how to customize 3.8.4 on a FreeBSD port?

Thanks.
Steve
Steve Sizemore <steve (at) ls.berkeley.edu>, (510) 642-8570
Unix System Manager
Dept. of Mathematics and College of Letters and Science
University of California, Berkeley

Steve Sizemore wrote:

I’ve migrated an older rt 3.6 installation from linux to
FreeBSD 7.2, and upgraded successfully to 3.8.4. There’s
only one missing piece: our previous installation had
a customized ticket display.
…/rt-3.6.7/share/html/Ticket/Display.html
was customized by
…/rt-3.6.7/local/html/Ticket/Display.html

I’ve tried /usr/local/share/rt38/local/html/Ticket/Display.html,
as well as /usr/local/share/rt38/local/html/Ticket/Display_Local.html,
and neither works.

Because it works only for libs.

Does anyone know how to customize 3.8.4 on a FreeBSD port?

Look into /usr/local/share/rt38/lib/RT.pm file, find $MasonLocalComponentRoot
variable. It contains path for web modification. If its value is ‘local/html’,
you can just create directory /usr/local/share/rt38/local/html manually, then
create Ticket directory under it and put your modified Display.html inside.

If $MasonLocalComponentRoot contains another value, just do the same steps, as
above, but instead of ‘local/html’ create directory set in the variable.

Agnislav Onufrijchuk
PortaOne, Inc., RT Developer
Tel: +1-866-SIP VOIP (+1 866 747 8647) ext. 7670

Meet us at ITEXPO West 2009
September 2-3, Booth 427
Los Angeles Convention Center

Thanks very much for your helpful message. Using that, I was able
to figure it out. Just in case anyone else faces this, I’m reporting
what I found.

Look into /usr/local/share/rt38/lib/RT.pm file, find $MasonLocalComponentRoot
variable. It contains path for web modification. If its value is ‘local/html’,
you can just create directory /usr/local/share/rt38/local/html manually, then
create Ticket directory under it and put your modified Display.html inside.

When installed via the FreeBSD port, RT.pm is actually located in
/usr/local/lib/perl5/site_perl/5.8.9/RT.pm. The value for
$MasonLocalComponentRoot is ‘/usr/local/www/rt38’.

If $MasonLocalComponentRoot contains another value, just do the same steps, as
above, but instead of ‘local/html’ create directory set in the variable.

This is exactly correct, although not intuitive. My first attempt was to create
/usr/local/www/rt38/html, and put the modifications there. When that didn’t work,
I reread your message, and created /usr/local/www/rt38/Ticket/Display.html, and
sure enough, it works.

Thanks again.
Steve
Steve Sizemore <steve (at) ls.berkeley.edu>, (510) 642-8570
Unix System Manager
Dept. of Mathematics and College of Letters and Science
University of California, Berkeley