-
Notifications
You must be signed in to change notification settings - Fork 0
/
cyrus-mincfg
executable file
·52 lines (47 loc) · 1.53 KB
/
cyrus-mincfg
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
52
#!/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 -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" \
--disable-http \
--disable-calalarmd \
--enable-unit-tests \
--disable-replication \
--with-openssl=yes \
--disable-nntp \
--disable-murder \
--disable-idled \
--disable-event-notification \
--disable-sieve \
--disable-autocreate \
--enable-silent-rules \
--disable-backup \
--without-lmdb \
--disable-xapian \
--disable-jmap \
--without-ldap \
--enable-debug-slowio \
--with-sqlite \
$*
make lex-fix