summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2012-03-01 10:19:30 +0000
committerTim Harder <radhermit@gentoo.org>2012-03-01 10:19:30 +0000
commit15d1538197081bf8032f5c21abe9c7a5e108bb34 (patch)
treee732f9239e9f8cf1a3b9a562ce93c37737c1ce50 /www-apps
parentRemove old versions of Erlang. (diff)
downloadhistorical-15d1538197081bf8032f5c21abe9c7a5e108bb34.tar.gz
historical-15d1538197081bf8032f5c21abe9c7a5e108bb34.tar.bz2
historical-15d1538197081bf8032f5c21abe9c7a5e108bb34.zip
Version bump thanks to Eric Martin (fixes bug #235914).
Package-Manager: portage-2.2.0_alpha89/cvs/Linux x86_64
Diffstat (limited to 'www-apps')
-rw-r--r--www-apps/rt/ChangeLog9
-rw-r--r--www-apps/rt/Manifest16
-rw-r--r--www-apps/rt/rt-4.0.5.ebuild276
3 files changed, 294 insertions, 7 deletions
diff --git a/www-apps/rt/ChangeLog b/www-apps/rt/ChangeLog
index 1c44d1d5d45a..315a0a4c997c 100644
--- a/www-apps/rt/ChangeLog
+++ b/www-apps/rt/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for www-apps/rt
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-apps/rt/ChangeLog,v 1.70 2011/11/18 18:22:31 flameeyes Exp $
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/rt/ChangeLog,v 1.71 2012/03/01 10:19:30 radhermit Exp $
+
+*rt-4.0.5 (01 Mar 2012)
+
+ 01 Mar 2012; Tim Harder <radhermit@gentoo.org> +rt-4.0.5.ebuild:
+ Version bump thanks to Eric Martin (fixes bug #235914).
18 Nov 2011; Diego E. Pettenò <flameeyes@gentoo.org> rt-3.8.10-r1.ebuild:
Avoid using parallel make for install, as it has race conditions.
diff --git a/www-apps/rt/Manifest b/www-apps/rt/Manifest
index 6f82561ae4e1..64905f81f9fa 100644
--- a/www-apps/rt/Manifest
+++ b/www-apps/rt/Manifest
@@ -1,5 +1,5 @@
-----BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
+Hash: SHA512
AUX config.layout-gentoo 645 RMD160 d668f10a015333d1443b6025be78add90e917895 SHA1 21aba8a149707ff80d488d8a4725791d77b63260 SHA256 039f261c3471690434d73b9175a754ecafb8b4a65fad3fdcca7c0680f11dbdc0
AUX postinstall-en.txt 703 RMD160 5bddbc2097afd96da1ff2993befdb1c8b27769ef SHA1 c212a6095f9191885ea335de1981a6a89437dd7f SHA256 497e75437529d61f69b628b0f7ab4ffa51dd0be9292220e657c4148345ab5a35
@@ -12,15 +12,21 @@ AUX rt_apache2.conf 550 RMD160 a9f463c8f7c4803a32f0e8380e594c2eb6f5f05a SHA1 b11
AUX rt_apache2_fcgi.conf 989 RMD160 f88807ad0db9806ee2c638e998ab10e9339a9ed6 SHA1 92ea95bae0a8c2b31b058385b789e9b7fce4f8b1 SHA256 7dff43c9fb73daa06c9c4841199e7618758250129946ec9d20adf5a1852e4e91
DIST rt-3.6.7.tar.gz 1764471 RMD160 f14ce94a2d9fcb243c6fae274fc5602cae4692cd SHA1 990fd47899bed1ec8e7d23556853fb3a70d95479 SHA256 5916fe002d3739e670aef49a4b12aa385e45eea4602adcf12feaef583a73f6c1
DIST rt-3.8.10.tar.gz 5642566 RMD160 779ba2e04e87d20f30b03a9e7348c23b09062038 SHA1 98678a4ce4dbdfb13ceeeb88236d49bd0f5562c7 SHA256 d121ec6463ce919cef74c3ce3ab7e7213cb235726d05abd26c717a7eab6c1448
+DIST rt-4.0.5.tar.gz 5877387 RMD160 277a87ea3b321ede1ce976248f46d54226a91547 SHA1 59697fbfa3876d1950499796a429622941272edf SHA256 280daadff11595fe4baa4f55544cedd26ada560b421c165bba45340fd6eaddb0
EBUILD rt-3.6.7.ebuild 6149 RMD160 a7f511ec11ab9082ec2e0b41aedf6285ddf9d210 SHA1 ebe358088453c3b1f1949eca09881ebd6152ff83 SHA256 bf547e087476e150c5e1975bf9bf2b0f23db2b62c150bbc9003162156c5af888
EBUILD rt-3.8.10-r1.ebuild 6324 RMD160 32a840c96cc6595200d701e23d7fd6478007f971 SHA1 3b4caa362d069c925143e7e7329f025dcaae1bea SHA256 5387dec12b91183d49fe8ae10915e94cf0db2601a99f1cd5d3c7162cb9c66b6f
EBUILD rt-3.8.10.ebuild 6289 RMD160 12422129759e9d16eb65f888f8a8275d27f28a77 SHA1 538cffa56ce20080306e5e38b08a4969ea0fcf1e SHA256 fa1f53e08308af5fe113ea568f112018b863435ba9c47c92c2512465358a9a53
-MISC ChangeLog 11092 RMD160 3077f7396d9732cb62495721874637e91f08ecc8 SHA1 38e599f470e76e75017eb351f9716e01b557baca SHA256 c8278a6a6fd5734bfeab1392eae8b82a2a93e76b864beb487e6895ad389c8a07
+EBUILD rt-4.0.5.ebuild 7218 RMD160 b76f9e98b5bdc19a2b9f29361dfd49788dc2359f SHA1 355e471515b5d1ae943a1f1e36c4e48d4b962f88 SHA256 cf1bc0b04ca8afc1bf8759200509080dcd12566a707c39bf9dff40efba606783
+MISC ChangeLog 11243 RMD160 eea8a7260df6651c0da70b58d1fd19d0f6140f6d SHA1 45db0bc809151649196659381a48bd14faba9b36 SHA256 f9257949a462937793d798d4eab401f19a44918a4748eeed46b37e321f8fe006
MISC metadata.xml 524 RMD160 295179b59cac47383471772520c6afaca965a448 SHA1 6e4ee23e5e9f00ce247226aacb3c133c9b35e3bc SHA256 589ec91d467e77ce4708fe59d3e4818137dd8188647461fbd68da4e4fcabfb92
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
-iEYEARECAAYFAk7GomkACgkQAiZjviIA2XgjigCdEzHoBpZyKFDoz6SOGlNBlfR/
-5gIAnRETe7XGB9YDF3FpjB6LUboK8Yj2
-=p0KY
+iQEcBAEBCgAGBQJPT008AAoJEEqz6FtPBkyjVM4IAINcsca0F1InTYhcVi8c+llY
+/6weqSxLLIYP6TU+3XEaTg1qqbBi7CiqS68gaEd02i47BK9A4tk4NwnElfqLLSeK
+x3ZkoEvmA6c+NN2N15fGwZqwE1KP2gY7KnatAqcRgoUJHcEHffsH4Cav4YhiNvVc
+FKJeqbdCBcVTZogfujE5yRg2esv2GhnwwqyjWi0ZeTv1t8RrdvnBz1ef2Um/kT58
+wyDvcHyHw5LSbCBrpOqlYYy9uagDfxIIwiSIDysX4inWNoFGDZgrfV0quab+G286
+ibzrijhNtcXS5AAWE7EOgd3ypAFnAStoiUCVpCwdnYHFthZGFdqW2BmBFxzRAUs=
+=0e4Y
-----END PGP SIGNATURE-----
diff --git a/www-apps/rt/rt-4.0.5.ebuild b/www-apps/rt/rt-4.0.5.ebuild
new file mode 100644
index 000000000000..e53e90508555
--- /dev/null
+++ b/www-apps/rt/rt-4.0.5.ebuild
@@ -0,0 +1,276 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/rt/rt-4.0.5.ebuild,v 1.1 2012/03/01 10:19:30 radhermit 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 ${PN}
+ newconfd "${FILESDIR}"/${PN}.conf.d ${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
+}