|
|
@@ -47,7 +47,10 @@ Distribution: OpenPKG [EVAL]
|
|
|
Group: Database
|
|
|
License: GPL
|
|
|
Version: %{V_here}
|
|
|
-Release: 20030403
|
|
|
+Release: 20030404
|
|
|
+
|
|
|
+# package options
|
|
|
+%option with_color_primary 336699
|
|
|
|
|
|
# list of sources
|
|
|
Source0: http://www.cpan.org/modules/by-module/Log/Log-Dispatch-%{V_log_dispatch}.tar.gz
|
|
|
@@ -318,6 +321,12 @@ AutoReqProv: no
|
|
|
ln -s \
|
|
|
%{l_prefix}/etc/rt/RT_SiteConfig.pm \
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/libexec/rt/etc/RT_SiteConfig.pm
|
|
|
+ mv \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/libexec/rt/WebRT/html/NoAuth/webrt.css \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/etc/rt/webrt.css
|
|
|
+ ln -s \
|
|
|
+ %{l_prefix}/etc/rt/webrt.css \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/libexec/rt/WebRT/html/NoAuth/webrt.css
|
|
|
) || exit $?
|
|
|
|
|
|
# remove Win32 handler
|
|
|
@@ -346,8 +355,8 @@ AutoReqProv: no
|
|
|
# startup script
|
|
|
%{l_shtool} install -c -m 755 \
|
|
|
-e 's;@l_prefix@;%{l_prefix};g' \
|
|
|
- -e 's;@l_rusr@;%{l_rusr};g' \
|
|
|
- -e 's;@l_rgrp@;%{l_rgrp};g' \
|
|
|
+ -e 's;@l_rusr@;%{l_rusr};g' \
|
|
|
+ -e 's;@l_rgrp@;%{l_rgrp};g' \
|
|
|
%{SOURCE rc.rt} \
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
|
|
|
|
|
|
@@ -367,7 +376,7 @@ AutoReqProv: no
|
|
|
-e "s;@l_hostname@;$l_hostname;g" \
|
|
|
-e "s;@l_domainname@;$l_domainname;g" \
|
|
|
%{SOURCE rtapache.conf} \
|
|
|
- $RPM_BUILD_ROOT%{l_prefix}/libexec/rt/
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/etc/rt/
|
|
|
|
|
|
# better places
|
|
|
mv \
|
|
|
@@ -383,12 +392,20 @@ AutoReqProv: no
|
|
|
%{SOURCE rt-mailgate.sh} \
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/bin/rt-mailgate
|
|
|
|
|
|
+ # post-adjustments
|
|
|
+ %{l_shtool} subst \
|
|
|
+ -e 's;#336699;#%{with_color_primary};g' \
|
|
|
+ `find $RPM_BUILD_ROOT%{l_prefix}/libexec/rt/WebRT -type f -print | grep -v gif | grep -v jpg`
|
|
|
+
|
|
|
+ # determine installation files
|
|
|
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
|
|
|
%{l_files_std} \
|
|
|
'%{l_prefix}/libexec/rt' \
|
|
|
'%attr(755,%{l_musr},%{l_mgrp}) %{l_prefix}/libexec/rt/tools/rt-setup-database' \
|
|
|
'%attr(755,%{l_musr},%{l_mgrp}) %{l_prefix}/libexec/rt/tools/rt-crontool' \
|
|
|
'%config %attr(640,%{l_musr},%{l_rgrp}) %{l_prefix}/etc/rt/RT_SiteConfig.pm' \
|
|
|
+ '%config %attr(640,%{l_musr},%{l_rgrp}) %{l_prefix}/etc/rt/rtapache.conf' \
|
|
|
+ '%config %attr(644,%{l_musr},%{l_rgrp}) %{l_prefix}/etc/rt/webrt.css' \
|
|
|
'%attr(750,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/rt/mason-data' \
|
|
|
'%attr(750,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/rt/mason-data/*' \
|
|
|
'%attr(750,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/rt/mason-session' \
|