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