19 |
%{?_without_autosieve: %define build_autosieve 0} |
%{?_without_autosieve: %define build_autosieve 0} |
20 |
|
|
21 |
# remove quota files extension: |
# remove quota files extension: |
22 |
%define build_rmquota 1 |
%define build_rmquota 0 |
23 |
%{?_without_rmquota: %define build_rmquota 0} |
%{?_with_rmquota: %define build_rmquota 1} |
24 |
|
|
25 |
# snmp support |
# snmp support |
26 |
%global with_snmp 1 |
%global with_snmp 1 |
72 |
Patch1: cyrus-imapd-mdk9.0perl-patch |
Patch1: cyrus-imapd-mdk9.0perl-patch |
73 |
# cyrus-master instead of master in syslog |
# cyrus-master instead of master in syslog |
74 |
Patch2: cyrus-imapd-logident.patch |
Patch2: cyrus-imapd-logident.patch |
75 |
|
# (cg) Updated auto* patches for 2.4.x found via: |
76 |
|
# https://blog.vx.sk/archives/13-Autocreate-and-autosieve-patches-for-Cyrus-IMAP-Server-24.html |
77 |
|
# available here; http://www.vx.sk/download/patches/cyrus-imapd/ |
78 |
# Autocreate INBOX patch (http://email.uoa.gr/projects/cyrus/autocreate/) |
# Autocreate INBOX patch (http://email.uoa.gr/projects/cyrus/autocreate/) |
79 |
Patch3: http://email.uoa.gr/download/cyrus/cyrus-imapd-2.3.16/cyrus-imapd-2.3.16-autocreate-0.10-0.diff |
Patch3: http://www.vx.sk/download/patches/cyrus-imapd/cyrus-imapd-2.4.4-autocreate-0.10-0.patch |
80 |
# Create on demand folder requested by sieve filter (http://email.uoa.gr/projects/cyrus/autosievefolder/) |
# Create on demand folder requested by sieve filter (http://email.uoa.gr/projects/cyrus/autosievefolder/) |
81 |
Patch4: http://email.uoa.gr/download/cyrus/cyrus-imapd-2.3.16/cyrus-imapd-2.3.16-autosieve-0.6.0.diff |
Patch4: http://www.vx.sk/download/patches/cyrus-imapd/cyrus-imapd-2.4.12-autosieve-0.6.0.patch |
82 |
# Remove QUOTA patch (http://email.uoa.gr/projects/cyrus/quota-patches/rmquota/) |
# Remove QUOTA patch (http://email.uoa.gr/projects/cyrus/quota-patches/rmquota/) |
83 |
Patch5: http://email.uoa.gr/download/cyrus/cyrus-imapd-2.3.9/cyrus-imapd-2.3.9-rmquota-0.5-0.diff |
Patch5: http://email.uoa.gr/download/cyrus/cyrus-imapd-2.3.9/cyrus-imapd-2.3.9-rmquota-0.5-0.diff |
84 |
# command line switch to disallow plaintext login |
# command line switch to disallow plaintext login |
85 |
Patch6: cyrus-imapd-plaintext.diff |
Patch6: cyrus-imapd-2.4.17-plaintext-cmd-line.patch |
|
# 64-bit fixes |
|
|
Patch7: cyrus-imapd-2.2.8-64bit-fixes.patch |
|
86 |
# (oe) for kolab2: Patch to support virtdomains: ldap (parse domain from "email" field an LDAP user entry) |
# (oe) for kolab2: Patch to support virtdomains: ldap (parse domain from "email" field an LDAP user entry) |
87 |
Patch8: cyrus-imapd-kolab-ldap.diff |
Patch8: cyrus-imapd-kolab-ldap.diff |
|
# (oe) for kolab2: Allow for custom annotation |
|
|
Patch9: cyrus-imapd-cyradm_annotate.diff |
|
88 |
# (bluca) add ptloader to cyrus.conf |
# (bluca) add ptloader to cyrus.conf |
89 |
Patch10: cyrus-imapd-ptloader-conf.diff |
Patch10: cyrus-imapd-ptloader-conf.diff |
90 |
# (bluca) fix LDAP_OPT_X_SASL_SECPROPS error in ptloader |
# (bluca) fix LDAP_OPT_X_SASL_SECPROPS error in ptloader |
91 |
Patch11: cyrus-imapd-ptloader-secprops.diff |
Patch11: cyrus-imapd-ptloader-secprops.diff |
|
# http://wiki.mandriva.com/en/Development/Packaging/Problems#format_not_a_string_literal_and_no_format_arguments |
|
|
Patch12: cyrus-imapd-2.3.14-format_not_a_string_literal_and_no_format_arguments.diff |
|
92 |
# remove verbosity of some syslog messages (simon matter) |
# remove verbosity of some syslog messages (simon matter) |
93 |
Patch13: cyrus-imapd-2.1.16-getrlimit.patch |
Patch13: cyrus-imapd-2.1.16-getrlimit.patch |
94 |
Patch14: cyrus-imapd-2.3.12-skiplist_verbosity.patch |
Patch14: cyrus-imapd-2.3.12-skiplist_verbosity.patch |
|
Patch15: cyrus-imapd-2.3.12-statuscache_verbosity.patch |
|
|
Patch16: cyrus-imapd-2.3.16-user_deny_verbosity.patch |
|
95 |
# Other patches from simon matter |
# Other patches from simon matter |
96 |
Patch17: cyrus-imapd-2.3.7-mancyrusdb.patch |
Patch17: cyrus-imapd-2.3.7-mancyrusdb.patch |
97 |
Patch18: cyrus-imapd-2.3.13-make_md5_sha1_dirs.patch |
Patch18: cyrus-imapd-2.3.13-make_md5_sha1_dirs.patch |
98 |
Patch19: cyrus-imapd-2.3.11-mkimap.patch |
Patch19: cyrus-imapd-2.3.11-mkimap.patch |
|
Patch20: cyrus-imapd-2.3.16-sync_client_tls_capability_response.patch |
|
99 |
Patch21: cyrus-imapd-2.3.16-sieve_port.patch |
Patch21: cyrus-imapd-2.3.16-sieve_port.patch |
|
# make it build with perl 5.14 |
|
|
Patch22: cyrus-imapd-2.3.16-perl514.patch |
|
100 |
|
|
101 |
# with previous versions of sasl, imap LOGIN would fail |
# with previous versions of sasl, imap LOGIN would fail |
102 |
Requires: %{mklibname sasl 2} >= 2.1.15 |
Requires: %{mklibname sasl 2} >= 2.1.15 |
238 |
%setup -q -n %{name}-%{version} |
%setup -q -n %{name}-%{version} |
239 |
%patch1 -b .mdk9.0perl.orig |
%patch1 -b .mdk9.0perl.orig |
240 |
%patch2 |
%patch2 |
241 |
# %if %{build_autocreate} |
%if %{build_autocreate} |
242 |
# %patch3 -p1 -b .autocreate.orig |
%patch3 -p1 -b .autocreate.orig |
243 |
# %endif |
%endif |
244 |
#%if %{build_autosieve} |
%if %{build_autosieve} |
245 |
# # %patch4 -p1 -b .autosieve.orig |
%patch4 -p1 -b .autosieve.orig |
246 |
# %endif |
%endif |
247 |
# %if %{build_rmquota} |
%if %{build_rmquota} |
248 |
# %patch5 -p1 -b .rmquota.orig |
%patch5 -p1 -b .rmquota.orig |
249 |
# %endif |
%endif |
250 |
|
|
251 |
# %patch6 -p1 -b .plaintext.orig |
%patch6 -p1 -F 4 -b .plaintext.orig |
|
# %patch7 -p1 -b .64bit-fixes.orig |
|
252 |
|
|
253 |
# (oe) for kolab2: Patch to support virtdomains: ldap (parse domain from "email" field an LDAP user entry) |
# (oe) for kolab2: Patch to support virtdomains: ldap (parse domain from "email" field an LDAP user entry) |
254 |
%if %{build_virtualdomains_in_ldap} |
%if %{build_virtualdomains_in_ldap} |
255 |
%patch8 -p1 -b .kolab-ldap.orig |
%patch8 -p1 -b .kolab-ldap.orig |
256 |
%endif |
%endif |
257 |
# (oe) for kolab2: Allow for custom annotation |
%if %{with_ldap} |
258 |
# %patch9 -p1 -b .annotate.orig |
%patch10 -p1 -b .ptloader.orig |
259 |
# %if %{with_ldap} |
%endif |
|
# %patch10 -p1 -b .ptloader.orig |
|
|
# %endif |
|
260 |
%patch11 -p1 -b .secprops.orig |
%patch11 -p1 -b .secprops.orig |
|
# %patch12 -p1 -b .format_not_a_string_literal_and_no_format_arguments.orig |
|
261 |
|
|
262 |
%patch13 -p1 -b .getrlimit.orig |
%patch13 -p1 -b .getrlimit.orig |
263 |
%patch14 -p1 -b .skiplist_verbosity.orig |
%patch14 -p1 -b .skiplist_verbosity.orig |
|
# %patch15 -p1 -b .statuscache_verbosity.orig |
|
|
# %patch16 -p1 -b .user_deny_verbosity.orig |
|
264 |
|
|
265 |
# %patch17 -p1 -b .mancyrusdb.orig |
# (cg) No loner applies (needs rediffing) |
266 |
# %patch18 -p1 -b .make_md5_sha1_dirs.orig |
#patch17 -p1 -b .mancyrusdb.orig |
267 |
|
# (cg) Seems to be refactored upstream - no longer needed? |
268 |
|
#patch18 -p1 -b .make_md5_sha1_dirs.orig |
269 |
%patch19 -p1 -b .mkimap.orig |
%patch19 -p1 -b .mkimap.orig |
|
# %patch20 -p1 -b .sync_client_tls_capability_response.orig |
|
270 |
%patch21 -p1 -b .sieve_port.orig |
%patch21 -p1 -b .sieve_port.orig |
|
# %patch22 -p1 -b .perl514 |
|
271 |
|
|
272 |
## Extra documentation |
## Extra documentation |
273 |
mkdir -p extradocs |
mkdir -p extradocs |