summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Volkov <pva@gentoo.org>2013-10-12 11:55:05 +0000
committerPeter Volkov <pva@gentoo.org>2013-10-12 11:55:05 +0000
commitc79eecf4335a1a74d7ebbc2c689db99b61cb481d (patch)
tree6fd93465637708d40a0be840c01d5773f7dc8e4d
parentVersion bump to 2.1.0.119, proxied commit for Tianon; fixes bug #487596. (diff)
downloadhistorical-c79eecf4335a1a74d7ebbc2c689db99b61cb481d.tar.gz
historical-c79eecf4335a1a74d7ebbc2c689db99b61cb481d.tar.bz2
historical-c79eecf4335a1a74d7ebbc2c689db99b61cb481d.zip
Generated.pm should point on webapp-config installed directory, bug #414829, thank Christoph Erdle for report and Eric Martin for this fix.
Package-Manager: portage-2.2.1/cvs/Linux x86_64 Manifest-Sign-Key: 0xF1989B07
-rw-r--r--www-apps/rt/ChangeLog9
-rw-r--r--www-apps/rt/Manifest29
-rw-r--r--www-apps/rt/files/reconfig7
-rw-r--r--www-apps/rt/metadata.xml4
-rw-r--r--www-apps/rt/rt-4.0.8-r1.ebuild276
5 files changed, 298 insertions, 27 deletions
diff --git a/www-apps/rt/ChangeLog b/www-apps/rt/ChangeLog
index c854edeb5dac..114934e235c4 100644
--- a/www-apps/rt/ChangeLog
+++ b/www-apps/rt/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for www-apps/rt
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-apps/rt/ChangeLog,v 1.78 2013/03/17 15:36:24 hwoarang Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-apps/rt/ChangeLog,v 1.79 2013/10/12 11:55:01 pva Exp $
+
+*rt-4.0.8-r1 (12 Oct 2013)
+
+ 12 Oct 2013; Peter Volkov <pva@gentoo.org> +rt-4.0.8-r1.ebuild,
+ files/reconfig, metadata.xml:
+ Generated.pm should point on webapp-config installed directory, bug #414829,
+ thank Christoph Erdle for report and Eric Martin for this fix.
17 Mar 2013; Markos Chandras <hwoarang@gentoo.org> metadata.xml:
Add proxy-maintainers to metadata.xml
diff --git a/www-apps/rt/Manifest b/www-apps/rt/Manifest
index 3fb4a34c8b9b..89f15ebd456e 100644
--- a/www-apps/rt/Manifest
+++ b/www-apps/rt/Manifest
@@ -1,9 +1,6 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA256
-
AUX config.layout-gentoo 670 SHA256 412cbca2c5bc8e3b44f5dddd5c54a48547e99d1a40cf542feeec4d7b53a2b9fb SHA512 a6dd55a8f6b73bc71cd4778f7c37df7b1ccbb20627ab80cfd827ac615a49f91168f34c1cb4a3de211d102702a0c74a4b6d03f2fd96abe7fe6b775bcbbe2bd843 WHIRLPOOL 31c3a67e7e8b772f19231fe2f826e16b1dbee6e8ad4d2d60df606f735f1fb31b54cf032240abf39bb5374555e702ec3e61ceeedaf58e11f36edb120e48b7cfb0
AUX postinstall-en.txt 703 SHA256 497e75437529d61f69b628b0f7ab4ffa51dd0be9292220e657c4148345ab5a35 SHA512 884bc62b848a77338ee55472f57c47f31f675edab7fa0ffc1fc8f958be1248f8f5232248bfb4f5aa414572020d9982c958a055c2e5d125efde05dc9fa6985d64 WHIRLPOOL f95a386d7fb585908c3e9e47b720704b1f269fc7a76bba6e5b1d9280755f1790e143d512f8883cb9bc222866887ca1b875f0a3de4eab91c73fbeadb4ed559fae
-AUX reconfig 1867 SHA256 109c8db26ae98a84c27ddb896b613bc248a4a216a9f6e463fc52f8c380c38ff1 SHA512 54dd79ff0637c02c6ed1408b4e7d11abe5f07c9f45112b936a3b4e5ee6181f927f99f377cb161c32b99a2c15458e0cb07509d8ebec949eba09ee91682c75f4e8 WHIRLPOOL 050c609115d035262ad77f6b1fcd527f0c2ce6904949133c465d95b34e754f4440a07e5661e3e975983aa5f0dcab17043606de1fc14e7d24758952b08f20ffce
+AUX reconfig 2125 SHA256 a360f48f994d7317ccf0aeadffc86f1db9a61cf361d480ef4de41d96f3d5a507 SHA512 43f403203dad24627f1be8d74ee4d60c2a49b23c00515b67faee47d97ff348c82094f10730a01f578c4884ef3268cef1179657a5ef2afa0697121b61bba54162 WHIRLPOOL bf5cb060f3ea8d844186b9f4e43662fb3cd18582b9c8dc26f156e89ed9772042d19046696402bba40fee26b36dbafd3c852feb82a34ed260986a8c15c4ca79df
AUX rt.conf.d.2 336 SHA256 f41dd245b73b65de21c04307994048c6517523deb36dd753891cce510ee3ea53 SHA512 1e76183290a92fee036e8fb0dc095a2c9ad2fa3494be8546123119fad00d5c882152be97b8e84e77dc2e3eae5dbad0906a1ef65f1802333b7f0937d97e11a510 WHIRLPOOL 9caed3c35b495bc0226305daaa01687e8096b57437a9515845ac7c6a8ea1a909bc555954244cf00bcc1ddbfb874f7aab82e4e5eb4148c0ce46a4e3fa85efe3b3
AUX rt.init.d.2 1424 SHA256 dcaddd4045fbc05f44b78505ebd6429026602910a65851eaab0ddca078ab282e SHA512 908459752c1837900d3c64bd8d88b7c46c73d4db22eaf4bd72d2cc016f0c06e2fc78d0c0bc4f0ce28c005f717372e4ba46060269d2177bf6148f8db87766483f WHIRLPOOL a2e44bf6be10a9b8d9cb7ece05dfb7ea38d0eddecca6d5792ef06b9f9414df95953c09acb2101e742c8a8565549d473de41432dc53861144bb4eb6d486935b9e
AUX rt_apache2.conf 550 SHA256 db52d05f10cb6ed1bb236ed9e6fc5cc7574b5949c5cb85b5719d0132cbb072cc SHA512 030c585590231abcf875cd8dd66e2350e346fc073f811922415d9ab390ab4b23f5915fd06ec72fece5fb00026b2e015b7a2843765c3e507ec6b665552c5be3d5 WHIRLPOOL 942fb53a24eeb96c30d5c77c0ba8fe1bbacc645900a9b736752402f251b2c06173ecc753ddfdb2a205bf8e13698bc6cc90923dbc114ac72d73bf920038df7db5
@@ -15,25 +12,7 @@ DIST rt-4.0.8.tar.gz 5911492 SHA256 bdbdfeb93beba21d7579745fa4a28d90d4a672346dfb
EBUILD rt-3.8.11.ebuild 6540 SHA256 873e6b230d839437bfb8e1b2916bd610275cbcdff1fab30b4d8d401371621e68 SHA512 42d80a6472a98555a3dd6a49ffa67d4092a06d658e267103825870269efd1c209038d4cb919d8cb6fdbf9c2a4b634de105d15cbfd64a139fa740b32b48acd5a9 WHIRLPOOL 2c60aa4bfe52bbdca0cc96d076cffa7282ef98c677877f2dd11c1cfa819215828588fcfe7f8865f075a8c76534fdd0917facfdbdad8a4189d7a4b73939a80973
EBUILD rt-3.8.15.ebuild 6539 SHA256 e6be06f1f525b7a4baa1ae5d2d5a64177e6d0288873f379795f843484e5ca96b SHA512 0d1eed54f45b77d56adc204e150bc04606cb65141d53bc1da63ea33d959b1a98f59f9d4ab37d1fcc07a8186af9ddf3280249e5019b8d27db5399c13f670abb3f WHIRLPOOL 69cf8460540563f12d1f90eca6aabb5f54db949f5ed3f6f9cc4b5f4cfb9b8554ef05fcc52af013187d33f5abac196dde4b99def8686ea3b9af5f008f80ec4ea7
EBUILD rt-4.0.5.ebuild 7222 SHA256 655bdbb7c29c41a652bfbf22a29efcc40d0eb95bc817ee31b57aedd2901b5e90 SHA512 8dd5be7d718ca463c63e1b0c2d0dadaec03045f31f07aeca76a454526b46675d78fa41cfd6696ad72934c0d2bfe9574432114cfe25d42ee7a38fe4356c4b1e56 WHIRLPOOL 4edcad9409dd7577b9d976923dc7ab16aca9be0ea0f45f68051adf0b9049123cad80ccabebb05a88eec2fcbb78f8cc99e7686b54b0e349a38b1b90316b49e3f3
+EBUILD rt-4.0.8-r1.ebuild 7219 SHA256 bf9967c7a46ef694b1c5ee506485ef894b939bf22b8293b8aaa4fb82f0ba7a5b SHA512 0346477e697b44c090cb4543b011832aa36ccbd1aac00205364f5653a65f20e780b6d4f38b01b694c4799ffa191587e444a0bc6a8d77b56bceae50494df1ec02 WHIRLPOOL 4f59101a0db404d57ba76ebb029c403ff65e5d73347aeebea3777a99c74db0ee77e29bdffcb0f328cda2ba1fdc3f129821fe896e76c0125a0f499b0855d03ef9
EBUILD rt-4.0.8.ebuild 7221 SHA256 c7223b13432c3b0cf73a7f2ed798a85f977640485665ecd0bb02fef06b983ba7 SHA512 683568a03c68da26ac7255501ee9970c2e2b40a475e7ef6f2a21705cb8929f13a276add698f06fb8bd890f2d51719ee2706adeb2bf9b8a0aff2b4e79fdcb8de2 WHIRLPOOL 1f5e9a496e2c1de528dfe13d73ed2941f00445ac933ae448acc3b85ed7773558d4a7f5af916a2defabd8ae627bd6c793ccc4f1f7382e9942467e639700fd3d1d
-MISC ChangeLog 12156 SHA256 e77dcccca01bb70772e880a9dd75b26d1d1e183f6bf1327b67b0560da6608c9e SHA512 338bb751200f46ccca4a9e368bbd5d9492629452974ee289cd2ce5cc5e2e485b48fec4d662c842d442c20cee0664d2d33209848ada1cfbe5f056e5c1db6e43e0 WHIRLPOOL ce944ae714b3bd2eae39d705edf2fada434f5a3fd6f092fbfd963c95cc11cd2c2e89bcb1bb6b5b99991ce183a3042b55cb05432cdefa6964df4beae8612ecd50
-MISC metadata.xml 466 SHA256 89e0d08466bb8e34a1d677d82ab039855a94e57aaf3a4195553a3e3b27beb706 SHA512 11d82cfee03134f4e34a56506aa032745210bddb42564ec2c4b1887d575be03a346b23accecdaa13a6235442dc200a30ce0b657703fe7e3f09c292d14ad81a90 WHIRLPOOL 6e429fed1dd8afc4e1f60ed6c70dc17fcd9313f684b5014ac1f39a2dc7a59b224ba5cab2e87f8a69b0487b7a378ab1c4b570357f031d7c7205a54765dc2f26dd
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.19 (GNU/Linux)
-
-iQJ8BAEBCABmBQJRReL5XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
-ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQzNTVDNDczOUYzRjJEMTRGNDRGMzU2RkMw
-OUJGNEY1NEMyQkE3RjNDAAoJEAm/T1TCun88dBYQALKqMUyGgyMHYjl8bbqb3NEj
-2HVhnFdWqDUtd5uL625JW4UQFJojpFeLRX2vdtzm+v8P7wcXJEYwkG761o0BB+Nv
-BzG4X/kPZwYs/nRPe5NWX0PHiWrQyIv/19htV5A5uMouIbX3Qk2U/vhNku3PKsq7
-pJ3NfilomH101Rt135XfcssQcK5gC+w3YjY/Gu3pUY8v1eqzJXX/Z59j7PRKPRNf
-x9DIuYB3zWe8X/vMPiSFtCBenjiQSAblCAA5kY+wnJUJ76B9OQUDSIdOlCK/mQhB
-ucvs4DRNQjKaJxZkrqDKJpgeQTA9a7nKaMGEEtGw9DtTXL2vds+xfEH6TQnPniHR
-ixVgsF1Hxrwc4e6Io2HENDoaxDZsABxCrRzzIcMgVJHi2Vjcou3DuwTXLbP+l5u8
-B3UDAE71ssXT0Ajs/NgKFhgfzBIYHcSasVE9IlMfRL1aGcMEvtqpa7DDztmj7vHq
-R5WvIQWIDkRpya3iIHoX/pMU3SazryYRLY61eiICpTrlPNhC4p5dJHHRc+mgryQX
-jsUgz1/1HyGnZkzkkPsMzuwFwSGBL2vTiJhbM0QF29YUHCGuizdt4otN/agEQjDH
-RYkOFT8iIVY4jIFX6Nr+1ZajzwT8d+QFY/3ifYRwCwBOrshQP45D7vPXF48syxpz
-xlmK3AuGMKMQKcSLyYJm
-=qSop
------END PGP SIGNATURE-----
+MISC ChangeLog 12422 SHA256 6c7a25cdf30a454bde5be69dae03f7c70eca658a3dc10c20fbffb10e888ef839 SHA512 8647d5984fc56d90045f3664e5f010c92c6e4fe43849191e22e45b1ad06fff91d90ac4729c9b1cae94319b0a47dd1b48d8f38f2a82ab0f6f1e855251df3dcf84 WHIRLPOOL 3b03b1b201e6968af79ed77c635e77f538782e3ce5d553ca79dbe30cc6da2e98788ff1b477bd04683e66ce4bbb697baf56b96bd5ea42c05c40394575013ec9d8
+MISC metadata.xml 553 SHA256 bc9a40234182a86f086f7a67b40f960d16cb956235ce8fb1f580cc1b0b344f9a SHA512 609638f0c70d321f35a2e50f5791772c9ba0d905aeec4a7ee691c0763cf88cd7456916b49d1bb4a48f0564d9271fa62e687bc8529c7cdf98f967591d10db5ebd WHIRLPOOL f25c33aa03f3d4911c146109c39ac1565fdeaa9fc2240d5635a441dc4687abfc36a292980bc3571333bcc85773bb6c1da626a7691da469a866006e62f2a5af0f
diff --git a/www-apps/rt/files/reconfig b/www-apps/rt/files/reconfig
index e84018c3f9b8..b066ec52532c 100644
--- a/www-apps/rt/files/reconfig
+++ b/www-apps/rt/files/reconfig
@@ -12,7 +12,12 @@ if [ $1 = "install" ]; then
# fix location
cd ${VHOST_ROOT}/${PF}
sed -e "s|${MY_HOSTROOTDIR}/${PF}|${VHOST_ROOT}/${PF}|g
- s|${MY_HTDOCSDIR}|${MY_INSTALLDIR}|g" -i bin/* lib/RT.pm sbin/* etc/RT_Config.pm || die
+ s|${MY_HTDOCSDIR}|${MY_INSTALLDIR}|g" -i bin/* etc/RT_Config.pm lib/RT.pm sbin/* || die
+
+ if [[ -e ${VHOST_ROOT}/${PF}/lib/RT/Generated.pm ]]; then
+ sed -e "s|${MY_HOSTROOTDIR}/${PF}|${VHOST_ROOT}/${PF}|g
+ s|${MY_HTDOCSDIR}|${MY_INSTALLDIR}|g" -i lib/RT/Generated.pm || die
+ fi
if [[ -e ${VHOST_ROOT}/${PF}/etc/rt_apache2.conf ]]; then
sed -i \
diff --git a/www-apps/rt/metadata.xml b/www-apps/rt/metadata.xml
index b98f9662e409..9d93aeeadf2d 100644
--- a/www-apps/rt/metadata.xml
+++ b/www-apps/rt/metadata.xml
@@ -3,6 +3,10 @@
<pkgmetadata>
<herd>web-apps</herd>
<herd>proxy-maintainers</herd>
+ <maintainer>
+ <email>pva@gentoo.org</email>
+ <name>Peter Volkov</name>
+ </maintainer>
<maintainer>
<email>eric.joshua.martin@gmail.com</email>
<name>Eric Martin</name>
diff --git a/www-apps/rt/rt-4.0.8-r1.ebuild b/www-apps/rt/rt-4.0.8-r1.ebuild
new file mode 100644
index 000000000000..db221165e62e
--- /dev/null
+++ b/www-apps/rt/rt-4.0.8-r1.ebuild
@@ -0,0 +1,276 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/rt/rt-4.0.8-r1.ebuild,v 1.1 2013/10/12 11:55:01 pva Exp $
+
+EAPI=4
+
+inherit webapp eutils depend.apache
+
+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="~amd64 ~x86"
+LICENSE="GPL-2"
+IUSE="mysql postgres fastcgi lighttpd"
+REQUIRED_USE="|| ( mysql postgres )"
+
+RESTRICT="test"
+
+DEPEND="
+ >=dev-lang/perl-5.8.3
+
+ >=dev-perl/Apache-Session-1.53
+ dev-perl/Cache-Simple-TimedExpiry
+ dev-perl/Calendar-Simple
+ dev-perl/CGI-Emulate-PSGI
+ dev-perl/CGI-PSGI
+ >=dev-perl/Class-Accessor-0.34
+ >=dev-perl/class-returnvalue-0.40
+ dev-perl/Convert-Color
+ >=dev-perl/CSS-Squish-0.06
+ dev-perl/Data-ICal
+ dev-perl/DBD-SQLite
+ >=dev-perl/DBI-1.37
+ >=dev-perl/dbix-searchbuilder-1.59
+ dev-perl/Devel-GlobalDestruction
+ >=dev-perl/Devel-StackTrace-1.19
+ dev-perl/Email-Address
+ dev-perl/File-ShareDir
+ dev-perl/GD
+ dev-perl/GDGraph
+ dev-perl/GDTextUtil
+ dev-perl/GnuPG-Interface
+ dev-perl/GraphViz
+ dev-perl/HTML-Format
+ >=dev-perl/HTML-Mason-1.43
+ dev-perl/HTML-Mason-PSGIHandler
+ dev-perl/HTML-Parser
+ dev-perl/HTML-Quoted
+ dev-perl/HTML-RewriteAttributes
+ >=dev-perl/HTML-Scrubber-0.08
+ dev-perl/HTML-Tree
+ >=dev-perl/HTTP-Server-Simple-0.34
+ >=dev-perl/HTTP-Server-Simple-Mason-0.14
+ dev-perl/IPC-Run3
+ dev-perl/JavaScript-Minifier
+ dev-perl/JSON
+ dev-perl/libwww-perl
+ dev-perl/locale-maketext-fuzzy
+ >=dev-perl/locale-maketext-lexicon-0.32
+ >=dev-perl/log-dispatch-2.2.3
+ >=dev-perl/log-dispatch-2.23
+ >=dev-perl/MailTools-1.60
+ >=dev-perl/MIME-tools-5.425
+ dev-perl/MIME-Types
+ dev-perl/Module-Refresh
+ >=dev-perl/Module-Versions-Report-1.05
+ dev-perl/Net-CIDR
+ dev-perl/net-server
+ dev-perl/PerlIO-eol
+ dev-perl/Plack
+ dev-perl/regexp-common
+ dev-perl/Regexp-Common-net-CIDR
+ dev-perl/Regexp-IPv6
+ dev-perl/Starlet
+ dev-perl/TermReadKey
+ dev-perl/text-autoformat
+ dev-perl/Text-Password-Pronounceable
+ >=dev-perl/Text-Quoted-2.02
+ dev-perl/text-template
+ >=dev-perl/Text-WikiFormat-0.76
+ dev-perl/text-wrapper
+ dev-perl/Time-modules
+ dev-perl/TimeDate
+ >=dev-perl/Tree-Simple-1.04
+ dev-perl/UNIVERSAL-require
+ >=dev-perl/XML-RSS-1.05
+ >=virtual/perl-CGI-3.38
+ virtual/perl-digest-base
+ >=virtual/perl-Digest-MD5-2.27
+ >=virtual/perl-File-Spec-0.8
+ virtual/perl-File-Temp
+ >=virtual/perl-Getopt-Long-2.24
+ virtual/perl-libnet
+ >=virtual/perl-locale-maketext-1.06
+ virtual/perl-Scalar-List-Utils
+ >=virtual/perl-Storable-2.08
+ virtual/perl-Time-HiRes
+
+ fastcgi? (
+ dev-perl/FCGI
+ dev-perl/FCGI-ProcManager
+ )
+ !lighttpd? ( dev-perl/Apache-DBI )
+ lighttpd? ( dev-perl/FCGI )
+ mysql? ( >=dev-perl/DBD-mysql-2.1018 )
+ postgres? ( >=dev-perl/DBD-Pg-1.43 )
+"
+
+RDEPEND="${DEPEND}
+ virtual/mta
+ !lighttpd? ( ${APACHE2_DEPEND} )
+ lighttpd? (
+ >=www-servers/lighttpd-1.3.13
+ sys-apps/openrc
+ )
+"
+
+need_httpd_cgi
+
+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"
+ 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
+
+ elog " - Userid: ${euid}"
+
+ enewuser rt ${euid} -1 /dev/null rt
+ return 0
+}
+
+pkg_setup() {
+ webapp_pkg_setup
+
+ ewarn
+ ewarn "If you are upgrading from an existing RT installation"
+ ewarn "make sure to read the related upgrade documentation in"
+ ewarn "${ROOT}usr/share/doc/${PF}."
+ ewarn
+
+ enewgroup rt
+ add_user_rt || die "Could not add user"
+}
+
+src_prepare() {
+ # 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_configure() {
+ local web myconf depsconf
+
+ if use mysql ; then
+ myconf+=" --with-db-type=mysql --with-db-dba=root"
+ depsconf+=" --with-mysql"
+ fi
+ if use postgres ; then
+ myconf+=" --with-db-type=Pg --with-db-dba=postgres"
+ depsconf+=" --with-postgresql"
+ fi
+ if use postgres && use 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."
+ myconf+=" --with-db-type=mysql --with-db-dba=root"
+ depsconf+=" --with-mysql"
+ fi
+
+ if use fastcgi ; then
+ myconf+=" --with-web-handler=fastcgi"
+ web="apache"
+ depsconf+=" --with-fastcgi"
+ elif use lighttpd ; then
+ myconf+=" --with-web-handler=fastcgi"
+ web="lighttpd"
+ depsconf+=" --with-fastcgi"
+ else
+ myconf+=" --with-web-handler=modperl2"
+ web="apache"
+ depsconf+=" --with-modperl2"
+ 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} \
+ ${myconf}
+
+ # check for missing deps and ask to report if something is broken
+ /usr/bin/perl ./sbin/rt-test-dependencies ${depsconf} > "${T}"/t
+ if grep -q "MISSING" "${T}"/t; then
+ ewarn "Missing Perl dependency!"
+ ewarn
+ cat "${T}"/t | grep MISSING
+ ewarn
+ ewarn "Please run perl-cleaner. If the problem persists,"
+ ewarn "please file a bug in the Gentoo Bugzilla with the information above"
+ die "Missing dependencies."
+ fi
+}
+
+src_compile() { :; }
+
+src_install() {
+ webapp_src_preinst
+ emake install
+
+ dodoc "${S}"/docs/UPGRADING*
+ dodoc "${S}"/docs/*.pod
+ dodoc "${S}"/docs/network-diagram.svg
+ cp -R "${S}"/docs/customizing/ "${D}"/usr/share/doc/"${P}"/
+ cp -R "${S}"/docs/extending/ "${D}"/usr/share/doc/"${P}"/
+
+ # make sure we don't clobber existing site configuration
+ rm -f "${D}"/${MY_HOSTROOTDIR}/${PF}/etc/RT_SiteConfig.pm
+
+ # fix paths
+ find "${D}" -type f -print0 | xargs -0 sed -i -e "s:${D}::g"
+
+ # copy upgrade files
+ insinto "${MY_HOSTROOTDIR}/${PF}"
+ doins -r etc/upgrade
+
+ if use lighttpd ; then
+ newinitd "${FILESDIR}"/${PN}.init.d.2 ${PN}
+ newconfd "${FILESDIR}"/${PN}.conf.d.2 ${PN}
+ sed -i -e "s/@@PF@@/${PF}/g" "${D}"/etc/conf.d/${PN} || die
+ else
+ doins "${FILESDIR}"/{rt_apache2_fcgi.conf,rt_apache2.conf}
+ fi
+
+ # require the web server's permissions
+ webapp_serverowned "${MY_HOSTROOTDIR}"/${PF}/var
+ webapp_serverowned "${MY_HOSTROOTDIR}"/${PF}/var/mason_data/obj
+
+ webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
+ webapp_hook_script "${FILESDIR}"/reconfig
+
+ webapp_src_install
+}