Rev 23 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 23 | Rev 31 | ||
---|---|---|---|
1 | # $Cambridge: hermes/src/prayer/defaults/Config,v 1.12 2008/05/21 13:25:13 dpc22 Exp $ |
1 | # $Cambridge: hermes/src/prayer/defaults/Config,v 1.12 2008/05/21 13:25:13 dpc22 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 | MUTEX_SEMAPHORE = true # Use SYSV mutexes rather than file locking |
15 | MUTEX_SEMAPHORE = true # Use SYSV mutexes rather than file locking |
16 | 16 | ||
17 | # Following depend on the way that you have configured c-client |
17 | # Following depend on the way that you have configured c-client |
18 | CCLIENT_SSL_ENABLE = false # C-client was built with SSL support |
18 | CCLIENT_SSL_ENABLE = false # C-client was built with SSL support |
19 | CCLIENT_PAM_ENABLE = false # C-client was built with PAM support |
19 | CCLIENT_PAM_ENABLE = false # C-client was built with PAM support |
20 | CCLIENT_KERB_ENABLE = false # C-client was built with Kerberos support |
20 | CCLIENT_KERB_ENABLE = false # C-client was built with Kerberos support |
21 | 21 | ||
22 | # Probably don't need the following |
22 | # Probably don't need the following |
23 | ACCOUNTD_ENABLE = true # Only of use in Cambridge at the moment. |
23 | ACCOUNTD_ENABLE = true # Only of use in Cambridge at the moment. |
24 | ACCOUNTD_SSL_ENABLE = true # Enable SSL support in account management daemon |
24 | ACCOUNTD_SSL_ENABLE = true # Enable SSL support in account management daemon |
25 | ACCOUNTD_PAM_ENABLE = true # Enable PAM support in account management daemon |
25 | ACCOUNTD_PAM_ENABLE = true # Enable PAM support in account management daemon |
26 | ACCOUNTD_USE_BSD_PTY = true # Use Berkeley PTYs rather than Sys V PTYs |
26 | ACCOUNTD_USE_BSD_PTY = false # Use Berkeley PTYs rather than Sys V PTYs |
27 | 27 | ||
28 | ############################################################################ |
28 | ############################################################################ |
29 | # Location of compiler |
29 | # Location of compiler |
30 | CC = gcc |
30 | CC = gcc |
31 | # Location of make program (GNU make required) |
31 | # Location of make program (GNU make required) |
32 | MAKE = make |
32 | MAKE = make |
33 | # Location of install program (GNU install or compatible required) |
33 | # Location of install program (GNU install or compatible required) |
34 | INSTALL = install |
34 | INSTALL = install |
35 | 35 | ||
36 | # Base Compiler options for GCC (use CPPFLAGS and LDFLAGS if passed in) |
36 | # Base Compiler options for GCC (use CPPFLAGS and LDFLAGS if passed in) |
37 | ifdef CPPFLAGS |
37 | ifdef CPPFLAGS |
38 | BASECFLAGS = $(CPPFLAGS) |
38 | BASECFLAGS = $(CPPFLAGS) |
39 | else |
39 | else |
40 | BASECFLAGS = -Wall -g -O2 |
40 | BASECFLAGS = -Wall -g -O2 |
41 | endif |
41 | endif |
42 | ifdef INCLUDES |
42 | ifdef INCLUDES |
43 | BASECFLAGS += $(INCLUDES) |
43 | BASECFLAGS += $(INCLUDES) |
44 | endif |
44 | endif |
45 | ifdef LDFLAGS |
45 | ifdef LDFLAGS |
46 | BASELDFLAGS = $(LDFLAGS) |
46 | BASELDFLAGS = $(LDFLAGS) |
47 | else |
47 | else |
48 | BASELDFLAGS = -g |
48 | BASELDFLAGS = -g |
49 | endif |
49 | endif |
50 | 50 | ||
51 | # Minimal libraries needed by Linux |
51 | # Minimal libraries needed by Linux |
52 | BASE_LIBS = -lcrypt |
52 | BASE_LIBS = -lcrypt |
53 | # FreeBSD needs some extra libraries: |
53 | # FreeBSD needs some extra libraries: |
54 | # BASE_LIBS = -lcrypt -liconv -lutil |
54 | # BASE_LIBS = -lcrypt -liconv -lutil |
55 | # Solaris needs even more libararies: |
55 | # Solaris needs even more libararies: |
56 | # BASE_LIBS = -lcrypt -lxnet -lnsl -lsocket |
56 | # BASE_LIBS = -lcrypt -lxnet -lnsl -lsocket |
57 | 57 | ||
58 | # Base Compiler options for Sun SUNWspro compiler |
58 | # Base Compiler options for Sun SUNWspro compiler |
59 | #CC = /opt/SUNWspro/bin/cc |
59 | #CC = /opt/SUNWspro/bin/cc |
60 | #BASECFLAGS = -fast |
60 | #BASECFLAGS = -fast |
61 | #BASELDFLAGS = -s |
61 | #BASELDFLAGS = -s |
62 | 62 | ||
63 | ############################################################################ |
63 | ############################################################################ |
64 | # Location of various include files and libraries. |
64 | # Location of various include files and libraries. |
65 | ############################################################################ |
65 | ############################################################################ |
66 | 66 | ||
67 | # Location of c-client library. |
67 | # Location of c-client library. |
68 | CCLIENT_DIR=/usr/include/c-client |
68 | CCLIENT_DIR=/usr/include/c-client |
69 | CCLIENT_INCLUDE=-I$(CCLIENT_DIR) |
69 | CCLIENT_INCLUDE=-I$(CCLIENT_DIR) |
70 | CCLIENT_LIBS=-lc-client |
70 | CCLIENT_LIBS=-lc-client |
71 | 71 | ||
72 | # Electric fence (required if FENCE_ENABLE set) |
72 | # Electric fence (required if FENCE_ENABLE set) |
73 | FENCE_INCLUDE= |
73 | FENCE_INCLUDE= |
74 | FENCE_LIBS=-lmcheck |
74 | FENCE_LIBS=-lmcheck |
75 | 75 | ||
76 | # Zlib (required if GZIP_ENABLE set) |
76 | # Zlib (required if GZIP_ENABLE set) |
77 | Z_INCLUDE = |
77 | Z_INCLUDE = |
78 | Z_LIBS = -lz |
78 | Z_LIBS = -lz |
79 | 79 | ||
80 | # LDAP (required if LDAP_ENABLE set) |
80 | # LDAP (required if LDAP_ENABLE set) |
81 | LDAP_INCLUDE = -DLDAP_DEPRECATED |
81 | LDAP_INCLUDE = -DLDAP_DEPRECATED |
82 | LDAP_LIBS = -lldap |
82 | LDAP_LIBS = -lldap |
83 | 83 | ||
84 | # Pam (required if CCLIENT_PAM_ENABLE set) |
84 | # Pam (required if CCLIENT_PAM_ENABLE set) |
85 | PAM_INCLUDE = |
85 | PAM_INCLUDE = |
86 | PAM_LIBS = -lpam |
86 | PAM_LIBS = -lpam |
87 | 87 | ||
88 | # Kerberos (required if CCLIENT_KERB_ENABLE set) |
88 | # Kerberos (required if CCLIENT_KERB_ENABLE set) |
89 | KERB_INCLUDE = |
89 | KERB_INCLUDE = |
90 | KERB_LIBS = -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err |
90 | KERB_LIBS = -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err |
91 | 91 | ||
92 | # SSL definitions (required if SSL_ENABLE or CCLIENT_SSL_ENABLE set) |
92 | # SSL definitions (required if SSL_ENABLE or CCLIENT_SSL_ENABLE set) |
93 | # |
93 | # |
94 | # Following suitable for Linux and FreeBSD which have SSL preinstalled |
94 | # Following suitable for Linux and FreeBSD which have SSL preinstalled |
95 | # (Header files from OpenSSL 0.9.7 want to include various Kerboros stuff) |
95 | # (Header files from OpenSSL 0.9.7 want to include various Kerboros stuff) |
96 | # |
96 | # |
97 | SSL_INCLUDE= |
97 | SSL_INCLUDE= |
98 | SSL_LIBS=-lssl -lcrypto |
98 | SSL_LIBS=-lssl -lcrypto |
99 | OPENSSL=openssl |
99 | OPENSSL=openssl |
100 | 100 | ||
101 | # Following definitions suitable for our Sun systems. |
101 | # Following definitions suitable for our Sun systems. |
102 | #SSL_BASE=/opt/local/ssl/current |
102 | #SSL_BASE=/opt/local/ssl/current |
103 | #SSL_INCLUDE=-I ${SSL_BASE}/include |
103 | #SSL_INCLUDE=-I ${SSL_BASE}/include |
104 | #SSL_LIBS=-L ${SSL_BASE}/lib -lssl -lcrypto |
104 | #SSL_LIBS=-L ${SSL_BASE}/lib -lssl -lcrypto |
105 | #OPENSSL=${SSL_BASE}/bin/openssl |
105 | #OPENSSL=${SSL_BASE}/bin/openssl |
106 | 106 | ||
107 | # DB definitions (required if SESSION_CACHE_ENABLE set) |
107 | # DB definitions (required if SESSION_CACHE_ENABLE set) |
108 | # |
108 | # |
109 | # Following suitable for Redhat Linux which has DB 3 preinstalled |
109 | # Following suitable for Redhat Linux which has DB 3 preinstalled |
110 | DB_INCLUDE= |
110 | DB_INCLUDE= |
111 | DB_LIBS=-ldb |
111 | DB_LIBS=-ldb |
112 | 112 | ||
113 | # Following suitable for FreeBSD with DB 4 package installed |
113 | # Following suitable for FreeBSD with DB 4 package installed |
114 | #DB_INCLUDE=-I/usr/local/include/db4 |
114 | #DB_INCLUDE=-I/usr/local/include/db4 |
115 | #DB_LIBS=-L/usr/local/lib -ldb4 |
115 | #DB_LIBS=-L/usr/local/lib -ldb4 |
116 | 116 | ||
117 | ############################################################################ |
117 | ############################################################################ |
118 | 118 | ||
119 | # Install location of prayer configuration and support files. The initial |
119 | # Install location of prayer configuration and support files. The initial |
120 | # config file runs prayer processes as user "prayer" and group "prayer". |
120 | # config file runs prayer processes as user "prayer" and group "prayer". |
121 | # If you are using SSL, the certificate file must be readable by RW_USER or |
121 | # If you are using SSL, the certificate file must be readable by RW_USER or |
122 | # RW_GROUP. It is important that nothing else can read the certificate file. |
122 | # RW_GROUP. It is important that nothing else can read the certificate file. |
123 | 123 | ||
124 | # Build root (used by Redhat RPM system) |
124 | # Build root (used by Redhat RPM system) |
125 | BROOT=$(CURDIR)/../debian/tmp |
125 | BROOT=$(CURDIR)/../debian/tmp |
126 | 126 | ||
127 | # Directory, User and group for read-write files: log files, sockets etc |
127 | # Directory, User and group for read-write files: log files, sockets etc |
128 | VAR_PREFIX = /var/run/prayer |
128 | VAR_PREFIX = /var/run/prayer |
129 | RW_USER = root |
129 | RW_USER = root |
130 | RW_GROUP = root |
130 | RW_GROUP = root |
131 | 131 | ||
132 | # Root Directory, User and group for read-only configuration files. |
132 | # Root Directory, User and group for read-only configuration files. |
133 | # Default configuration and permissions does not allow prayer user to |
133 | # Default configuration and permissions does not allow prayer user to |
134 | # update prayer configuration file. |
134 | # update prayer configuration file. |
135 | 135 | ||
136 | PREFIX = /usr/share/prayer |
136 | PREFIX = /usr/share/prayer |
137 | RO_USER = root |
137 | RO_USER = root |
138 | RO_GROUP = root |
138 | RO_GROUP = root |
139 | 139 | ||
140 | # Access permissions for general objects (wrt above users and groups) |
140 | # Access permissions for general objects (wrt above users and groups) |
141 | PUBLIC_EXEC = 0755 |
141 | PUBLIC_EXEC = 0755 |
142 | PUBLIC_DIR = 0755 |
142 | PUBLIC_DIR = 0755 |
143 | PUBLIC_FILE = 0644 |
143 | PUBLIC_FILE = 0644 |
144 | 144 | ||
145 | # Access permissions for private objects (wrt above users and groups) |
145 | # Access permissions for private objects (wrt above users and groups) |
146 | PRIVATE_EXEC = 0750 |
146 | PRIVATE_EXEC = 0750 |
147 | PRIVATE_DIR = 0750 |
147 | PRIVATE_DIR = 0750 |
148 | PRIVATE_FILE = 0640 |
148 | PRIVATE_FILE = 0640 |
149 | 149 | ||
150 | # Location of configuration files and binaries |
150 | # Location of configuration files and binaries |
151 | PRAYER_CONFIG_FILE = /etc/prayer/prayer.cf |
151 | PRAYER_CONFIG_FILE = /etc/prayer/prayer.cf |
152 | BIN_DIR = /usr/sbin |
152 | BIN_DIR = /usr/sbin |
153 | ACCOUNTD_CONFIG_FILE = /etc/prayer/accountd.cf |
153 | ACCOUNTD_CONFIG_FILE = /etc/prayer/accountd.cf |