/[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.1 by brianr, Tue Oct 13 07:44:57 2020 UTC Revision 1.11 by jpp, Mon Aug 8 06:50:50 2022 UTC
# Line 1  Line 1 
 %define version 0.1.1  
 %define release 2  
 %define name smeserver-dovecot-extras  
   
   
1  Summary: Additional features for dovecot on SME Server  Summary: Additional features for dovecot on SME Server
2  Name: %{name}  Name: smeserver-dovecot-extras
3  Version: %{version}  Version: 0.1.6
4  Release: %{release}%{?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
9    Patch1: smeserver-dovecot-extras-0.1.6-Fix-sieve-compile.patch
10    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
15  BuildRequires: e-smith-devtools  BuildRequires: e-smith-devtools
16    BuildRequires: dovecot-pigeonhole
17    
18  Requires: smeserver-dovecot  Requires: smeserver-dovecot
19  Requires: dovecot-pigeonhole  Requires: dovecot-pigeonhole
# Line 23  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  * Wed Sep 02 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 0.1.1-2.sme  * Mon Aug 08 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.1.6-8.sme
27  - Initial release to contribs9  - fix db overwritten [SME: 12144]
28    
29    * 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]
31    
32    * Fri Jul 22 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.1.6-5.sme
33    - add to core backup [SME: 12006]
34    
35    * Mon May 31 2021 Jean-Philippe Pialasse <tests@pialasse.com> 0.1.6-4.sme
36    - move spamd entry to spamassassin [SME: 11551]
37    
38    * Wed Apr 07 2021 Brian Read <brianr@bjsystems.co.uk> 0.1.6-3.sme
39    - fix up sieve compile depending on whether bayes is in use [SME: 11531]
40    
41    * Tue Apr 06 2021 Brian Read <brianr@bjsystems.co.uk> 0.1.6-2.sme
42    - Add -update event to avoid reboot on install [SME: 11032]
43    
44    * Thu Nov 12 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1.6-1
45    - New build for Koozali SME v10
46    - exclude /us/bin dir
47    
48    * Tue Mar 27 2018 Daniel Berteaud <daniel@firewall-services.com> 0.1.5-1
49    - Don't set default ACL for authenticated users (daniel@firewall-services.com)
50    
51    * Sun Nov 19 2017 Daniel Berteaud <daniel@firewall-services.com> 0.1.4-1
52    - new package built with tito
53    
54    * Thu Jun 8 2017 Daniel Berteaud <daniel@firewall-services.com> - 0.1.3-1
55    - Add support for public mailboxes (patch from John H. Bennett III
56      <bennettj@thebennetthome.com>)
57    - Ignore moves from junkmail to Éléments supprimés
58    
59    * Mon Mar 6 2017 Daniel Berteaud <daniel@firewall-services.com> - 0.1.2-1
60    - Support spam learning by moving to/from junkmail or Junk
61    
62  * Mon Jun 23 2014 Daniel Berteaud <daniel@firewall-services.com> - 0.1.1-1  * Mon Jun 23 2014 Daniel Berteaud <daniel@firewall-services.com> - 0.1.1-1
63  - Add midding /home/e-smith/db/dovecot dir  - Add missing /home/e-smith/db/dovecot dir
64  - Remove submission_host for sieve  - Remove submission_host for sieve
65    
66  * Tue Oct 29 2013 Daniel Berteaud <daniel@firewall-services.com> - 0.0.2-1  * Tue Oct 29 2013 Daniel Berteaud <daniel@firewall-services.com> - 0.0.2-1
# Line 38  Add IMAP acl (sharedmailbox) and sieve c Line 71  Add IMAP acl (sharedmailbox) and sieve c
71    
72  %prep  %prep
73  %setup -q -n %{name}-%{version}  %setup -q -n %{name}-%{version}
74    %patch0 -p1
75    %patch1 -p1
76    %patch2 -p1
77    %patch3 -p1
78    
79  %build  %build
80  perl createlinks  perl createlinks
81  mkdir -p root/home/e-smith/db/dovecot  mkdir -p root/home/e-smith/db/dovecot
82    mkdir -p root/home/e-smith/files/public/{cur,new,tmp}
83    
84  %install  %install
85  /bin/rm -rf $RPM_BUILD_ROOT  /bin/rm -rf $RPM_BUILD_ROOT
# Line 49  mkdir -p root/home/e-smith/db/dovecot Line 87  mkdir -p root/home/e-smith/db/dovecot
87  /bin/rm -f %{name}-%{version}-filelist  /bin/rm -f %{name}-%{version}-filelist
88  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
89     --dir /home/e-smith/db/dovecot 'attr(2770,root,sharedmailbox)' \     --dir /home/e-smith/db/dovecot 'attr(2770,root,sharedmailbox)' \
90       --dir /home/e-smith/files/public 'attr(2770,root,sharedmailbox)' \
91       --dir /home/e-smith/files/public/cur 'attr(2770,root,sharedmailbox)' \
92       --dir /home/e-smith/files/public/new 'attr(2770,root,sharedmailbox)' \
93       --dir /home/e-smith/files/public/tmp 'attr(2770,root,sharedmailbox)' \
94     --file /home/e-smith/db/dovecot/sharedmailbox.db 'attr(0660,root,sharedmailbox) %config(noreplace)' \     --file /home/e-smith/db/dovecot/sharedmailbox.db 'attr(0660,root,sharedmailbox) %config(noreplace)' \
95     --file /usr/bin/imap-postlogin 'attr(0755,root,root)' \     --file /usr/bin/imap-postlogin 'attr(0755,root,root)' \
96       --file /usr/libexec/dovecot/learn-spam.sh 'attr(0755,root,root)' \
97       --file /usr/libexec/dovecot/learn-ham.sh 'attr(0755,root,root)' \
98       --ignoredir /usr/bin \
99    > %{name}-%{version}-filelist    > %{name}-%{version}-filelist
100    
101  %files -f %{name}-%{version}-filelist  %files -f %{name}-%{version}-filelist
# Line 63  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