Update to 4.1.
Signed-off-by: Petr Spacek <pspacek@redhat.com>
This commit is contained in:
parent
6ec3504c76
commit
a16cec94eb
1
.gitignore
vendored
1
.gitignore
vendored
@ -20,3 +20,4 @@ bind-dyndb-ldap-0.1.0b.tar.bz2
|
|||||||
/bind-dyndb-ldap-3.3.tar.bz2
|
/bind-dyndb-ldap-3.3.tar.bz2
|
||||||
/bind-dyndb-ldap-3.4.tar.bz2
|
/bind-dyndb-ldap-3.4.tar.bz2
|
||||||
/bind-dyndb-ldap-3.5.tar.bz2
|
/bind-dyndb-ldap-3.5.tar.bz2
|
||||||
|
/bind-dyndb-ldap-4.1.tar.bz2
|
||||||
|
@ -1,11 +1,7 @@
|
|||||||
#%define PATCHVER P4
|
|
||||||
#%define PREVER 20121009git6a86b1
|
|
||||||
#%define VERSION %{version}-%{PATCHVER}
|
|
||||||
#%define VERSION %{version}-%{PREVER}
|
|
||||||
%define VERSION %{version}
|
%define VERSION %{version}
|
||||||
|
|
||||||
Name: bind-dyndb-ldap
|
Name: bind-dyndb-ldap
|
||||||
Version: 3.5
|
Version: 4.1
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: LDAP back-end plug-in for BIND
|
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
|
Source0: https://fedorahosted.org/released/%{name}/%{name}-%{VERSION}.tar.bz2
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
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: krb5-devel
|
||||||
BuildRequires: openldap-devel
|
BuildRequires: openldap-devel
|
||||||
BuildRequires: automake, autoconf, libtool
|
BuildRequires: automake, autoconf, libtool
|
||||||
|
|
||||||
Requires: bind >= 32:9.6.1-0.3.b1
|
Requires: bind >= 32:9.9.0-1
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package provides an LDAP back-end plug-in for BIND. It features
|
This package provides an LDAP back-end plug-in for BIND. It features
|
||||||
@ -41,12 +37,32 @@ make %{?_smp_mflags}
|
|||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
make install DESTDIR=%{buildroot}
|
make install DESTDIR=%{buildroot}
|
||||||
|
mkdir -m 770 -p %{buildroot}/%{_localstatedir}/named/dyndb-ldap
|
||||||
|
|
||||||
# Remove unwanted files
|
# Remove unwanted files
|
||||||
rm %{buildroot}%{_libdir}/bind/ldap.la
|
rm %{buildroot}%{_libdir}/bind/ldap.la
|
||||||
rm -r %{buildroot}%{_datadir}/doc/%{name}
|
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
|
%clean
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
@ -54,10 +70,14 @@ rm -rf %{buildroot}
|
|||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc NEWS README COPYING doc/{example.ldif,schema}
|
%doc NEWS README COPYING doc/{example.ldif,schema}
|
||||||
|
%dir %attr(770, root, named) %{_localstatedir}/named/dyndb-ldap
|
||||||
%{_libdir}/bind/ldap.so
|
%{_libdir}/bind/ldap.so
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Feb 24 2014 Petr Spacek <pspacek redhat com> 4.1-1
|
||||||
|
- update to 4.1
|
||||||
|
|
||||||
* Thu Jul 18 2013 Petr Spacek <pspacek redhat com> 3.5-1
|
* Thu Jul 18 2013 Petr Spacek <pspacek redhat com> 3.5-1
|
||||||
- update to 3.5
|
- update to 3.5
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user