rpms/openldap/F-11 openldap.spec,1.142,1.143

Jan Zeleny jzeleny at fedoraproject.org
Tue Aug 25 09:46:32 UTC 2009


Author: jzeleny

Update of /cvs/extras/rpms/openldap/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv573

Modified Files:
	openldap.spec 
Log Message:
fix of spec file - group ldap created with correct gid (#517919)


Index: openldap.spec
===================================================================
RCS file: /cvs/extras/rpms/openldap/F-11/openldap.spec,v
retrieving revision 1.142
retrieving revision 1.143
diff -u -p -r1.142 -r1.143
--- openldap.spec	9 Jun 2009 11:50:54 -0000	1.142
+++ openldap.spec	25 Aug 2009 09:46:31 -0000	1.143
@@ -11,7 +11,7 @@
 Summary: LDAP support libraries
 Name: openldap
 Version: %{version}
-Release: 4%{?dist}
+Release: 5%{?dist}
 License: OpenLDAP
 Group: System Environment/Daemons
 Source0: ftp://ftp.OpenLDAP.org/pub/OpenLDAP/openldap-release/openldap-%{version}.tgz
@@ -82,7 +82,7 @@ customized LDAP clients.
 Summary: LDAP server
 # OpenLDAP server includes Berkeley DB library, which is licensed under Sleepycat and BSD licenses)
 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
 
 %description servers
@@ -405,7 +405,9 @@ rm -rf $RPM_BUILD_ROOT
 
 %pre servers
 # 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
     if [ -d /var/lib/ldap ] ; then
         for dbfile in /var/lib/ldap/* ; do
@@ -604,6 +606,9 @@ fi
 %attr(0644,root,root)      %{evolution_connector_libdir}/*.a
 
 %changelog
+* Tue Aug 25 2009 Jan Zeleny <jzeleny at redhat.com> 2.4.15-5
+- fix of spec file - group ldap created with correct gid
+
 * Tue Jun 09 2009 Jan Zeleny <jzeleny at redhat.com> 2.4.15-4
 - added $SLAPD_URLS variable to init script (#504504)
 




More information about the scm-commits mailing list