]> jfr.im git - irc/UndernetIRC/iauthd-c.git/blame - INSTALL
distclean: Remove unit-tests.log
[irc/UndernetIRC/iauthd-c.git] / INSTALL
CommitLineData
ceb4b01a 1Installation Instructions
942b75c9 2=========================
ceb4b01a 3
942b75c9
MP
4Building From Git
5-----------------
ceb4b01a 6
942b75c9
MP
7If you got a copy of this code from the git repository (or the
8"configure" script needs to be generated for some other reason), run
9this command:
ceb4b01a 10
942b75c9 11 autoreconf -Wall -i
ceb4b01a 12
942b75c9 13The continue with the installation instructions below.
ceb4b01a 14
942b75c9
MP
15Building From a Source Distribution
16-----------------------------------
ceb4b01a 17
15ea2bf5
MP
18If your system is missing them, install libevent
19(http://www.monkey.org/~provos/libevent/) and/or pkg-config
20(http://www.freedesktop.org/wiki/Software/pkg-config/). If these are
21available pre-packaged your operating system, using those packages is
22recommended. For example, under Ubuntu (at least since dapper), you
23can run "sudo apt-get install libevent-dev pkg-config" to install the
24necessary files. libevent2's compatibility interface can be used.
ceb4b01a 25
942b75c9
MP
26Run "./configure && make && sudo make install" to install the package
27under /usr/local. The "configure" script takes a number of optional
28parameters; these can be listed by running "./configure --help".
29(Typically, the only parameter most users need is --prefix=$HOME,
30which is strongly recommended and eliminates the need for "sudo".
835d9681
MP
31This documentation assumes the prefix is /usr/local. If libevent or
32pkg-config is installed in /usr/local, you may need to also pass
33CPPFLAGS=-I/usr/local LDFLAGS=-L/usr/local to the configure script.)
ceb4b01a 34
942b75c9
MP
35This software supports "out-of-tree" (sometimes called vpath) builds,
36where the compiled files are in a separate directory tree than the
37source code. For example, if you wish to build in an "iauthd-c.build"
38directory that is a sibling to the "iauthd-c" source tree, you can
39instead compile with "../iauthd-c/configure && make && sudo make
40install".
ceb4b01a 41
942b75c9
MP
42Configuring iauthd-c
43--------------------
ceb4b01a 44
942b75c9
MP
45You MUST copy /usr/local/etc/iauthd-c.conf.example to
46/usr/local/etc/iauthd-c.conf and edit it appropriately. In
47particular, review the "modules" line in the "core" section, and the
48section for each loaded module.
ceb4b01a 49
942b75c9
MP
50Configuring ircu to Use iauthd-c
51--------------------------------
ceb4b01a 52
942b75c9
MP
53Edit the IAuth section (or add one) of ircd.conf to point at the
54iauthd-c binary. The only potentially interesting command-line
55argument when running under ircu is -f <configfile>.
ceb4b01a 56
942b75c9
MP
57 IAuth {
58 program = "/usr/local/bin/iauthd-c";
59 };