provide an unversioned symlink to check_password.so.1.1
So the users don't have to specify the exact version in their configuration.
This commit is contained in:
parent
4840f8de8e
commit
0625d0e501
@ -265,7 +265,9 @@ popd
|
||||
|
||||
# install check_password module
|
||||
pushd ltb-project-openldap-ppolicy-check-password-%{check_password_version}
|
||||
install -m 755 check_password.so %{buildroot}%{_libdir}/openldap/
|
||||
mv check_password.so check_password.so.%{check_password_version}
|
||||
ln -s check_password.so.%{check_password_version} %{buildroot}%{_libdir}/openldap/check_password.so
|
||||
install -m 755 check_password.so.%{check_password_version} %{buildroot}%{_libdir}/openldap/
|
||||
# install -m 644 README %{buildroot}%{_libdir}/openldap
|
||||
install -d -m 755 %{buildroot}%{_sysconfdir}/openldap
|
||||
cat > %{buildroot}%{_sysconfdir}/openldap/check_password.conf <<EOF
|
||||
@ -278,11 +280,8 @@ cat > %{buildroot}%{_sysconfdir}/openldap/check_password.conf <<EOF
|
||||
#minDigit 0
|
||||
#minPunct 0
|
||||
EOF
|
||||
sed -i -e 's/check_password\.so/check_password.so.%{check_password_version}/' README
|
||||
mv README{,.check_pwd}
|
||||
popd
|
||||
# rename the library
|
||||
mv %{buildroot}%{_libdir}/openldap/check_password.so{,.%{check_password_version}}
|
||||
|
||||
# setup directories for TLS certificates
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/openldap/certs
|
||||
@ -361,7 +360,9 @@ chmod 0644 %{buildroot}%{_datadir}/openldap-servers/DB_CONFIG.example
|
||||
|
||||
# remove files which we don't want packaged
|
||||
rm -f %{buildroot}%{_libdir}/*.la
|
||||
mv %{buildroot}%{_libdir}/openldap/check_password.so{,.tmp}
|
||||
rm -f %{buildroot}%{_libdir}/openldap/*.so
|
||||
mv %{buildroot}%{_libdir}/openldap/check_password.so{.tmp,}
|
||||
|
||||
rm -f %{buildroot}%{_localstatedir}/openldap-data/DB_CONFIG.example
|
||||
rmdir %{buildroot}%{_localstatedir}/openldap-data
|
||||
@ -588,6 +589,7 @@ exit 0
|
||||
* Wed Dec 17 2014 Jan Synáček <jsynacek@redhat.com> - 2.4.40-5
|
||||
- harden the build
|
||||
- improve check_password
|
||||
- provide an unversioned symlink to check_password.so.1.1
|
||||
|
||||
* Tue Dec 16 2014 Jan Synáček <jsynacek@redhat.com> - 2.4.40-4
|
||||
- remove openldap.pc
|
||||
|
Loading…
Reference in New Issue
Block a user