FreeBSD rt3 port

Autrijus Tang autrijus at autrijus.org
Sat Nov 8 20:00:17 PST 2003


?b 日, 2003-11-09 00:25, Angelo Turetta ?g?D?G
> Even so, WHY should I install mysql-server when this port only really needs
> the db CLIENT libraries ??? We manage dozens WEB machines, but we don't need
> 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 @@
 
 DB_TYPE?=	mysql
 
+.if ${DB_TYPE} == "Oracle"
+BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBD/Oracle.pm:${PORTSDIR}/databases/p5-DBD-Oracle
+.else
 .if ${DB_TYPE} == "Pg"
-BUILD_DEPENDS+=	${LOCALBASE}/bin/psql:${PORTSDIR}/databases/postgresql7 \
-		${SITE_PERL}/${PERL_ARCH}/DBD/Pg.pm:${PORTSDIR}/databases/p5-DBD-Pg
+BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBD/Pg.pm:${PORTSDIR}/databases/p5-DBD-Pg
+.else
+.if ${DB_TYPE} == "SQLite"
+BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBD/SQLite.pm:${PORTSDIR}/databases/p5-DBD-SQLite
 .else
 DB_TYPE=	mysql
-BUILD_DEPENDS+=	${LOCALBASE}/bin/mysql_config:${PORTSDIR}/databases/mysql40-server \
-		${SITE_PERL}/${PERL_ARCH}/DBD/mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql
+BUILD_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/DBD/mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql
+.endif
+.endif
 .endif
 
 USE_PERL5=	yes
@@ -114,7 +120,7 @@
 	@${ECHO} ""
 	@${ECHO} "You may use the following build options:"
 	@${ECHO} ""
-	@${ECHO} "      DB_TYPE=type                    Pg for postgresql, mysql for MySQL (mysql)"
+	@${ECHO} "      DB_TYPE=type                    mysql, Oracle, Pg or SQLite (mysql)"
 	@${ECHO} "      DB_HOST=hostname                The database host (localhost)"
 	@${ECHO} "      DB_PORT=port                    The database port"
 	@${ECHO} "      DB_DBA_USER=password            Name of database administrator (root)"

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: 
	=?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?=
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20031109/fbb2547e/attachment.bin


More information about the freebsd-ports mailing list