Adam Tkac 196400
%define VERSION %{version}
Adam Tkac e719fc
1bed1c
Name:           bind-dyndb-ldap
Petr Spacek 5e1a88
Version:        6.0
Petr Spacek d48d5e
Release:        4%{?dist}
1bed1c
Summary:        LDAP back-end plug-in for BIND
1bed1c
1bed1c
Group:          System Environment/Libraries
8edf2b
License:        GPLv2+
8edf2b
URL:            https://fedorahosted.org/bind-dyndb-ldap
Adam Tkac 196400
Source0:        https://fedorahosted.org/released/%{name}/%{name}-%{VERSION}.tar.bz2
1bed1c
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
1bed1c
Petr Spacek a16cec
BuildRequires:  bind-devel >= 32:9.9.0-1, bind-lite-devel >= 32:9.9.0-1
8edf2b
BuildRequires:  krb5-devel
1bed1c
BuildRequires:  openldap-devel
ae4007
BuildRequires:  automake, autoconf, libtool
8edf2b
Petr Spacek d48d5e
Requires:       bind-pkcs11 >= 32:9.9.6-2, bind-pkcs11-utils >= 32:9.9.6-2
1bed1c
Petr Spacek bc3618
Patch0:         bind-dyndb-ldap-pspacek-0228-Drop-unnecessary-define-_BSD_SOURCE.patch
Petr Spacek bc3618
1bed1c
%description
1bed1c
This package provides an LDAP back-end plug-in for BIND. It features
1bed1c
support for dynamic updates and internal caching, to lift the load
1bed1c
off of your LDAP server.
1bed1c
1bed1c
1bed1c
%prep
Adam Tkac e719fc
%setup -q -n %{name}-%{VERSION}
1bed1c
Petr Spacek bc3618
%patch0 -p1 -b .p0228
Petr Spacek bc3618
1bed1c
%build
Adam Tkac 640acd
export CFLAGS="`isc-config.sh --cflags dns` $RPM_OPT_FLAGS"
ae4007
autoreconf -fiv
Petr Spacek 5ad939
%configure
1bed1c
make %{?_smp_mflags}
1bed1c
1bed1c
1bed1c
%install
1bed1c
rm -rf %{buildroot}
1bed1c
make install DESTDIR=%{buildroot}
Petr Spacek a16cec
mkdir -m 770 -p %{buildroot}/%{_localstatedir}/named/dyndb-ldap
1bed1c
1bed1c
# Remove unwanted files
1bed1c
rm %{buildroot}%{_libdir}/bind/ldap.la
1bed1c
rm -r %{buildroot}%{_datadir}/doc/%{name}
1bed1c
1bed1c
Petr Spacek a16cec
# SELinux boolean named_write_master_zones has to be enabled
Petr Spacek a16cec
# otherwise the plugin will not be able to write to /var/named.
Petr Spacek a16cec
# This scriptlet enables the boolean after installation or upgrade.
Petr Spacek a16cec
# SELinux is sensitive area so I want to inform user about the change.
Petr Spacek a16cec
%post
Petr Spacek a16cec
if [ -x "/usr/sbin/setsebool" ] ; then
Petr Spacek a16cec
        echo "Enabling SELinux boolean named_write_master_zones"
Petr Spacek a16cec
        /usr/sbin/setsebool -P named_write_master_zones=1 || :
Petr Spacek a16cec
fi
Petr Spacek a16cec
Petr Spacek a16cec
Petr Spacek a16cec
# This scriptlet disables the boolean after uninstallation.
Petr Spacek a16cec
%postun
Petr Spacek a16cec
if [ "0$1" -eq "0" ] && [ -x "/usr/sbin/setsebool" ] ; then
Petr Spacek a16cec
        echo "Disabling SELinux boolean named_write_master_zones"
Petr Spacek a16cec
        /usr/sbin/setsebool -P named_write_master_zones=0 || :
Petr Spacek a16cec
fi
Petr Spacek a16cec
Petr Spacek a16cec
1bed1c
%clean
1bed1c
rm -rf %{buildroot}
1bed1c
1bed1c
1bed1c
%files
1bed1c
%defattr(-,root,root,-)
Adam Tkac e719fc
%doc NEWS README COPYING doc/{example.ldif,schema}
Petr Spacek a16cec
%dir %attr(770, root, named) %{_localstatedir}/named/dyndb-ldap
1bed1c
%{_libdir}/bind/ldap.so
1bed1c
1bed1c
1bed1c
%changelog
Petr Spacek d48d5e
* Mon Oct 20 2014 Petr Spacek <pspacek@redhat.com> - 6.0-4
Petr Spacek d48d5e
- add dependency on bind-pkcs11-utils >= 32:9.9.6-2
Petr Spacek d48d5e
  to help with freeipa-server upgrade
Petr Spacek d48d5e
Petr Spacek 2f6ed0
* Mon Oct 20 2014 Petr Spacek <pspacek@redhat.com> - 6.0-3
Petr Spacek 2f6ed0
- replace dependency on bind with dependency on bind-pkcs11 >= 32:9.9.6-2
Petr Spacek 2f6ed0
  to help with freeipa-server upgrade
Petr Spacek 2f6ed0
88177a
* Fri Oct 03 2014 Tomas Hozza <thozza@redhat.com> - 6.0-2
88177a
- rebuild against bind-9.9.6
88177a
Petr Spacek 5e1a88
* Tue Sep 23 2014 Petr Spacek <pspacek redhat com> - 6.0-1
Petr Spacek 5e1a88
- update to 6.0
Petr Spacek 5e1a88
Petr Spacek aa979e
* Fri Sep 12 2014 Petr Spacek <pspacek redhat com> - 5.3-1
Petr Spacek aa979e
- update to 5.3
Petr Spacek aa979e
Petr Spacek 914a40
* Mon Sep 08 2014 Petr Spacek <pspacek redhat com> 5.2-1
Petr Spacek 914a40
- update to 5.2
Petr Spacek 914a40
c3a15e
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1-2
c3a15e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
c3a15e
Petr Spacek 58d286
* Thu Jul 24 2014 Petr Spacek <pspacek redhat com> 5.1-1
Petr Spacek 58d286
- update to 5.1
Petr Spacek 58d286
- fixes bug 1122393
Petr Spacek 58d286
Petr Spacek f07815
* Tue Jun 24 2014 Petr Spacek <pspacek redhat com> 5.0-1
Petr Spacek f07815
- update to 5.0
Petr Spacek f07815
56f139
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3-2
56f139
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
56f139
Petr Spacek 988b67
* Wed Apr 09 2014 Petr Spacek <pspacek redhat com> 4.3-1
Petr Spacek 988b67
- update to 4.3
Petr Spacek 988b67
Petr Spacek bc3618
* Mon Feb 24 2014 Petr Spacek <pspacek redhat com> 4.1-2
Petr Spacek bc3618
- remove deprecated define _BSD_SOURCE
Petr Spacek bc3618
Petr Spacek a16cec
* Mon Feb 24 2014 Petr Spacek <pspacek redhat com> 4.1-1
Petr Spacek a16cec
- update to 4.1
Petr Spacek a16cec
Petr Spacek 69a5b1
* Thu Jul 18 2013 Petr Spacek <pspacek redhat com> 3.5-1
Petr Spacek 69a5b1
- update to 3.5
Petr Spacek 69a5b1
620aa6
* Mon Jul 15 2013 Tomas Hozza <thozza@redhat.com> 3.4-2
620aa6
- rebuild against new bind
620aa6
Petr Spacek 52d3fc
* Tue Jun 25 2013 Petr Spacek <pspacek redhat com> 3.4-1
Petr Spacek 52d3fc
- update to 3.4
Petr Spacek 52d3fc
Petr Spacek e7f7e7
* Tue Jun 04 2013 Petr Spacek <pspacek redhat com> 3.3-1
Petr Spacek e7f7e7
- update to 3.3
Petr Spacek e7f7e7
- patch bind-dyndb-ldap-tbabej-0001-Build-fixes-for-Fedora-19.patch merged
Petr Spacek e7f7e7
Petr Spacek 5ad939
* Tue May 14 2013 Petr Spacek <pspacek redhat com> 3.2-1
Petr Spacek 5ad939
- update to 3.2
Petr Spacek 5ad939
Adam Tkac cd76fc
* Tue Apr 16 2013 Adam Tkac <atkac redhat com> 3.1-2
Adam Tkac cd76fc
- rebuild against new bind
Adam Tkac f04e38
- build with --disable-werror
Adam Tkac cd76fc
Petr Spacek 411625
* Fri Apr 12 2013 Petr Spacek <pspacek redhat com> 3.1-1
Petr Spacek 411625
- update to 3.1
Petr Spacek 411625
Petr Spacek 5e5d0c
* Tue Apr 02 2013 Petr Spacek <pspacek redhat com> 3.0-1
Petr Spacek 5e5d0c
- update to 3.0
Petr Spacek 5e5d0c
Petr Spacek ec6e54
* Tue Mar 26 2013 Petr Spacek <pspacek redhat com> 2.6-1
Petr Spacek ec6e54
- update to 2.6
Petr Spacek ec6e54
Petr Spacek 18cf24
* Mon Feb 04 2013 Petr Spacek <pspacek redhat com> 2.5-1
Petr Spacek 18cf24
- update to 2.5
Petr Spacek 18cf24
Petr Spacek b4e4e5
* Tue Jan 15 2013 Petr Spacek <pspacek redhat com> 2.4-1
Petr Spacek b4e4e5
- update to 2.4
Petr Spacek b4e4e5
Petr Spacek f7402a
* Thu Nov  8 2012 Petr Spacek <pspacek redhat com> 2.3-2
Petr Spacek f7402a
- rebuild with proper changelog
Petr Spacek f7402a
Petr Spacek f7402a
* Thu Nov  8 2012 Petr Spacek <pspacek redhat com> 2.3-1
Petr Spacek f7402a
- update to 2.3
Petr Spacek f7402a
Adam Tkac 196400
* Mon Oct 29 2012 Adam Tkac <atkac redhat com> 2.1-1
Adam Tkac 196400
- update to 2.1
Adam Tkac 196400
Adam Tkac 5f4cd7
* Thu Oct 11 2012 Adam Tkac <atkac redhat com> 2.0-0.3.20121009git6a86b1
Adam Tkac 5f4cd7
- rebuild against new bind-libs
Adam Tkac 5f4cd7
Petr Spacek f97327
* Tue Oct  9 2012 Petr Spacek <pspacek redhat com> 2.0-0.2.20121009git6a86b1
Petr Spacek f97327
- update to the latest master
Petr Spacek f97327
ae4007
* Fri Sep 21 2012 Adam Tkac <atkac redhat com> 2.0-0.1.20120921git7710d89
ae4007
- update to the latest master
ae4007
- bind-dyndb-ldap110-master.patch was merged
ae4007
3a7253
* Thu Aug 16 2012 Adam Tkac <atkac redhat com> 1.1.0-0.16.rc1
3a7253
- update to the latest git
3a7253
Petr Spacek 01e7b3
* Thu Aug 02 2012 Adam Tkac <atkac redhat com> 1.1.0-0.15.rc1
b60b69
- update to the latest git
b60b69
  - fix for CVE-2012-3429 has been merged
b60b69
7f4ce0
* Thu Aug 02 2012 Adam Tkac <atkac redhat com> 1.1.0-0.14.rc1
7f4ce0
- fix CVE-2012-3429
7f4ce0
c3f9fe
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-0.13.rc1
c3f9fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
c3f9fe
Adam Tkac 8b8546
* Thu Jun 07 2012 Adam Tkac <atkac redhat com> - 1.1.0-0.12.rc1
Adam Tkac 8b8546
- update to the latest master (#827401)
Adam Tkac 8b8546
Adam Tkac 53fc27
* Thu Apr 26 2012 Adam Tkac <atkac redhat com> - 1.1.0-0.11.rc1
Adam Tkac 53fc27
- update to 1.1.0rc1 (CVE-2012-2134)
Adam Tkac 53fc27
Adam Tkac 71aed9
* Tue Mar 27 2012 Adam Tkac <atkac redhat com> - 1.1.0-0.10.b2
Adam Tkac 71aed9
- update to 1.1.0b2
Adam Tkac 71aed9
Adam Tkac 5f0ae2
* Tue Mar 06 2012 Adam Tkac <atkac redhat com> - 1.1.0-0.9.b1
Adam Tkac 5f0ae2
- update to 1.1.0b1
Adam Tkac 5f0ae2
Adam Tkac 59dd94
* Mon Feb 13 2012 Adam Tkac <atkac redhat com> - 1.1.0-0.8.a2
Adam Tkac 59dd94
- update to 1.1.0a2
Adam Tkac 59dd94
Adam Tkac d342c3
* Thu Feb 02 2012 Adam Tkac <atkac redhat com> - 1.1.0-0.7.a1
Adam Tkac d342c3
- rebuild against new bind
Adam Tkac d342c3
Adam Tkac 132105
* Wed Jan 18 2012 Adam Tkac <atkac redhat com> - 1.1.0-0.6.a1
Adam Tkac 132105
- update to 1.1.0a1
Adam Tkac 132105
c7feaf
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-0.5.rc1
c7feaf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
c7feaf
Adam Tkac 15d305
* Mon Nov 14 2011 Adam Tkac <atkac redhat com> - 1.0.0-0.4.rc1
Adam Tkac 15d305
- update to 1.0.0rc1
Adam Tkac 15d305
Adam Tkac 6c5e3f
* Mon Nov 14 2011 Adam Tkac <atkac redhat com> - 1.0.0-0.3.b1
Adam Tkac 6c5e3f
- rebuild against new bind
Adam Tkac 6c5e3f
Adam Tkac 0e8cf6
* Fri Sep 09 2011 Adam Tkac <atkac redhat com> - 1.0.0-0.2.b1
Adam Tkac 0e8cf6
- rebuild against new bind
Adam Tkac 0e8cf6
Adam Tkac e719fc
* Wed Aug 31 2011 Adam Tkac <atkac redhat com> - 1.0.0-0.1.b1
Adam Tkac e719fc
- update to 1.0.0b1 (psearch + bugfixes)
Adam Tkac e719fc
- bind-dyndb-ldap-rh727856.patch merged
Adam Tkac e719fc
Adam Tkac ca3623
* Wed Aug 03 2011 Adam Tkac <atkac redhat com> - 0.2.0-4
Adam Tkac ca3623
- fix race condition in semaphore_wait (#727856)
Adam Tkac ca3623
Adam Tkac 2979be
* Mon Feb 21 2011 Adam Tkac <atkac redhat com> - 0.2.0-3
Adam Tkac 2979be
- rebuild against new bind
Adam Tkac 2979be
f0e1d9
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-2
f0e1d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
f0e1d9
Adam Tkac 4c9428
* Wed Jan 12 2011 Adam Tkac <atkac redhat com> - 0.2.0-1
Adam Tkac 4c9428
- update to 0.2.0
Adam Tkac 4c9428
- patches merged
Adam Tkac 4c9428
  - 0001-Bugfix-Improve-LDAP-schema-to-be-loadable-by-OpenLDA.patch
Adam Tkac 4c9428
  - 0004-Bugfix-Fix-loading-of-child-zones-from-LDAP.patch
Adam Tkac 4c9428
Adam Tkac aec93f
* Wed Dec 15 2010 Adam Tkac <atkac redhat com> - 0.1.0-0.17.b
Adam Tkac aec93f
- fix LDAP schema (#622604)
Adam Tkac aec93f
- load child zones from LDAP correctly (#622617)
Adam Tkac aec93f
Adam Tkac 640acd
* Fri Oct 22 2010 Adam Tkac <atkac redhat com> - 0.1.0-0.16.b
Adam Tkac 640acd
- build with correct RPM_OPT_FLAGS (#645529)
Adam Tkac 640acd
Adam Tkac 8b9efb
* Wed Oct 20 2010 Adam Tkac <atkac redhat com> - 0.1.0-0.15.b
Adam Tkac 8b9efb
- use "isc-config.sh" utility to get correct BIND9 CFLAGS
Adam Tkac 8b9efb
Adam Tkac a74ee8
* Thu Sep 30 2010 Adam Tkac <atkac redhat com> - 0.1.0-0.14.b
Adam Tkac a74ee8
- rebuild against new bind
Adam Tkac a74ee8
Adam Tkac 54a057
* Fri Aug 27 2010 Adam Tkac <atkac redhat com> - 0.1.0-0.13.b
Adam Tkac 54a057
- rebuild against new bind
Adam Tkac 54a057
Adam Tkac 293d5b
* Tue Aug 17 2010 Adam Tkac <atkac redhat com> - 0.1.0-0.12.b
Adam Tkac 293d5b
- rebuild against new bind
Adam Tkac 293d5b
Adam Tkac ae13dd
* Tue Aug 03 2010 Adam Tkac <atkac redhat com> - 0.1.0-0.11.b
Adam Tkac ae13dd
- rebuild against new bind
Adam Tkac ae13dd
Adam Tkac bf7a94
* Mon May 31 2010 Adam Tkac <atkac redhat com> - 0.1.0-0.10.b
Adam Tkac bf7a94
- rebuild against new bind
Adam Tkac bf7a94
3c0d89
* Wed Mar 24 2010 Martin Nagy <mnagy@redhat.com> - 0.1.0-0.9.b
3c0d89
- update to the latest upstream release
3c0d89
Adam Tkac a9279a
* Thu Jan 28 2010 Adam Tkac <atkac redhat com> - 0.1.0-0.8.a1.20091210git
Adam Tkac a9279a
- rebuild against new bind
Adam Tkac a9279a
Adam Tkac 0fb4b3
* Tue Dec 15 2009 Adam Tkac <atkac redhat com> - 0.1.0-0.7.a1.20091210git
Adam Tkac 0fb4b3
- rebuild against new bind
Adam Tkac 0fb4b3
8edf2b
* Thu Dec 10 2009 Martin Nagy <mnagy@redhat.com> - 0.1.0-0.6.a1.20091210git
8edf2b
- update to the latest git snapshot
8edf2b
- change upstream URL, project moved to fedorahosted
8edf2b
- change license to GPL version 2 or later
8edf2b
- add epoch to versioned requires
8edf2b
- add krb5-devel to the list of build requires
8edf2b
Adam Tkac e80576
* Tue Dec 01 2009 Adam Tkac <atkac redhat com> - 0.1.0-0.5.a1
Adam Tkac e80576
- rebuild against new bind
Adam Tkac e80576
Adam Tkac a2a58e
* Thu Nov 26 2009 Adam Tkac <atkac redhat com> - 0.1.0-0.4.a1
Adam Tkac a2a58e
- rebuild against new bind
Adam Tkac a2a58e
303175
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.0-0.3.a1
303175
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
303175
a6812e
* Fri Jun 19 2009 Caolán McNamara <caolanm@redhat.com> - 0.1.0-0.2.a1
a6812e
- rebuild for dependencies
a6812e
1bed1c
* Sun May 03 2009 Martin Nagy <mnagy@redhat.com> - 0.1.0-0.1.a1
1bed1c
- initial packaging