Subject: pkg/31897: devel/rt3 should support Oracle backend
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <svs+pr@grep.ru>
List: pkgsrc-bugs
Date: 10/23/2005 21:03:01
>Number:         31897
>Category:       pkg
>Synopsis:       devel/rt3 should support Oracle backend
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 23 21:03:00 +0000 2005
>Originator:     Sergey Svishchev
>Release:        
>Organization:
>Environment:
>Description:
Request Tracker supports Oracle database backend; the package should, too.

Also, two Perl scripts that are installed by the package should be REPLACE_PERL'ed.
>How-To-Repeat:

>Fix:
--- devel/rt3/Makefile	21 Sep 2005 21:23:46 -0000	1.11
+++ devel/rt3/Makefile	23 Oct 2005 20:58:05 -0000
@@ -69,6 +69,9 @@
 .elif !empty(PKG_OPTIONS:Mpgsql)
 DEPENDS+=	p5-DBD-postgresql-[0-9]*:../../databases/p5-DBD-postgresql
 _RT_DB_TYPE=		Pg
+.elif !empty(PKG_OPTIONS:Moracle)
+DEPENDS+=	p5-DBD-Oracle-[0-9]*:../../databases/p5-DBD-Oracle
+_RT_DB_TYPE=		Oracle
 .endif
 
 # Dev dependencies:
@@ -94,6 +97,8 @@
 MESSAGE_SUBST+=		RT_GROUP=${RT_GROUP}
 MESSAGE_SUBST+=		PKG_SYSCONFDIR=${PKG_SYSCONFDIR}
 
+REPLACE_PERL+=	rt-test-dependencies rt-setup-database
+
 .include "Makefile.install"
 
 .include "../../mk/bsd.pkg.mk"
--- devel/rt3/options.mk	8 Sep 2005 13:43:05 -0000	1.1
+++ devel/rt3/options.mk	23 Oct 2005 20:56:40 -0000
@@ -2,7 +2,7 @@
 
 PKG_OPTIONS_VAR=	PKG_OPTIONS.rt
 PKG_OPTIONS_REQUIRED_GROUPS=	backend frontend
-PKG_OPTIONS_GROUP.backend=	mysql pgsql
+PKG_OPTIONS_GROUP.backend=	mysql oracle pgsql
 PKG_OPTIONS_GROUP.frontend=	modperl1 modperl2 \
 				fastcgi
 PKG_SUGGESTED_OPTIONS=	mysql fastcgi