В-общем суть проблемы. Ставлю cyrus-imapd23 из портов, перед сборкой накатываю патчи из http://email.uoa.gr/download/cyrus/cyrus-imapd-2.3.12/ для автосоздания папок IMAP и sieve скриптов (очень нужно). Последовательность действий:
Код: Выделить всё
cd /usr/ports/mail/cyrus-imapd23/
make extract
make patch
cd work
patch < ../patch/cyrus-imapd-2.3.12p2-autocreate-0.10-0.diff
patch < ../patch/cyrus-imapd-2.3.12p2-autosieve-0.6.0.diff
cd ..
make
Код: Выделить всё
make: don't know how to make autosieve.o. Stop
*** Error code 1
Код: Выделить всё
cd /usr/ports/mail/cyrus-imapd23/work/cyrus-imapd-2.3.12p2/imap
make
AWK=nawk ./xversion.sh
make: don't know how to make autosieve.o. Stop
Код: Выделить всё
diff Makefile Makefile.in
50,68c50,68
< srcdir = .
< top_srcdir = ..
<
<
< CC = cc
< INSTALL = /usr/bin/install -c -o root -g wheel
< RANLIB = ranlib
< AWK = nawk
<
< CYRUS_USER=cyrus
< CYRUS_GROUP=cyrus
<
< DEFS = -DHAVE_CONFIG_H
< CPPFLAGS = -I.. -I$(srcdir)/../lib -I${top_srcdir}/com_err/et -I$(srcdir)/../sieve -I/usr/local/include/db46 -I/usr/include -DKRB5_HEIMDAL -I/usr/local/include
< IMAP_LIBS = -L/usr/local/lib -R/usr/local/lib -lsasl2 -lgssapi -lkrb5 -lasn1 -lroken -lcrypt -lcom_err -lfl -L/usr/local/lib -R/usr/local/lib -ldb-4.6 -lssl -lcrypto -lmd
< SIEVE_OBJS = lmtp_sieve.o smtpclient.o
< SIEVE_LIBS = ../sieve/libsieve.a
< IMAP_COM_ERR_LIBS = ../com_err/et/libcom_err.a
< LIB_WRAP = -lwrap
---
> srcdir = @srcdir@
> top_srcdir = @top_srcdir@
> VPATH = @srcdir@
>
> CC = @CC@
> INSTALL = @INSTALL@
> RANLIB = @RANLIB@
> AWK = @AWK@
>
> CYRUS_USER=@cyrus_user@
> CYRUS_GROUP=@cyrus_group@
>
> DEFS = @DEFS@ @LOCALDEFS@
> CPPFLAGS = -I.. -I$(srcdir)/../lib @COM_ERR_CPPFLAGS@ @SIEVE_CPPFLAGS@ @CPPFLAGS@ @SASLFLAGS@
> IMAP_LIBS = @IMAP_LIBS@ @LIB_RT@
> SIEVE_OBJS = @SIEVE_OBJS@
> SIEVE_LIBS = @SIEVE_LIBS@
> IMAP_COM_ERR_LIBS = @IMAP_COM_ERR_LIBS@
> LIB_WRAP = @LIB_WRAP@
70c70
< DEPLIBS = ../lib/libcyrus.a ../lib/libcyrus_min.a
---
> DEPLIBS = ../lib/libcyrus.a ../lib/libcyrus_min.a @DEPLIBS@
72,73c72,73
< CFLAGS = -O2 -fno-strict-aliasing -pipe
< LDFLAGS = -L/usr/lib -R/usr/lib -L/usr/local/lib -R/usr/local/lib -rpath=/usr/lib:/usr/local/lib
---
> CFLAGS = @CFLAGS@
> LDFLAGS = @LDFLAGS@ @COM_ERR_LDFLAGS@
76c76
< MAKEDEPEND = makedepend
---
> MAKEDEPEND = @MAKEDEPEND@
78c78
< COMPILE_ET=../com_err/et/compile_et
---
> COMPILE_ET=@COMPILE_ET@
94,97c94,97
< prefix = /usr/local
< exec_prefix = ${prefix}
< cyrus_prefix = /usr/local/cyrus
< service_path = /usr/local/cyrus/bin
---
> prefix = @prefix@
> exec_prefix = @exec_prefix@
> cyrus_prefix = @cyrus_prefix@
> service_path = @service_path@
121c121
< unexpunge compile_sieve tls_prune
---
> unexpunge compile_sieve @IMAP_PROGS@