From 8c235c0be70bccc47798fd306418cb8e0a2e4c13 Mon Sep 17 00:00:00 2001 From: Jan Zeleny Date: Aug 25 2009 08:58:12 +0000 Subject: Updated spec file - correct installation of openldap group --- diff --git a/openldap.spec b/openldap.spec index 6eff935..ece0a27 100644 --- a/openldap.spec +++ b/openldap.spec @@ -11,7 +11,7 @@ Summary: LDAP support libraries Name: openldap Version: %{version} -Release: 3%{?dist} +Release: 4%{?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 2.4.16-4 +- updated %pre script to correctly install openldap group + * Fri Aug 21 2009 Tomas Mraz - 2.4.16-3 - rebuilt with new openssl