summaryrefslogtreecommitdiff
path: root/imapd/kolab.patch
blob: fc847733d249a5b31712810877aebf66f57fc4ef (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
--- imapd.spec.org	2004-07-15 16:30:49.333617635 +0200
+++ imapd.spec	2004-07-15 16:30:10.962323130 +0200
@@ -3,6 +3,8 @@
 ##  Copyright (c) 2000-2004 The OpenPKG Project <http://www.openpkg.org/>
 ##  Copyright (c) 2000-2004 Ralf S. Engelschall <rse@engelschall.com>
 ##  Copyright (c) 2000-2004 Cable & Wireless <http://www.cw.com/>
+##  Copyright (c) 2004 Tassilo Erlewein <tassilo.erlewein@erfrakon.de>
+##  Copyright (c) 2004 Martin Konold <martin.konold@erfrakon.de>
 ##
 ##  Permission to use, copy, modify, and distribute this software for
 ##  any purpose with or without fee is hereby granted, provided that
@@ -34,13 +36,15 @@
 Group:        Mail
 License:      BSD
 Version:      2.2.6
-Release:      2.1.0
+Release:      2.1.0_kolab
 
 #   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
 
 #   list of sources
 Source0:      ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-imapd-%{version}.tar.gz
@@ -50,6 +54,8 @@
 Source4:      fsl.imapd
 Patch0:       imapd.patch
 Patch1:       imapd.patch.group
+Patch2:       imapd.annotate.patch
+Patch3:	      kolab-ldap.patch
 
 #   build information
 Prefix:       %{l_prefix}
@@ -62,6 +68,10 @@
 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
 
@@ -95,6 +105,13 @@
     sleep 1
     touch configure
 %endif
+%if "%{with_annotate}" == "yes"
+    %patch -p0 -P 2
+%endif
+%if "%{with_ldap}" == "yes"
+    %patch -p0 -P 3
+%endif
+
     %{l_shtool} subst \
         -e 's;-L/usr/local/lib;;g' \
         -e 's;-I/usr/local/include;;g' \