diff options
Diffstat (limited to 'www-apps')
-rw-r--r-- | www-apps/rt/ChangeLog | 8 | ||||
-rw-r--r-- | www-apps/rt/Manifest | 22 | ||||
-rw-r--r-- | www-apps/rt/files/config.layout-gentoo | 2 | ||||
-rw-r--r-- | www-apps/rt/rt-4.2.4.ebuild | 286 |
4 files changed, 302 insertions, 16 deletions
diff --git a/www-apps/rt/ChangeLog b/www-apps/rt/ChangeLog index aa809beda1ef..de6ae8a65ec4 100644 --- a/www-apps/rt/ChangeLog +++ b/www-apps/rt/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for www-apps/rt # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-apps/rt/ChangeLog,v 1.80 2014/01/08 06:12:48 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-apps/rt/ChangeLog,v 1.81 2014/05/28 10:32:06 titanofold Exp $ + +*rt-4.2.4 (28 May 2014) + + 28 May 2014; Aaron W. Swenson <titanofold@gentoo.org> +rt-4.2.4.ebuild, + files/config.layout-gentoo: + Version bump fixes bug 422801 and bug 469416. 08 Jan 2014; Mike Frysinger <vapier@gentoo.org> rt-3.8.11.ebuild, rt-3.8.15.ebuild, rt-4.0.5.ebuild, rt-4.0.8-r1.ebuild, rt-4.0.8.ebuild: diff --git a/www-apps/rt/Manifest b/www-apps/rt/Manifest index 02132ff28e7a..e23c0aab60d9 100644 --- a/www-apps/rt/Manifest +++ b/www-apps/rt/Manifest @@ -1,7 +1,7 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 -AUX config.layout-gentoo 670 SHA256 412cbca2c5bc8e3b44f5dddd5c54a48547e99d1a40cf542feeec4d7b53a2b9fb SHA512 a6dd55a8f6b73bc71cd4778f7c37df7b1ccbb20627ab80cfd827ac615a49f91168f34c1cb4a3de211d102702a0c74a4b6d03f2fd96abe7fe6b775bcbbe2bd843 WHIRLPOOL 31c3a67e7e8b772f19231fe2f826e16b1dbee6e8ad4d2d60df606f735f1fb31b54cf032240abf39bb5374555e702ec3e61ceeedaf58e11f36edb120e48b7cfb0 +AUX config.layout-gentoo 741 SHA256 1a880f8fd268519371b5321c5a80db30c0da07c2ab474e773141953403e8ae03 SHA512 d3cb968a528ccb19f64ef249f2df503e82d1763a22ea939cd202b9a0626c1d335e2b8a8db65b191e2cff105926e422670c6d435b579069a10d9c433e6bd1e0fb WHIRLPOOL e707ac51542c6b65747c20d148a45d6f33776312c19772bc54fe49c73873f5215e05987e3008940d75d3b4b2996ae75a763aa3cd0b3cf01dc65dea503fba6525 AUX postinstall-en.txt 703 SHA256 497e75437529d61f69b628b0f7ab4ffa51dd0be9292220e657c4148345ab5a35 SHA512 884bc62b848a77338ee55472f57c47f31f675edab7fa0ffc1fc8f958be1248f8f5232248bfb4f5aa414572020d9982c958a055c2e5d125efde05dc9fa6985d64 WHIRLPOOL f95a386d7fb585908c3e9e47b720704b1f269fc7a76bba6e5b1d9280755f1790e143d512f8883cb9bc222866887ca1b875f0a3de4eab91c73fbeadb4ed559fae AUX reconfig 2125 SHA256 a360f48f994d7317ccf0aeadffc86f1db9a61cf361d480ef4de41d96f3d5a507 SHA512 43f403203dad24627f1be8d74ee4d60c2a49b23c00515b67faee47d97ff348c82094f10730a01f578c4884ef3268cef1179657a5ef2afa0697121b61bba54162 WHIRLPOOL bf5cb060f3ea8d844186b9f4e43662fb3cd18582b9c8dc26f156e89ed9772042d19046696402bba40fee26b36dbafd3c852feb82a34ed260986a8c15c4ca79df AUX rt.conf.d.2 336 SHA256 f41dd245b73b65de21c04307994048c6517523deb36dd753891cce510ee3ea53 SHA512 1e76183290a92fee036e8fb0dc095a2c9ad2fa3494be8546123119fad00d5c882152be97b8e84e77dc2e3eae5dbad0906a1ef65f1802333b7f0937d97e11a510 WHIRLPOOL 9caed3c35b495bc0226305daaa01687e8096b57437a9515845ac7c6a8ea1a909bc555954244cf00bcc1ddbfb874f7aab82e4e5eb4148c0ce46a4e3fa85efe3b3 @@ -12,27 +12,19 @@ DIST rt-3.8.11.tar.gz 5734246 SHA256 76b5b631ef6fb5f2c3f94cc1a1774046998ef157d83 DIST rt-3.8.15.tar.gz 5650409 SHA256 fca1283189bd670fde7a041e99e85aa4a58e0e302bb1f3c7ddab2f4997b5da55 SHA512 b695492b4ce16eed1a3fb819c928a86fc238677ef2996b696ff4b9d02ba8f70db76291dc7de859e271a3e1c4b418fd9624829d4add35f5eb27af401ca390985e WHIRLPOOL 0e687d130cbd1c351cd204e4f3860472bf981b74854538981f38a5b69619dd5fc550479ef2ca6115da95800660f87f159617712ed0e2c24d30a57cf0eb09c3f4 DIST rt-4.0.5.tar.gz 5877387 SHA256 280daadff11595fe4baa4f55544cedd26ada560b421c165bba45340fd6eaddb0 SHA512 df2df71e975e40ecce0c69067888c60e5a5f6357f26fa9a4c1c3fcd31e585e87f98ebfba3942c2d36f075107dd5a1e4d5d3b9eeaf17c4027005769528a98aeb1 WHIRLPOOL 537ed022db8b97a557d8556db13a5d9fdce730d6d4da5bcd9d0ab076bc1de0e4c39761ff384c5772a5480835f6b2bf6a4994467ff7d0e44550315c9e7b178f2e DIST rt-4.0.8.tar.gz 5911492 SHA256 bdbdfeb93beba21d7579745fa4a28d90d4a672346dfbd9752b9bbc16310e30b5 SHA512 9c087cd9d201a777defd4110dddd690676bf7a94f927c9e79fd157b47750a91e8c73d35917e03395f455dbba8631bdea775191d185f8dbb2b412f526fcebbdf7 WHIRLPOOL c0db83e2332f6efdf59766f5a8c22d84379b3c93f39803126f706ed7df176d4446d6d05b678fdb4ed7756e2b8e42c5d92f1b5cc744ac0380f1109cc250c63c83 +DIST rt-4.2.4.tar.gz 7563426 SHA256 309373699473b6f5531732fc403dba39773daf73d04bf72f5d6100aadfcfb033 SHA512 38dfb3c219d20defc9ca25263d676db28135e56945e33c8fe5b48ab65b6773422d607cbcc0ec3995455630cbc1504015ee99406a294f1c24f3cfc004d0000b5e WHIRLPOOL 8302418e7d9f3328fd2efa6f106a36a5c6d09485dcf365a5dc92ffc48fba772468afed3742bd2d6a5a6acbaa51d174d78c62d9c1c7f131c6ec995234d7df4b63 EBUILD rt-3.8.11.ebuild 6542 SHA256 cfa930af057c3cb6c63bb949da0522524df4eb9458414cbedd42abd6e19a212b SHA512 966f435653299b3c013b17f7befcd69af5b182121ab4eda5baceff42c266c5684a03091685fb94fd2d7d3bcbcc7bc5461537c2617bc47479adbda4849c90bea7 WHIRLPOOL ce02b874eec0a7660aece583f63594d488b65c1725d6189d20844ec95aee6817a1a9c8caff3d95b8967a4b5a169f61da5b9a3b411a0dccf6c0871672a8c0ab07 EBUILD rt-3.8.15.ebuild 6542 SHA256 4397bd3f956ee1ff7a2e41f3c938077b0a99ef52cbac01522c64c88a6d22d7f3 SHA512 d8865ffe1a94200fc70d6ca3deea6bc35d159ec471f87c907e16e347b19e19736819d35591071cf5892cba959dc9f156243449dc142c05e887c8ef271623a6eb WHIRLPOOL 89c8b900f46d33774cdbbbd3aae11556f62e3f5d8ad70514bf23bdd8cd68417e759dfa89d82dbebb1f9e6b347b3e4b3034b855795885eb457faf87861c6ab9f7 EBUILD rt-4.0.5.ebuild 7224 SHA256 0bf8bb92f4dffdd5a16e352a83be4550473f3e9f69622cfb789160227f17fe0e SHA512 39fa93cf437034394638d7611e5290cf5b53175c8ef6aebc3ef2282327ccc83beec8cdfa05422d8481f3e44ef0f12453c3a3bf3f2fc43c62a4dd3d15d766e653 WHIRLPOOL d9a76f4bcd448361e3e98ca1bb9d12b65160ad49eb9b9402e7374e7058d29606cf2a860241e8ea88e00ebdef3a400762ff27e0ac06db29db346960cbf4f6d3b2 EBUILD rt-4.0.8-r1.ebuild 7227 SHA256 0310f4d24a2ae36b2fb444e804a6a484a6c01c7839bbb2c71332957352232058 SHA512 d24464f50cf2e06a2ec19af88e1bcd34d72b0d95b6ca02ab7101206dc35997c1a803850bdf195f2a39d0a32679682f0fcc3132a10b69fa9b50ccc6972949baf2 WHIRLPOOL 409a14882bca698a11ba4b06630579f9e8e7769c62d1a0988608c4961eac1ab532a298056105afd27084e061f00efa7c8b9eb756503717d45b4d3778c04a379b EBUILD rt-4.0.8.ebuild 7224 SHA256 02bcb5bf3e26e28a3f6b457db11dd36f06103b6fa92a3ff1b55041b1d05c83d6 SHA512 8bb908e231d96e8effdc923206ed59ff3a65fc60b79fabca3c6c922dba6c698104b7f54f9d34d3a5ebd969076f72e4c35bc30d094ecd0ed6d25da17a5002c6b8 WHIRLPOOL 70213d0d700ca3ca5cb06eddca0e0597de207f6c793b394fa9f8e387d938c822d6d77f2e269ea490d16c1fcb88bd562d702a8bc297bf11a61a0d3dbab155d7ff -MISC ChangeLog 12614 SHA256 2a65a1932229365d0b634627fb5c8f8387f59aabf51e5cffcb7622e6ded98817 SHA512 090e3dc192f292d48259d9e33b218f2deeb5d0930eabecb3c3015b53ea6de876490136a556c39baeceecc4df31932ece14c86c66064fca3fef24c5f12a40bb74 WHIRLPOOL 58d86b3a1090d7045946278fdd6d4ab1b025b377ba25fa2000a2462b408a68e04b824fa0484e4c76cbc2839fb649afd19c733ab0c2be0aaf25612c2241855fec +EBUILD rt-4.2.4.ebuild 7381 SHA256 90c3f9fe1a2a60d1138bb234a1d1f89f0f7ac9d0b48b48645a3103e673872c7c SHA512 e0a5ee56eab9187c03326ccb3b420fd920ab710f5250159eb8143e4fffc33e63b4edfd80f6ef4bf55044e9b1aec55dbe15819a0d6b4bf169cf78d00c15c9efb7 WHIRLPOOL 4c159bb0dc5387668b5f3f8a58926e1c62821ccf496849f594c1cccd57306639a658884019bfc09bd78af7360cd25e967c680231ea14639fe95e66a02afa03a6 +MISC ChangeLog 12796 SHA256 3c3d69720349ef744aac20ff136b124f11b91e4d657e86330488ef3d4060096d SHA512 b970b0f71d5fdbda70718a074dc8c5a47f086d7528dd4f38b112b9411e332aa6eba46abe183291615345ff80455084d1c45b7860f1e1852b34cef625e6ab3516 WHIRLPOOL cea45db9740edf35456bea026e05e1b08a6da592fcd6eecffa78821e645312db419191a6fdeb4ed3845adc384b500e73605c5fbfbf7c0f5be46fa203762aa6d3 MISC metadata.xml 553 SHA256 bc9a40234182a86f086f7a67b40f960d16cb956235ce8fb1f580cc1b0b344f9a SHA512 609638f0c70d321f35a2e50f5791772c9ba0d905aeec4a7ee691c0763cf88cd7456916b49d1bb4a48f0564d9271fa62e687bc8529c7cdf98f967591d10db5ebd WHIRLPOOL f25c33aa03f3d4911c146109c39ac1565fdeaa9fc2240d5635a441dc4687abfc36a292980bc3571333bcc85773bb6c1da626a7691da469a866006e62f2a5af0f -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) -iQIcBAEBCAAGBQJSzOxoAAoJEPGu1DbS6WIArhgP+wTjy5VfzX1GjH9ToT+Akvzx -VDYbmiCikKOg/6l/dX+Xuf15byjAIA0TRfyds4QRcMjCgzXeCpQSWBK+27VtwpOo -M3oJHBAvJvuGcp0Hb91pF7L7S8TEds5yiGWUoCbLT4bz94VjwT/IXRLL824asFfj -PjgZFJZAPJLcGQe2rr/32VXWwyXkopipaQFeTc+ExPqv3mcVKQwJn3MHAbouDO4V -INmOEKQZWXdTqD8JgVuQ8mxmCP5SUtODPIDZrJvvtNaakUp+Mnuj6VVMNy9SxjNZ -cReZ7X3Yah9us5Tr1JP00Mh+5xOTPAfD751HHgzBgiJaLAIvh0BACLPa4ude2u7D -V638sgBfHcksIbSgI4RorAIHnev31cmVXp4pltvlKgCSbl6jNEW4bHNxYHeIoIPp -8PZUlMsuudbp2gPByp/9wphpiQgF9KwMsCzv8fz5PGF6whaj6w/kxSRbfscfMmP7 -A4fS3hcd8RVXou6BJuh4P/DF81CCEaq8x1vwnlcjSI8Wq+0ihhZ5T/YA8ozq5YkT -OxCRl7Ag17wI7UriHinkKA7zinNrOrK5ExA7iTApIkj9vzRUMccyXJhwbkcABvpd -bl7CLTLlh1BHBIorVI7M9ChVFzRWrejLK8gEzZ+mCNX2naIPqbUigQFNWQA3TvQr -RLst3GqUPtqEigJXgCgU -=wHxd +iF4EAREIAAYFAlOFuygACgkQVxOqA9G7/aDizwD/czau2yjq1kn33KPHaBhD0G6B +YmDUC+XLaJKM0Y8cdyUA/iNaE1u9BVuhQiOuKOfB90Vv0QfKawkLYFFwg7LjL7q/ +=DWRK -----END PGP SIGNATURE----- diff --git a/www-apps/rt/files/config.layout-gentoo b/www-apps/rt/files/config.layout-gentoo index 1a95bca94602..39dde0a3a7ba 100644 --- a/www-apps/rt/files/config.layout-gentoo +++ b/www-apps/rt/files/config.layout-gentoo @@ -12,6 +12,7 @@ fontdir: ${datadir}/fonts lexdir: ${datadir}/po manualdir: ${datadir}/doc + staticdir: ${datadir}/static localstatedir: ${prefix}/var logfiledir: ${localstatedir}/log masonstatedir: ${localstatedir}/mason_data @@ -20,5 +21,6 @@ custometcdir: ${customdir}/etc customhtmldir: ${customdir}/html customlexdir: ${customdir}/po + customstaticdir: ${customdir}/static customlibdir: ${customdir}/lib </Layout> diff --git a/www-apps/rt/rt-4.2.4.ebuild b/www-apps/rt/rt-4.2.4.ebuild new file mode 100644 index 000000000000..0f1ec024a15f --- /dev/null +++ b/www-apps/rt/rt-4.2.4.ebuild @@ -0,0 +1,286 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-apps/rt/rt-4.2.4.ebuild,v 1.1 2014/05/28 10:32:06 titanofold Exp $ + +EAPI=5 + +inherit webapp eutils depend.apache user + +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" +LICENSE="GPL-2" +IUSE="mysql +postgres fastcgi lighttpd" +REQUIRED_USE="^^ ( mysql postgres )" + +RESTRICT="test" + +DEPEND=" + >=dev-lang/perl-5.10.1 + + >=dev-perl/Apache-Session-1.53 + >=dev-perl/CSS-Squish-0.06 + >=dev-perl/Class-Accessor-0.34 + >=dev-perl/DBI-1.37 + >=dev-perl/Date-Extract-0.02 + >=dev-perl/DateTime-Format-Natural-0.67 + >=dev-perl/Devel-StackTrace-1.19 + >=dev-perl/HTML-FormatText-WithLinks-0.14 + >=dev-perl/HTML-Mason-1.43 + >=dev-perl/HTML-Scrubber-0.08 + >=dev-perl/HTTP-Server-Simple-0.34 + >=dev-perl/HTTP-Server-Simple-Mason-0.14 + >=dev-perl/MIME-tools-5.425 + >=dev-perl/MailTools-1.60 + >=dev-perl/Module-Versions-Report-1.05 + >=dev-perl/Role-Basic-0.12 + >=dev-perl/Symbol-Global-Name-0.04 + >=dev-perl/Text-Quoted-2.80.0 + >=dev-perl/Text-WikiFormat-0.76 + >=dev-perl/Tree-Simple-1.04 + >=dev-perl/XML-RSS-1.05 + >=dev-perl/class-returnvalue-0.40 + >=dev-perl/dbix-searchbuilder-1.59 + >=dev-perl/locale-maketext-lexicon-0.32 + >=dev-perl/log-dispatch-2.2.3 + >=dev-perl/log-dispatch-2.23 + >=virtual/perl-CGI-3.38 + >=virtual/perl-Digest-MD5-2.27 + >=virtual/perl-File-Spec-0.8 + >=virtual/perl-Getopt-Long-2.24 + >=virtual/perl-Storable-2.08 + >=virtual/perl-locale-maketext-1.06 + dev-perl/CGI-Emulate-PSGI + dev-perl/CGI-PSGI + dev-perl/Cache-Simple-TimedExpiry + dev-perl/Calendar-Simple + dev-perl/Convert-Color + dev-perl/Crypt-Eksblowfish + dev-perl/Crypt-SSLeay + dev-perl/Crypt-X509 + dev-perl/DBD-SQLite + dev-perl/Data-GUID + dev-perl/Data-ICal + dev-perl/DateManip + dev-perl/Devel-GlobalDestruction + dev-perl/Email-Address + dev-perl/Email-Address-List + 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-FormatText-WithLinks-AndTables + dev-perl/HTML-Mason-PSGIHandler + dev-perl/HTML-Parser + dev-perl/HTML-Quoted + dev-perl/HTML-RewriteAttributes + dev-perl/HTML-Tree + dev-perl/IPC-Run3 + dev-perl/JSON + dev-perl/JavaScript-Minifier + dev-perl/MIME-Types + dev-perl/Module-Refresh + dev-perl/Mozilla-CA + dev-perl/Net-CIDR + dev-perl/PerlIO-eol + dev-perl/Plack + dev-perl/Regexp-Common-net-CIDR + dev-perl/Regexp-IPv6 + dev-perl/Starlet + dev-perl/TermReadKey + dev-perl/Text-Password-Pronounceable + dev-perl/Time-modules + dev-perl/TimeDate + dev-perl/UNIVERSAL-require + dev-perl/libwww-perl + dev-perl/locale-maketext-fuzzy + dev-perl/net-server + dev-perl/regexp-common + dev-perl/text-autoformat + dev-perl/text-template + dev-perl/text-wrapper + virtual/perl-File-Temp + virtual/perl-Scalar-List-Utils + virtual/perl-Time-HiRes + virtual/perl-digest-base + virtual/perl-libnet + + 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 + local myconf + local depsconf + + if use mysql ; then + myconf="--with-db-type=mysql --with-db-dba=root" + depsconf="--with-MYSQL" + elif use postgres ; then + myconf="--with-db-type=Pg --with-db-dba=postgres" + depsconf="--with-PG" + else + die "Pick a database backend" + 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 +} |