Rev 3 | Rev 23 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 3 | Rev 12 | ||
|---|---|---|---|
| 1 | # $Cambridge: hermes/src/prayer/defaults/Config,v 1.5 2006/04/05 12:35:35 fanf2 Exp $ |
1 | # $Cambridge: hermes/src/prayer/defaults/Config,v 1.5 2006/04/05 12:35:35 fanf2 Exp $ |
| 2 | # |
2 | # |
| 3 | # Prayer - a Webmail Interface |
3 | # Prayer - a Webmail Interface |
| 4 | # |
4 | # |
| 5 | # Copyright (c) University of Cambridge 2000 - 2002 |
5 | # Copyright (c) University of Cambridge 2000 - 2002 |
| 6 | # See the file NOTICE for conditions of use and distribution. |
6 | # See the file NOTICE for conditions of use and distribution. |
| 7 | # |
7 | # |
| 8 | # Conventional Configure file. |
8 | # Conventional Configure file. |
| 9 | 9 | ||
| 10 | SSL_ENABLE = true # SSL requires OpenSSL |
10 | SSL_ENABLE = true # SSL requires OpenSSL |
| 11 | SESSION_CACHE_ENABLE = true # SSL session cache Requires Berkeley DB 3 or 4 |
11 | SESSION_CACHE_ENABLE = true # SSL session cache Requires Berkeley DB 3 or 4 |
| 12 | GZIP_ENABLE = true # Enable on the fly compression of pages |
12 | GZIP_ENABLE = true # Enable on the fly compression of pages |
| 13 | LDAP_ENABLE = true # Add LDAP interface |
13 | LDAP_ENABLE = true # Add LDAP interface |
| 14 | FENCE_ENABLE = false # Use Electric Fence to catch malloc problems |
14 | FENCE_ENABLE = false # Use Electric Fence to catch malloc problems |
| 15 | DIRECT_ENABLE = false # Experimental. Leave this switched off... |
15 | DIRECT_ENABLE = false # Experimental. Leave this switched off... |
| 16 | MUTEX_SEMAPHORE = true # Use SYSV mutexes rather than file locking |
16 | MUTEX_SEMAPHORE = true # Use SYSV mutexes rather than file locking |
| 17 | 17 | ||
| 18 | # Following depend on the way that you have configured c-client |
18 | # Following depend on the way that you have configured c-client |
| 19 | CCLIENT_SSL_ENABLE = false # C-client was built with SSL support |
19 | CCLIENT_SSL_ENABLE = false # C-client was built with SSL support |
| 20 | CCLIENT_PAM_ENABLE = false # C-client was built with PAM support |
20 | CCLIENT_PAM_ENABLE = false # C-client was built with PAM support |
| 21 | CCLIENT_KERB_ENABLE = false # C-client was built with Kerberos support |
21 | CCLIENT_KERB_ENABLE = false # C-client was built with Kerberos support |
| 22 | 22 | ||
| 23 | # Probably don't need the following |
23 | # Probably don't need the following |
| 24 | ACCOUNTD_ENABLE = true # Only of use in Cambridge at the moment. |
24 | ACCOUNTD_ENABLE = true # Only of use in Cambridge at the moment. |
| 25 | ACCOUNTD_SSL_ENABLE = true # Enable SSL support in account management daemon |
25 | ACCOUNTD_SSL_ENABLE = true # Enable SSL support in account management daemon |
| 26 | ACCOUNTD_PAM_ENABLE = true # Enable PAM support in account management daemon |
26 | ACCOUNTD_PAM_ENABLE = true # Enable PAM support in account management daemon |
| 27 | ACCOUNTD_USE_BSD_PTY = true # Use Berkeley PTYs rather than Sys V PTYs |
27 | ACCOUNTD_USE_BSD_PTY = true # Use Berkeley PTYs rather than Sys V PTYs |
| 28 | 28 | ||
| 29 | ############################################################################ |
29 | ############################################################################ |
| 30 | # Location of compiler |
30 | # Location of compiler |
| 31 | CC = gcc |
31 | CC = gcc |
| 32 | # Location of make program (GNU make required) |
32 | # Location of make program (GNU make required) |
| 33 | MAKE = make |
33 | MAKE = make |
| 34 | # Location of install program (GNU install or compatible required) |
34 | # Location of install program (GNU install or compatible required) |
| 35 | INSTALL = install |
35 | INSTALL = install |
| 36 | 36 | ||
| 37 | # Base Compiler options for GCC. |
37 | # Base Compiler options for GCC. |
| 38 | #BASECFLAGS = -Wall -g |
38 | #BASECFLAGS = -Wall -g |
| 39 | #BASELDFLAGS = -g |
39 | #BASELDFLAGS = -g |
| 40 | BASECFLAGS = -Wall -g -O2 |
40 | CFLAGS = -Wall -g -O2 |
| 41 | BASELDFLAGS = -g -O2 |
41 | LDFLAGS = -g -O2 |
| 42 | BASE_LIBS = -lcrypt |
42 | BASE_LIBS = -lcrypt |
| 43 | 43 | ||
| 44 | # Base Compiler options for Sun SUNWspro compiler |
44 | # Base Compiler options for Sun SUNWspro compiler |
| 45 | #CC = /opt/SUNWspro/bin/cc |
45 | #CC = /opt/SUNWspro/bin/cc |
| 46 | #BASECFLAGS = -fast |
46 | #BASECFLAGS = -fast |
| 47 | #BASELDFLAGS = -s |
47 | #BASELDFLAGS = -s |
| 48 | #BASE_LIBS = -lcrypt -lxnet |
48 | #BASE_LIBS = -lcrypt -lxnet |
| 49 | 49 | ||
| 50 | ############################################################################ |
50 | ############################################################################ |
| 51 | # Location of various include files and libraries. |
51 | # Location of various include files and libraries. |
| 52 | ############################################################################ |
52 | ############################################################################ |
| 53 | 53 | ||
| 54 | # Location of c-client library. |
54 | # Location of c-client library. |
| 55 | # |
55 | # |
| 56 | # Following works if we have a vanilla c-client installation at same level |
56 | # Following works if we have a vanilla c-client installation at same level |
| 57 | # as the prayer installation. Relies on a symbolic link ./prayer/c-client |
57 | # as the prayer installation. Relies on a symbolic link ./prayer/c-client |
| 58 | # which points to ../../imap/c-client. This just reduces the amount of |
58 | # which points to ../../imap/c-client. This just reduces the amount of |
| 59 | # noise output on each line when building the package. |
59 | # noise output on each line when building the package. |
| 60 | # |
60 | # |
| 61 | CCLIENT_DIR=/usr/include/c-client |
61 | CCLIENT_DIR=/usr/include/c-client |
| 62 | CCLIENT_INCLUDE=-I$(CCLIENT_DIR) |
62 | CCLIENT_INCLUDE=-I$(CCLIENT_DIR) |
| 63 | CCLIENT_LIBS=-lc-client |
63 | CCLIENT_LIBS=-lc-client |
| 64 | 64 | ||
| 65 | # |
65 | # |
| 66 | # Following works with the mail/cclient port from FreeBSD |
66 | # Following works with the mail/cclient port from FreeBSD |
| 67 | # |
67 | # |
| 68 | #CCLIENT_INCLUDE = -I/usr/local/include/c-client |
68 | #CCLIENT_INCLUDE = -I/usr/local/include/c-client |
| 69 | #CCLIENT_LIBS = -L/usr/local/lib -lc-client4 |
69 | #CCLIENT_LIBS = -L/usr/local/lib -lc-client4 |
| 70 | # |
70 | # |
| 71 | # Complication: |
71 | # Complication: |
| 72 | # The FreeBSD port uses PAM and optionally SSL if built WITH_SSL=yes. |
72 | # The FreeBSD port uses PAM and optionally SSL if built WITH_SSL=yes. |
| 73 | # |
73 | # |
| 74 | #CCLIENT_SSL_ENABLE = true |
74 | #CCLIENT_SSL_ENABLE = true |
| 75 | #CCLIENT_KERB_ENABLE = true |
75 | #CCLIENT_KERB_ENABLE = true |
| 76 | 76 | ||
| 77 | ############################################################################ |
77 | ############################################################################ |
| 78 | 78 | ||
| 79 | # Electric fence (required if FENCE_ENABLE set) |
79 | # Electric fence (required if FENCE_ENABLE set) |
| 80 | FENCE_INCLUDE= |
80 | FENCE_INCLUDE= |
| 81 | FENCE_LIBS=-lmcheck |
81 | FENCE_LIBS=-lmcheck |
| 82 | 82 | ||
| 83 | # Zlib (required if GZIP_ENABLE set) |
83 | # Zlib (required if GZIP_ENABLE set) |
| 84 | Z_INCLUDE = |
84 | Z_INCLUDE = |
| 85 | Z_LIBS = -lz |
85 | Z_LIBS = -lz |
| 86 | 86 | ||
| 87 | # LDAP (required if LDAP_ENABLE set) |
87 | # LDAP (required if LDAP_ENABLE set) |
| 88 | LDAP_INCLUDE = |
88 | LDAP_INCLUDE = -DLDAP_DEPRECATED |
| 89 | LDAP_LIBS = -lldap |
89 | LDAP_LIBS = -lldap |
| 90 | 90 | ||
| 91 | # Pam (required if CCLIENT_PAM_ENABLE set) |
91 | # Pam (required if CCLIENT_PAM_ENABLE set) |
| 92 | PAM_INCLUDE = |
92 | PAM_INCLUDE = |
| 93 | PAM_LIBS = -lpam |
93 | PAM_LIBS = -lpam |
| 94 | 94 | ||
| 95 | # Kerberos (required if CCLIENT_KERB_ENABLE set) |
95 | # Kerberos (required if CCLIENT_KERB_ENABLE set) |
| 96 | KERB_INCLUDE = |
96 | KERB_INCLUDE = |
| 97 | KERB_LIBS = -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err |
97 | KERB_LIBS = -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err |
| 98 | 98 | ||
| 99 | # SSL definitions (required if SSL_ENABLE or CCLIENT_SSL_ENABLE set) |
99 | # SSL definitions (required if SSL_ENABLE or CCLIENT_SSL_ENABLE set) |
| 100 | # |
100 | # |
| 101 | # Following suitable for Linux and FreeBSD which have SSL preinstalled |
101 | # Following suitable for Linux and FreeBSD which have SSL preinstalled |
| 102 | # (Header files from OpenSSL 0.9.7 want to include various Kerboros stuff) |
102 | # (Header files from OpenSSL 0.9.7 want to include various Kerboros stuff) |
| 103 | # |
103 | # |
| 104 | SSL_INCLUDE= |
104 | SSL_INCLUDE= |
| 105 | SSL_LIBS=-lssl -lcrypto |
105 | SSL_LIBS=-lssl -lcrypto |
| 106 | OPENSSL=openssl |
106 | OPENSSL=openssl |
| 107 | 107 | ||
| 108 | # Following definitions suitable for our Sun systems. |
108 | # Following definitions suitable for our Sun systems. |
| 109 | #SSL_BASE=/opt/local/ssl/current |
109 | #SSL_BASE=/opt/local/ssl/current |
| 110 | #SSL_INCLUDE=-I ${SSL_BASE}/include
|
110 | #SSL_INCLUDE=-I ${SSL_BASE}/include
|
| 111 | #SSL_LIBS=-L ${SSL_BASE}/lib -lssl -lcrypto
|
111 | #SSL_LIBS=-L ${SSL_BASE}/lib -lssl -lcrypto
|
| 112 | #OPENSSL=${SSL_BASE}/bin/openssl
|
112 | #OPENSSL=${SSL_BASE}/bin/openssl
|
| 113 | 113 | ||
| 114 | # DB definitions (required if SESSION_CACHE_ENABLE set) |
114 | # DB definitions (required if SESSION_CACHE_ENABLE set) |
| 115 | # |
115 | # |
| 116 | # Following suitable for Redhat Linux which has DB 3 preinstalled |
116 | # Following suitable for Redhat Linux which has DB 3 preinstalled |
| 117 | DB_INCLUDE= |
117 | DB_INCLUDE= |
| 118 | DB_LIBS=-ldb |
118 | DB_LIBS=-ldb |
| 119 | 119 | ||
| 120 | # Following suitable for FreeBSD with DB 4 package installed |
120 | # Following suitable for FreeBSD with DB 4 package installed |
| 121 | #DB_INCLUDE=-I/usr/local/include/db4 |
121 | #DB_INCLUDE=-I/usr/local/include/db4 |
| 122 | #DB_LIBS=-L/usr/local/lib -ldb4 |
122 | #DB_LIBS=-L/usr/local/lib -ldb4 |
| 123 | 123 | ||
| 124 | ############################################################################ |
124 | ############################################################################ |
| 125 | 125 | ||
| 126 | # Install location of prayer configuration and support files. The initial |
126 | # Install location of prayer configuration and support files. The initial |
| 127 | # config file runs prayer processes as user "prayer" and group "prayer". |
127 | # config file runs prayer processes as user "prayer" and group "prayer". |
| 128 | # If you are using SSL, the certificate file must be readable by RW_USER or |
128 | # If you are using SSL, the certificate file must be readable by RW_USER or |
| 129 | # RW_GROUP. It is important that nothing else can read the certificate file. |
129 | # RW_GROUP. It is important that nothing else can read the certificate file. |
| 130 | 130 | ||
| 131 | # Build root (used by Redhat RPM system) |
131 | # Build root (used by Redhat RPM system) |
| 132 | BROOT=$(CURDIR)/../debian/tmp |
132 | BROOT=$(CURDIR)/../debian/tmp |
| 133 | 133 | ||
| 134 | # Directory, User and group for read-write files: log files, sockets etc |
134 | # Directory, User and group for read-write files: log files, sockets etc |
| 135 | VAR_PREFIX = /var/lib/prayer |
135 | VAR_PREFIX = /var/lib/prayer |
| 136 | RW_USER = root |
136 | RW_USER = root |
| 137 | RW_GROUP = root |
137 | RW_GROUP = root |
| 138 | 138 | ||
| 139 | # Root Directory, User and group for read-only configuration files. |
139 | # Root Directory, User and group for read-only configuration files. |
| 140 | # Default configuration and permissions does not allow prayer user to |
140 | # Default configuration and permissions does not allow prayer user to |
| 141 | # update prayer configuration file. |
141 | # update prayer configuration file. |
| 142 | 142 | ||
| 143 | PREFIX = /usr/share/prayer |
143 | PREFIX = /usr/share/prayer |
| 144 | RO_USER = root |
144 | RO_USER = root |
| 145 | RO_GROUP = root |
145 | RO_GROUP = root |
| 146 | 146 | ||
| 147 | # Access permissions for general objects (wrt above users and groups) |
147 | # Access permissions for general objects (wrt above users and groups) |
| 148 | PUBLIC_EXEC = 0755 |
148 | PUBLIC_EXEC = 0755 |
| 149 | PUBLIC_DIR = 0755 |
149 | PUBLIC_DIR = 0755 |
| 150 | PUBLIC_FILE = 0644 |
150 | PUBLIC_FILE = 0644 |
| 151 | 151 | ||
| 152 | # Access permissions for private objects (wrt above users and groups) |
152 | # Access permissions for private objects (wrt above users and groups) |
| 153 | PRIVATE_EXEC = 0750 |
153 | PRIVATE_EXEC = 0750 |
| 154 | PRIVATE_DIR = 0750 |
154 | PRIVATE_DIR = 0750 |
| 155 | PRIVATE_FILE = 0640 |
155 | PRIVATE_FILE = 0640 |
| 156 | 156 | ||
| 157 | # Location of configuration files and binaries |
157 | # Location of configuration files and binaries |
| 158 | PRAYER_CONFIG_FILE = /etc/prayer/prayer.cf |
158 | PRAYER_CONFIG_FILE = /etc/prayer/prayer.cf |
| 159 | BIN_DIR = /usr/sbin |
159 | BIN_DIR = /usr/sbin |
| 160 | ACCOUNTD_CONFIG_FILE = /etc/prayer/accountd.cf |
160 | ACCOUNTD_CONFIG_FILE = /etc/prayer/accountd.cf |