/[smecontribs]/rpms/smeserver-dovecot-extras/contribs10/smeserver-dovecot-extras.spec
ViewVC logotype

Diff of /rpms/smeserver-dovecot-extras/contribs10/smeserver-dovecot-extras.spec

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

Revision 1.9 by jpp, Tue Jul 26 02:21:12 2022 UTC Revision 1.11 by jpp, Mon Aug 8 06:50:50 2022 UTC
# Line 1  Line 1 
1  Summary: Additional features for dovecot on SME Server  Summary: Additional features for dovecot on SME Server
2  Name: smeserver-dovecot-extras  Name: smeserver-dovecot-extras
3  Version: 0.1.6  Version: 0.1.6
4  Release: 7%{?dist}  Release: 8%{?dist}
5  License: GPL  License: GPL
6  Group: Networking/Daemons  Group: Networking/Daemons
7  Source: %{name}-%{version}.tar.gz  Source: %{name}-%{version}.tar.gz
8  Patch0: smeserver-dovecot-extras-0.1.6-Add-update-event-to-createlinks.patch  Patch0: smeserver-dovecot-extras-0.1.6-Add-update-event-to-createlinks.patch
9  Patch1: smeserver-dovecot-extras-0.1.6-Fix-sieve-compile.patch  Patch1: smeserver-dovecot-extras-0.1.6-Fix-sieve-compile.patch
10  Patch2: smeserver-dovecot-extras-0.1.6-bz11551.patch  Patch2: smeserver-dovecot-extras-0.1.6-bz11551.patch
11    Patch3: smeserver-dovecot-extras-0.1.6-bz12144-movedb.patch
12    
13  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
14  BuildArchitectures: noarch  BuildArchitectures: noarch
# Line 22  Requires: acl Line 23  Requires: acl
23  Add IMAP acl (sharedmailbox) and sieve capabilities to the IMAP server  Add IMAP acl (sharedmailbox) and sieve capabilities to the IMAP server
24    
25  %changelog  %changelog
26    * Mon Aug 08 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.1.6-8.sme
27    - fix db overwritten [SME: 12144]
28    
29  * Mon Jul 25 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.1.6-7.sme  * Mon Jul 25 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.1.6-7.sme
30  - nothing to backup outside of core folders [SME: 12006]  - nothing to backup outside of core folders [SME: 12006]
31    
# Line 70  Add IMAP acl (sharedmailbox) and sieve c Line 74  Add IMAP acl (sharedmailbox) and sieve c
74  %patch0 -p1  %patch0 -p1
75  %patch1 -p1  %patch1 -p1
76  %patch2 -p1  %patch2 -p1
77    %patch3 -p1
78    
79  %build  %build
80  perl createlinks  perl createlinks
# Line 103  rm -rf $RPM_BUILD_ROOT Line 108  rm -rf $RPM_BUILD_ROOT
108  /usr/sbin/groupadd -g 439 sharedmailbox 2> /dev/null || :  /usr/sbin/groupadd -g 439 sharedmailbox 2> /dev/null || :
109    
110  %post  %post
111  # Migrate the sharedmailbox dict to its new location  if [ -s /home/e-smith/db/dovecot/sharedmailbox.db ] ; then  
112  if [ -e /etc/dovecot/sharedmailbox/dict.db ]; then      # echo "we already have a non empty file at destination"  ;
113      mv -f /etc/dovecot/sharedmailbox/dict.db /home/e-smith/db/dovecot/sharedmailbox.db      # delete etc file if empty
114        if [ -e /etc/dovecot/sharedmailbox/dict.db ] ; then
115           # if exists and not empty  we backup, else we delete
116           [ -s /etc/dovecot/sharedmailbox/dict.db ] && mv -f /etc/dovecot/sharedmailbox/dict.db /home/e-smith/db/dovecot/dictdb.old || rm -rf /etc/dovecot/sharedmailbox ;
117        fi
118    elif [ -e /etc/dovecot/sharedmailbox/dict.db ]; then  
119        # if exists and not empty
120        [ -s /home/e-smith/db/dovecot/sharedmailbox.db ] && mv -f /etc/dovecot/sharedmailbox/dict.db /home/e-smith/db/dovecot/sharedmailbox.db ;
121        # then we remove the etc dir ;
122      rm -rf /etc/dovecot/sharedmailbox      rm -rf /etc/dovecot/sharedmailbox
123  fi  fi
124    


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed