From owner-freebsd-ports@FreeBSD.ORG Sat Nov 8 20:00:17 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 945DD16A4CF; Sat, 8 Nov 2003 20:00:17 -0800 (PST) Received: from smtp2.apol.com.tw (smtp2.apol.com.tw [203.79.224.63]) by mx1.FreeBSD.org (Postfix) with ESMTP id E193C43FCB; Sat, 8 Nov 2003 20:00:14 -0800 (PST) (envelope-from autrijus@autrijus.org) Received: from mail.autrijus.org (210-85-16-204.cm.apol.com.tw [210.85.16.204]) by smtp2.apol.com.tw (8.9.3/8.9.3) with ESMTP id LAA61402989; Sun, 9 Nov 2003 11:59:58 +0800 (CST) Received: from [192.168.1.4] (not [192.168.1.4]) by mail.autrijus.org (Postfix) with ESMTP id 8183C422F; Sun, 9 Nov 2003 11:59:10 +0800 (CST) From: Autrijus Tang To: Angelo Turetta 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> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-XRtz27xx8Bl7VB1oewJ2" Message-Id: <1068350415.54987.71.camel@localhost> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Sun, 09 Nov 2003 12:00:16 +0800 cc: ports@freebsd.org cc: demon@freebsd.org cc: Quincey Koziol Subject: Re: FreeBSD rt3 port X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Nov 2003 04:00:17 -0000 --=-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--