|
@@ -9,8 +9,8 @@
|
|
|
Summary: The configuration files, libraries and documentation for OpenLDAP.
|
|
|
Summary(ja): OpenLDAP の設定ファイル,ライブラリ,ドキュメント.
|
|
|
Name: openldap
|
|
|
-Version: 2.4.57
|
|
|
-Release: 2%{?_dist_release}%{?with_systemd:.systemd}
|
|
|
+Version: 2.4.58
|
|
|
+Release: 1%{?_dist_release}%{?with_systemd:.systemd}
|
|
|
Group: system
|
|
|
Vendor: Project Vine
|
|
|
Distribution: Vine Linux
|
|
@@ -52,7 +52,6 @@ Patch91: check-password.patch
|
|
|
# Vine Patches
|
|
|
|
|
|
# security fixes
|
|
|
-Patch2000: CVE-2021-27212.patch
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
BuildRequires: autoconf, automake, libtool >= 2.2.6a
|
|
@@ -230,7 +229,6 @@ autoreconf -fiv ||:
|
|
|
%patch24 -p1
|
|
|
|
|
|
# security
|
|
|
-%patch2000 -p1
|
|
|
|
|
|
# build smbk5pwd with other overlays
|
|
|
ln -s ../../../contrib/slapd-modules/smbk5pwd/smbk5pwd.c servers/slapd/overlays
|
|
@@ -419,17 +417,7 @@ rmdir %{buildroot}%{_localstatedir}/openldap-data
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
-%post
|
|
|
-/sbin/ldconfig
|
|
|
-
|
|
|
-%postun
|
|
|
-#update only on package erase
|
|
|
-if [ $1 == 0 ]; then
|
|
|
- /sbin/ldconfig
|
|
|
-fi
|
|
|
-
|
|
|
%pre servers
|
|
|
-
|
|
|
# create ldap user and group
|
|
|
getent group ldap &>/dev/null || groupadd -r -g 55 ldap
|
|
|
getent passwd ldap &>/dev/null || \
|
|
@@ -449,7 +437,6 @@ fi
|
|
|
exit 0
|
|
|
|
|
|
%post servers
|
|
|
-/sbin/ldconfig -n %{_libdir}/openldap
|
|
|
%if %{with systemd}
|
|
|
%systemd_post slapd.service
|
|
|
%endif
|
|
@@ -523,7 +510,6 @@ fi
|
|
|
%endif
|
|
|
|
|
|
%postun servers
|
|
|
-/sbin/ldconfig ${_libdir}/openldap
|
|
|
%if %{with systemd}
|
|
|
%systemd_postun_with_restart slapd.service
|
|
|
%else
|
|
@@ -532,11 +518,7 @@ if [ $1 -ge 1 ] ; then
|
|
|
fi
|
|
|
%endif
|
|
|
|
|
|
-%post devel -p /sbin/ldconfig
|
|
|
-%postun devel -p /sbin/ldconfig
|
|
|
-
|
|
|
%triggerin servers -- libdb
|
|
|
-
|
|
|
# libdb upgrade (setup for %%triggerun)
|
|
|
if [ $2 -eq 2 ]; then
|
|
|
# we are interested in minor version changes (both versions of libdb are installed at this moment)
|
|
@@ -546,13 +528,26 @@ if [ $2 -eq 2 ]; then
|
|
|
rm -f %{_sharedstatedir}/ldap/rpm_upgrade_libdb
|
|
|
fi
|
|
|
fi
|
|
|
-
|
|
|
exit 0
|
|
|
|
|
|
-
|
|
|
%triggerun servers -- libdb
|
|
|
-
|
|
|
# libdb upgrade (finish %%triggerin)
|
|
|
+%if %{with systemd}
|
|
|
+if [ -f %{_sharedstatedir}/ldap/rpm_upgrade_libdb ]; then
|
|
|
+
|
|
|
+ if /bin/systemctl --quiet is-active slapd.service; then
|
|
|
+ /bin/systemctl stop slapd.service
|
|
|
+ start=1
|
|
|
+ else
|
|
|
+ start=0
|
|
|
+ fi
|
|
|
+
|
|
|
+ %{_libexecdir}/openldap/upgrade-db.sh &>/dev/null
|
|
|
+ rm -f %{_sharedstatedir}/ldap/rpm_upgrade_libdb
|
|
|
+
|
|
|
+ [ $start -eq 1 ] && /bin/systemctl start slapd.service &>/dev/null
|
|
|
+fi
|
|
|
+%else
|
|
|
running=`/sbin/service ldap status >/dev/null; echo $?`
|
|
|
|
|
|
if [ -f %{_sharedstatedir}/ldap/rpm_upgrade_libdb ]; then
|
|
@@ -568,7 +563,7 @@ if [ -f %{_sharedstatedir}/ldap/rpm_upgrade_libdb ]; then
|
|
|
|
|
|
[ $start -eq 1 ] && /sbin/service ldap condrestart > /dev/null 2>&1 || :
|
|
|
fi
|
|
|
-
|
|
|
+%endif
|
|
|
exit 0
|
|
|
|
|
|
%files
|
|
@@ -690,6 +685,11 @@ exit 0
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
+* Thu Jun 03 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.4.58-1
|
|
|
+- new upstream release.
|
|
|
+- dropped ldconfig scriptlets.
|
|
|
+- dropped Patch2000: fixed in upstream.
|
|
|
+
|
|
|
* Thu Mar 04 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.4.57-2
|
|
|
- imported Patch2000 from rawhide to fix CVE-2021-27212.
|
|
|
|