Grab a copy
The code is currently hosted on GitHub:
Greyd uses the Autotools for it's build system, namely:
- Autoconf
- Automake
- Libtool
HTML & Roff man pages are generated from markdown source with Ronn.
Developers
To get started, below is a rough guide to setting up a GNU/Linux dev environment:
$ git clone https://github.com/mikey-austin/greyd.git
$ cd greyd && autoreconf -i
$ ./configure CFLAGS="-g -O0" --with-bdb --with-netfilter
$ make check
On OpenBSD & FreeBSD, the following configure flags should to the trick:
$./configure LDFLAGS="-L/usr/local/lib" CPPFLAGS="-I/usr/local/include" CFLAGS="-I/usr/local/include" --with-bdb --with-pf
On NetBSD:
$./configure LDFLAGS="-L/usr/pkg/lib" CPPFLAGS="-I/usr/pkg/include" CFLAGS="-I/usr/pkg/include" --with-bdb --with-pf
The above configure command assumes that the required ports have been installed, including **db** (either db4 or db5 depending on the OS), and **libltdl**.
Note, depending on how you configure the build, you may need to set your LD_LIBRARY_PATH to the location of the drivers. For example:
$ export LD_LIBRARY_PATH="${PWD}/drivers/.libs"
To get around the above, you may disable shared libraries when configuring, eg:
$ ./configure --disable-shared ...