From 00ec693db886dac7eb545fbafbb9f81d1fadbd00 Mon Sep 17 00:00:00 2001 From: Simon Kelley Date: Tue, 28 Jan 2014 11:08:57 +0000 Subject: [PATCH] Debian package with DNSSEC now possible. DNSSEC will eventually become opt-out and when that happens I'll add libnettle build-depends. For now, build with fakeroot debian/rules DEB_BUILD_OPTIONS=usednssec to get DNSSEC support. --- Makefile | 4 ++-- debian/rules | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 45bd2ae..a298425 100644 --- a/Makefile +++ b/Makefile @@ -100,8 +100,8 @@ all-i18n : $(BUILDDIR) @cd $(BUILDDIR) && $(MAKE) \ top="$(top)" \ i18n=-DLOCALEDIR=\'\"$(LOCALEDIR)\"\' \ - build_cflags="$(version) $(dbus_cflags) $(ct_cflags) $(lua_cflags) `$(PKG_CONFIG) --cflags libidn`" \ - build_libs="$(dbus_libs) $(ct_libs) $(lua_libs) $(sunos_libs) `$(PKG_CONFIG) --libs libidn`" \ + build_cflags="$(version) $(dbus_cflags) $(ct_cflags) $(lua_cflags) $(nettle_cflags) `$(PKG_CONFIG) --cflags libidn`" \ + build_libs="$(dbus_libs) $(ct_libs) $(lua_libs) $(sunos_libs) $(nettle_libs) `$(PKG_CONFIG) --libs libidn`" \ -f $(top)/Makefile dnsmasq for f in `cd $(PO); echo *.po`; do \ cd $(top) && cd $(BUILDDIR) && $(MAKE) top="$(top)" -f $(top)/Makefile $${f%.po}.mo; \ diff --git a/debian/rules b/debian/rules index 7b9f4da..abb9bc0 100755 --- a/debian/rules +++ b/debian/rules @@ -17,7 +17,7 @@ CFLAGS += -Wall -W LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS) -COPTS = +COPTS = TARGET = install-i18n @@ -77,6 +77,10 @@ ifneq (,$(filter uselua,$(DEB_BUILD_OPTIONS))) COPTS += -DHAVE_LUASCRIPT endif +ifneq (,$(filter usednssec,$(DEB_BUILD_OPTIONS))) + COPTS += -DHAVE_DNSSEC +endif + clean: $(checkdir) rm -rf debian/daemon debian/base debian/utils debian/*~ debian/files debian/substvars debian/utils-substvars