summaryrefslogtreecommitdiff
path: root/imapd/kolab.patch
blob: cbcef6280e9ec5f04618de2dee1d14a29a90bc23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
--- ../imapd.orig/imapd.spec	2005-02-21 18:02:27.000000000 +0100
+++ imapd.spec	2005-04-21 00:51:04.705243928 +0200
@@ -3,6 +3,9 @@
 ##  Copyright (c) 2000-2005 The OpenPKG Project <http://www.openpkg.org/>
 ##  Copyright (c) 2000-2005 Ralf S. Engelschall <rse@engelschall.com>
 ##  Copyright (c) 2000-2005 Cable & Wireless <http://www.cw.com/>
+##  Copyright (c) 2004 Tassilo Erlewein <tassilo.erlewein@erfrakon.de>
+##  Copyright (c) 2004 Martin Konold <martin.konold@erfrakon.de>
+##  Copyright (c) 2005 Steffen Hansen <steffen@klaralvdalens-datakonsult.se>
 ##
 ##  Permission to use, copy, modify, and distribute this software for
 ##  any purpose with or without fee is hereby granted, provided that
@@ -34,13 +37,16 @@ Class:        BASE
 Group:        Mail
 License:      BSD
 Version:      2.2.12
-Release:      2.3.0
+Release:      2.3.0_kolab2
 
 #   package options
-%option       with_fsl    yes
-%option       with_group  no
-%option       with_atvdom no
-%option       with_drac   no
+%option       with_fsl      yes
+%option       with_group    no
+%option       with_atvdom   no
+%option       with_drac     no
+%option       with_annotate no
+%option       with_ldap     no
+%option       with_goodchars no
 
 #   list of sources
 Source0:      ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-imapd-%{version}.tar.gz
@@ -50,6 +56,10 @@ Source3:      imapd.conf
 Source4:      fsl.imapd
 Patch0:       imapd.patch
 Patch1:       imapd.patch.group
+Patch2:       imapd.annotate.patch
+Patch3:	      kolab-ldap.patch
+Patch4:	      imapd.group2.patch
+Patch5:       imapd-goodchars.patch
 
 #   build information
 Prefix:       %{l_prefix}
@@ -62,6 +72,10 @@ PreReq:       sasl, db >= 4.2.52, openss
 BuildPreReq:  fsl >= 1.2.0
 PreReq:       fsl >= 1.2.0
 %endif
+%if "%{with_ldap}" == "yes"
+BuildPreReq:  openldap >= 2.2.14
+PreReq:       openldap >= 2.2.14
+%endif
 AutoReq:      no
 AutoReqProv:  no
 
@@ -88,6 +102,7 @@ AutoReqProv:  no
     %{l_shtool} subst \
         -e 's;/etc/imapd\.group;%{l_prefix}/etc/imapd/imapd.group;' \
         lib/auth_unix.c
+    %patch -p0 -P 4
 %endif
 %if "%{with_drac}" == "yes"
     %{l_shtool} subst -e 's;@DRACLIBS@;-ldrac;g' contrib/drac_auth.patch
@@ -95,6 +110,16 @@ AutoReqProv:  no
     sleep 1
     touch configure
 %endif
+%if "%{with_annotate}" == "yes"
+    %patch -p0 -P 2
+%endif
+%if "%{with_ldap}" == "yes"
+    %patch -p0 -P 3
+%endif
+%if "%{with_goodchars}" == "yes"
+    %patch -p1 -P 5
+%endif
+
     %{l_shtool} subst \
         -e 's;-L/usr/local/lib;;g' \
         -e 's;-I/usr/local/include;;g' \