aboutsummaryrefslogtreecommitdiffstats
path: root/testing/prayer/buildfix.patch
blob: 66d525873a56179e81c825d6b1868dd97ac9fa0d (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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
diff --git a/Config b/Config
index 54044b7..48da020 100644
--- a/Config
+++ b/Config
@@ -10,7 +10,7 @@
 SSL_ENABLE           = true   # SSL requires OpenSSL
 SESSION_CACHE_ENABLE = true   # SSL session cache Requires Berkeley DB 3 or 4
 GZIP_ENABLE          = true   # Enable on the fly compression of pages
-LDAP_ENABLE          = true   # Add LDAP interface
+LDAP_ENABLE          = false  # Add LDAP interface
 FENCE_ENABLE         = false  # Use Electric Fence to catch malloc problems
 MUTEX_SEMAPHORE      = false  # Use SYSV mutexes rather than file locking
 TIDY_ENABLE          = true   # Use libtidy for HTML sanitisation.
@@ -30,7 +30,7 @@ ACCOUNTD_PAM_ENABLE  = true   # Enable PAM support in account management daemon
 # Location of compiler
 CC           = gcc
 # Location of make program (GNU make required)
-MAKE         = gmake
+MAKE         = make
 # Location of install program (GNU install or compatible required)
 INSTALL      = install
 
@@ -72,21 +72,21 @@ BASE_LIBS    = -lcrypt -lutil
 # which points to ../../imap/c-client. This just reduces the amount of
 # noise output on each line when building the package.
 #
-CCLIENT_DIR=../c-client
-CCLIENT_INCLUDE=-I $(CCLIENT_DIR)
-CCLIENT_LIBS=./$(CCLIENT_DIR)/c-client.a
+#CCLIENT_DIR=../c-client
+#CCLIENT_INCLUDE=-I $(CCLIENT_DIR)
+#CCLIENT_LIBS=./$(CCLIENT_DIR)/c-client.a
 
 #
 # Following works with imap-devel RPM package from Redhat 7.
 #
-#CCLIENT_INCLUDE = -I/usr/include/imap
-#CCLIENT_LIBS    = -lc-client
+CCLIENT_INCLUDE = -I/usr/include/imap
+CCLIENT_LIBS    = -lc-client
 #
 # Complication:
 #   The Redhat RPM package links against SSL, PAM and kerberos libraries.
 #
-#CCLIENT_SSL_ENABLE  = true
-#CCLIENT_PAM_ENABLE  = true
+CCLIENT_SSL_ENABLE  = true
+CCLIENT_PAM_ENABLE  = true
 #CCLIENT_KERB_ENABLE = true
 
 #
@@ -162,20 +162,19 @@ DB_LIBS=-ldb
 # RW_GROUP. It is important that nothing else can read the certificate file.
 
 # Build root (used by Redhat RPM system)
-BROOT=
+#BROOT=
 
 # Directory, User and group for read-write files: log files, sockets etc
 VAR_PREFIX = /var/spool/prayer
-RW_USER    = prayer
-RW_GROUP   = prayer
+RW_USER    = root
+RW_GROUP   = root
 
 # Root Directory, User and group for read-only configuration files.
 # Default configuration and permissions does not allow prayer user to
 # update prayer configuration file.
 
-PREFIX    = /usr/local/prayer
 RO_USER   = root
-RO_GROUP  = prayer
+RO_GROUP  = root
 
 # Access permissions for general objects (wrt above users and groups)
 PUBLIC_EXEC  = 0755
@@ -188,6 +187,6 @@ PRIVATE_DIR  = 0750
 PRIVATE_FILE = 0640
 
 # Location of configuration files and binaries
-PRAYER_CONFIG_FILE   = ${PREFIX}/etc/prayer.cf
-BIN_DIR              = ${PREFIX}/sbin
-ACCOUNTD_CONFIG_FILE = ${PREFIX}/etc/prayer-accountd.cf
+PRAYER_CONFIG_FILE   = /etc/prayer.cf
+BIN_DIR              = /usr/sbin
+ACCOUNTD_CONFIG_FILE = /etc/prayer-accountd.cf
diff --git a/session/mm.c b/session/mm.c
index 19b6fbd..d080eb3 100644
--- a/session/mm.c
+++ b/session/mm.c
@@ -31,7 +31,7 @@ static void
 /* Must call mminit before any other fn */
 void mm_init()
 {
-#include "linkage.c"
+#include <imap/linkage.h>
 
     ml_init();
 }
diff --git a/templates/cam/Makefile b/templates/cam/Makefile
index 9f4122a..ff95283 100644
--- a/templates/cam/Makefile
+++ b/templates/cam/Makefile
@@ -7,7 +7,7 @@ include ../../Config
 endif
 
 CFLAGS  = $(BASECFLAGS)
-LDFLAGS = $(BASELDFLAGS)
+LDFLAGS := $(BASELDFLAGS)
 
 TYPE=cam
 
diff --git a/templates/old/Makefile b/templates/old/Makefile
index 31016cf..cf8738a 100644
--- a/templates/old/Makefile
+++ b/templates/old/Makefile
@@ -7,7 +7,7 @@ include ../../Config
 endif
 
 CFLAGS  = $(BASECFLAGS)
-LDFLAGS = $(BASELDFLAGS)
+LDFLAGS := $(BASELDFLAGS)
 
 TYPE=old
 
diff --git a/templates/src/Makefile b/templates/src/Makefile
index 5348a14..26cf2f1 100644
--- a/templates/src/Makefile
+++ b/templates/src/Makefile
@@ -7,7 +7,7 @@ include ../../Config
 endif
 
 CFLAGS  = $(BASECFLAGS)
-LDFLAGS = $(BASELDFLAGS)
+LDFLAGS := $(BASELDFLAGS)
 
 LIB= ../../lib/lib_nossl.a