Kraken User Guide
  • Introduction
  • How to Use
  • Installing the Web Interface
  • Building from Sources
    • Building on Linux
    • Building on Mac
    • Building on FreeBSD
    • Cross-compiling for Windows
Powered by GitBook
On this page
  1. Building from Sources

Building on FreeBSD

PreviousBuilding on MacNextCross-compiling for Windows

Last updated 6 years ago

While cross-compilation of FreeBSD binaries is not available yet, it is possible to build binaries in a native FreeBSD environment. In order to do so you will firstly need to install some packages:

$ sudo pkg install git gmake pkgconf go-bindata

Then you will need to install Yara, which is normally available in :

$ cd /usr/ports/security/yara

Before installing it, it is recommended that you modify the file Makefile to add --without-crypto to CONFIGURE_ARGS (if you don't need the Yara modules enabled in the Makefile, feel free to remove them). Now you can proceed with installing:

$ sudo make && sudo make install

Now you can move to the directory that contains the Kraken source code and build it with:

$ BACKEND=example.com RULES=test/ gmake freebsd
ports