I currently use a script to build vpopmail to mame sure I keep the same
configure options:

[EMAIL PROTECTED] tarballs]# cat vpopmail.config.sh
./configure \
 --enable-tcpserver-file=/etc/tcprules.d/qmail-smtpd \
 --enable-logging=e \
 --enable-log-name=vpopmail \
 --enable-default-domain=robinbowes.com \
 --enable-file-sync=n \
 --enable-auth-logging=y \
 --enable-qmail-ext=y \
 --enable-clear-passwd=y \
 --enable-valias=y \
 --enable-roaming-users=y \
 --enable-mysql=y \
 && make \
 && make install-strip

I keep this in /home/tarballs along with my vpopmail tarballs:

[EMAIL PROTECTED] tarballs]# ls -d vpopmail*
vpopmail-5.2.1.tar.gz   vpopmail-5.3.16.tar.gz  vpopmail.config.sh
vpopmail-5.3.12.tar.gz  vpopmail-5.3.7.tar.gz
vpopmail-5.3.16         vpopmail-5.3.9.tar.gz

If I need to build vpopmail (any version), I so the following:

[EMAIL PROTECTED] tarballs]# tar zxf vpopmail-5.3.12.tar.gz
[EMAIL PROTECTED] tarballs]# cd vpopmail-5.3.12
[EMAIL PROTECTED] vpopmail-5.3.12]# ../vpopmail.config.sh
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes

This worked perfectly until I enabled MySQL support. Now I must edit
vmysql.h to include the server/user/password for mysql.

Would it be possible to add in a few options for configure to supply these
values on the command line, e.g.:

./configure \
 --with-mysql-update-server=servername \
 --with-mysql-update-user=username \
 --with-mysql-update-password=password \
 --with-mysql-read-server=servername \
 --with-mysql-read-user=username \

The "--with-mysql-read-*" options could be optional, i.e. use the update
server values if the read server is not present.

I'd hack this myself, but I'm afraid I know little about writing configure


Robin Bowes | http://robinbowes.com

Reply via email to