www/trac with mysql

Stanislav Sedov stas at FreeBSD.org
Sat May 19 19:10:59 UTC 2007


On Fri, 18 May 2007 12:18:31 -0500
"Scot Hetzel" <swhetzel at gmail.com> mentioned:

> On 5/18/07, David Southwell <david at vizion2000.net> wrote:
> > Hi
> >
> > How do I configure trac to use  mysql rather than sqlite??
> >
> You'll need to make the following changes to the ports Makefile:
>
> 1. Add `MYSQL	   "Use MySQL instead of SQLite3" Off \' to OPTIONS
>
> 2. Make the following change to the database selection code:
>
> .if defined(WITH_PGSQL)
> RUN_DEPENDS+=	${PYTHON_SITELIBDIR}/psycopg2/__init__.py:${PORTSDIR}/databases/py-psycopg2
> .elif defined(WITH_MYSQL)
> RUN_DEPENDS+=	${PYTHON_SITELIBDIR}/MySQLdb/__init__.py:${PORTSDIR}/databases/py-MySQLdb
> .else
> RUN_DEPENDS+=	${PYTHON_SITELIBDIR}/pysqlite2/__init__.py:${PORTSDIR}/databases/py-pysqlite20
> .endif
>
> NOTE: the trac website says that MySQL support is experimental.
>

What about submitting the patch?

--
Stanislav Sedov
ST4096-RIPE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20070519/f52cc6ea/attachment.pgp


More information about the freebsd-ports mailing list