Updated spec file - correct installation of openldap group
This commit is contained in:
parent
a9ea3bd019
commit
8c235c0be7
@ -11,7 +11,7 @@
|
|||||||
Summary: LDAP support libraries
|
Summary: LDAP support libraries
|
||||||
Name: openldap
|
Name: openldap
|
||||||
Version: %{version}
|
Version: %{version}
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
License: OpenLDAP
|
License: OpenLDAP
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
Source0: ftp://ftp.OpenLDAP.org/pub/OpenLDAP/openldap-release/openldap-%{version}.tgz
|
Source0: ftp://ftp.OpenLDAP.org/pub/OpenLDAP/openldap-release/openldap-%{version}.tgz
|
||||||
@ -82,7 +82,7 @@ customized LDAP clients.
|
|||||||
Summary: LDAP server
|
Summary: LDAP server
|
||||||
# OpenLDAP server includes Berkeley DB library, which is licensed under Sleepycat and BSD licenses)
|
# OpenLDAP server includes Berkeley DB library, which is licensed under Sleepycat and BSD licenses)
|
||||||
License: OpenLDAP and (Sleepycat and BSD)
|
License: OpenLDAP and (Sleepycat and BSD)
|
||||||
Requires: fileutils, make, openldap = %{version}-%{release}, openssl, /usr/sbin/useradd, /sbin/chkconfig, /sbin/runuser
|
Requires: fileutils, make, openldap = %{version}-%{release}, openssl, /usr/sbin/useradd, /usr/sbin/groupadd, /sbin/chkconfig, /sbin/runuser
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
|
|
||||||
%description servers
|
%description servers
|
||||||
@ -405,7 +405,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
%pre servers
|
%pre servers
|
||||||
# Take care to only do ownership-changing if we're adding the user.
|
# Take care to only do ownership-changing if we're adding the user.
|
||||||
if /usr/sbin/useradd -c "LDAP User" -u 55 \
|
getent group ldap > /dev/null || \
|
||||||
|
/usr/sbin/groupadd -r -g 55 ldap
|
||||||
|
if /usr/sbin/useradd -c "LDAP User" -u 55 -g ldap \
|
||||||
-s /sbin/nologin -r -d /var/lib/ldap ldap 2> /dev/null ; then
|
-s /sbin/nologin -r -d /var/lib/ldap ldap 2> /dev/null ; then
|
||||||
if [ -d /var/lib/ldap ] ; then
|
if [ -d /var/lib/ldap ] ; then
|
||||||
for dbfile in /var/lib/ldap/* ; do
|
for dbfile in /var/lib/ldap/* ; do
|
||||||
@ -604,6 +606,9 @@ fi
|
|||||||
%attr(0644,root,root) %{evolution_connector_libdir}/*.a
|
%attr(0644,root,root) %{evolution_connector_libdir}/*.a
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Aug 25 2009 Jan Zeleny <jzeleny@redhat.com> 2.4.16-4
|
||||||
|
- updated %pre script to correctly install openldap group
|
||||||
|
|
||||||
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 2.4.16-3
|
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 2.4.16-3
|
||||||
- rebuilt with new openssl
|
- rebuilt with new openssl
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user