Hi Stuart,
Two reasons:
1) You are right. I can edit that directly on /etc/my.cnf but (if I
remember well) I need to edit two lines on that file. One for the server and
another one for the client. My step do both directly during the installation
process.
2) Porno geek. I like to see the cool compilation lines on the screen.
It is my personal choice. Don't we have the ports collection for that too?
:-P Seriously, I use packages very few times....and for a good reason (i.e.
not enough time to install the computer/server) and I prefer to compile the
ports.
Anyways, I think most people do that change to have the opportunity to
access MySQL socket from the standard Apache chrooted
directory....so....just a proposal: maybe it would be good to have a flavor
for the default MySQL server installation...something like: env
FLAVOR="apache_chroot".
Don't you think?
Regards,
Alvaro
2008/11/27 Stuart Henderson <[EMAIL PROTECTED]>
> On 2008-11-27, Alvaro Mantilla Gimenez <[EMAIL PROTECTED]>
> wrote:
> > Hi, maybe you can consider another approach:
> >
> > 1) Edit the Makefile on /usr/ports/databases/mysql
> > $ cat Makefile | grep SOCKET_DIR
> > SOCKET_DIR= /var/www/mysql
>
> Why would you not want to use packages?
> Especially when you can do this by editing my.cnf.
>
> >> ln -f /var/run/mysql/mysql.sock /var/www/var/run/mysql/
>
> /var/run is cleaned at boot.