blob: 813a9775099fefbb9b3f82f97c4714bab455c985 (
plain)
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
|
#
# Copyright 1998 - 2015 Double Precision, Inc. See COPYING for
# distribution information.
AM_CPPFLAGS=@CPPAUTH@
BUILT_SOURCES=README.proxy
DISTCLEANFILES=imapd.pam pop3d.pam imapd.cnf pop3d.cnf
CLEANFILES=imapd.8 imapd.html mkimapdcert.html mkimapdcert.8 \
makeimapaccess.html makeimapaccess.8 \
mkdhparams.html mkdhparams.8 \
courierpop3d.html courierpop3d.8 mkpop3dcert.html mkpop3dcert.8
EXTRA_DIST=testsuite testsuite.txt smaptestsuite smaptestsuite.txt \
testsuitevalgrind \
BUGS BUGS.html README README.html imapd.authpam \
pop3d.authpam system-auth.authpam system-auth2.authpam\
makeimapaccess.8.in makeimapaccess.html.in \
imapd.html.in imapd.8.in \
mkdhparams.html.in mkdhparams.8.in \
mkimapdcert.html.in mkimapdcert.8.in \
mkpop3dcert.html.in mkpop3dcert.8.in \
courierpop3d.html.in courierpop3d.8.in \
README.proxy README.proxy.html \
imapd.cnf.gnutls pop3d.cnf.gnutls
noinst_SCRIPTS=mkimapdcert mkpop3dcert mkdhparams
noinst_PROGRAMS=imaplogin imapd imapd.testmockpurge pop3login pop3d
noinst_DATA=imapd.8 imapd.html imapd.cnf pop3d.cnf \
makeimapaccess.html makeimapaccess.8 \
mkdhparams.html mkdhparams.8 \
mkimapdcert.html mkimapdcert.8 \
mkpop3dcert.html mkpop3dcert.8 \
courierpop3d.html courierpop3d.8
imapd.cnf: imapd.cnf.@ssllib@
cp imapd.cnf.@ssllib@ imapd.cnf
touch imapd.cnf
imapd.cnf: $(top_builddir)/config.status
pop3d.cnf: pop3d.cnf.@ssllib@
cp pop3d.cnf.@ssllib@ pop3d.cnf
touch pop3d.cnf
pop3d.cnf: $(top_builddir)/config.status
noinst_LTLIBRARIES=libimaplogin.la libimapd.la libpop3d.la
libimaplogin_la_SOURCES=
libimaplogin_la_LIBADD=../tcpd/libspipe.la ../tcpd/libtlsclient.la \
../numlib/libnumlib.la
libimaplogin_la_LDFLAGS=-static
libimapd_la_SOURCES=mainloop.c imaptoken.c imaptoken.h imapwrite.c \
imapwrite.h capability.c externalauth.c smap.c smapsnapshot.c
libimapd_la_LIBADD= ../rfc2045/librfc2045.la ../maildir/libmaildir.la \
../rfc822/librfc822.la ../liblock/liblock.la ../numlib/libnumlib.la \
-lcourier-unicode
libimapd_la_LDFLAGS=-static
imaplogin_SOURCES=imaplogin.c authenticate_auth.c proxy.c proxy.h
imaplogin_DEPENDENCIES=libimapd.la libimaplogin.la
imaplogin_LDADD=libimapd.la libimaplogin.la \
@LDAUTH@ -lcourierauth -lcourierauthsasl
imapd_SOURCES=fetch.c fetchinfo.c fetchinfo.h imapd.c imapd.h \
imapscanclient.c imapscanclient.h \
mailboxlist.c mailboxlist.h \
msgbodystructure.c msgenvelope.c \
mysignal.c mysignal.h \
outbox.c outbox.h \
thread.c thread.h \
search.c searchinfo.c searchinfo.h \
storeinfo.c storeinfo.h
imapd_DEPENDENCIES=libimapd.la @dblibrary@
imapd_LDADD=libimapd.la @dblibrary@ @DEBUGLIB@ @LDAUTH@ -lcourierauth
imapd_testmockpurge_SOURCES=$(imapd_SOURCES) mockmaildirpurge.c
imapd_testmockpurge_DEPENDENCIES=$(imapd_DEPENDENCIES)
imapd_testmockpurge_LDADD=$(imapd_LDADD)
pop3login_SOURCES=pop3login.c pop3dcapa.c proxy.c proxy.h
pop3login_DEPENDENCIES=../tcpd/libspipe.la ../tcpd/libspipe.la libpop3d.la
pop3login_LDADD=../tcpd/libtlsclient.la ../tcpd/libspipe.la libpop3d.la ../tcpd/libspipe.la @LDAUTH@ -lcourierauth -lcourierauthsasl @NETLIBS@
libpop3d_la_SOURCES=externalauth.c
libpop3d_la_LIBADD=../maildir/libmaildir.la \
../rfc2045/librfc2045.la \
../rfc822/librfc822.la \
../numlib/libnumlib.la
libpop3d_la_DEPENDENCIES=$(libpop3d_la_LIBADD)
libpop3d_la_LDFLAGS=-static
pop3d_SOURCES=pop3dserver.c pop3dcapa.c
pop3d_DEPENDENCIES=libpop3d.la
pop3d_LDADD=libpop3d.la @LDAUTH@ -lcourierauth -lcourier-unicode
HTML2TXT=links -dump -no-numbering
README: README.html
$(HTML2TXT) README.html >README
BUGS: BUGS.html
$(HTML2TXT) BUGS.html >BUGS
imapd.html: imapd.html.in
./config.status --file=imapd.html
imapd.8: imapd.8.in
./config.status --file=imapd.8
makeimapaccess.html: makeimapaccess.html.in
./config.status --file=makeimapaccess.html
makeimapaccess.8: makeimapaccess.8.in
./config.status --file=makeimapaccess.8
mkdhparams.html: mkdhparams.html.in
./config.status --file=mkdhparams.html
mkdhparams.8: mkdhparams.8.in
./config.status --file=mkdhparams.8
mkimapdcert.html: mkimapdcert.html.in
./config.status --file=mkimapdcert.html
mkimapdcert.8: mkimapdcert.8.in
./config.status --file=mkimapdcert.8
mkpop3dcert.html: mkpop3dcert.html.in
./config.status --file=mkpop3dcert.html
mkpop3dcert.8: mkpop3dcert.8.in
./config.status --file=mkpop3dcert.8
courierpop3d.html: courierpop3d.html.in
./config.status --file=courierpop3d.html
courierpop3d.8: courierpop3d.8.in
./config.status --file=courierpop3d.8
BUILT_SOURCES += imapd.dist imapd-ssl.dist pop3d.dist pop3d-ssl.dist
if HAVE_SGML
GITFILES=imapd.dist.in imapd-ssl.dist.in pop3d.dist.in pop3d-ssl.dist.in
BUILT_SOURCES += $(GITFILES)
$(GITFILES): %: %.git
perl -p -e 's/\$$Id:[^\$$]*/\$$Id: '"`git log --pretty=format:\"%H\" -n 1 -- $<`-`date +%Y%m%d%H%M%S`/" <$< >$@.tmp
mv -f $@.tmp $@
imapd.html.in: imapd.sgml ../docbook/sgml2html
../docbook/sgml2html imapd.sgml imapd.html.in
imapd.8.in: imapd.sgml ../docbook/sgml2man
../docbook/sgml2man imapd.sgml imapd.8.in "--stringparam man.base.url.for.relative.links http://www.courier-mta.org/"
mv imapd.8 imapd.8.in
makeimapaccess.html.in: makeimapaccess.sgml ../docbook/sgml2html
../docbook/sgml2html makeimapaccess.sgml makeimapaccess.html.in
makeimapaccess.8.in: makeimapaccess.sgml ../docbook/sgml2man
../docbook/sgml2man makeimapaccess.sgml makeimapaccess.8.in "--stringparam man.base.url.for.relative.links http://www.courier-mta.org/"
mv makeimapaccess.8 makeimapaccess.8.in
mkdhparams.html.in: mkdhparams.sgml ../docbook/sgml2html
../docbook/sgml2html mkdhparams.sgml mkdhparams.html.in
mkdhparams.8.in: mkdhparams.sgml ../docbook/sgml2man
../docbook/sgml2man mkdhparams.sgml mkdhparams.8.in "--stringparam man.base.url.for.relative.links http://www.courier-mta.org/"
mv mkdhparams.8 mkdhparams.8.in
mkimapdcert.html.in: mkimapdcert.sgml ../docbook/sgml2html
../docbook/sgml2html mkimapdcert.sgml mkimapdcert.html.in
mkimapdcert.8.in: mkimapdcert.sgml ../docbook/sgml2man
../docbook/sgml2man mkimapdcert.sgml mkimapdcert.8.in "--stringparam man.base.url.for.relative.links http://www.courier-mta.org/"
mv mkimapdcert.8 mkimapdcert.8.in
mkpop3dcert.html.in: mkpop3dcert.sgml ../docbook/sgml2html
../docbook/sgml2html mkpop3dcert.sgml mkpop3dcert.html.in
mkpop3dcert.8.in: mkpop3dcert.sgml ../docbook/sgml2man
../docbook/sgml2man mkpop3dcert.sgml mkpop3dcert.8.in "--stringparam man.base.url.for.relative.links http://www.courier-mta.org/"
mv mkpop3dcert.8 mkpop3dcert.8.in
courierpop3d.html.in: courierpop3d.sgml ../docbook/sgml2html
../docbook/sgml2html courierpop3d.sgml courierpop3d.html.in
courierpop3d.8.in: courierpop3d.sgml ../docbook/sgml2man
../docbook/sgml2man courierpop3d.sgml courierpop3d.8.in "--stringparam man.base.url.for.relative.links http://www.courier-mta.org/"
mv courierpop3d.8 courierpop3d.8.in
README.proxy.html: README.proxy.sgml
rm -rf html.tmp
xsltproc -o html.tmp/ --nonet http://docbook.sourceforge.net/release/xsl/current/xhtml/onechunk.xsl README.proxy.sgml
xsltproc --nonet ../docbook/fixhtml.xsl html.tmp/* >README.proxy.html.tmp
mv -f README.proxy.html.tmp README.proxy.html
rm -rf html.tmp
README.proxy: README.proxy.html
$(HTML2TXT) README.proxy.html >README.proxy
endif
check-am:
@test "@MAKECHECKBROKEN@" = "Y" || exit 0; echo "" ; echo "Error: --with-trashquota or the --enable-workarounds-for-imap-client-bugs" ; echo "option was specified to the configure script."; echo ""; echo "As INSTALL told you, make check fails if these options are used, and I wasn't"; echo "kidding when I wrote it. Reconfigure and rebuild without these options, then"; echo "rerun make and make check. If make check passes, reconfigure again with your"; echo "original options, and proceed with installing this server. Have fun!"; exit 1
@test "@rootcheck@" = "no" && exit 0; cp /dev/null conftest1 ; chmod 000 conftest1 ; test -w conftest1 || \
exit 0; echo "=============================" ; \
echo "Do not run make check as root" ; \
echo "=============================" ; exit 1
@rm -f conftest1
@chmod +x testsuitefix.pl
LC_ALL=C; export LC_ALL; $(srcdir)/testsuite | ./testsuitefix.pl | sort | cmp -s - $(srcdir)/testsuite.txt
LC_ALL=C; export LC_ALL; test "@smap@" = "yes" || exit 0; @SHELL@ $(srcdir)/smaptestsuite | ./testsuitefix.pl | sort | cmp -s - $(srcdir)/smaptestsuite.txt
VALGRIND="`which valgrind 2>/dev/null`"; test "$$VALGRIND" != "" || exit 0; \
LC_ALL=C; export LC_ALL; \
rm -f confmdtesterror; \
IMAPINVOKE='@SHELL@ $(srcdir)/testsuitevalgrind ./imapd'; export IMAPINVOKE; \
@SHELL@ -x $(srcdir)/testsuite 2>&1 | tee confmderror.txt; test -f confmdtesterror || exit 0; exit 1
VALGRIND="`which valgrind 2>/dev/null`"; test "$$VALGRIND" != "" || exit 0; \
LC_ALL=C; export LC_ALL; \
rm -f confmdtesterror; \
IMAPINVOKE='@SHELL@ $(srcdir)/testsuitevalgrind ./imapd'; export IMAPINVOKE; \
@SHELL@ -x $(srcdir)/smaptestsuite 2>&1 | tee confmderror.txt; test -f confmdtesterror || exit 0; exit 1
rm -f confmdtesterror confmderror.txt
rm -rf confmdtest
testsuite-imap:
@chmod +x testsuitefix.pl
@LC_ALL=C; export LC_ALL; $(srcdir)/testsuite | ./testsuitefix.pl | sort
testsuite-smap:
@chmod +x testsuitefix.pl
@LC_ALL=C; export LC_ALL; test "@smap@" = "yes" || exit 0; @SHELL@ $(srcdir)/smaptestsuite | ./testsuitefix.pl | sort
|