On 4/28/06, Justin Findlay <[EMAIL PROTECTED]> wrote:
On 4/27/06, Ruslan Zakirov <[EMAIL PROTECTED]> wrote:
>
> Solution: open RT_SiteConfig and set $DatabaseType properly.

This was it.  I had unfortunately brushed by that earlier.  I'm still
looking at the ebuild and hopefully I can come up with a patch if that
seems appropriate.
I don't know much about ebuilds syntax :( (shame on me, /me 's using gentoo).
Attachment is draft of the patch.




Justin



--
Best regards, Ruslan.
--- /usr/portage/www-apps/rt/rt-3.4.5.ebuild	2006-04-24 20:07:12.000000000 +0400
+++ /root/rt-3.4.5.ebuild	2006-04-28 04:24:53.000000000 +0400
@@ -10,7 +10,7 @@
 HOMEPAGE="http://www.bestpractical.com/rt/";
 SRC_URI="http://download.bestpractical.com/pub/${PN}/release/${P}.tar.gz";
 
-KEYWORDS="~ppc ~x86"
+KEYWORDS="~ppc ~x86 ~amd64"
 
 DEPEND="
 	>=dev-lang/perl-5.8.3
@@ -170,13 +170,25 @@
 		web="lighttpd"
 	fi
 
+	local dbtype=""
+	if useq mysql; then
+		dbtype="--with-db-type=mysql"
+	fi
+	if useq postgres && useq mysql; then
+		ewarn "Both mysql and postgres USE flags enabled, default is mysql."
+		ewarn "You can change default in RT config, but do it before DB init."
+	else
+		dbtype="--with-db-type=Pg"
+	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}
+		--with-web-group=${web} \
+		${dbtype}
 
 	# check for missing deps and ask to report if something is broken
 	local myconf="--verbose $(use_with mysql) \
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


We're hiring! Come hack Perl for Best Practical: 
http://bestpractical.com/about/jobs.html

Reply via email to