Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 09 Nov 2003 12:00:16 +0800
From:      Autrijus Tang <autrijus@autrijus.org>
To:        Angelo Turetta <aturetta@commit.it>
Cc:        Quincey Koziol <koziol@ncsa.uiuc.edu>
Subject:   Re: FreeBSD rt3 port
Message-ID:  <1068350415.54987.71.camel@localhost>
In-Reply-To: <001d01c3a614$ed0fd3a0$5e2aa8c0@lan>
References:  <200311071210.hA7CACtS062161@sleipnir.ncsa.uiuc.edu> <002001c3a5d8$8b692a70$5e2aa8c0@lan> <20031108093748.GB69895@happy-idiot-talk.infracaninophile.co.uk> <001d01c3a614$ed0fd3a0$5e2aa8c0@lan>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-XRtz27xx8Bl7VB1oewJ2
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

?b =E6=97=A5, 2003-11-09 00:25, Angelo Turetta ?g?D?G
> Even so, WHY should I install mysql-server when this port only really nee=
ds
> the db CLIENT libraries ??? We manage dozens WEB machines, but we don't n=
eed
> the database server in every one.

You are, of course, quite correct.

Since I noticed that p5-DBD-mysql prefers mysql 4.0 anyway, I've come
with the patch below, which should solve the problems pointed out in
this thread.  It also adds Oracle and SQLite as possible db types.

If it looks ok, I'd like demon@ to commit it.  Thanks! :-)

Cheers,
/Autrijus/

--- Makefile.orig	Sun Nov  9 11:26:28 2003
+++ Makefile	Sun Nov  9 11:31:15 2003
@@ -89,13 +89,19 @@
=20
 DB_TYPE?=3D	mysql
=20
+.if ${DB_TYPE} =3D=3D "Oracle"
+BUILD_DEPENDS+=3D ${SITE_PERL}/${PERL_ARCH}/DBD/Oracle.pm:${PORTSDIR}/data=
bases/p5-DBD-Oracle
+.else
 .if ${DB_TYPE} =3D=3D "Pg"
-BUILD_DEPENDS+=3D	${LOCALBASE}/bin/psql:${PORTSDIR}/databases/postgresql7 =
\
-		${SITE_PERL}/${PERL_ARCH}/DBD/Pg.pm:${PORTSDIR}/databases/p5-DBD-Pg
+BUILD_DEPENDS+=3D ${SITE_PERL}/${PERL_ARCH}/DBD/Pg.pm:${PORTSDIR}/database=
s/p5-DBD-Pg
+.else
+.if ${DB_TYPE} =3D=3D "SQLite"
+BUILD_DEPENDS+=3D ${SITE_PERL}/${PERL_ARCH}/DBD/SQLite.pm:${PORTSDIR}/data=
bases/p5-DBD-SQLite
 .else
 DB_TYPE=3D	mysql
-BUILD_DEPENDS+=3D	${LOCALBASE}/bin/mysql_config:${PORTSDIR}/databases/mysq=
l40-server \
-		${SITE_PERL}/${PERL_ARCH}/DBD/mysql.pm:${PORTSDIR}/databases/p5-DBD-mysq=
l
+BUILD_DEPENDS+=3D	${SITE_PERL}/${PERL_ARCH}/DBD/mysql.pm:${PORTSDIR}/datab=
ases/p5-DBD-mysql
+.endif
+.endif
 .endif
=20
 USE_PERL5=3D	yes
@@ -114,7 +120,7 @@
 	@${ECHO} ""
 	@${ECHO} "You may use the following build options:"
 	@${ECHO} ""
-	@${ECHO} "      DB_TYPE=3Dtype                    Pg for postgresql, mysq=
l for MySQL (mysql)"
+	@${ECHO} "      DB_TYPE=3Dtype                    mysql, Oracle, Pg or SQ=
Lite (mysql)"
 	@${ECHO} "      DB_HOST=3Dhostname                The database host (loca=
lhost)"
 	@${ECHO} "      DB_PORT=3Dport                    The database port"
 	@${ECHO} "      DB_DBA_USER=3Dpassword            Name of database admini=
strator (root)"


--=-XRtz27xx8Bl7VB1oewJ2
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: 
	=?UTF-8?Q?=E9=80=99=E6=98=AF=E6=95=B8=E4=BD=8D=E5=8A=A0=E7=B0=BD?=
	=?UTF-8?Q?=E7=9A=84=E9=83=B5?= =?UTF-8?Q?=E4=BB=B6?=

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQA/rbvOtLPdNzw1AaARAhToAJ9UJS9Mw6Qw3zgT+MKA/2NScoe5SQCgqlXV
gm5bPCIsM59hbHRfNqj9/n4=
=CYAO
-----END PGP SIGNATURE-----

--=-XRtz27xx8Bl7VB1oewJ2--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1068350415.54987.71.camel>