Optional LMDB support, disabled by default

This commit is contained in:
Petr Menšík 2017-07-10 11:54:56 +02:00
parent 7584e54e6c
commit e9f0f4543b

View File

@ -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}