diff INSTALL @ 3943:cbe5c6772e0d HEAD

Added support for dynamically building SQL drivers.
author Timo Sirainen <tss@iki.fi>
date Fri, 27 Jan 2006 00:01:00 +0200
parents 0615c22cbda5
children a5c559c847cc
line wrap: on
line diff
--- a/INSTALL	Thu Jan 26 23:08:53 2006 +0200
+++ b/INSTALL	Fri Jan 27 00:01:00 2006 +0200
@@ -117,20 +117,12 @@
 
 gcc -shared -fPIC -DHAVE_CONFIG_H -DUSERDB_LDAP -DPASSDB_LDAP \
 -I../.. -I../lib -I../lib-settings \
-db-ldap.c userdb-ldap.c passdb-ldap.c -o ldap.so \
-../lib-settings/libsettings.a -lldap
-
-gcc -shared -fPIC -DHAVE_CONFIG_H -DUSERDB_PGSQL -DPASSDB_PGSQL \
--I../.. -I../lib -I../lib-settings -I/usr/include/postgresql \
-db-pgsql.c userdb-pgsql.c passdb-pgsql.c -o pgsql.so \
-../lib-settings/libsettings.a -L/usr/lib/postgresql -lpq
+db-ldap.c userdb-ldap.c passdb-ldap.c -o ldap.so -lldap
 
 gcc -shared -fPIC -DHAVE_CONFIG_H -DUSERDB_VPOPMAIL -DPASSDB_VPOPMAIL \
 -I../.. -I../lib userdb-vpopmail.c passdb-vpopmail.c -o vpopmail.so \
 -lvpopmail
 
-Including libsettings.a in ldap.so and pgsql.so is kind of annoying, but it's
-not needed elsewhere in dovecot-auth.
 
 Dynamic IMAP and POP3 Modules
 -----------------------------
@@ -139,3 +131,18 @@
 *.so modules from directory pointed by imap_modules or pop3_modules. These
 modules can do anything, they're only expected to contain <module name>_init
 and <module name>_deinit functions which are called.
+
+
+Dynamic SQL drivers
+-------------------
+
+Currently SQL drivers are only used by dovecot-auth, so you could place
+them into same directory with auth plugins.
+
+gcc -shared -fPIC -DHAVE_CONFIG_H -DBUILD_PGSQL \
+-I../.. -I../lib -I../lib-settings -I/usr/include/postgresql \
+driver-pgsql.c -o driver_pgsql.so -L/usr/lib/postgresql -lpq
+
+gcc -shared -fPIC -DHAVE_CONFIG_H -DBUILD_MYSQL \
+-I../.. -I../lib -I../lib-settings -I/usr/include/mysql \
+driver-mysql.c -o driver_mysql.so -lmysqlclient