Next
Previous
Contents
authpcre is not a patch, and you may install it on a running system without
too much trouble. Ok, to get it working you need the pcre library,
available on
ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/
and on most linux distributions (in debian, ``apt-get install
libpcre3-dev'').
You also need an ANSI C compiler (gcc should be good enough :-) and a POSIX system
with all the standard include files.
Ok, now that you are sure you have everything installed, just:
- tar -xvzf authpcre-version.tar.gz
- cd authpcre-version
- ./configure
- make
- make install
configure will try to figure out everything for you. Anyway, there are
few cases when you must specify some parameters:
- If the directory where courier stores modules is not ``/usr/lib/courier/authlib''.
In this case, specify a ``--with-mod-path=/correct/path/to/use''. You can figure out the path
by looking where the authdaemon module is stored (something like locate authdaemon) or
by using courier-config and appending ``/authlib'' to $libexecdir.
- If you want the manual pages in a different place than /usr/local/man.
In this case, use the ``--mandir=/usr/share/man'' to specify a different
location.
- If you want the authpcre-test binary to be installed in a different place
than /usr/local/bin. In this case, use the ``--bindir=/something/else''.
- If you have a different pcre library. Use the parameter ``--with-pcre=someotherlibrary''
to specify the library to use. Note that library must be in your linker search path
(default is libpcre).
- If the header ``pcre.h'' has a different name or is in some non-standard place. In this
case, use the parameter ``--with-hpcre=/path/file_to_use.h'' to specify the header to
use and its location (default is pcre.h, in any of the compiler search paths).
- If you want the configuration file to be in some other place than the default
/etc/courier/authpcrerc. Just use the parameter ``--with-conf-file=/path/name/of_file''.
All the other parameters (as printed by configure --help) are completely ignored.
For example, you may configure authpcre with something like
# ./configure --with-mod-path=/usr/local/courier/lib \
--with-conf-file=/usr/local/courier/etc/authpcrerc
Watch out that make install will install the binary itself and an example configuration
file. Beware that the configure.ac file was written in a very short time and is currently
being worked on to make it more ``standard''.
Precompiled binary packages for debian may be made available for your convenience.
There is no mailing list for authpcre, so feel free to mail me if you have any trouble with it.
Next
Previous
Contents