-
Notifications
You must be signed in to change notification settings - Fork 0
/
cyrus-cfg
executable file
·51 lines (46 loc) · 1.51 KB
/
cyrus-cfg
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
#!/bin/bash
set -e
set -o pipefail
if [ "x$1" = "xreplica" ]; then
CYRUS_PREFIX="$CYRUSREPLICA_PREFIX"
shift
elif [ "x$1" = "xmurder" ]; then
CYRUS_PREFIX="$CYRUSMURDER_PREFIX"
shift
else
CYRUS_PREFIX="$CYRUSDEFAULT_PREFIX"
fi
if [ -z "$CYRUS_PREFIX" ]; then
echo "Please set environment variables to match your cassandane.ini:" 1>&2
echo " CASS_ROOTDIR is currently '$CASS_ROOTDIR'" 1>&2
echo " CYRUSDEFAULT_PREFIX is currently '$CYRUSDEFAULT_PREFIX'" 1>&2
echo " CYRUSREPLICA_PREFIX is currently '$CYRUSREPLICA_PREFIX'" 1>&2
echo " CYRUSMURDER_PREFIX is currently '$CYRUSMURDER_PREFIX'" 1>&2
exit 1
fi
test ! -x configure -o configure.ac -nt configure && autoreconf -i -s
./configure \
PATH="$PATH:/usr/local/cyruslibs/bin" \
CFLAGS="-g -O0 -Wall -Wextra -Wformat-security -Werror -Wwrite-strings -Wl,--as-needed -fstack-protector-strong -fstack-clash-protection $CFLAGS" \
CXXFLAGS="-g -O0 -Wall -Wextra -Wformat-security -Werror -fstack-protector-strong -fstack-clash-protection $CXXFLAGS" \
--prefix="$CYRUS_PREFIX" \
--enable-http \
--enable-calalarmd \
--enable-unit-tests \
--enable-replication \
--with-openssl=yes \
--enable-nntp \
--enable-murder \
--enable-idled \
--enable-event-notification \
--enable-sieve \
--enable-autocreate \
--enable-silent-rules \
--enable-backup \
--with-lmdb \
--enable-xapian \
--enable-jmap \
--with-ldap \
--enable-debug-slowio \
$*
make lex-fix