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