|
|
73823b1 |
Name: bdii
|
|
|
dfe25fb |
Version: 5.2.23
|
|
|
dfe25fb |
Release: 1%{?dist}
|
|
|
73823b1 |
Summary: The Berkeley Database Information Index (BDII)
|
|
|
73823b1 |
|
|
|
73823b1 |
Group: System Environment/Daemons
|
|
|
73823b1 |
License: ASL 2.0
|
|
|
4cbb2ce |
URL: http://gridinfo.web.cern.ch/
|
|
|
966a65c |
# The source for this package was pulled from upstream's vcs.
|
|
|
966a65c |
# Use the following commands to generate the tarball:
|
|
|
dfe25fb |
# svn export http://svn.cern.ch/guest/gridinfo/bdii/tags/R_5_2_23 %{name}-%{version}
|
|
|
966a65c |
# tar -z -c -f %{name}-%{version}.tar.gz %{name}-%{version}
|
|
|
73823b1 |
Source: %{name}-%{version}.tar.gz
|
|
|
73823b1 |
BuildArch: noarch
|
|
|
73823b1 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
73823b1 |
|
|
|
73823b1 |
Requires: openldap-clients
|
|
|
73823b1 |
Requires: openldap-servers
|
|
|
966a65c |
%if "%{?rhel}" == "5"
|
|
|
966a65c |
# The rwm overlay is in a separate package in RHEL 5
|
|
|
966a65c |
Requires: openldap-servers-overlays
|
|
|
966a65c |
%endif
|
|
|
966a65c |
Requires: glue-schema >= 2.0.10
|
|
|
73823b1 |
|
|
|
73823b1 |
Requires(post): chkconfig
|
|
|
73823b1 |
Requires(post): expect
|
|
|
73823b1 |
Requires(preun): chkconfig
|
|
|
73823b1 |
Requires(preun): initscripts
|
|
|
73823b1 |
Requires(postun): initscripts
|
|
|
73823b1 |
|
|
|
73823b1 |
%if %{?fedora}%{!?fedora:0} >= 5 || %{?rhel}%{!?rhel:0} >= 5
|
|
|
73823b1 |
Requires(post): policycoreutils
|
|
|
73823b1 |
Requires(postun): policycoreutils
|
|
|
73823b1 |
%if %{?fedora}%{!?fedora:0} >= 11 || %{?rhel}%{!?rhel:0} >= 6
|
|
|
73823b1 |
Requires(post): policycoreutils-python
|
|
|
73823b1 |
Requires(postun): policycoreutils-python
|
|
|
73823b1 |
%endif
|
|
|
73823b1 |
%endif
|
|
|
73823b1 |
|
|
|
73823b1 |
%description
|
|
|
73823b1 |
The Berkeley Database Information Index (BDII) consists of a standard
|
|
|
73823b1 |
LDAP database which is updated by an external process. The update process
|
|
|
73823b1 |
obtains LDIF from a number of sources and merges them. It then compares
|
|
|
73823b1 |
this to the contents of the database and creates an LDIF file of the
|
|
|
73823b1 |
differences. This is then used to update the database.
|
|
|
73823b1 |
|
|
|
73823b1 |
%prep
|
|
|
73823b1 |
%setup -q
|
|
|
73823b1 |
|
|
|
73823b1 |
%build
|
|
|
73823b1 |
|
|
|
73823b1 |
%install
|
|
|
73823b1 |
rm -rf %{buildroot}
|
|
|
73823b1 |
make install prefix=%{buildroot}
|
|
|
73823b1 |
|
|
|
7f46ae5 |
chmod 644 %{buildroot}%{_sysconfdir}/sysconfig/%{name}
|
|
|
73823b1 |
|
|
|
966a65c |
%if "%{?rhel}" == "5"
|
|
|
966a65c |
# slapd in RHEL 5 had the relay backend compiled in and doesn't need to load it
|
|
|
966a65c |
# slapd in RHEL 5 doesn't look in /usr/lib(64)?/openldap for modules by default
|
|
|
966a65c |
sed -e '/moduleload back_relay/d' \
|
|
|
ad121da |
-e '/moduleload rwm/imodulepath /usr/lib/openldap' \
|
|
|
ad121da |
-e '/moduleload rwm/imodulepath /usr/lib64/openldap' \
|
|
|
966a65c |
-i %{buildroot}%{_sysconfdir}/%{name}/*-slapd.conf
|
|
|
966a65c |
%endif
|
|
|
966a65c |
|
|
|
73823b1 |
%clean
|
|
|
73823b1 |
rm -rf %{buildroot}
|
|
|
73823b1 |
|
|
|
94afddd |
%pre
|
|
|
94afddd |
# Temp fix for upgrade from 5.2.5 to 5.2.7
|
|
|
94afddd |
service %{name} status > /dev/null 2>&1
|
|
|
bd7b3cd |
if [ $? -eq 0 ]; then
|
|
|
bd7b3cd |
touch %{_localstatedir}/run/%{name}/bdii.upgrade
|
|
|
bd7b3cd |
service %{name} stop > /dev/null 2>&1
|
|
|
94afddd |
fi
|
|
|
94afddd |
|
|
|
73823b1 |
%post
|
|
|
73823b1 |
sed "s/\(rootpw *\)secret/\1$(mkpasswd -s 0 | tr '/' 'x')/" \
|
|
|
7f46ae5 |
-i %{_sysconfdir}/%{name}/bdii-slapd.conf \
|
|
|
7f46ae5 |
%{_sysconfdir}/%{name}/bdii-top-slapd.conf
|
|
|
94afddd |
|
|
|
94afddd |
# Temp fix for upgrade from 5.2.5 to 5.2.7
|
|
|
bd7b3cd |
if [ -f %{_localstatedir}/run/%{name}/bdii.upgrade ]; then
|
|
|
bd7b3cd |
rm -f %{_localstatedir}/run/%{name}/bdii.upgrade
|
|
|
bd7b3cd |
service %{name} start > /dev/null 2>&1
|
|
|
94afddd |
fi
|
|
|
94afddd |
|
|
|
73823b1 |
/sbin/chkconfig --add %{name}
|
|
|
94afddd |
|
|
|
73823b1 |
%if %{?fedora}%{!?fedora:0} >= 5 || %{?rhel}%{!?rhel:0} >= 5
|
|
|
73823b1 |
semanage port -a -t ldap_port_t -p tcp 2170 2>/dev/null || :
|
|
|
ab650ea |
semanage fcontext -a -t slapd_db_t "%{_localstatedir}/lib/%{name}/db(/.*)?" 2>/dev/null || :
|
|
|
ab650ea |
semanage fcontext -a -t slapd_var_run_t "%{_localstatedir}/run/%{name}/db(/.*)?" 2>/dev/null || :
|
|
|
ab650ea |
# Remove selinux labels for old bdii var dir
|
|
|
ab650ea |
semanage fcontext -d -t slapd_db_t "%{_localstatedir}/run/%{name}(/.*)?" 2>/dev/null || :
|
|
|
73823b1 |
%endif
|
|
|
73823b1 |
|
|
|
73823b1 |
%preun
|
|
|
73823b1 |
if [ $1 -eq 0 ]; then
|
|
|
73823b1 |
service %{name} stop > /dev/null 2>&1
|
|
|
73823b1 |
/sbin/chkconfig --del %{name}
|
|
|
73823b1 |
fi
|
|
|
73823b1 |
|
|
|
73823b1 |
%postun
|
|
|
73823b1 |
if [ $1 -ge 1 ]; then
|
|
|
73823b1 |
service %{name} condrestart > /dev/null 2>&1
|
|
|
73823b1 |
fi
|
|
|
73823b1 |
%if %{?fedora}%{!?fedora:0} >= 5 || %{?rhel}%{!?rhel:0} >= 5
|
|
|
73823b1 |
if [ $1 -eq 0 ]; then
|
|
|
73823b1 |
semanage port -d -t ldap_port_t -p tcp 2170 2>/dev/null || :
|
|
|
ab650ea |
semanage fcontext -d -t slapd_db_t "%{_localstatedir}/lib/%{name}/db(/.*)?" 2>/dev/null || :
|
|
|
ab650ea |
semanage fcontext -d -t slapd_var_run_t "%{_localstatedir}/run/%{name}/db(/.*)?" 2>/dev/null || :
|
|
|
73823b1 |
fi
|
|
|
73823b1 |
%endif
|
|
|
73823b1 |
|
|
|
73823b1 |
%files
|
|
|
73823b1 |
%attr(-,ldap,ldap) %{_localstatedir}/lib/%{name}
|
|
|
73823b1 |
%attr(-,ldap,ldap) %{_localstatedir}/log/%{name}
|
|
|
73823b1 |
%dir %{_sysconfdir}/%{name}
|
|
|
73823b1 |
%config(noreplace) %{_sysconfdir}/%{name}/DB_CONFIG
|
|
|
04559df |
%config(noreplace) %{_sysconfdir}/%{name}/DB_CONFIG_top
|
|
|
73823b1 |
%config(noreplace) %{_sysconfdir}/%{name}/bdii.conf
|
|
|
73823b1 |
%config(noreplace) %{_sysconfdir}/%{name}/BDII.schema
|
|
|
ab650ea |
%attr(-,ldap,ldap) %config %{_sysconfdir}/%{name}/bdii-slapd.conf
|
|
|
ab650ea |
%attr(-,ldap,ldap) %config %{_sysconfdir}/%{name}/bdii-top-slapd.conf
|
|
|
7f46ae5 |
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
|
|
|
73823b1 |
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
|
|
|
73823b1 |
%{_initrddir}/%{name}
|
|
|
73823b1 |
%{_sbindir}/bdii-update
|
|
|
81ac957 |
%{_mandir}/man1/bdii-update.1*
|
|
|
73823b1 |
%doc copyright
|
|
|
73823b1 |
|
|
|
73823b1 |
%changelog
|
|
|
dfe25fb |
* Mon Oct 13 2014 Mattias Ellert <mattias.ellert@fysast.uu.se> - 5.2.23-1
|
|
|
dfe25fb |
- New upstream version 5.2.23
|
|
|
dfe25fb |
|
|
|
8df8d78 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.2.22-2
|
|
|
8df8d78 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
8df8d78 |
|
|
|
b297d7a |
* Mon Sep 09 2013 Mattias Ellert <mattias.ellert@fysast.uu.se> - 5.2.22-1
|
|
|
b297d7a |
- New upstream version 5.2.22
|
|
|
b297d7a |
- Do not hardcode run directory
|
|
|
b297d7a |
|
|
|
c4dadc2 |
* Tue Aug 13 2013 Mattias Ellert <mattias.ellert@fysast.uu.se> - 5.2.21-1
|
|
|
c4dadc2 |
- New upstream version 5.2.21
|
|
|
c4dadc2 |
|
|
|
ef00d6e |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.2.20-2
|
|
|
ef00d6e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
ef00d6e |
|
|
|
4cbb2ce |
* Wed Jun 26 2013 Mattias Ellert <mattias.ellert@fysast.uu.se> - 5.2.20-1
|
|
|
4cbb2ce |
- New upstream version 5.2.20
|
|
|
4cbb2ce |
|
|
|
ad121da |
* Thu Mar 14 2013 Mattias Ellert <mattias.ellert@fysast.uu.se> - 5.2.17-2
|
|
|
ad121da |
- Don't use _libdir macro for noarch package
|
|
|
ad121da |
|
|
|
966a65c |
* Thu Mar 14 2013 Mattias Ellert <mattias.ellert@fysast.uu.se> - 5.2.17-1
|
|
|
966a65c |
- New upstream version 5.2.17
|
|
|
966a65c |
|
|
|
b80aab0 |
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.2.13-2
|
|
|
b80aab0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
b80aab0 |
|
|
|
185d004 |
* Wed Aug 15 2012 Laurence Field <Laurence.Field@cern.ch> - 5.2.13-1
|
|
|
185d004 |
- Included Fedora patches upstream.
|
|
|
bd7b3cd |
|
|
|
ec22511 |
* Fri Jul 20 2012 Maria Alandes <maria.alandes.pradillo@cern.ch> - 5.2.12-1
|
|
|
ec22511 |
- Fixed BDII_IPV6_SUPPORT after testing
|
|
|
ec22511 |
|
|
|
a49b501 |
* Wed Jul 18 2012 Maria Alandes <maria.alandes.pradillo@cern.ch> - 5.2.11-1
|
|
|
a49b501 |
- BUG 95122: Created SLAPD_DB_DIR directoy with correct ownership if it doesn't exist
|
|
|
a49b501 |
- BUG 95839: Added BDII_IPV6_SUPPORT
|
|
|
a49b501 |
|
|
|
966a65c |
* Thu Mar 08 2012 Laurence Field <laurence.field@cern.ch> - 5.2.10-1
|
|
|
04559df |
- New upsteam version that includes a new DB_CONFIG
|
|
|
04559df |
|
|
|
c4dadc2 |
* Wed Feb 08 2012 Laurence Field <laurence.field@cern.ch> - 5.2.9-1
|
|
|
ed2bfae |
- Fixed /var/run packaging issue
|
|
|
ed2bfae |
|
|
|
c4dadc2 |
* Wed Feb 08 2012 Laurence Field <laurence.field@cern.ch> - 5.2.8-1
|
|
|
892a924 |
- Fixed a base64 encoding issue and added /var/run/bdii to the package
|
|
|
892a924 |
|
|
|
966a65c |
* Tue Feb 07 2012 Laurence Field <laurence.field@cern.ch> - 5.2.7-1
|
|
|
94afddd |
- Performance improvements to reduce memory and disk usage
|
|
|
94afddd |
|
|
|
a36ab2f |
* Wed Jan 25 2012 Laurence Field <laurence.field@cern.ch> - 5.2.6-1
|
|
|
a36ab2f |
- New upstream version that includes fedora patches and fix for EGI RT 3235
|
|
|
a36ab2f |
|
|
|
4790a3d |
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.2.5-2
|
|
|
4790a3d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
4790a3d |
|
|
|
966a65c |
* Sun Sep 04 2011 Mattias Ellert <mattias.ellert@fysast.uu.se> - 5.2.5-1
|
|
|
81ac957 |
- New upstream version 5.2.5
|
|
|
81ac957 |
|
|
|
ab650ea |
* Tue Jul 26 2011 Mattias Ellert <mattias.ellert@fysast.uu.se> - 5.2.4-1
|
|
|
ab650ea |
- New upstream version 5.2.4
|
|
|
ab650ea |
- Drop patch accepted upstream: bdii-mdsvo.patch
|
|
|
ab650ea |
- Move large files away from /var/run in order not to fill up /run partition
|
|
|
ab650ea |
|
|
|
ad0a3dd |
* Mon Jun 27 2011 Mattias Ellert <mattias.ellert@fysast.uu.se> - 5.2.3-2
|
|
|
ad0a3dd |
- Revert upstream hack that breaks ARC infosys
|
|
|
ad0a3dd |
|
|
|
ef3606b |
* Mon Jun 13 2011 Mattias Ellert <mattias.ellert@fysast.uu.se> - 5.2.3-1
|
|
|
ef3606b |
- New upstream version 5.2.3
|
|
|
ef3606b |
- Drop patches accepted upstream: bdii-runuser.patch, bdii-context.patch,
|
|
|
ef3606b |
bdii-default.patch, bdii-shadowerr.patch, bdii-sysconfig.patch
|
|
|
ef3606b |
|
|
|
da386f3 |
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.13-2
|
|
|
da386f3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
da386f3 |
|
|
|
7f46ae5 |
* Sat Jan 01 2011 Mattias Ellert <mattias.ellert@fysast.uu.se> - 5.1.13-1
|
|
|
7f46ae5 |
- New upstream version 5.1.13
|
|
|
7f46ae5 |
- Move restorecon from post sctiptlet to startup script in order to support
|
|
|
7f46ae5 |
/var/run on tmpfs
|
|
|
7f46ae5 |
|
|
|
825ce56 |
* Thu Sep 23 2010 Mattias Ellert <mattias.ellert@fysast.uu.se> - 5.1.9-1
|
|
|
825ce56 |
- New upstream version 5.1.9
|
|
|
825ce56 |
|
|
|
bc691a7 |
* Thu Sep 02 2010 Mattias Ellert <mattias.ellert@fysast.uu.se> - 5.1.8-1
|
|
|
bc691a7 |
- New upstream version 5.1.8
|
|
|
bc691a7 |
|
|
|
f82d3e0 |
* Fri Jun 18 2010 Mattias Ellert <mattias.ellert@fysast.uu.se> - 5.1.7-1
|
|
|
f82d3e0 |
- New upstream version 5.1.7
|
|
|
f82d3e0 |
|
|
|
73823b1 |
* Sun May 23 2010 Mattias Ellert <mattias.ellert@fysast.uu.se> - 5.1.5-1
|
|
|
73823b1 |
- New upstream release 5.1.5
|
|
|
73823b1 |
- Get rid of lsb initscript dependency
|
|
|
73823b1 |
|
|
|
73823b1 |
* Mon Apr 05 2010 Mattias Ellert <mattias.ellert@fysast.uu.se> - 5.1.0-1
|
|
|
73823b1 |
- New upstream verison 5.1.0
|
|
|
73823b1 |
- Add SELinux context management to scriptlets
|
|
|
73823b1 |
|
|
|
73823b1 |
* Thu Mar 25 2010 Mattias Ellert <mattias.ellert@fysast.uu.se> - 5.0.8-4.460
|
|
|
73823b1 |
- Update (svn revision 460)
|
|
|
73823b1 |
- Use proper anonymous svn checkout instead of svnweb generated tarball
|
|
|
73823b1 |
|
|
|
825ce56 |
* Fri Feb 26 2010 Mattias Ellert <mattias.ellert@fysast.uu.se> - 5.0.8-3.443
|
|
|
73823b1 |
- Update (svn revision 443)
|
|
|
73823b1 |
|
|
|
73823b1 |
* Wed Feb 24 2010 Mattias Ellert <mattias.ellert@fysast.uu.se> - 5.0.8-2.436
|
|
|
73823b1 |
- Update (svn revision 436)
|
|
|
73823b1 |
|
|
|
73823b1 |
* Mon Feb 08 2010 Mattias Ellert <mattias.ellert@fysast.uu.se> - 5.0.8-1.375
|
|
|
73823b1 |
- Initial package (svn revision 375)
|