rt.spec 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434
  1. ##
  2. ## rt.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2012 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ##
  5. ## Permission to use, copy, modify, and distribute this software for
  6. ## any purpose with or without fee is hereby granted, provided that
  7. ## the above copyright notice and this permission notice appear in all
  8. ## copies.
  9. ##
  10. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  11. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  12. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  13. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  14. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  15. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  16. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  17. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  18. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  19. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  20. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  21. ## SUCH DAMAGE.
  22. ##
  23. # package versions
  24. %define V_rt 3.8.8
  25. %define V_log_dispatch 2.34
  26. %define V_html_mason 1.50
  27. %define V_mldbm 2.01
  28. %define V_html_format 2.04
  29. %define V_html_scrubber 0.08
  30. %define V_module_version 1.02
  31. # package information
  32. Name: rt
  33. Summary: Request Tracker
  34. URL: http://bestpractical.com/rt/
  35. Vendor: Best Practical
  36. Packager: OpenPKG Foundation e.V.
  37. Distribution: OpenPKG Community
  38. Class: EVAL
  39. Group: Ticketing
  40. License: GPL
  41. Version: %{V_rt}
  42. Release: 20121209
  43. # package options
  44. %option with_db_sqlite no
  45. %option with_db_mysql yes
  46. %option with_db_pgsql no
  47. %option with_db_oracle no
  48. # fixing conflicting options
  49. %if "%{with_db_sqlite}" == "yes" || "%{with_db_pgsql}" == "yes" || "%{with_db_oracle}" == "yes"
  50. %undefine with_db_mysql
  51. %define with_db_mysql no
  52. %endif
  53. # list of sources
  54. Source0: http://download.bestpractical.com/pub/rt/release/rt-%{V_rt}.tar.gz
  55. Source1: http://www.cpan.org/modules/by-module/Log/Log-Dispatch-%{V_log_dispatch}.tar.gz
  56. Source2: http://www.cpan.org/modules/by-module/HTML/HTML-Mason-%{V_html_mason}.tar.gz
  57. Source3: http://www.cpan.org/modules/by-authors/id/C/CH/CHAMAS/MLDBM-%{V_mldbm}.tar.gz
  58. Source4: http://www.cpan.org/modules/by-authors/id/S/SB/SBURKE/HTML-Format-%{V_html_format}.tar.gz
  59. Source5: http://www.cpan.org/modules/by-authors/id/P/PO/PODMASTER/HTML-Scrubber-%{V_html_scrubber}.tar.gz
  60. Source6: http://www.cpan.org/modules/by-authors/id/S/SB/SBURKE/Module-Versions-Report-%{V_module_version}.tar.gz
  61. Source7: rc.rt
  62. Source8: rtsetup
  63. Source9: rtcleanup
  64. Source10: rtupgrade
  65. Source11: rtapachectl
  66. Source12: rtapache.conf
  67. Source13: config.layout
  68. Source14: rt-mailgate.sh
  69. Patch0: rt.patch
  70. # build information
  71. BuildPreReq: OpenPKG, openpkg >= 20100101, perl, perl-openpkg >= 5.8.3-20051031
  72. PreReq: OpenPKG, openpkg >= 20100101, perl
  73. BuildPreReq: perl-sys, perl-util, perl-ds, perl-text, perl-apache, perl-module
  74. PreReq: perl-sys, perl-util, perl-ds, perl-text, perl-apache, perl-module
  75. BuildPreReq: perl-dbi, perl-dbix, perl-mail, perl-www, perl-locale, perl-devel, perl-cache
  76. PreReq: perl-dbi, perl-dbix, perl-mail, perl-www, perl-locale, perl-devel, perl-cache
  77. BuildPreReq: apache, apache-perl
  78. PreReq: apache, apache-perl
  79. %if "%{with_db_sqlite}" == "yes"
  80. PreReq: sqlite, perl-dbi::with_sqlite = yes
  81. %endif
  82. %if "%{with_db_mysql}" == "yes"
  83. PreReq: mysql, mysql::with_innobase = yes, perl-dbi::with_mysql = yes
  84. %endif
  85. %if "%{with_db_pgsql}" == "yes"
  86. PreReq: postgresql, perl-dbi::with_pgsql = yes
  87. %endif
  88. %if "%{with_db_oracle}" == "yes"
  89. PreReq: oracle, perl-dbi::with_oracle = yes
  90. %endif
  91. PreReq: MTA
  92. %description
  93. RT is an industrial-grade ticketing system. It lets a group of
  94. people intelligently and efficiently manage requests submitted by a
  95. community of users. RT is used by systems administrators, customer
  96. support staffs, NOCs, developers and even marketing departments at
  97. over a thousand sites around the world.
  98. %track
  99. prog rt = {
  100. version = %{V_rt}
  101. url = http://bestpractical.com/rt/download.html
  102. regex = rt-(__VER__)\.tar\.gz
  103. }
  104. prog rt:html-format = {
  105. version = %{V_html_format}
  106. url = http://www.cpan.org/modules/by-authors/id/S/SB/SBURKE/
  107. regex = HTML-Format-(__VER__)\.tar\.gz
  108. }
  109. prog rt:html-mason = {
  110. version = %{V_html_mason}00
  111. url = http://www.cpan.org/modules/by-module/HTML/
  112. regex = HTML-Mason-(__VER__)\.tar\.gz
  113. transform = "s/^(\\d+\\.\\d\\d)$/${1}00/; $_"
  114. }
  115. prog rt:log-dispatch = {
  116. version = %{V_log_dispatch}
  117. url = http://www.cpan.org/modules/by-module/Log/
  118. regex = Log-Dispatch-(__VER__)\.tar\.gz
  119. }
  120. prog rt:mldbm = {
  121. version = %{V_mldbm}
  122. url = http://www.cpan.org/modules/by-authors/id/C/CH/CHAMAS/
  123. regex = MLDBM-(__VER__)\.tar\.gz
  124. }
  125. prog rt:html-scrubber = {
  126. version = %{V_html_scrubber}
  127. url = http://www.cpan.org/modules/by-authors/id/P/PO/PODMASTER/
  128. regex = HTML-Scrubber-(__VER__)\.tar\.gz
  129. }
  130. prog rt:module-version = {
  131. version = %{V_module_version}
  132. url = http://www.cpan.org/modules/by-authors/id/S/SB/SBURKE/
  133. regex = Module-Versions-Report-(__VER__)\.tar\.gz
  134. }
  135. %prep
  136. # unpack distribution tarballs
  137. %setup -q -c
  138. %setup -q -T -D -a 1
  139. %setup -q -T -D -a 2
  140. %setup -q -T -D -a 3
  141. %setup -q -T -D -a 4
  142. %setup -q -T -D -a 5
  143. %setup -q -T -D -a 6
  144. # patch RT distribution
  145. cd rt-%{V_rt}
  146. %patch -p0
  147. %{l_shtool} install -c -m 0644 %{l_value -s -a} \
  148. %{SOURCE config.layout} .
  149. %{l_shtool} subst \
  150. -e 's;chown;true;g' \
  151. -e 's;chgrp;true;g' \
  152. -e 's;chmod;true;g' \
  153. -e 's;mkdir -p;%{l_shtool} mkdir -p;g' \
  154. Makefile.in
  155. %{l_shtool} subst \
  156. -e 's;Locale::Maketext 1\.04;Locale::Maketext 1.03;' \
  157. lib/RT/I18N.pm
  158. %{l_shtool} subst \
  159. -e 's;/usr/sbin/sendmail;%{l_prefix}/sbin/sendmail;g' \
  160. etc/RT_Config.pm.in
  161. %build
  162. # configure RT part
  163. cd rt-%{V_rt}
  164. PERL=%{l_prefix}/bin/perl
  165. ./configure \
  166. --enable-layout=OPKG \
  167. --with-db-host=localhost \
  168. --with-db-home=%{l_prefix} \
  169. %if "%{with_db_sqlite}" == "yes"
  170. --with-db-type=SQLite \
  171. --with-db-dba=%{l_rusr} \
  172. --with-db-database=%{l_prefix}/var/rt/run/rt.db \
  173. --with-db-user=rt \
  174. --with-db-pass=XXX \
  175. %endif
  176. %if "%{with_db_mysql}" == "yes"
  177. --with-db-type=mysql \
  178. --with-db-dba=root \
  179. --with-db-database=rt \
  180. --with-db-user=rt \
  181. --with-db-pass=XXX \
  182. %endif
  183. %if "%{with_db_pgsql}" == "yes"
  184. --with-db-type=Pg \
  185. --with-db-dba=postgresql \
  186. --with-db-database=rt \
  187. --with-db-user=rt \
  188. --with-db-pass=XXX \
  189. %endif
  190. %if "%{with_db_oracle}" == "yes"
  191. --with-db-type=Oracle \
  192. --with-db-dba=system \
  193. --with-db-database=rt \
  194. --with-db-user=rt \
  195. --with-db-pass=XXX \
  196. %endif
  197. --with-web-user=%{l_rusr} \
  198. --with-web-group=%{l_rgrp} \
  199. --with-customdir=%{l_prefix}/etc/rt/local \
  200. --with-customhtmldir=%{l_prefix}/etc/rt/local/html \
  201. --with-customlibdir=%{l_prefix}/etc/rt/local/lib \
  202. --with-customlexdir=%{l_prefix}/etc/rt/local/po
  203. %install
  204. # perform common Perl prolog operations
  205. %{l_shtool} mkdir -f -p -m 755 ${RPM_BUILD_ROOT}%{l_prefix}/libexec/rt
  206. %{l_prefix}/bin/perl-openpkg prepare
  207. # install remaining prerequisite Perl modules which
  208. # are not part of the OpenPKG perl-xxx packages.
  209. %{l_prefix}/bin/perl-openpkg -d Log-Dispatch-%{V_log_dispatch} \
  210. -l %{l_prefix}/libexec/rt configure build install
  211. %{l_prefix}/bin/perl-openpkg -d HTML-Mason-%{V_html_mason} \
  212. -l %{l_prefix}/libexec/rt configure build install
  213. %{l_prefix}/bin/perl-openpkg -d MLDBM-%{V_mldbm} \
  214. -l %{l_prefix}/libexec/rt configure build install
  215. %{l_prefix}/bin/perl-openpkg -d HTML-Format-%{V_html_format} \
  216. -l %{l_prefix}/libexec/rt configure build install
  217. %{l_prefix}/bin/perl-openpkg -d HTML-Scrubber-%{V_html_scrubber} \
  218. -l %{l_prefix}/libexec/rt configure build install
  219. %{l_prefix}/bin/perl-openpkg -d Module-Versions-Report-%{V_module_version} \
  220. -l %{l_prefix}/libexec/rt configure build install
  221. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  222. # create installation file hierarchy
  223. %{l_shtool} mkdir -f -p -m 0755 \
  224. $RPM_BUILD_ROOT%{l_prefix}/sbin \
  225. $RPM_BUILD_ROOT%{l_prefix}/etc/rt \
  226. $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \
  227. $RPM_BUILD_ROOT%{l_prefix}/cgi/rt \
  228. $RPM_BUILD_ROOT%{l_prefix}/share/rt \
  229. $RPM_BUILD_ROOT%{l_prefix}/libexec/rt/tools \
  230. $RPM_BUILD_ROOT%{l_prefix}/libexec/rt/etc/upgrade \
  231. $RPM_BUILD_ROOT%{l_prefix}/var/rt/mason-data \
  232. $RPM_BUILD_ROOT%{l_prefix}/var/rt/mason-session \
  233. $RPM_BUILD_ROOT%{l_prefix}/var/rt/log \
  234. $RPM_BUILD_ROOT%{l_prefix}/var/rt/run
  235. # perform RT installation procedure
  236. ( cd rt-%{V_rt}
  237. %{l_make} %{l_mflags} \
  238. config-install dirs libs-install etc-install bin-install \
  239. sbin-install html-install doc-install \
  240. DESTDIR=$RPM_BUILD_ROOT
  241. cp -rp \
  242. etc/upgrade/* \
  243. $RPM_BUILD_ROOT%{l_prefix}/libexec/rt/etc/upgrade/
  244. %{l_shtool} install -c -m 0644 \
  245. -e '/Set($WebBaseURL/s;"[^"]*";"";' \
  246. etc/RT_Config.pm \
  247. $RPM_BUILD_ROOT%{l_prefix}/etc/rt/RT_SiteConfig.pm
  248. ) || exit $?
  249. # post-adjust installation hierarchy
  250. %{l_shtool} mkln -f -s \
  251. $RPM_BUILD_ROOT%{l_prefix}/etc/rt/RT_SiteConfig.pm \
  252. $RPM_BUILD_ROOT%{l_prefix}/libexec/rt/etc/RT_SiteConfig.pm
  253. mv \
  254. $RPM_BUILD_ROOT%{l_prefix}/libexec/rt/WebRT/html/NoAuth/css/print.css \
  255. $RPM_BUILD_ROOT%{l_prefix}/etc/rt/print.css
  256. %{l_shtool} mkln -f -s \
  257. $RPM_BUILD_ROOT%{l_prefix}/etc/rt/print.css \
  258. $RPM_BUILD_ROOT%{l_prefix}/libexec/rt/WebRT/html/NoAuth/css/print.css
  259. mv \
  260. $RPM_BUILD_ROOT%{l_prefix}/libexec/rt/local \
  261. $RPM_BUILD_ROOT%{l_prefix}/etc/rt/local
  262. %{l_shtool} mkln -f -s \
  263. $RPM_BUILD_ROOT%{l_prefix}/etc/rt/local \
  264. $RPM_BUILD_ROOT%{l_prefix}/libexec/rt/local
  265. mv \
  266. $RPM_BUILD_ROOT%{l_prefix}/bin/webmux.pl \
  267. $RPM_BUILD_ROOT%{l_prefix}/bin/mason_handler.fcgi \
  268. $RPM_BUILD_ROOT%{l_prefix}/cgi/rt/
  269. mv \
  270. $RPM_BUILD_ROOT%{l_prefix}/bin/rt-crontool \
  271. $RPM_BUILD_ROOT%{l_prefix}/bin/rt-mailgate \
  272. $RPM_BUILD_ROOT%{l_prefix}/libexec/rt/tools/
  273. %{l_shtool} install -c -m 755 %{l_value -s -a} \
  274. %{SOURCE rt-mailgate.sh} \
  275. $RPM_BUILD_ROOT%{l_prefix}/bin/rt-mailgate
  276. # strip installation hierarchy
  277. rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/convert*
  278. rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/*.svc
  279. rm -f $RPM_BUILD_ROOT%{l_prefix}/libexec/rt/tools/rt-test-dependencies
  280. rm -rf $RPM_BUILD_ROOT%{l_prefix}/libexec/rt/t
  281. rm -f $RPM_BUILD_ROOT%{l_prefix}/libexec/rt/RT.pm.in
  282. rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/xgettext.pl
  283. rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/pod2test
  284. rm -rf $RPM_BUILD_ROOT%{l_prefix}/man/man3
  285. rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/rt
  286. # install own setup/cleanup/upgrade script
  287. %if "%{with_db_sqlite}" == "yes"
  288. rt_db_dba=%{l_rusr}
  289. %endif
  290. %if "%{with_db_mysql}" == "yes"
  291. rt_db_dba=root
  292. %endif
  293. %if "%{with_db_pgsql}" == "yes"
  294. rt_db_dba=postgresql
  295. %endif
  296. %if "%{with_db_oracle}" == "yes"
  297. rt_db_dba=system
  298. %endif
  299. %{l_shtool} install -c -m 755 %{l_value -s -a} \
  300. -e "s;@rt_db_dba@;$rt_db_dba;g" \
  301. %{SOURCE rtsetup} %{SOURCE rtcleanup} %{SOURCE rtupgrade} \
  302. $RPM_BUILD_ROOT%{l_prefix}/sbin/
  303. # install OpenPKG run-command script
  304. %{l_shtool} install -c -m 755 %{l_value -s -a} \
  305. %{SOURCE rc.rt} \
  306. $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
  307. # install Apache "apachectl" wrapper
  308. %{l_shtool} install -c -m 755 %{l_value -s -a} \
  309. %{SOURCE rtapachectl} \
  310. $RPM_BUILD_ROOT%{l_prefix}/libexec/rt/tools/
  311. # install Apache configuration
  312. l_hostname=`%{l_shtool} echo -e %h`
  313. l_domainname=`%{l_shtool} echo -e %d | cut -c2-`
  314. %{l_shtool} install -c -m 755 %{l_value -s -a} \
  315. -e "s;@l_hostname@;$l_hostname;g" \
  316. -e "s;@l_domainname@;$l_domainname;g" \
  317. %{SOURCE rtapache.conf} \
  318. $RPM_BUILD_ROOT%{l_prefix}/etc/rt/
  319. # final post-adjustments to installation hierarchy
  320. find $RPM_BUILD_ROOT%{l_prefix}/libexec/rt \
  321. -type f -name "*.html" -print | xargs chmod 644
  322. find $RPM_BUILD_ROOT%{l_prefix}/libexec/rt \
  323. -type f -name "*.pm" -print | xargs chmod 644
  324. find $RPM_BUILD_ROOT%{l_prefix}/libexec/rt \
  325. -type f -print | xargs chmod a+r
  326. find $RPM_BUILD_ROOT%{l_prefix}/libexec/rt \
  327. -type d -print | xargs chmod 755
  328. find ${RPM_BUILD_ROOT}${l_prefix} -name .packlist -print | xargs rm -f
  329. # determine installation files
  330. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  331. %{l_files_std} `cat perl-openpkg-files` \
  332. '%{l_prefix}/libexec/rt' \
  333. '%attr(755,%{l_musr},%{l_mgrp}) %{l_prefix}/libexec/rt/tools/rt-setup-database' \
  334. '%attr(755,%{l_musr},%{l_mgrp}) %{l_prefix}/libexec/rt/tools/rt-crontool' \
  335. '%attr(755,%{l_musr},%{l_mgrp}) %{l_prefix}/libexec/rt/tools/rt-mailgate' \
  336. '%config %attr(640,%{l_musr},%{l_rgrp}) %{l_prefix}/etc/rt/RT_SiteConfig.pm' \
  337. '%config %attr(640,%{l_musr},%{l_rgrp}) %{l_prefix}/etc/rt/rtapache.conf' \
  338. '%config %attr(644,%{l_musr},%{l_rgrp}) %{l_prefix}/etc/rt/print.css' \
  339. '%attr(750,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/rt/mason-data' \
  340. '%attr(750,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/rt/mason-data/*' \
  341. '%attr(750,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/rt/mason-session' \
  342. '%attr(750,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/rt/log' \
  343. '%attr(750,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/rt/run'
  344. %files -f files
  345. %clean
  346. %post
  347. if [ $1 -eq 1 ]; then
  348. # activate in MTA configuration
  349. aliases_file=`$RPM_INSTALL_PREFIX/bin/openpkg rc --query MTA_aliases_file`
  350. aliases_update=`$RPM_INSTALL_PREFIX/bin/openpkg rc --query MTA_aliases_update`
  351. if [ ".$aliases_file" != . ]; then
  352. ( echo "rt: \"|$RPM_INSTALL_PREFIX/bin/rt-mailgate --action correspond --queue general --url http://127.0.0.1:8380/\""
  353. echo "rt-comment: \"|$RPM_INSTALL_PREFIX/bin/rt-mailgate --action comment --queue general --url http://127.0.0.1:8380/\""
  354. ) | %{l_rpmtool} config -a -i "$RPM_INSTALL_PREFIX:rt" $aliases_file
  355. fi
  356. if [ ".$aliases_update" != . ]; then
  357. eval $aliases_update
  358. fi
  359. # display final hint after initial installation
  360. ( echo "To complete installation of RT, please check the file"
  361. echo " $RPM_INSTALL_PREFIX/etc/rt/RT_SiteConfig.pm"
  362. echo "In particular, you have to assign a password to the RT"
  363. echo "database user. Then you have to start the MySQL RDBMS and"
  364. echo "create the initial RT database with:"
  365. echo " \$ $RPM_INSTALL_PREFIX/bin/openpkg rc mysql start"
  366. echo " \$ $RPM_INSTALL_PREFIX/sbin/rtsetup"
  367. echo "After this post-installation, start RT by running"
  368. echo " \$ $RPM_INSTALL_PREFIX/bin/openpkg rc rt start"
  369. echo "and connect with a browser to:"
  370. echo " http://127.0.0.1:8380/"
  371. echo "Login as 'root' (with initial password 'password')"
  372. echo "to change the password to a custom one."
  373. ) | %{l_rpmtool} msg -b -t notice
  374. elif [ $1 -gt 1 ]; then
  375. # display final hint after upgrading
  376. ( echo "If you have an old RT database you can erase it with:"
  377. echo " \$ $RPM_INSTALL_PREFIX/sbin/rtcleanup"
  378. echo "Upgrading from an earlier RT 3.x database you can with:"
  379. echo " \$ $RPM_INSTALL_PREFIX/sbin/rtupgrade <old-rt-version>"
  380. ) | %{l_rpmtool} msg -b -t notice
  381. fi
  382. %preun
  383. if [ $1 -eq 0 ]; then
  384. # stop perhaps still running server
  385. $RPM_INSTALL_PREFIX/bin/openpkg rc rt stop
  386. # deactivate in MTA configuration
  387. aliases_file=`$RPM_INSTALL_PREFIX/bin/openpkg rc --query MTA_aliases_file`
  388. aliases_update=`$RPM_INSTALL_PREFIX/bin/openpkg rc --query MTA_aliases_update`
  389. if [ ".$aliases_file" != . ]; then
  390. %{l_rpmtool} config -r -i "$RPM_INSTALL_PREFIX:rt" $aliases_file
  391. fi
  392. if [ ".$aliases_update" != . ]; then
  393. eval $aliases_update
  394. fi
  395. # remove generated files
  396. rm -f $RPM_INSTALL_PREFIX/var/rt/mason-session/*
  397. rm -rf $RPM_INSTALL_PREFIX/var/rt/mason-data/*/*
  398. rm -f $RPM_INSTALL_PREFIX/var/rt/log/*
  399. rm -f $RPM_INSTALL_PREFIX/var/rt/run/apache.pid
  400. rm -f $RPM_INSTALL_PREFIX/var/rt/run/ssl_scache
  401. fi