From a16cec94eb3ed374b5de26f2734caa76ffbb501d Mon Sep 17 00:00:00 2001 From: Petr Spacek Date: Feb 24 2014 13:36:43 +0000 Subject: Update to 4.1. Signed-off-by: Petr Spacek --- diff --git a/.gitignore b/.gitignore index 699fa19..5f810b2 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,4 @@ bind-dyndb-ldap-0.1.0b.tar.bz2 /bind-dyndb-ldap-3.3.tar.bz2 /bind-dyndb-ldap-3.4.tar.bz2 /bind-dyndb-ldap-3.5.tar.bz2 +/bind-dyndb-ldap-4.1.tar.bz2 diff --git a/bind-dyndb-ldap.spec b/bind-dyndb-ldap.spec index 85b59e4..16fcea7 100644 --- a/bind-dyndb-ldap.spec +++ b/bind-dyndb-ldap.spec @@ -1,11 +1,7 @@ -#%define PATCHVER P4 -#%define PREVER 20121009git6a86b1 -#%define VERSION %{version}-%{PATCHVER} -#%define VERSION %{version}-%{PREVER} %define VERSION %{version} Name: bind-dyndb-ldap -Version: 3.5 +Version: 4.1 Release: 1%{?dist} Summary: LDAP back-end plug-in for BIND @@ -15,12 +11,12 @@ URL: https://fedorahosted.org/bind-dyndb-ldap Source0: https://fedorahosted.org/released/%{name}/%{name}-%{VERSION}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -BuildRequires: bind-devel >= 32:9.6.1-0.3.b1 +BuildRequires: bind-devel >= 32:9.9.0-1, bind-lite-devel >= 32:9.9.0-1 BuildRequires: krb5-devel BuildRequires: openldap-devel BuildRequires: automake, autoconf, libtool -Requires: bind >= 32:9.6.1-0.3.b1 +Requires: bind >= 32:9.9.0-1 %description This package provides an LDAP back-end plug-in for BIND. It features @@ -41,12 +37,32 @@ make %{?_smp_mflags} %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} +mkdir -m 770 -p %{buildroot}/%{_localstatedir}/named/dyndb-ldap # Remove unwanted files rm %{buildroot}%{_libdir}/bind/ldap.la rm -r %{buildroot}%{_datadir}/doc/%{name} +# SELinux boolean named_write_master_zones has to be enabled +# otherwise the plugin will not be able to write to /var/named. +# This scriptlet enables the boolean after installation or upgrade. +# SELinux is sensitive area so I want to inform user about the change. +%post +if [ -x "/usr/sbin/setsebool" ] ; then + echo "Enabling SELinux boolean named_write_master_zones" + /usr/sbin/setsebool -P named_write_master_zones=1 || : +fi + + +# This scriptlet disables the boolean after uninstallation. +%postun +if [ "0$1" -eq "0" ] && [ -x "/usr/sbin/setsebool" ] ; then + echo "Disabling SELinux boolean named_write_master_zones" + /usr/sbin/setsebool -P named_write_master_zones=0 || : +fi + + %clean rm -rf %{buildroot} @@ -54,10 +70,14 @@ rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc NEWS README COPYING doc/{example.ldif,schema} +%dir %attr(770, root, named) %{_localstatedir}/named/dyndb-ldap %{_libdir}/bind/ldap.so %changelog +* Mon Feb 24 2014 Petr Spacek 4.1-1 +- update to 4.1 + * Thu Jul 18 2013 Petr Spacek 3.5-1 - update to 3.5 diff --git a/sources b/sources index 049ef0c..63f4e2b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -b64d125a3aa9652b2bdefe1d4e8a4fe9 bind-dyndb-ldap-3.5.tar.bz2 +d7209da68dd142b4d1e28cab4d960f04 bind-dyndb-ldap-4.1.tar.bz2