1===================
2Installing SSHGuard
3===================
4
5
6From a package repository
7=========================
8SSHGuard is available as a package from several package repositories,
9usually under the name ``sshguard``.
10
11
12Building from source
13====================
14Obtain a source distribution from http://www.sshguard.net/. Extract the
15archive and run::
16
17    ./configure
18    make && make install
19
20Alternatively, if you are building from the source repository::
21
22    git clone https://bitbucket.org/sshguard/sshguard.git
23    cd sshguard/
24    autoreconf -i
25    ./configure
26    make && make install
27
28Build dependencies
29------------------
30- C compiler with support for the C99 standard
31- lex and yacc (or compatible variant)
32
33If you are building from the source repository, you also need:
34
35- Autoconf/Automake
36- Docutils
37
38Debian and Ubuntu
39~~~~~~~~~~~~~~~~~
40::
41
42    apt install autoconf automake byacc flex gcc python-docutils
43
44Fedora
45~~~~~~
46::
47
48    dnf install autoconf automake byacc flex gcc python-docutils
49
50FreeBSD
51~~~~~~~
52::
53
54    pkg install autotools byacc clang flex py27-docutils
55
56macOS
57~~~~~
58Requires Xcode_ with command line utilities and Homebrew_.
59
60::
61
62    brew install autoconf automake byacc docutils flex
63
64.. _Xcode: https://itunes.apple.com/app/xcode/id497799835
65.. _Homebrew: http://brew.sh/
66