diff options
author | Renat Lumpau <rl03@gentoo.org> | 2005-08-11 23:45:59 +0000 |
---|---|---|
committer | Renat Lumpau <rl03@gentoo.org> | 2005-08-11 23:45:59 +0000 |
commit | c9561aa7b090afae1d264a4a4d19ebf9e79b765c (patch) | |
tree | bf52634350bc4d4518dd7cda5ec168545ebbd85e /www-apps | |
parent | Marked ~amd64, closes bug #102141 , thanks to meetra for testing (diff) | |
download | historical-c9561aa7b090afae1d264a4a4d19ebf9e79b765c.tar.gz historical-c9561aa7b090afae1d264a4a4d19ebf9e79b765c.tar.bz2 historical-c9561aa7b090afae1d264a4a4d19ebf9e79b765c.zip |
Version bump
Package-Manager: portage-2.0.51.22-r2
Diffstat (limited to 'www-apps')
-rw-r--r-- | www-apps/rt/ChangeLog | 7 | ||||
-rw-r--r-- | www-apps/rt/Manifest | 10 | ||||
-rw-r--r-- | www-apps/rt/files/digest-rt-3.4.3 | 1 | ||||
-rw-r--r-- | www-apps/rt/rt-3.4.3.ebuild | 210 |
4 files changed, 223 insertions, 5 deletions
diff --git a/www-apps/rt/ChangeLog b/www-apps/rt/ChangeLog index d483af1d3002..1c74d31b70e4 100644 --- a/www-apps/rt/ChangeLog +++ b/www-apps/rt/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for www-apps/rt # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-apps/rt/ChangeLog,v 1.17 2005/08/08 22:40:44 rl03 Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-apps/rt/ChangeLog,v 1.18 2005/08/11 23:45:59 rl03 Exp $ + +*rt-3.4.3 (11 Aug 2005) + + 11 Aug 2005; Renat Lumpau <rl03@gentoo.org> +rt-3.4.3.ebuild: + Version bump 08 Aug 2005; Renat Lumpau <rl03@gentoo.org> rt-3.4.2-r1.ebuild: Fixed HTML-Mason dependency diff --git a/www-apps/rt/Manifest b/www-apps/rt/Manifest index c939735ce2d6..cba7586eb8c1 100644 --- a/www-apps/rt/Manifest +++ b/www-apps/rt/Manifest @@ -2,11 +2,13 @@ Hash: SHA1 MD5 2d55314d5a0dc44ed84ff04cda740034 rt-3.4.2-r1.ebuild 5438 +MD5 c261128f93c38e440555abfde62db370 rt-3.4.3.ebuild 5508 MD5 e28b5c19f33196d18983e2db57aad44f rt-3.2.1.ebuild 4217 -MD5 4ea37b92dadc9ca4a1b2bfa0e4581c4a ChangeLog 3269 +MD5 69f4ae7b1adaddd5230ec9231eba7e53 ChangeLog 3374 MD5 224c312cc23d02aa06c26a4da3cc1f90 metadata.xml 221 MD5 af335c7cab7bfc09dbd08feba51d2879 files/digest-rt-3.4.2-r1 61 MD5 5f5c3f76ea4676e743612e38341780fe files/digest-rt-3.2.1 61 +MD5 74849aa771037cfdb03fc4a8b8d01af6 files/digest-rt-3.4.3 61 MD5 15fc088b37155656e008679f3c07eea7 files/3.2.1/postinstall-en.txt 1648 MD5 0706d6edcd1c4e23f526d611c9c6b531 files/3.2.1/reconfig 1170 MD5 4dcfdbf63b882b398473d975b34fa23e files/3.4.2/config.layout-gentoo 616 @@ -20,7 +22,7 @@ MD5 73c354dd8ba0f64a74e5c6cd01b33834 files/3.4.2/rt_apache2_fcgi.conf 993 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) -iD8DBQFC9992EzitwsaoONoRAkMmAKCMV8k7goS9coJZRPlbQmgs1lIc2ACdHhpA -f5zAVmICHvWiGFUjj7mQLlI= -=8EV8 +iD8DBQFC++NBEzitwsaoONoRAmAnAJ9gdX8+yPtDXTIvHLacPpcnxB9/QQCfax0f +CyRYBO6Mrfnq5dNkRRkc6kQ= +=4qn6 -----END PGP SIGNATURE----- diff --git a/www-apps/rt/files/digest-rt-3.4.3 b/www-apps/rt/files/digest-rt-3.4.3 new file mode 100644 index 000000000000..a713d483d3de --- /dev/null +++ b/www-apps/rt/files/digest-rt-3.4.3 @@ -0,0 +1 @@ +MD5 98650a74975bafb8ba952b1cc0a4e42b rt-3.4.3.tar.gz 1400633 diff --git a/www-apps/rt/rt-3.4.3.ebuild b/www-apps/rt/rt-3.4.3.ebuild new file mode 100644 index 000000000000..0634b65b90f9 --- /dev/null +++ b/www-apps/rt/rt-3.4.3.ebuild @@ -0,0 +1,210 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-apps/rt/rt-3.4.3.ebuild,v 1.1 2005/08/11 23:45:59 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 + ftp://ftp.eu.uu.net/pub/unix/ticketing/${PN}/release/${P}.tar.gz + ftp://rhinst.ece.cmu.edu/${PN}/release/${P}.tar.gz" + +KEYWORDS="~x86" + +DEPEND=" + >=net-www/webapp-config-1.11-r1 + >=dev-lang/perl-5.8.3 + >=dev-perl/Params-Validate-0.02 + dev-perl/Cache-Cache + >=dev-perl/Exception-Class-1.14 + perl-core/CGI + >dev-perl/HTML-Mason-1.28 + dev-perl/MLDBM + dev-perl/FreezeThaw + >=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.05 + dev-perl/HTML-Tree + dev-perl/HTML-Format + dev-perl/libwww-perl + >=dev-perl/DBI-1.37 + dev-perl/Test-Inline + >=dev-perl/class-returnvalue-0.40 + >=dev-perl/dbix-searchbuilder-1.27 + dev-perl/text-template + dev-perl/HTML-Parser + >=dev-perl/HTML-Scrubber-0.08 + >=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/Text-WikiFormat + dev-perl/Time-modules + dev-perl/TermReadKey + >=dev-perl/Text-Quoted-1.3 + >=dev-perl/Tree-Simple-1.04 + dev-perl/Module-Versions-Report + dev-perl/Cache-Simple-TimedExpiry + dev-perl/XML-Simple + dev-perl/regexp-common + dev-perl/WWW-Mechanize + dev-perl/Test-WWW-Mechanize + dev-perl/Module-Refresh + + dev-perl/Font-AFM + dev-perl/text-autoformat + dev-perl/text-reform +" + +RDEPEND=" + ${DEPEND} + virtual/mta + mysql? ( >=dev-db/mysql-4.0.13 >=dev-perl/DBD-mysql-2.1018 ) + postgres? ( >=dev-db/postgresql-7.4.2-r1 >=dev-perl/DBD-Pg-1.41 ) + !lighttpd? ( + >=dev-perl/Apache-DBI-0.92 + apache2? ( >=net-www/apache-2 + fastcgi? ( dev-perl/FCGI net-www/mod_fastcgi ) + !fastcgi? ( >=www-apache/libapreq2-2.06 ) ) + !apache2? ( =net-www/apache-1* + fastcgi? ( dev-perl/FCGI net-www/mod_fastcgi ) + !fastcgi? ( =www-apache/libapreq-1* ) ) ) + lighttpd? ( + >=www-servers/lighttpd-1.3.13 + dev-perl/FCGI ) +" + +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} /bin/false /dev/null rt > /dev/null + return 0 +} + +pkg_setup() { + webapp_pkg_setup + + if useq mysql; then + ewarn "RT needs MySQL with innodb support" + fi + 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 + enewgroup rt >/dev/null + add_user_rt || die "Could not add user" + +} + +src_unpack() { + unpack ${A} + cd ${S} + + # add Gentoo-specific layout + cat ${FILESDIR}/3.4.2/config.layout-gentoo >> config.layout + sed -e "s|PREFIX|${D}/${MY_HOSTROOTDIR}/${PF}| + s|HTMLDIR|${D}/${MY_HTDOCSDIR}|g" -i ./config.layout || die +} + +src_compile() { + + local web="apache" + if useq lighttpd; then + web="lighttpd" + 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} + + # check for missing deps and ask to report if something is broken + make testdeps > ${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}/3.4.2/${PN}.init.d ${PN} + insinto /etc/conf.d + newins ${FILESDIR}/3.4.2/${PN}.conf.d ${PN} + else + if useq apache2; then + webapp_server_configfile apache2 ${FILESDIR}/3.4.2/rt_apache2_fcgi.conf + else + webapp_server_configfile apache1 ${FILESDIR}/3.4.2/rt_apache.conf + webapp_server_configfile apache1 ${FILESDIR}/3.4.2/rt_apache1_fcgi.conf + fi + fi + webapp_postinst_txt en ${FILESDIR}/3.4.2/postinstall-en.txt + webapp_hook_script ${FILESDIR}/3.4.2/reconfig + webapp_src_install +} |