Skip to content

Instantly share code, notes, and snippets.

@maxclark
Last active December 30, 2015 10:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maxclark/7816255 to your computer and use it in GitHub Desktop.
Save maxclark/7816255 to your computer and use it in GitHub Desktop.
PowerDNS tinydns backend support for FreeBSD

PowerDNS tinydns backend support for FreeBSD

Notes:

FreeBSD's tinycdb port is missing pkg-config data and targest to compile shared objects. For the time being I found it easier to compile and install tinycdb using the following flags:

make all shared piclib
make install install-sharedlib install-piclib

Grab the libcdb.pc file and place it in /usr/local/libdata/pkgconfig/libcdb.pc

curl -O https://gist.github.com/maxclark/7816255/raw/c142650c354717e676d99d822f3babb81c89514b/libcdb.pc /usr/local/libdata/pkgconfig/

Enable the tinycdb backend module with

./configure --with-modules="tinydns" --prefix=/usr/local/pdns
# libcdb.pc -- pkg-config data for tinycdb
prefix=/usr/local
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: libcdb
Description: tinycdb - Constant Data Base library
Version: 0.78
Libs: -L${libdir} -lcdb
Cflags: -I${includedir}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment