/[packages]/updates/3/pykolab/current/SPECS/pykolab.spec
ViewVC logotype

Diff of /updates/3/pykolab/current/SPECS/pykolab.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 615331 by spuhler, Thu Dec 19 23:37:56 2013 UTC revision 615332 by spuhler, Wed Apr 16 22:52:45 2014 UTC
# Line 1  Line 1 
1  %{!?python_sitelib: %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}  %{!?python_sitelib: %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
2    
3  %global kolab_user kolab  %define kolab_user kolab
4  %global kolab_user_id 412  %define kolabn_user kolab-n
5  %global kolab_group kolab  %define kolabr_user kolab-r
 %global kolab_group_id 412  
   
 %global kolabn_user kolab-n  
 %global kolabn_user_id 413  
 %global kolabn_group kolab-n  
 %global kolabn_group_id 413  
   
 %global kolabr_user kolab-r  
 %global kolabr_user_id 414  
 %global kolabr_group kolab-r  
 %global kolabr_group_id 414  
6    
7  Summary:            Kolab Groupware Solution  Summary:            Kolab Groupware Solution
8  Name:               pykolab  Name:               pykolab
9  Version:            0.5.14  Version:            0.5.14
10  %define subrel 1  %define subrel 2
11  Release:            %mkrel 1  Release:            %mkrel 1
12  License:            GPLv3+  License:            GPLv3+
13  Group:              System/Servers  Group:              System/Servers
# Line 195  mkdir -p %{buildroot}/%{_sysconfdir}/sys Line 184  mkdir -p %{buildroot}/%{_sysconfdir}/sys
184    
185  %pre  %pre
186  # Add the kolab user and group accounts  # Add the kolab user and group accounts
187  getent group %{kolab_group} &>/dev/null || groupadd -r %{kolab_group} -g %{kolab_group_id} &>/dev/null  %_pre_useradd %{kolab_user} %{_localstatedir}/lib/%{kolab_user} /sbin/nologin
188  getent passwd %{kolab_user} &>/dev/null || \  %_pre_useradd %{kolabn_user} %{_localstatedir}/lib/%{kolabn_user} /sbin/nologin
189      useradd -r -u %{kolab_user_id} -g %{kolab_group} -d %{_localstatedir}/lib/%{kolab_user} -s /sbin/nologin \  %_pre_useradd %{kolabr_user} %{_localstatedir}/lib/%{kolabr_user} /sbin/nologin
190          -c "Kolab System Account" %{kolab_user} &>/dev/null || :  
191    %postun
192  gpasswd -a apache kolab >/dev/null 2>&1 || :  %_postun_userdel %{kolab_user}
193    %_postun_userdel %{kolabn_user}
194  getent group %{kolabn_group} &>/dev/null || groupadd -r %{kolabn_group} -g %{kolabn_group_id} &>/dev/null  %_postun_userdel %{kolabr_user}
 getent passwd %{kolabn_user} &>/dev/null || \  
     useradd -r -u %{kolabn_user_id} -g %{kolabn_group} -d %{_localstatedir}/lib/%{kolabn_user} -s /sbin/nologin \  
         -c "Kolab System Account (N)" %{kolabn_user} &>/dev/null || :  
     gpasswd -a %{kolabn_user} %{kolab_group} &>/dev/null || :  
   
 getent group %{kolabr_group} &>/dev/null || groupadd -r %{kolabr_group} -g %{kolabr_group_id} &>/dev/null  
 getent passwd %{kolabr_user} &>/dev/null || \  
     useradd -r -u %{kolabr_user_id} -g %{kolabr_group} -d %{_localstatedir}/lib/%{kolabr_user} -s /sbin/nologin \  
         -c "Kolab System Account (R)" %{kolabr_user} &>/dev/null || :  
   
 # Make sure the kolab user and group is added  
 getent passwd %{cyrus_admin} &>/dev/null || \  
     useradd -r -d %{_localstatedir}/lib/%{cyrus_admin} -s /sbin/nologin \  
         -c "Kolab Cyrus Administrator Account" %{cyrus_admin} &>/dev/null || :  
   
 # Make sure our user has the correct home directory  
 if [ $1 -gt 1 ] ; then  
     usermod -d %{_localstatedir}/lib/%{kolab_user} %{kolab_user} &>/dev/null || :  
     usermod -d %{_localstatedir}/lib/%{kolab_user} %{kolabn_user} &>/dev/null || :  
     usermod -d %{_localstatedir}/lib/%{kolab_user} %{kolabr_user} &>/dev/null || :  
 fi  
195    
196  %post -n kolab-saslauthd  %post -n kolab-saslauthd
197  %_tmpfilescreate kolab-saslauthd  %_tmpfilescreate kolab-saslauthd
# Line 328  fi Line 296  fi
296  %{_sysconfdir}/sysconfig/wallace  %{_sysconfdir}/sysconfig/wallace
297  %{_sbindir}/wallaced  %{_sbindir}/wallaced
298  %{python_sitelib}/wallace  %{python_sitelib}/wallace
299  %attr(0700,%{kolab_user},%{kolab_group}) %dir %{_var}/spool/pykolab  %attr(0700,%{kolab_user},%{kolab_user}) %dir %{_var}/spool/pykolab
300  %attr(0700,%{kolab_user},%{kolab_group}) %dir %{_var}/spool/pykolab/wallace  %attr(0700,%{kolab_user},%{kolab_user}) %dir %{_var}/spool/pykolab/wallace
301  %{_tmpfilesdir}/wallace.conf  %{_tmpfilesdir}/wallace.conf

Legend:
Removed from v.615331  
changed lines
  Added in v.615332

  ViewVC Help
Powered by ViewVC 1.1.28