1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
#!/usr/bin/make -f
# Backends (mongodb removed for now, fails to compile)
backends := ldap pipe gmysql gpgsql gsqlite gsqlite3 geo lua
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
# Use new build system
%:
dh $@ --with autotools_dev,autoreconf --parallel
override_dh_auto_configure:
./configure \
--host=$(DEB_HOST_GNU_TYPE) \
--build=$(DEB_BUILD_GNU_TYPE) \
--prefix=/usr \
--sysconfdir=/etc/powerdns \
--mandir=\$${prefix}/share/man \
--infodir=\$${prefix}/share/info \
--libdir='$${prefix}/lib/powerdns' \
--libexecdir='$${prefix}/lib' \
--with-dynmodules="$(backends)" \
--with-modules="" \
--with-pgsql-includes=`pg_config --includedir` \
--with-mysql-lib=/usr/lib/$(DEB_HOST_MULTIARCH) \
--with-boost=/usr \
--enable-cryptopp \
--disable-recursor
# pdns-server has a debug package
override_dh_strip:
dh_strip --dbg-package=pdns-server-dbg
# Additional permissions
override_dh_fixperms:
dh_fixperms
chmod 755 debian/pdns-server/etc/resolvconf/update.d/pdns
# init script needs to be named pdns, not pdns-server
override_dh_installinit:
dh_installinit --name=pdns
|