|
@@ -25,14 +25,13 @@
|
|
|
# FIXME: rse: Error: MM: mm:core: failed to open semaphore file (Permission denied): OS: No such file or directory
|
|
# FIXME: rse: Error: MM: mm:core: failed to open semaphore file (Permission denied): OS: No such file or directory
|
|
|
|
|
|
|
|
# package versions
|
|
# package versions
|
|
|
-%define V_rt 3.4.5
|
|
|
|
|
|
|
+%define V_rt 3.6.1
|
|
|
%define V_log_dispatch 2.13
|
|
%define V_log_dispatch 2.13
|
|
|
%define V_html_mason 1.35
|
|
%define V_html_mason 1.35
|
|
|
%define V_mldbm 2.01
|
|
%define V_mldbm 2.01
|
|
|
%define V_html_format 2.04
|
|
%define V_html_format 2.04
|
|
|
%define V_html_scrubber 0.08
|
|
%define V_html_scrubber 0.08
|
|
|
%define V_module_version 1.02
|
|
%define V_module_version 1.02
|
|
|
-%define V_cache_simple_timedexpiry 0.26
|
|
|
|
|
|
|
|
|
|
# package information
|
|
# package information
|
|
|
Name: rt
|
|
Name: rt
|
|
@@ -45,21 +44,16 @@ Class: EVAL
|
|
|
Group: Ticketing
|
|
Group: Ticketing
|
|
|
License: GPL
|
|
License: GPL
|
|
|
Version: %{V_rt}
|
|
Version: %{V_rt}
|
|
|
-Release: 20061018
|
|
|
|
|
|
|
+Release: 20061112
|
|
|
|
|
|
|
|
# package options
|
|
# package options
|
|
|
-%option with_color_primary 336699
|
|
|
|
|
-%option with_color_secondary dddddd
|
|
|
|
|
|
|
+%option with_db_sqlite no
|
|
|
%option with_db_mysql yes
|
|
%option with_db_mysql yes
|
|
|
%option with_db_pgsql no
|
|
%option with_db_pgsql no
|
|
|
%option with_db_oracle no
|
|
%option with_db_oracle no
|
|
|
|
|
|
|
|
# fixing conflicting options
|
|
# fixing conflicting options
|
|
|
-%if "%{with_db_oracle}" == "yes"
|
|
|
|
|
-%undefine with_db_pgsql
|
|
|
|
|
-%define with_db_pgsql no
|
|
|
|
|
-%endif
|
|
|
|
|
-%if "%{with_db_oracle}" == "yes" || "%{with_db_pgsql}" == "yes"
|
|
|
|
|
|
|
+%if "%{with_db_sqlite}" == "yes" || "%{with_db_pgsql}" == "yes" || "%{with_db_oracle}" == "yes"
|
|
|
%undefine with_db_mysql
|
|
%undefine with_db_mysql
|
|
|
%define with_db_mysql no
|
|
%define with_db_mysql no
|
|
|
%endif
|
|
%endif
|
|
@@ -72,15 +66,14 @@ Source3: http://www.cpan.org/modules/by-authors/id/C/CH/CHAMAS/MLDBM-%{V_ml
|
|
|
Source4: http://www.cpan.org/modules/by-authors/id/S/SB/SBURKE/HTML-Format-%{V_html_format}.tar.gz
|
|
Source4: http://www.cpan.org/modules/by-authors/id/S/SB/SBURKE/HTML-Format-%{V_html_format}.tar.gz
|
|
|
Source5: http://www.cpan.org/modules/by-authors/id/P/PO/PODMASTER/HTML-Scrubber-%{V_html_scrubber}.tar.gz
|
|
Source5: http://www.cpan.org/modules/by-authors/id/P/PO/PODMASTER/HTML-Scrubber-%{V_html_scrubber}.tar.gz
|
|
|
Source6: http://www.cpan.org/modules/by-authors/id/S/SB/SBURKE/Module-Versions-Report-%{V_module_version}.tar.gz
|
|
Source6: http://www.cpan.org/modules/by-authors/id/S/SB/SBURKE/Module-Versions-Report-%{V_module_version}.tar.gz
|
|
|
-Source7: http://www.cpan.org/modules/by-module/Cache/Cache-Simple-TimedExpiry-%{V_cache_simple_timedexpiry}.tar.gz
|
|
|
|
|
-Source8: rc.rt
|
|
|
|
|
-Source9: rtsetup
|
|
|
|
|
-Source10: rtcleanup
|
|
|
|
|
-Source11: rtupgrade
|
|
|
|
|
-Source12: rtapachectl
|
|
|
|
|
-Source13: rtapache.conf
|
|
|
|
|
-Source14: config.layout
|
|
|
|
|
-Source15: rt-mailgate.sh
|
|
|
|
|
|
|
+Source7: rc.rt
|
|
|
|
|
+Source8: rtsetup
|
|
|
|
|
+Source9: rtcleanup
|
|
|
|
|
+Source10: rtupgrade
|
|
|
|
|
+Source11: rtapachectl
|
|
|
|
|
+Source12: rtapache.conf
|
|
|
|
|
+Source13: config.layout
|
|
|
|
|
+Source14: rt-mailgate.sh
|
|
|
Patch0: rt.patch
|
|
Patch0: rt.patch
|
|
|
|
|
|
|
|
# build information
|
|
# build information
|
|
@@ -94,8 +87,11 @@ BuildPreReq: perl-dbi, perl-dbix, perl-mail, perl-www, perl-locale, perl-devel,
|
|
|
PreReq: perl-dbi, perl-dbix, perl-mail, perl-www, perl-locale, perl-devel, perl-cache
|
|
PreReq: perl-dbi, perl-dbix, perl-mail, perl-www, perl-locale, perl-devel, perl-cache
|
|
|
BuildPreReq: apache, apache::with_mod_perl = yes
|
|
BuildPreReq: apache, apache::with_mod_perl = yes
|
|
|
PreReq: apache, apache::with_mod_perl = yes
|
|
PreReq: apache, apache::with_mod_perl = yes
|
|
|
|
|
+%if "%{with_db_sqlite}" == "yes"
|
|
|
|
|
+PreReq: sqlite, perl-dbi::with_dbd_sqlite = yes
|
|
|
|
|
+%endif
|
|
|
%if "%{with_db_mysql}" == "yes"
|
|
%if "%{with_db_mysql}" == "yes"
|
|
|
-PreReq: mysql, mysql::with_innodb = yes, perl-dbi::with_dbd_mysql = yes
|
|
|
|
|
|
|
+PreReq: mysql, mysql::with_innobase = yes, perl-dbi::with_dbd_mysql = yes
|
|
|
%endif
|
|
%endif
|
|
|
%if "%{with_db_pgsql}" == "yes"
|
|
%if "%{with_db_pgsql}" == "yes"
|
|
|
PreReq: postgresql, perl-dbi::with_dbd_pgsql = yes
|
|
PreReq: postgresql, perl-dbi::with_dbd_pgsql = yes
|
|
@@ -151,11 +147,6 @@ AutoReqProv: no
|
|
|
url = http://www.cpan.org/modules/by-authors/id/S/SB/SBURKE/
|
|
url = http://www.cpan.org/modules/by-authors/id/S/SB/SBURKE/
|
|
|
regex = Module-Versions-Report-(__VER__)\.tar\.gz
|
|
regex = Module-Versions-Report-(__VER__)\.tar\.gz
|
|
|
}
|
|
}
|
|
|
- prog rt:cache-simple-timedexpiry = {
|
|
|
|
|
- version = %{V_cache_simple_timedexpiry}
|
|
|
|
|
- url = http://www.cpan.org/modules/by-module/Cache/
|
|
|
|
|
- regex = Cache-Simple-TimedExpiry-(__VER__)\.tar\.gz
|
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
%prep
|
|
%prep
|
|
|
# unpack distribution tarballs
|
|
# unpack distribution tarballs
|
|
@@ -166,7 +157,6 @@ AutoReqProv: no
|
|
|
%setup -q -T -D -a 4
|
|
%setup -q -T -D -a 4
|
|
|
%setup -q -T -D -a 5
|
|
%setup -q -T -D -a 5
|
|
|
%setup -q -T -D -a 6
|
|
%setup -q -T -D -a 6
|
|
|
- %setup -q -T -D -a 7
|
|
|
|
|
|
|
|
|
|
# patch RT distribution
|
|
# patch RT distribution
|
|
|
cd rt-%{V_rt}
|
|
cd rt-%{V_rt}
|
|
@@ -192,29 +182,38 @@ AutoReqProv: no
|
|
|
PERL=%{l_prefix}/bin/perl
|
|
PERL=%{l_prefix}/bin/perl
|
|
|
./configure \
|
|
./configure \
|
|
|
--enable-layout=OPKG \
|
|
--enable-layout=OPKG \
|
|
|
- --with-db-type=mysql \
|
|
|
|
|
--with-db-host=localhost \
|
|
--with-db-host=localhost \
|
|
|
--with-db-home=%{l_prefix} \
|
|
--with-db-home=%{l_prefix} \
|
|
|
|
|
+%if "%{with_db_sqlite}" == "yes"
|
|
|
|
|
+ --with-db-type=SQLite \
|
|
|
|
|
+ --with-db-dba=%{l_rusr} \
|
|
|
|
|
+ --with-db-database=%{l_prefix}/var/rt/run/rt.db \
|
|
|
|
|
+ --with-db-user=rt \
|
|
|
|
|
+ --with-db-pass=XXX \
|
|
|
|
|
+%endif
|
|
|
%if "%{with_db_mysql}" == "yes"
|
|
%if "%{with_db_mysql}" == "yes"
|
|
|
|
|
+ --with-db-type=mysql \
|
|
|
--with-db-dba=root \
|
|
--with-db-dba=root \
|
|
|
--with-db-database=rt \
|
|
--with-db-database=rt \
|
|
|
--with-db-user=rt \
|
|
--with-db-user=rt \
|
|
|
--with-db-pass=XXX \
|
|
--with-db-pass=XXX \
|
|
|
%endif
|
|
%endif
|
|
|
%if "%{with_db_pgsql}" == "yes"
|
|
%if "%{with_db_pgsql}" == "yes"
|
|
|
|
|
+ --with-db-type=Pg \
|
|
|
--with-db-dba=postgresql \
|
|
--with-db-dba=postgresql \
|
|
|
--with-db-database=rt \
|
|
--with-db-database=rt \
|
|
|
--with-db-user=rt \
|
|
--with-db-user=rt \
|
|
|
--with-db-pass=XXX \
|
|
--with-db-pass=XXX \
|
|
|
%endif
|
|
%endif
|
|
|
%if "%{with_db_oracle}" == "yes"
|
|
%if "%{with_db_oracle}" == "yes"
|
|
|
|
|
+ --with-db-type=Oracle \
|
|
|
--with-db-dba=system \
|
|
--with-db-dba=system \
|
|
|
--with-db-database=rt \
|
|
--with-db-database=rt \
|
|
|
--with-db-user=rt \
|
|
--with-db-user=rt \
|
|
|
--with-db-pass=XXX \
|
|
--with-db-pass=XXX \
|
|
|
%endif
|
|
%endif
|
|
|
- --with-web-user=%{l_nusr} \
|
|
|
|
|
- --with-web-group=%{l_ngrp} \
|
|
|
|
|
|
|
+ --with-web-user=%{l_rusr} \
|
|
|
|
|
+ --with-web-group=%{l_rgrp} \
|
|
|
--with-customdir=%{l_prefix}/etc/rt/local \
|
|
--with-customdir=%{l_prefix}/etc/rt/local \
|
|
|
--with-customhtmldir=%{l_prefix}/etc/rt/local/html \
|
|
--with-customhtmldir=%{l_prefix}/etc/rt/local/html \
|
|
|
--with-customlibdir=%{l_prefix}/etc/rt/local/lib \
|
|
--with-customlibdir=%{l_prefix}/etc/rt/local/lib \
|
|
@@ -241,8 +240,6 @@ AutoReqProv: no
|
|
|
-l %{l_prefix}/libexec/rt configure build install
|
|
-l %{l_prefix}/libexec/rt configure build install
|
|
|
%{l_prefix}/bin/perl-openpkg -d Module-Versions-Report-%{V_module_version} \
|
|
%{l_prefix}/bin/perl-openpkg -d Module-Versions-Report-%{V_module_version} \
|
|
|
-l %{l_prefix}/libexec/rt configure build install
|
|
-l %{l_prefix}/libexec/rt configure build install
|
|
|
- %{l_prefix}/bin/perl-openpkg -d Cache-Simple-TimedExpiry-%{V_cache_simple_timedexpiry} \
|
|
|
|
|
- -l %{l_prefix}/libexec/rt configure build install
|
|
|
|
|
%{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
|
|
%{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
|
|
|
|
|
|
|
|
# create installation file hierarchy
|
|
# create installation file hierarchy
|
|
@@ -265,7 +262,7 @@ AutoReqProv: no
|
|
|
config-install dirs libs-install etc-install bin-install \
|
|
config-install dirs libs-install etc-install bin-install \
|
|
|
sbin-install html-install doc-install \
|
|
sbin-install html-install doc-install \
|
|
|
DESTDIR=$RPM_BUILD_ROOT
|
|
DESTDIR=$RPM_BUILD_ROOT
|
|
|
- %{l_shtool} install -c -m 0644 \
|
|
|
|
|
|
|
+ cp -rp \
|
|
|
etc/upgrade/* \
|
|
etc/upgrade/* \
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/libexec/rt/etc/upgrade/
|
|
$RPM_BUILD_ROOT%{l_prefix}/libexec/rt/etc/upgrade/
|
|
|
%{l_shtool} install -c -m 0644 \
|
|
%{l_shtool} install -c -m 0644 \
|
|
@@ -279,11 +276,11 @@ AutoReqProv: no
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/etc/rt/RT_SiteConfig.pm \
|
|
$RPM_BUILD_ROOT%{l_prefix}/etc/rt/RT_SiteConfig.pm \
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/libexec/rt/etc/RT_SiteConfig.pm
|
|
$RPM_BUILD_ROOT%{l_prefix}/libexec/rt/etc/RT_SiteConfig.pm
|
|
|
mv \
|
|
mv \
|
|
|
- $RPM_BUILD_ROOT%{l_prefix}/libexec/rt/WebRT/html/NoAuth/webrt.css \
|
|
|
|
|
- $RPM_BUILD_ROOT%{l_prefix}/etc/rt/webrt.css
|
|
|
|
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/libexec/rt/WebRT/html/NoAuth/css/print.css \
|
|
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/etc/rt/print.css
|
|
|
%{l_shtool} mkln -f -s \
|
|
%{l_shtool} mkln -f -s \
|
|
|
- $RPM_BUILD_ROOT%{l_prefix}/etc/rt/webrt.css \
|
|
|
|
|
- $RPM_BUILD_ROOT%{l_prefix}/libexec/rt/WebRT/html/NoAuth/webrt.css
|
|
|
|
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/etc/rt/print.css \
|
|
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/libexec/rt/WebRT/html/NoAuth/css/print.css
|
|
|
mv \
|
|
mv \
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/libexec/rt/local \
|
|
$RPM_BUILD_ROOT%{l_prefix}/libexec/rt/local \
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/etc/rt/local
|
|
$RPM_BUILD_ROOT%{l_prefix}/etc/rt/local
|
|
@@ -303,6 +300,7 @@ AutoReqProv: no
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/bin/rt-mailgate
|
|
$RPM_BUILD_ROOT%{l_prefix}/bin/rt-mailgate
|
|
|
|
|
|
|
|
# strip installation hierarchy
|
|
# strip installation hierarchy
|
|
|
|
|
+ rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/convert*
|
|
|
rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/*.svc
|
|
rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/*.svc
|
|
|
rm -f $RPM_BUILD_ROOT%{l_prefix}/libexec/rt/tools/rt-test-dependencies
|
|
rm -f $RPM_BUILD_ROOT%{l_prefix}/libexec/rt/tools/rt-test-dependencies
|
|
|
rm -rf $RPM_BUILD_ROOT%{l_prefix}/libexec/rt/t
|
|
rm -rf $RPM_BUILD_ROOT%{l_prefix}/libexec/rt/t
|
|
@@ -313,6 +311,9 @@ AutoReqProv: no
|
|
|
rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/rt
|
|
rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/rt
|
|
|
|
|
|
|
|
# install own setup/cleanup/upgrade script
|
|
# install own setup/cleanup/upgrade script
|
|
|
|
|
+%if "%{with_db_sqlite}" == "yes"
|
|
|
|
|
+ rt_db_dba=%{l_rusr}
|
|
|
|
|
+%endif
|
|
|
%if "%{with_db_mysql}" == "yes"
|
|
%if "%{with_db_mysql}" == "yes"
|
|
|
rt_db_dba=root
|
|
rt_db_dba=root
|
|
|
%endif
|
|
%endif
|
|
@@ -347,11 +348,6 @@ AutoReqProv: no
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/etc/rt/
|
|
$RPM_BUILD_ROOT%{l_prefix}/etc/rt/
|
|
|
|
|
|
|
|
# final post-adjustments to installation hierarchy
|
|
# final post-adjustments to installation hierarchy
|
|
|
- %{l_shtool} subst \
|
|
|
|
|
- -e 's;#336699;#%{with_color_primary};g' \
|
|
|
|
|
- -e 's;#dddddd;#%{with_color_secondary};g' \
|
|
|
|
|
- `find $RPM_BUILD_ROOT%{l_prefix}/libexec/rt/WebRT \
|
|
|
|
|
- -type f -print | grep -v gif | grep -v jpg | grep -v .orig`
|
|
|
|
|
find $RPM_BUILD_ROOT%{l_prefix}/libexec/rt \
|
|
find $RPM_BUILD_ROOT%{l_prefix}/libexec/rt \
|
|
|
-type f -name "*.html" -print | xargs chmod 644
|
|
-type f -name "*.html" -print | xargs chmod 644
|
|
|
find $RPM_BUILD_ROOT%{l_prefix}/libexec/rt \
|
|
find $RPM_BUILD_ROOT%{l_prefix}/libexec/rt \
|
|
@@ -371,7 +367,7 @@ AutoReqProv: no
|
|
|
'%attr(755,%{l_musr},%{l_mgrp}) %{l_prefix}/libexec/rt/tools/rt-mailgate' \
|
|
'%attr(755,%{l_musr},%{l_mgrp}) %{l_prefix}/libexec/rt/tools/rt-mailgate' \
|
|
|
'%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/RT_SiteConfig.pm' \
|
|
|
'%config %attr(640,%{l_musr},%{l_rgrp}) %{l_prefix}/etc/rt/rtapache.conf' \
|
|
'%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' \
|
|
|
|
|
|
|
+ '%config %attr(644,%{l_musr},%{l_rgrp}) %{l_prefix}/etc/rt/print.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-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' \
|
|
'%attr(750,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/rt/mason-session' \
|
|
@@ -403,10 +399,10 @@ AutoReqProv: no
|
|
|
echo "In particular, you have to assign a password to the RT"
|
|
echo "In particular, you have to assign a password to the RT"
|
|
|
echo "database user. Then you have to start the MySQL RDBMS and"
|
|
echo "database user. Then you have to start the MySQL RDBMS and"
|
|
|
echo "create the initial RT database with:"
|
|
echo "create the initial RT database with:"
|
|
|
- echo " \$ $RPM_INSTALL_PREFIX/etc/rc mysql start"
|
|
|
|
|
|
|
+ echo " \$ $RPM_INSTALL_PREFIX/bin/openpkg rc mysql start"
|
|
|
echo " \$ $RPM_INSTALL_PREFIX/sbin/rtsetup"
|
|
echo " \$ $RPM_INSTALL_PREFIX/sbin/rtsetup"
|
|
|
echo "After this post-installation, start RT by running"
|
|
echo "After this post-installation, start RT by running"
|
|
|
- echo " \$ $RPM_INSTALL_PREFIX/etc/rc rt start"
|
|
|
|
|
|
|
+ echo " \$ $RPM_INSTALL_PREFIX/bin/openpkg rc rt start"
|
|
|
echo "and connect with a browser to:"
|
|
echo "and connect with a browser to:"
|
|
|
echo " http://127.0.0.1:8380/"
|
|
echo " http://127.0.0.1:8380/"
|
|
|
echo "Login as 'root' (with initial password 'password')"
|
|
echo "Login as 'root' (with initial password 'password')"
|