Getting the sources
-------------------
+.. warning::
+ Do not use the tarballs auto-generated by GitHub from the tags, as these are not proper release tarballs.
+
There are 3 ways of getting the source.
If you want the bleeding edge, you can clone the `repository at GitHub <https://github.com/PowerDNS/pdns>`__ and run ``autoreconf -vi`` in the ``pdns/recursordist`` directory of the clone.
* `Lua <http://www.lua.org/>`_ 5.1+ or `LuaJit <http://luajit.org/>`_
* `OpenSSL <https://openssl.org>`_
+.. note::
+ On Debian and Ubuntu, the following will get you the dependencies: `apt-get install libboost-dev libboost-filesystem-dev libboost-serialization-dev \
+ libboost-system-dev libboost-thread-dev libboost-context-dev libboost-test-dev \
+ libssl-dev libboost-test-dev g++ make pkg-config libluajit-5.1-dev`
+
Optional dependencies
---------------------
During configure, ``configure`` will attempt to detect the availability of `systemd or systemd-daemon <https://freedesktop.org/wiki/Software/systemd/>`_ headers.
To force the use of ``systemd`` (and failing configure if the headers do not exist), use ``--enable-systemd``.
To set the directory where the unit files should be installed, use ``--with-systemd=/path/to/unit/dir``.
+
+.. note::
+ If you want systemd support, you will need to install the corresponding development package. On Debian and Ubuntu, this means `apt install libsystemd-dev`.