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