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