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
53
|
NEW_AUTOTOOLS=yes
export NEW_AUTOTOOLS
if test ! -x configure; then
echo aclocal -I cmulocal -I config
aclocal -I cmulocal -I config
echo autoheader
autoheader
echo autoconf
autoconf
echo automake --add-missing --include-deps
automake --add-missing --include-deps
echo cd saslauthd
cd saslauthd
echo aclocal -I ../cmulocal -I config
aclocal -I ../cmulocal -I config -I ../config
echo autoheader
autoheader
echo autoconf
autoconf
echo automake --add-missing --include-deps
automake --add-missing --include-deps
fi
LIBS=""
case `uname` in
Linux) CFLAGS="${CFLAGS} -O2 -g"
LNEXTRA=" --with-javabase=/usr/local/lib/java"
;;
SunOS) CC="gcc"
CFLAGS="${CFLAGS} -O2 -g"
LNEXTRA=" --with-javabase=/usr/java --with-ipctype=doors"
# CC="cc"
# if test "${WASH_CYRUS_DEBUG}" = "t"; then
# CFLAGS="${CFLAGS} -xs -g"
# else
# CFLAGS="${CFLAGS} -xO3 -xdepend"
# fi
;;
esac
LD_LIBRARY_PATH=/usr/local/lib
MAKE=gmake
LNCOMMAND="${SRCDIR}/configure --with-staticsasl --prefix=/usr/local --enable-cmulocal --with-sfio=/usr/local --enable-java ${LNEXTRA} --with-saslauthd=/var/run/saslauthd --enable-login --enable-srp --disable-otp --disable-checkapop --enable-krb4 --with-dblib=none --with-authdaemond"
INSTCOMMAND="rm -rf ${DESTDIR}/*; \
${MAKE} DESTDIR=${DESTDIR} install; \
echo 'usr/local /' > ${DESTDIR}/depot.conf; \
echo '~delete sbin/smtptest' >> ${DESTDIR}/depot.conf; \
mkdir ${DESTDIR}/usr/local/lib/java/lib; \
jar cf ${DESTDIR}/usr/local/lib/java/lib/sasl.jar -C ${DESTDIR}/usr/local/lib/java/classes/sasl ."
export CC CFLAGS CPPFLAGS LIBS LD_LIBRARY_PATH
|