# ChangeLog for www-apps/rt
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-apps/rt/ChangeLog,v 1.36 2006/04/29 20:15:51 rl03 Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-apps/rt/ChangeLog,v 1.37 2006/06/22 02:07:15 rl03 Exp $
+
+*rt-3.6.0 (22 Jun 2006)
+
+ 22 Jun 2006; Renat Lumpau <rl03@gentoo.org> +rt-3.6.0.ebuild:
+ Version bump (bug #137235).
29 Apr 2006; Renat Lumpau <rl03@gentoo.org> rt-3.4.5.ebuild:
Improve db configuration. Thanks to Ruslan Zakirov for initial patch.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
-AUX 3.2.1/postinstall-en.txt 1648 RMD160 9c815e52de1437f2dffaf21dfdb9e385c9304542 SHA1 e55e498670fe2897b22af8c292d4a0b34c67d94a SHA256 fb97b5637b5f02679b937b6113c28370ed06389d3527598f0a2887928a300d66 size 1648
+AUX 3.2.1/postinstall-en.txt 1648 RMD160 9c815e52de1437f2dffaf21dfdb9e385c9304542 SHA1 e55e498670fe2897b22af8c292d4a0b34c67d94a SHA256 fb97b5637b5f02679b937b6113c28370ed06389d3527598f0a2887928a300d66
MD5 15fc088b37155656e008679f3c07eea7 files/3.2.1/postinstall-en.txt 1648
RMD160 9c815e52de1437f2dffaf21dfdb9e385c9304542 files/3.2.1/postinstall-en.txt 1648
SHA256 fb97b5637b5f02679b937b6113c28370ed06389d3527598f0a2887928a300d66 files/3.2.1/postinstall-en.txt 1648
-AUX 3.2.1/reconfig 1213 RMD160 ccec7b2394dca3ffb9996770eafa4ba51abd8237 SHA1 a6ba1e297ead5bd71f4f49ad3a6918fe2d48a1ca SHA256 f36fa5d058a9e3f80e390d9565daea9b263fe76c9cb61cc98e46960579dbb084 size 1213
+AUX 3.2.1/reconfig 1213 RMD160 ccec7b2394dca3ffb9996770eafa4ba51abd8237 SHA1 a6ba1e297ead5bd71f4f49ad3a6918fe2d48a1ca SHA256 f36fa5d058a9e3f80e390d9565daea9b263fe76c9cb61cc98e46960579dbb084
MD5 ea7fd972eafdc6962d1c3a0cdeba47e7 files/3.2.1/reconfig 1213
RMD160 ccec7b2394dca3ffb9996770eafa4ba51abd8237 files/3.2.1/reconfig 1213
SHA256 f36fa5d058a9e3f80e390d9565daea9b263fe76c9cb61cc98e46960579dbb084 files/3.2.1/reconfig 1213
-AUX 3.4.5/postinstall-en.txt 703 RMD160 5bddbc2097afd96da1ff2993befdb1c8b27769ef SHA1 c212a6095f9191885ea335de1981a6a89437dd7f SHA256 497e75437529d61f69b628b0f7ab4ffa51dd0be9292220e657c4148345ab5a35 size 703
+AUX 3.4.5/postinstall-en.txt 703 RMD160 5bddbc2097afd96da1ff2993befdb1c8b27769ef SHA1 c212a6095f9191885ea335de1981a6a89437dd7f SHA256 497e75437529d61f69b628b0f7ab4ffa51dd0be9292220e657c4148345ab5a35
MD5 c915d8b7646d69d0dc32fae2bfaf298a files/3.4.5/postinstall-en.txt 703
RMD160 5bddbc2097afd96da1ff2993befdb1c8b27769ef files/3.4.5/postinstall-en.txt 703
SHA256 497e75437529d61f69b628b0f7ab4ffa51dd0be9292220e657c4148345ab5a35 files/3.4.5/postinstall-en.txt 703
-AUX 3.4.5/reconfig 1189 RMD160 65625874bf5a76dd5d2305c88e94c65432fa8ed1 SHA1 0fb832900d207d9a0846a9077a09285f5276bf2d SHA256 f120726ee2baaf28fe4fe65932ca28eead8c4236163d86df33337523dfae9e97 size 1189
+AUX 3.4.5/reconfig 1189 RMD160 65625874bf5a76dd5d2305c88e94c65432fa8ed1 SHA1 0fb832900d207d9a0846a9077a09285f5276bf2d SHA256 f120726ee2baaf28fe4fe65932ca28eead8c4236163d86df33337523dfae9e97
MD5 7255563978025158e1e0df47269d5e72 files/3.4.5/reconfig 1189
RMD160 65625874bf5a76dd5d2305c88e94c65432fa8ed1 files/3.4.5/reconfig 1189
SHA256 f120726ee2baaf28fe4fe65932ca28eead8c4236163d86df33337523dfae9e97 files/3.4.5/reconfig 1189
-AUX config.layout-gentoo 616 RMD160 5a67ad1cb45ad067f66c5348acfedc45841ab252 SHA1 67e1d7d24b4593f5a2301cf5584cb83109c6a497 SHA256 edf9ae9b820a072cacf2bc6f43b3147d746037ba299265c62bcfafb50be06759 size 616
+AUX config.layout-gentoo 616 RMD160 5a67ad1cb45ad067f66c5348acfedc45841ab252 SHA1 67e1d7d24b4593f5a2301cf5584cb83109c6a497 SHA256 edf9ae9b820a072cacf2bc6f43b3147d746037ba299265c62bcfafb50be06759
MD5 4dcfdbf63b882b398473d975b34fa23e files/config.layout-gentoo 616
RMD160 5a67ad1cb45ad067f66c5348acfedc45841ab252 files/config.layout-gentoo 616
SHA256 edf9ae9b820a072cacf2bc6f43b3147d746037ba299265c62bcfafb50be06759 files/config.layout-gentoo 616
-AUX rt.conf.d 399 RMD160 da84c7fc8ddba2e01cd58fe706cc64501ff8deeb SHA1 824af6197cc3da5cb832cec0bada938c13281a18 SHA256 6f705188c9b9c57dbb7a9726d00624dbd5c267d4dc7415d81fd972f4d3300542 size 399
+AUX rt.conf.d 399 RMD160 da84c7fc8ddba2e01cd58fe706cc64501ff8deeb SHA1 824af6197cc3da5cb832cec0bada938c13281a18 SHA256 6f705188c9b9c57dbb7a9726d00624dbd5c267d4dc7415d81fd972f4d3300542
MD5 311c8da4ab2a53349888bc309abe94f7 files/rt.conf.d 399
RMD160 da84c7fc8ddba2e01cd58fe706cc64501ff8deeb files/rt.conf.d 399
SHA256 6f705188c9b9c57dbb7a9726d00624dbd5c267d4dc7415d81fd972f4d3300542 files/rt.conf.d 399
-AUX rt.init.d 1013 RMD160 c6853447d8653cfbcf26316c0a432e3474298467 SHA1 bf7408b6c3a30a7a80ece3e51bf1b0446f68e5df SHA256 45f75de68ee588538d093eb6d57d8368004e075fecafff2f82bb0f2978da79d7 size 1013
+AUX rt.init.d 1013 RMD160 c6853447d8653cfbcf26316c0a432e3474298467 SHA1 bf7408b6c3a30a7a80ece3e51bf1b0446f68e5df SHA256 45f75de68ee588538d093eb6d57d8368004e075fecafff2f82bb0f2978da79d7
MD5 817c07152554fad4497520f81a18a69d files/rt.init.d 1013
RMD160 c6853447d8653cfbcf26316c0a432e3474298467 files/rt.init.d 1013
SHA256 45f75de68ee588538d093eb6d57d8368004e075fecafff2f82bb0f2978da79d7 files/rt.init.d 1013
-AUX rt_apache.conf 574 RMD160 19a49aca4870750ad397916f7a16433624be2b12 SHA1 70e337d2f3b3fd8295703672a1af1dc3bdd55d5a SHA256 7d801941fafb9656848fa3c57ee142203a66c121dfc0eef616a4ca2146644419 size 574
+AUX rt_apache.conf 574 RMD160 19a49aca4870750ad397916f7a16433624be2b12 SHA1 70e337d2f3b3fd8295703672a1af1dc3bdd55d5a SHA256 7d801941fafb9656848fa3c57ee142203a66c121dfc0eef616a4ca2146644419
MD5 3d2e627499ec86839cc0099719fcc3bd files/rt_apache.conf 574
RMD160 19a49aca4870750ad397916f7a16433624be2b12 files/rt_apache.conf 574
SHA256 7d801941fafb9656848fa3c57ee142203a66c121dfc0eef616a4ca2146644419 files/rt_apache.conf 574
-AUX rt_apache1_fcgi.conf 990 RMD160 313227236915d9120281f048f0753df5248544f0 SHA1 0b42a0680b74dd986e42ffd53b471465d28bfdda SHA256 b71473d61581fd365c84cd71c5c8825fa1cfd002ce140b71c0bb50b37333ca68 size 990
+AUX rt_apache1_fcgi.conf 990 RMD160 313227236915d9120281f048f0753df5248544f0 SHA1 0b42a0680b74dd986e42ffd53b471465d28bfdda SHA256 b71473d61581fd365c84cd71c5c8825fa1cfd002ce140b71c0bb50b37333ca68
MD5 b54ebbfd3fc1dd2a49d396e3dba2b857 files/rt_apache1_fcgi.conf 990
RMD160 313227236915d9120281f048f0753df5248544f0 files/rt_apache1_fcgi.conf 990
SHA256 b71473d61581fd365c84cd71c5c8825fa1cfd002ce140b71c0bb50b37333ca68 files/rt_apache1_fcgi.conf 990
-AUX rt_apache2.conf 574 RMD160 19a49aca4870750ad397916f7a16433624be2b12 SHA1 70e337d2f3b3fd8295703672a1af1dc3bdd55d5a SHA256 7d801941fafb9656848fa3c57ee142203a66c121dfc0eef616a4ca2146644419 size 574
+AUX rt_apache2.conf 574 RMD160 19a49aca4870750ad397916f7a16433624be2b12 SHA1 70e337d2f3b3fd8295703672a1af1dc3bdd55d5a SHA256 7d801941fafb9656848fa3c57ee142203a66c121dfc0eef616a4ca2146644419
MD5 3d2e627499ec86839cc0099719fcc3bd files/rt_apache2.conf 574
RMD160 19a49aca4870750ad397916f7a16433624be2b12 files/rt_apache2.conf 574
SHA256 7d801941fafb9656848fa3c57ee142203a66c121dfc0eef616a4ca2146644419 files/rt_apache2.conf 574
-AUX rt_apache2_fcgi.conf 993 RMD160 a59e337ff39bf9a1cb8793d63f5cc6583f2a0615 SHA1 8c20b094785f29f87ceca08ff7ea365d8ed93681 SHA256 166f5a60e443351228ba215a460603b106074e6f150e878a34ccd18b825026aa size 993
+AUX rt_apache2_fcgi.conf 993 RMD160 a59e337ff39bf9a1cb8793d63f5cc6583f2a0615 SHA1 8c20b094785f29f87ceca08ff7ea365d8ed93681 SHA256 166f5a60e443351228ba215a460603b106074e6f150e878a34ccd18b825026aa
MD5 73c354dd8ba0f64a74e5c6cd01b33834 files/rt_apache2_fcgi.conf 993
RMD160 a59e337ff39bf9a1cb8793d63f5cc6583f2a0615 files/rt_apache2_fcgi.conf 993
SHA256 166f5a60e443351228ba215a460603b106074e6f150e878a34ccd18b825026aa files/rt_apache2_fcgi.conf 993
-DIST rt-3.2.1.tar.gz 1201592 RMD160 31e7dd475a61a33454fc9ce06ebb545fbf216a82 SHA256 b12241e83575d78dcb1e4dea50d3c8d6545a97eb10efec9c45a84a65304739a9 size 1201592
-DIST rt-3.4.5.tar.gz 1410154 RMD160 aa86f6cd4039ce6f6fdfaabf0e2807e93d0786b5 SHA256 20eb89af3245b7021e53cdefd0ed0716443c3a4f9e8536e0c2c29b901942e917 size 1410154
-EBUILD rt-3.2.1.ebuild 4362 RMD160 9762ad63416c1d1b40fa3bb458dfd8df23869905 SHA1 37728067e5b10e8b25e99944152d22b28e3a0e5f SHA256 a54d76fd63e036ef880857b543c3b769ac3866272199cad19aa6ec6b4084a769 size 4362
+DIST rt-3.2.1.tar.gz 1201592 RMD160 31e7dd475a61a33454fc9ce06ebb545fbf216a82 SHA256 b12241e83575d78dcb1e4dea50d3c8d6545a97eb10efec9c45a84a65304739a9
+DIST rt-3.4.5.tar.gz 1410154 RMD160 aa86f6cd4039ce6f6fdfaabf0e2807e93d0786b5 SHA256 20eb89af3245b7021e53cdefd0ed0716443c3a4f9e8536e0c2c29b901942e917
+DIST rt-3.6.0.tar.gz 1525865 RMD160 13f5656f966664a31274bb60a894a0ae125415c0 SHA1 bffa726c6b8cba4d80ab709cc6444e08be7207fc SHA256 22c8e0596f863b7ad016824afbc1090d28a3eb4e24a1a07be222fb67f510ca8b
+EBUILD rt-3.2.1.ebuild 4362 RMD160 9762ad63416c1d1b40fa3bb458dfd8df23869905 SHA1 37728067e5b10e8b25e99944152d22b28e3a0e5f SHA256 a54d76fd63e036ef880857b543c3b769ac3866272199cad19aa6ec6b4084a769
MD5 939107934a799efb520c62c057341273 rt-3.2.1.ebuild 4362
RMD160 9762ad63416c1d1b40fa3bb458dfd8df23869905 rt-3.2.1.ebuild 4362
SHA256 a54d76fd63e036ef880857b543c3b769ac3866272199cad19aa6ec6b4084a769 rt-3.2.1.ebuild 4362
-EBUILD rt-3.4.5.ebuild 6421 RMD160 169e1dd8fc611f446d00b815321506c66b9574bc SHA1 dceebf4fc632ce9fa35ef9eedce1000970d9565f SHA256 be3737bd380ea03a3857a42919b0d7b7d965074f8c9597649181fb40309e0ae2 size 6421
+EBUILD rt-3.4.5.ebuild 6421 RMD160 169e1dd8fc611f446d00b815321506c66b9574bc SHA1 dceebf4fc632ce9fa35ef9eedce1000970d9565f SHA256 be3737bd380ea03a3857a42919b0d7b7d965074f8c9597649181fb40309e0ae2
MD5 f2f777474730949eeaeb2feda02409cf rt-3.4.5.ebuild 6421
RMD160 169e1dd8fc611f446d00b815321506c66b9574bc rt-3.4.5.ebuild 6421
SHA256 be3737bd380ea03a3857a42919b0d7b7d965074f8c9597649181fb40309e0ae2 rt-3.4.5.ebuild 6421
-MISC ChangeLog 5895 RMD160 f8e6d0d68a1b60985072e684f0e09e7c5b1c5ad8 SHA1 0a73a0c9a66ec59f96958caf100792c56e411b01 SHA256 7f4db17cc2421e7100e77511cc9135530c48c28570539dcbd72224fb9b9cc1f0 size 5895
-MD5 001b41809b4e0b6a3a2e58d1fb58c0fa ChangeLog 5895
-RMD160 f8e6d0d68a1b60985072e684f0e09e7c5b1c5ad8 ChangeLog 5895
-SHA256 7f4db17cc2421e7100e77511cc9135530c48c28570539dcbd72224fb9b9cc1f0 ChangeLog 5895
-MISC metadata.xml 221 RMD160 cb776d24349e87dce7784e24e35d9d84f91da1f7 SHA1 0f301c536f2b097bd3ff21cc1dd05fe6d8f4713e SHA256 e9d20baa1edc4def48ad57c9620d3d0ee361888408261619ff9ea9edb47ce67a size 221
+EBUILD rt-3.6.0.ebuild 6530 RMD160 b0fd586429aa771c70553bed7715d01996f841a9 SHA1 ee04c2d21c250762f31368ec2b679fd02ddafa01 SHA256 bef9411b9b0ebbd905e2131701732546df2c06fd0daf9ed6ec2ca5f5e1ccfdc5
+MD5 4a4dae6a622c7c4646bb6da77d34d1ae rt-3.6.0.ebuild 6530
+RMD160 b0fd586429aa771c70553bed7715d01996f841a9 rt-3.6.0.ebuild 6530
+SHA256 bef9411b9b0ebbd905e2131701732546df2c06fd0daf9ed6ec2ca5f5e1ccfdc5 rt-3.6.0.ebuild 6530
+MISC ChangeLog 6015 RMD160 b9b774c88bb979e9759a67cc0f8e7170765e1fc6 SHA1 eb3947d0f8a1951d1c140f790c8cfe40987f1367 SHA256 6507a87eadd4baa08b9bbcf7f1b1db920faa3a33f06d6813c36f791e791597a6
+MD5 a66df3914cc08427021241aecf38a616 ChangeLog 6015
+RMD160 b9b774c88bb979e9759a67cc0f8e7170765e1fc6 ChangeLog 6015
+SHA256 6507a87eadd4baa08b9bbcf7f1b1db920faa3a33f06d6813c36f791e791597a6 ChangeLog 6015
+MISC metadata.xml 221 RMD160 cb776d24349e87dce7784e24e35d9d84f91da1f7 SHA1 0f301c536f2b097bd3ff21cc1dd05fe6d8f4713e SHA256 e9d20baa1edc4def48ad57c9620d3d0ee361888408261619ff9ea9edb47ce67a
MD5 224c312cc23d02aa06c26a4da3cc1f90 metadata.xml 221
RMD160 cb776d24349e87dce7784e24e35d9d84f91da1f7 metadata.xml 221
SHA256 e9d20baa1edc4def48ad57c9620d3d0ee361888408261619ff9ea9edb47ce67a metadata.xml 221
MD5 344efb41e7d9b208c17507b446e9169f files/digest-rt-3.4.5 229
RMD160 387a7902e7e37ea8fb3fa41b1f19c2794dc62b67 files/digest-rt-3.4.5 229
SHA256 f8d66759e366aa8d9a0a629072bd4f0557474da2110540cd45390fc62e38d510 files/digest-rt-3.4.5 229
+MD5 bd2866f655b230c9e0245ec09aade8c3 files/digest-rt-3.6.0 229
+RMD160 4856875b87cdd14c690c3658f12c70933b4ed1d6 files/digest-rt-3.6.0 229
+SHA256 dc83845cea9294ef43c9f083452de339d1ad32c8d089c0bb1b921fcad9aba4ba files/digest-rt-3.6.0 229
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.2.2 (GNU/Linux)
+Version: GnuPG v1.4.3 (GNU/Linux)
-iD8DBQFEU8l/EzitwsaoONoRAmJMAKCUQAsZNd7R1v+CW64pUPsxx1vPWwCePGWA
-leUYsWzOVAKz4NJ9XZYbIcc=
-=m0n3
+iD8DBQFEmflkEzitwsaoONoRAr+IAKCsTOkY/oaXKI0bQvSUzaQydJxFkgCcCJIj
+HiAaG4BJu5Fu4NM+Nvluwtk=
+=GZ05
-----END PGP SIGNATURE-----
--- /dev/null
+MD5 b363dab7fa5e1af10d150783c02e3935 rt-3.6.0.tar.gz 1525865
+RMD160 13f5656f966664a31274bb60a894a0ae125415c0 rt-3.6.0.tar.gz 1525865
+SHA256 22c8e0596f863b7ad016824afbc1090d28a3eb4e24a1a07be222fb67f510ca8b rt-3.6.0.tar.gz 1525865
--- /dev/null
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/rt/rt-3.6.0.ebuild,v 1.1 2006/06/22 02:07:15 rl03 Exp $
+
+inherit webapp eutils
+
+IUSE="mysql postgres fastcgi apache2 lighttpd"
+
+DESCRIPTION="RT is an enterprise-grade ticketing system"
+HOMEPAGE="http://www.bestpractical.com/rt/"
+SRC_URI="http://download.bestpractical.com/pub/${PN}/release/${P}.tar.gz"
+
+KEYWORDS="~ppc ~x86"
+
+DEPEND="
+ >=dev-lang/perl-5.8.3
+
+ >=dev-perl/Params-Validate-0.02
+ dev-perl/Cache-Cache
+ >=dev-perl/Exception-Class-1.14
+ >dev-perl/HTML-Mason-1.23
+ dev-perl/MLDBM
+ dev-perl/FreezeThaw
+ >=virtual/perl-Digest-MD5-2.27
+ >=virtual/perl-CGI-2.92
+ >=virtual/perl-Storable-2.08
+ >=dev-perl/Apache-Session-1.53
+ >=dev-perl/XML-RSS-1.05
+ >=dev-perl/HTTP-Server-Simple-0.07
+ >=dev-perl/HTTP-Server-Simple-Mason-0.09
+ dev-perl/GD
+ dev-perl/GDGraph
+ dev-perl/GDTextUtil
+ >=dev-perl/Text-WikiFormat-0.76
+
+ !lighttpd? (
+ >=dev-perl/Apache-DBI-0.92
+ apache2? (
+ !fastcgi? ( >=www-apache/libapreq2-2.06
+ >=dev-perl/HTML-Mason-1.31 )
+ fastcgi? ( dev-perl/FCGI ) )
+ !apache2? (
+ fastcgi? ( dev-perl/FCGI )
+ !fastcgi? ( =www-apache/libapreq-1* ) ) )
+ lighttpd? ( dev-perl/FCGI )
+
+ mysql? ( >=dev-perl/DBD-mysql-2.1018 )
+ postgres? ( >=dev-perl/DBD-Pg-1.43 )
+
+ >=virtual/perl-Getopt-Long-2.24
+
+ dev-perl/HTML-Tree
+ dev-perl/HTML-Format
+ dev-perl/libwww-perl
+
+ dev-perl/Calendar-Simple
+ virtual/perl-digest-base
+ >=dev-perl/DBI-1.37
+ dev-perl/Test-Inline
+ >=dev-perl/class-returnvalue-0.40
+ >=dev-perl/dbix-searchbuilder-1.39
+ dev-perl/text-template
+ >=virtual/perl-File-Spec-0.8
+ dev-perl/HTML-Parser
+ >=dev-perl/HTML-Scrubber-0.08
+ virtual/perl-libnet
+ >=dev-perl/log-dispatch-2.0
+ >=dev-perl/locale-maketext-lexicon-0.32
+ dev-perl/locale-maketext-fuzzy
+ >=dev-perl/MIME-tools-5.417
+ >=dev-perl/MailTools-1.60
+ dev-perl/text-wrapper
+ dev-perl/Time-modules
+ virtual/perl-Time-HiRes
+ virtual/perl-File-Temp
+ dev-perl/TermReadKey
+ dev-perl/text-autoformat
+ >=dev-perl/Text-Quoted-1.3
+ >=dev-perl/Tree-Simple-1.04
+ virtual/perl-Scalar-List-Utils
+ dev-perl/Module-Versions-Report
+ dev-perl/Cache-Simple-TimedExpiry
+ dev-perl/XML-Simple
+ dev-perl/regexp-common
+"
+
+RDEPEND="
+ ${DEPEND}
+ virtual/mta
+ mysql? ( >=dev-db/mysql-4.0.13 )
+ postgres? ( >=dev-db/postgresql-7.4.2-r1 )
+ !lighttpd? (
+ apache2? ( >=net-www/apache-2
+ fastcgi? ( net-www/mod_fastcgi )
+ !apache2? ( =net-www/apache-1* ) ) )
+ lighttpd? ( >=www-servers/lighttpd-1.3.13 )
+"
+
+LICENSE="GPL-2"
+
+add_user_rt() {
+ # add new user
+ # suexec2 requires uid >= 1000; enewuser is of no help here
+ # From: Mike Frysinger <vapier@gentoo.org>
+ # Date: Fri, 17 Jun 2005 08:41:44 -0400
+ # i'd pick a 5 digit # if i were you
+
+ local euser="rt"
+
+ # first check if username rt exists
+ if [[ ${euser} == $(egetent passwd "${euser}" | cut -d: -f1) ]] ; then
+ # check uid
+ rt_uid=$(egetent passwd "${euser}" | cut -d: -f3)
+ if $(expr ${rt_uid} '<' 1000 > /dev/null); then
+ ewarn "uid of user rt is less than 1000. suexec2 will not work."
+ ewarn "If you want to use FastCGI, please delete the user 'rt'"
+ ewarn "from your system and re-emerge www-apps/rt"
+ epause
+ fi
+ return 0 # all is well
+ fi
+
+ # add user
+ # stolen from enewuser
+ local pwrange euid
+
+ pwrange=$(seq 10001 11001)
+ for euid in ${pwrange} ; do
+ [[ -z $(egetent passwd ${euid}) ]] && break
+ done
+ if [[ ${euid} == "11001" ]]; then
+ # she gets around, doesn't she?
+ die "No available uid's found"
+ fi
+
+ einfo " - Userid: ${euid}"
+
+ enewuser rt ${euid} -1 /dev/null rt > /dev/null
+ return 0
+}
+
+pkg_setup() {
+ webapp_pkg_setup
+
+ use mysql && ewarn "RT needs MySQL with innodb support"
+ ewarn
+ ewarn "If you are upgrading from an existing _RT2_ installation,"
+ ewarn "stop this ebuild (Ctrl-C now), download the upgrade tool,"
+ ewarn "http://bestpractical.com/pub/rt/devel/rt2-to-rt3.tar.gz"
+ ewarn "and follow the included instructions."
+ ewarn
+ epause 5
+ enewgroup rt >/dev/null
+ add_user_rt || die "Could not add user"
+}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ # add Gentoo-specific layout
+ cat ${FILESDIR}/config.layout-gentoo >> config.layout
+ sed -e "s|PREFIX|${D}/${MY_HOSTROOTDIR}/${PF}|
+ s|HTMLDIR|${D}/${MY_HTDOCSDIR}|g" -i ./config.layout || die
+
+ # don't need to check dev dependencies
+ sed -e "s|\$args{'with-DEV'} =1;|#\$args{'with-DEV'} =1;|" -i sbin/rt-test-dependencies.in || die
+}
+
+src_compile() {
+
+ local web="apache"
+ useq lighttpd && web="lighttpd"
+
+ local dbtype=""
+ local dba=""
+
+ if useq mysql; then
+ dbtype="--with-db-type=mysql"
+ dba="--with-db-dba=root"
+ fi
+ if useq postgres;then
+ dbtype="--with-db-type=Pg"
+ dba="--with-db-dba=postgres"
+ fi
+ if useq postgres && useq mysql; then
+ ewarn "Both mysql and postgres USE flags enabled, default is mysql."
+ ewarn "You can set the default value in RT_SiteConfig before DB init."
+ dbtype="--with-db-type=mysql"
+ dba="--with-db-dba=root"
+ fi
+
+ ./configure --enable-layout=Gentoo \
+ --with-bin-owner=rt \
+ --with-libs-owner=rt \
+ --with-libs-group=rt \
+ --with-rt-group=rt \
+ --with-web-user=${web} \
+ --with-web-group=${web} \
+ ${dbtype} ${dba}
+
+ # check for missing deps and ask to report if something is broken
+ local myconf="--verbose $(use_with mysql) \
+ $(use_with postgres pg) \
+ $(use_with fastcgi) \
+ $(use_with lighttpd fastcgi)"
+ if ! useq fastcgi && ! useq lighttpd; then
+ myconf="${myconf} $(use_with apache2 modperl2)"
+ ! useq apache2 && myconf="${myconf} --with-modperl1"
+ fi
+
+ /usr/bin/perl ./sbin/rt-test-dependencies ${myconf} > ${T}/t
+ if grep -q "MISSING" ${T}/t; then
+ ewarn "Missing Perl dependency!"
+ ewarn
+ cat ${T}/t
+ ewarn
+ ewarn "Please file a bug in the Gentoo Bugzilla with the information above"
+ ewarn "and assign it to rl03@gentoo.org"
+ die "Missing dependencies."
+ fi
+}
+
+src_install() {
+ webapp_src_preinst
+
+ make install
+
+ # make sure we don't clobber existing site configuration
+ rm -f ${D}/${MY_HOSTROOTDIR}/${PF}/etc/RT_SiteConfig.pm
+
+ # copy upgrade files
+ cp -R etc/upgrade ${D}/${MY_HOSTROOTDIR}/${PF}
+
+ cd ${D}
+ grep -Rl "${D}" * | xargs dosed
+
+ if useq lighttpd; then
+ newinitd ${FILESDIR}/${PN}.init.d ${PN}
+ newconfd ${FILESDIR}/${PN}.conf.d ${PN}
+ else
+ if useq apache2; then
+ local CONF="rt_apache2_fcgi.conf rt_apache2.conf"
+ else
+ local CONF="rt_apache1_fcgi.conf rt_apache.conf"
+ fi
+ cd ${FILESDIR} && cp ${CONF} ${D}/${MY_HOSTROOTDIR}/${PF}/etc
+ fi
+ webapp_postinst_txt en ${FILESDIR}/3.4.5/postinstall-en.txt
+ webapp_hook_script ${FILESDIR}/3.4.5/reconfig
+ webapp_src_install
+}