From e9f0f4543b9d7d9be6f081142bbd1727c6eb09d6 Mon Sep 17 00:00:00 2001 From: Petr Menšík Date: Mon, 10 Jul 2017 11:54:56 +0200 Subject: Optional LMDB support, disabled by default --- bind.spec | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/bind.spec b/bind.spec index a801da6..450b032 100644 --- a/bind.spec +++ b/bind.spec @@ -15,6 +15,7 @@ # due to extensive changes to Makefiles %{?!PKCS11: %global PKCS11 1} %{?!DEVEL: %global DEVEL 1} +%{?!LMDB: %global LMDB 0} %{?!DLZ: %global DLZ 0} %global bind_dir /var/named %global chroot_prefix %{bind_dir}/chroot @@ -122,6 +123,9 @@ BuildRequires: net-tools perl(Net::DNS) perl(Net::DNS::Nameserver) %if %{GSSTSIG} BuildRequires: krb5-devel %endif +%if %{LMDB} +BuildRequires: lmdb-devel +%endif # Needed to regenerate dig.1 manpage BuildRequires: docbook-style-xsl, libxslt @@ -464,6 +468,11 @@ libtoolize -c -f; aclocal -I libtool.m4 --force; autoconf -f %if %{GSSTSIG} --with-gssapi=yes \ --disable-isc-spnego \ +%endif +%if %{LMDB} + --with-lmdb=yes \ +%else + --with-lmdb=no \ %endif --enable-fixed-rrset \ --with-docbook-xsl=%{_datadir}/sgml/docbook/xsl-stylesheets \ @@ -950,6 +959,9 @@ rm -rf ${RPM_BUILD_ROOT} %{_sbindir}/isc-hmac-fixup %{_sbindir}/named-checkzone %{_sbindir}/named-compilezone +%if %{LMDB} +%{_sbindir}/named-nzd2nzf +%endif %{_mandir}/man1/host.1* %{_mandir}/man1/nsupdate.1* %{_mandir}/man1/dig.1* @@ -967,6 +979,9 @@ rm -rf ${RPM_BUILD_ROOT} %{_mandir}/man8/isc-hmac-fixup.8* %{_mandir}/man8/named-checkzone.8* %{_mandir}/man8/named-compilezone.8* +%if %{LMDB} +%{_mandir}/man8/named-nzd2nzf.8* +%endif %{_sysconfdir}/trusted-key.key %if %{DEVEL} -- cgit