FreeBSD rt3 port

Autrijus Tang autrijus at
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! :-)


--- 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"
 .if ${DB_TYPE} == "Pg"
-BUILD_DEPENDS+=	${LOCALBASE}/bin/psql:${PORTSDIR}/databases/postgresql7 \
-		${SITE_PERL}/${PERL_ARCH}/DBD/${PORTSDIR}/databases/p5-DBD-Pg
+.if ${DB_TYPE} == "SQLite"
 DB_TYPE=	mysql
-BUILD_DEPENDS+=	${LOCALBASE}/bin/mysql_config:${PORTSDIR}/databases/mysql40-server \
-		${SITE_PERL}/${PERL_ARCH}/DBD/${PORTSDIR}/databases/p5-DBD-mysql
 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
	=?UTF-8?Q?=E7=9A=84=E9=83=B5?= =?UTF-8?Q?=E4=BB=B6?=
Url :

More information about the freebsd-ports mailing list