rt.spec 17 KB

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