1 |
%define version 1.4.0 |
%define version 1.4.0 |
2 |
%define release 1 |
%define release 2 |
3 |
%define name smeserver-dovecot |
%define name smeserver-dovecot |
4 |
|
|
5 |
|
|
10 |
License: GPL |
License: GPL |
11 |
Group: Networking/Daemons |
Group: Networking/Daemons |
12 |
Source: %{name}-%{version}.tar.xz |
Source: %{name}-%{version}.tar.xz |
13 |
|
Patch1: smeserver-dovecot-1.4.0-remove_acl_and_sieve.patch |
14 |
|
Patch2: smeserver-dovecot-1.4.0-remove_obsolete_changelog.patch |
15 |
|
|
16 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
17 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
30 |
quota, ACL, extended logging, master user |
quota, ACL, extended logging, master user |
31 |
|
|
32 |
%changelog |
%changelog |
33 |
|
* Thu Feb 28 2013 Daniel Berteaud <daniel@firewall-services.com> - 1.4.0-2.sme |
34 |
|
- remove the IMAP acl and Sieve support |
35 |
|
- remove obsolete changelog (used in my previous buildsys) |
36 |
|
|
37 |
* Tue Feb 26 2013 Daniel Berteaud <daniel@firewall-services.com> - 0.1.1-1 |
* Tue Feb 26 2013 Daniel Berteaud <daniel@firewall-services.com> - 0.1.1-1 |
38 |
- store sharedmailbox dict file in /home/e-smith/db/dovecot |
- store sharedmailbox dict file in /home/e-smith/db/dovecot |
39 |
|
|
45 |
|
|
46 |
%prep |
%prep |
47 |
%setup -q -n %{name}-%{version} |
%setup -q -n %{name}-%{version} |
48 |
|
%patch1 -p1 |
49 |
|
%patch2 -p1 |
50 |
|
|
51 |
%build |
%build |
52 |
perl createlinks |
perl createlinks |
60 |
--file /var/service/dovecot/log/run 'attr(0755,root,root)' \ |
--file /var/service/dovecot/log/run 'attr(0755,root,root)' \ |
61 |
--file /var/service/dovecot/control/1 'attr(0755,root,root)' \ |
--file /var/service/dovecot/control/1 'attr(0755,root,root)' \ |
62 |
--dir /var/log/dovecot 'attr(0750,smelog,smelog)' \ |
--dir /var/log/dovecot 'attr(0750,smelog,smelog)' \ |
|
--dir /home/e-smith/db/dovecot 'attr(2770,root,sharedmailbox)' \ |
|
|
--file /home/e-smith/db/dovecot/sharedmailbox.db 'attr(0660,root,sharedmailbox) %config(noreplace)' \ |
|
|
--file /usr/bin/imap-postlogin 'attr(0755,root,root)' \ |
|
63 |
> %{name}-%{version}-filelist |
> %{name}-%{version}-filelist |
64 |
|
|
65 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |
69 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
70 |
|
|
71 |
%pre |
%pre |
|
/usr/sbin/groupadd -g 439 sharedmailbox 2> /dev/null || : |
|
72 |
|
|
73 |
%post |
%post |
74 |
|
|