userdb: Allow "+", ":", and "_" in usernames.
[hcoop/debian/courier-authlib.git] / Makefile.am
CommitLineData
d9898ee8 1# $Id: Makefile.am,v 1.116 2007/04/01 00:13:35 mrsam Exp $
2#
3# Copyright 1998 - 2006 Double Precision, Inc. See COPYING for
4# distribution information.
5
6AUTOMAKE = srcdir=${srcdir} @SHELL@ ${srcdir}/automake.fix @AUTOMAKE@
7AUTOMAKE_OPTIONS=dist-bzip2
8
9SUBDIRS=@LIBLTDL_SUBDIR@ @DBSUBDIR@ md5 sha1 libhmac numlib makedat userdb rfc822 random128 liblock liblog
10DIST_SUBDIRS=libltdl gdbmobj bdbobj md5 sha1 libhmac numlib makedat userdb rfc822 random128 liblock liblog
11
12INCLUDES = $(LTDLINCL)
13
14modules=@LIBAUTHUSERDB@ \
15 @LIBAUTHPAM@ @LIBAUTHPWD@ @LIBAUTHSHADOW@ \
16 @LIBAUTHPGSQL@ @LIBAUTHLDAP@ @LIBAUTHMYSQL@ \
17 @LIBAUTHCUSTOM@ @LIBAUTHVCHKPW@ @LIBAUTHPIPE@
18
19pkglibexecdir=$(libexecdir)/courier-authlib
20pkglibexec_SCRIPTS=authsystem.passwd
21
22pkglib_LTLIBRARIES=libcourierauth.la \
23 libcourierauthsasl.la libcourierauthsaslclient.la \
24 libcourierauthcommon.la $(modules)
25sbin_SCRIPTS=authdaemond
26sbin_PROGRAMS=authtest authenumerate authpasswd
27bin_PROGRAMS=courierauthconfig
28
29EXTRA_LTLIBRARIES=libauthuserdb.la \
30 libauthpam.la libauthpwd.la libauthshadow.la \
31 libauthvchkpw.la \
32 libauthpgsql.la \
33 libauthldap.la \
34 libauthmysql.la \
35 libauthcustom.la \
36 libauthpipe.la
37
38CLEANFILES=authldaprc.h authmysqlrc.h authdaemonrc.h vpopmail_config.h \
39 authpgsqlrc.h authpiperc.h authdaemon \
40 authlib.3 authlib.html packageversion.h \
41 authchangepwdir.h sbindir.h pkglibdir.h pkgincludedir.h \
42 mailusergroup.h authinfodaemondlist.c permissions.dat \
43 README.authdebug.html
44
45DISTCLEANFILES=dbobj.config README_authlib.html
46
47commonlibdep=libcourierauthcommon.la
48commonldflags=-module -rpath $(pkglibdir) -export-symbols-regex 'courier_auth.*_init'
49commonlibadd=libcourierauthcommon.la
50
51libcourierauthcommon_t=@CRYPTLIBS@
52libcourierauthcommon_la_SOURCES= \
53 auth.h courierauth.h \
54 authpwdenumerate.c \
55 authsaslfrombase64.c authsasltobase64.c \
56 authstaticlist.h \
57 authsyschangepwd.c authsyscommon.c \
58 cramlib.c cramlib.h \
59 checkpassword.c cryptpassword.c \
60 $(checkpasswordmd5c) $(checkpasswordsha1c)
61
62libcourierauthcommon_la_DEPENDENCIES=libcourierauth.la
63libcourierauthcommon_la_LIBADD=libcourierauth.la
64libcourierauthcommon_la_LDFLAGS=$(libcourierauthcommon_t:%=-Wl,%)
65
66libcourierauth_la_SOURCES=authdaemon.c authdaemonlib.c preauthdaemon.c \
67 authmoduser2.c authmoduser3.c debug.c \
68 courierauthdebug.h \
69 authoption.c
70libcourierauth_la_LIBADD=@HMACLIB@ @MD5LIB@ @SHA1LIB@ numlib/libnumlib.la \
71 random128/librandom128.la rfc822/libencode.la
72libcourierauth_la_LDFLAGS=@NETLIBS@
73
74# The userdb module
75
76libauthuserdb_t=userdb/libuserdb.la @dblibrary@ @LIBGDBM@ @LIBDB@
77libauthuserdb_la_SOURCES=authuserdb.c preauthuserdb.c preauthuserdbcommon.c \
78 authuserdbpwd.c
79libauthuserdb_la_DEPENDENCIES=libcourierauthcommon.la @dblibrary@
80libauthuserdb_la_LIBADD=$(commonlibadd) $(libauthuserdb_t)
81libauthuserdb_la_LDFLAGS=$(commonldflags)
82
83# the authpam module
84
85libauthpam_t=-lpam @SHADOWLIBS@ @AUTHPAMCRYPT@ @LIBDL@
86
87libauthpam_la_SOURCES=authpam.c preauthpam.c authwait.h
88libauthpam_la_DEPENDENCIES=$(commonlibdep)
89libauthpam_la_LIBADD=$(commonlibadd)
90libauthpam_la_LDFLAGS=$(commonldflags) $(libauthpam_t)
91
92# The authpwd module
93
94libauthpwd_la_SOURCES=authpwd.c preauthpwd.c
95libauthpwd_la_DEPENDENCIES=$(commonlibdep)
96libauthpwd_la_LIBADD=$(commonlibadd)
97libauthpwd_la_LDFLAGS=$(commonldflags)
98
99# The authshadow module
100
101libauthshadow_t=@SHADOWLIBS@
102
103libauthshadow_la_SOURCES=authshadow.c preauthshadow.c
104libauthshadow_la_DEPENDENCIES=$(commonlibdep)
105libauthshadow_la_LIBADD=$(commonlibadd)
106libauthshadow_la_LDFLAGS=$(commonldflags) $(libauthshadow_t)
107
108# The authvchkpw module
109
110libauthvchkpw_t=@VPOPMAILLIBS@ @LIBM@
111libauthvchkpw_la_SOURCES=authvchkpw.c authvchkpwlib.c preauthvchkpw.c
112libauthvchkpw_la_DEPENDENCIES=$(commonlibdep)
113libauthvchkpw_la_LIBADD=$(commonlibadd)
114libauthvchkpw_la_LDFLAGS=$(commonldflags) $(libauthvchkpw_t)
115
116authvchkpw.lo: authvchkpw.c vpopmail_config.h
117preauthvchkpw.lo: preauthvchkpw.c vpopmail_config.h
118
119vpopmail_config.h:
120 echo '#include "@vpopmail_home@/include/config.h"' >vpopmail_config.h
121
122# The authpgsql module
123
124libauthpgsql_t=@PGSQL_LIBS@ @LIBM@ @NETLIBS@
125
126libauthpgsql_la_SOURCES=authpgsql.c preauthpgsql.c authpgsqllib.c authpgsql.h
127libauthpgsql_la_DEPENDENCIES=$(commonlibdep)
128libauthpgsql_la_LIBADD=$(commonlibadd)
129libauthpgsql_la_LDFLAGS=$(commonldflags) $(libauthpgsql_t)
130
131authpgsqllib.lo: authpgsqllib.c authpgsqlrc.h
132
133
134if HAVE_AUTHPGSQL
135
136install-authpgsqlrc:
137 $(mkinstalldirs) $(DESTDIR)`dirname @authpgsqlrc@` || :
138 $(INSTALL_DATA) -m 660 $(srcdir)/authpgsqlrc \
139 $(DESTDIR)@authpgsqlrc@.dist
140 -chown @mailuser@ $(DESTDIR)@authpgsqlrc@.dist
141 -chgrp @mailgroup@ $(DESTDIR)@authpgsqlrc@.dist
142
143uninstall-authpgsqlrc:
144 rm -f $(DESTDIR)@authpgsqlrc@.dist
145
146else
147
148install-authpgsqlrc:
149 @:
150
151uninstall-authpgsqlrc:
152 @:
153endif
154
155authpgsqlrc.h:
156 echo "#define AUTHPGSQLRC \"@authpgsqlrc@\"" >authpgsqlrc.h
157
158
159# The authldap module
160
161libauthldap_t=@LDAPLIBS@ @NETLIBS@
162libauthldap_la_SOURCES=authldap.c preauthldap.c authldaplib.c authldap.h
163libauthldap_la_DEPENDENCIES=$(commonlibdep)
164libauthldap_la_LIBADD=$(commonlibadd)
165libauthldap_la_LDFLAGS=$(commonldflags) $(libauthldap_t)
166
167authldaplib.lo: authldaplib.c authldaprc.h
168
169if HAVE_LDAP
170
171install-authldaprc:
172 $(mkinstalldirs) $(DESTDIR)`dirname @authldaprc@` || :
173 $(INSTALL_DATA) -m 660 $(srcdir)/authldaprc \
174 $(DESTDIR)@authldaprc@.dist
175 -chown @mailuser@ $(DESTDIR)@authldaprc@.dist
176 -chgrp @mailgroup@ $(DESTDIR)@authldaprc@.dist
177
178uninstall-authldaprc:
179 rm -f $(DESTDIR)@authldaprc@.dist
180
181else
182install-authldaprc:
183 @:
184
185uninstall-authldaprc:
186 @:
187endif
188
189authldaprc.h:
190 echo "#define AUTHLDAPRC \"@authldaprc@\"" >authldaprc.h
191
192# The authmysql module
193
194libauthmysql_t=@MYSQL_LIBS@ @LIBM@ @NETLIBS@
195
196libauthmysql_la_SOURCES=authmysql.c preauthmysql.c authmysqllib.c authmysql.h
197libauthmysql_la_DEPENDENCIES=$(commonlibdep)
198libauthmysql_la_LIBADD=$(commonlibadd)
199libauthmysql_la_LDFLAGS=$(commonldflags) $(libauthmysql_t)
200
201authmysqllib.lo: authmysqllib.c authmysqlrc.h
202
203if HAVE_AUTHMYSQL
204install-authmysqlrc:
205 $(mkinstalldirs) $(DESTDIR)`dirname @authmysqlrc@` || :
206 $(INSTALL_DATA) -m 660 $(srcdir)/authmysqlrc \
207 $(DESTDIR)@authmysqlrc@.dist
208 -chown @mailuser@ $(DESTDIR)@authmysqlrc@.dist
209 -chgrp @mailgroup@ $(DESTDIR)@authmysqlrc@.dist
210
211uninstall-authmysqlrc:
212 rm -f $(DESTDIR)@authmysqlrc@.dist
213
214else
215install-authmysqlrc:
216 @:
217
218uninstall-authmysqlrc:
219 @:
220endif
221
222authmysqlrc.h:
223 echo "#define AUTHMYSQLRC \"@authmysqlrc@\"" >authmysqlrc.h
224
225# The authcustom module
226
227libauthcustom_la_SOURCES=authcustom.c preauthcustom.c authcustom.h
228libauthcustom_la_DEPENDENCIES=$(commonlibdep)
229libauthcustom_la_LIBADD=$(commonlibadd)
230libauthcustom_la_LDFLAGS=$(commonldflags)
231
232# The authpipe module
233libauthpipe_la_SOURCES=authpipe.c authpipelib.h authpipelib.c
234libauthpipe_la_DEPENDENCIES=$(commonlibdep)
235libauthpipe_la_LIBADD=$(commonlibadd)
236libauthpipe_la_LDFLAGS=$(commonldflags)
237
238authpipelib.lo: authpipelib.c authpipelib.h authpiperc.h
239
240authpiperc.h:
241 echo "#define PIPE_PROGRAM \"@authProg@\"" >authpiperc.h
242
243
244#
245# AUTHMODULES should be listed in the best authentication order
246#
247
248noinst_PROGRAMS= \
249 authdaemontest authmksock \
250 authdaemondprog
251
252
253if HAVE_MD5
254checkpasswordmd5c=checkpasswordmd5.c
255else
256checkpasswordmd5c=
257endif
258
259if HAVE_SHA1
260checkpasswordsha1c=checkpasswordsha1.c
261else
262checkpasswordsha1c=
263endif
264
265install-authdaemonrc:
266 $(mkinstalldirs) $(DESTDIR)`dirname @authdaemonrc@` || :
267 sed 's/@ALLMODULES@/$(modules:lib%.la=%)/' <authdaemonrc >authdaemonrc.tmp
268 $(INSTALL_DATA) -m 660 authdaemonrc.tmp $(DESTDIR)@authdaemonrc@.dist
269 rm -f authdaemonrc.tmp
270 -chown @mailuser@ $(DESTDIR)@authdaemonrc@.dist
271 -chgrp @mailgroup@ $(DESTDIR)@authdaemonrc@.dist
272
273uninstall-authdaemonrc:
274 rm -f $(DESTDIR)@authdaemonrc@.dist
275
276authdaemonrc.h:
277 echo "#define AUTHDAEMONRC \"@authdaemonrc@\"" >authdaemonrc.h
278 echo "#define AUTHDAEMONVAR \"@authdaemonvar@\"" >>authdaemonrc.h
279 echo "#define AUTHDAEMONPID AUTHDAEMONVAR \"/pid\"" >>authdaemonrc.h
280 echo "#define AUTHDAEMONSOCK AUTHDAEMONVAR \"/socket\"" >>authdaemonrc.h
281 echo "#define AUTHDAEMONLOCK AUTHDAEMONVAR \"/lock\"" >>authdaemonrc.h
282
283HTMLFILES=README.html NEWS.html INSTALL.html \
284 README.authmysql.html README.authpostgres.html
285
286EXTRA_DIST=$(HTMLFILES) sysconftool COPYING COPYING.GPL\
287 authldap.schema \
288 checkpasswordmd5.c checkpasswordsha1.c \
289 authldaprc authmysqlrc authpgsqlrc README.ldap \
290 README.authmysql.myownquery \
291 README.authdebug.html.in automake.fix \
292 courier-authlib.spec \
293 courier-authlib.lpspec pgpkeys.txt \
294 README_authlib.html.in \
295 authlib.html.in authlib.3.in \
296 authpasswd.html authpasswd.1 \
297 authtest.html authtest.1 \
298 auth_sasl.html auth_sasl.3 \
299 auth_generic.html auth_generic.3 \
300 auth_login.html auth_login.3 \
301 auth_passwd.html auth_passwd.3 \
302 auth_getuserinfo.html auth_getuserinfo.3 \
303 auth_enumerate.html auth_enumerate.3 \
304 auth_getoption.html auth_getoption.3 \
305 samplepipe.pl prep.xsl
306
307README: README.html
308 links -dump README.html >README
309
310NEWS: NEWS.html
311 links -dump NEWS.html >NEWS
312
313INSTALL: INSTALL.html
314 links -dump INSTALL.html >INSTALL
315
316libcourierauthsasl_la_SOURCES=\
317 authsasl.c courierauthsasl.h \
318 authsaslcram.c authsasllogin.c authsaslplain.c \
319 authsaslfrombase64.c authsasltobase64.c
320libcourierauthsasl_la_LIBADD=libcourierauth.la
321libcourierauthsasl_la_LDFLAGS=-export-symbols-regex '^auth_sasl$$'
322
323libcourierauthsaslclient_la_SOURCES=courierauthsaslclient.h \
324 authsaslclient.c authsaslclient.h authsaslclientcram.c \
325 authsaslclientcrammd5.c authsaslclientcramsha1.c \
326 authsaslclientlogin.c authsaslclientplain.c \
327 authsaslfrombase64.c authsasltobase64.c
328libcourierauthsaslclient_la_LIBADD=libcourierauth.la
329libcourierauthsaslclient_la_LDFLAGS=-export-symbols-regex '^auth_sasl_client$$'
330
331include_HEADERS=courier_auth_config.h courierauth.h courierauthsasl.h \
332 courierauthsaslclient.h courierauthdebug.h
333
334courierauthconfig_SOURCES=authinfo.c
335
336authpasswd_SOURCES=authpasswd.c
337authpasswd_LDADD=libcourierauthcommon.la \
338 libhmac/libhmac.la md5/libmd5.la sha1/libsha1.la rfc822/libencode.la
339
340authtest_SOURCES=authtest.c
341authtest_DEPENDENCIES=libcourierauth.la
342authtest_LDADD=libcourierauth.la
343
344authenumerate_SOURCES=authenumerate.c
345authenumerate_DEPENDENCIES = libcourierauth.la \
346 numlib/libnumlib.la
347authenumerate_LDADD = libcourierauth.la \
348 numlib/libnumlib.la
349authenumerate_LDFLAGS=
350
351#
352# The main daemon.
353
354authdaemondprog_SOURCES=authdaemond.c
355authdaemondprog_DEPENDENCIES=libcourierauthcommon.la \
356 liblock/liblock.la $(modules) \
357 libhmac/libhmac.la md5/libmd5.la sha1/libsha1.la \
358 rfc822/libencode.la numlib/libnumlib.la
359authdaemondprog_LDADD=$(LIBLTDL) libcourierauthcommon.la liblock/liblock.la \
360 libhmac/libhmac.la md5/libmd5.la sha1/libsha1.la \
361 rfc822/libencode.la numlib/libnumlib.la
362authdaemondprog_LDFLAGS=-export-dynamic $(modules:%=-dlopen %) @NETLIBS@
363
364authdaemontest_SOURCES=authdaemontest.c
365authdaemontest_DEPENDENCIES=libcourierauthcommon.la
366authdaemontest_LDADD=libcourierauthcommon.la @NETLIBS@
367authdaemontest_LDFLAGS=-static
368
369authmksock_SOURCES=authmksock.c
370authmksock_LDADD=@NETLIBS@
371
372man3=authlib.3 auth_generic.3 auth_login.3 auth_getuserinfo.3 \
373 auth_enumerate.3 auth_passwd.3 auth_getoption.3 auth_sasl.3
374man1=authpasswd.1 authtest.1
375
376man_MANS=$(man1) $(man3)
377
378BUILT1=authlib.html authldaprc.h authmysqlrc.h authpgsqlrc.h authpiperc.h \
379 authdaemonrc.h vpopmail_config.h packageversion.h \
380 authchangepwdir.h sbindir.h \
381 pkglibdir.h pkgincludedir.h mailusergroup.h \
382 README_authlib.html
383BUILT_SOURCES=$(BUILT1) $(man3:%.3=%.html) $(man1:%.1=%.html)
384
385authchangepwdir.h: config.status
386 echo '#define AUTHCHANGEPWDIR "$(pkglibexecdir)"' >authchangepwdir.h
387
388sbindir.h: config.status
389 echo '#define SBINDIR "@sbindir@"' >sbindir.h
390
391pkglibdir.h: config.status
392 echo '#define PKGLIBDIR "$(pkglibdir)"' >pkglibdir.h
393
394packageversion.h: config.status
395 echo '#define PKGVERSION "@PACKAGE_VERSION@"' >packageversion.h
396
397pkgincludedir.h: config.status
398 echo '#define PKGINCLUDEDIR "$(includedir)"' >pkgincludedir.h
399
400mailusergroup.h: config.status
401 echo '#define MAILUSER "@mailuser@"' >mailusergroup.h
402 echo '#define MAILGROUP "@mailgroup@"' >>mailusergroup.h
403
404noinst_DATA=$(BUILT_SOURCES)
405
406dist-hook:
407 for f in $(BUILT1) ; do rm -f $(distdir)/$$f; done
408
409# automake still a bit stupid...
410
411install-data-hook: install-authdaemonrc install-authpgsqlrc \
412 install-authldaprc install-authmysqlrc
413 :
414
415install-exec-hook:
416 $(mkinstalldirs) $(DESTDIR)$(bindir) || :
417 $(mkinstalldirs) $(DESTDIR)$(sbindir) || :
418 $(mkinstalldirs) $(DESTDIR)$(pkglibexecdir) || :
419 $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) authdaemondprog $(DESTDIR)$(pkglibexecdir)/authdaemond
420 $(mkinstalldirs) $(DESTDIR)@authdaemonvar@ || :
421 chmod 750 $(DESTDIR)@authdaemonvar@
422 -chown @mailuser@ $(DESTDIR)@authdaemonvar@
423 -chgrp @mailgroup@ $(DESTDIR)@authdaemonvar@
424 test "@LIBAUTHUSERDB@" = "" && exit 0 ;\
425 $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) makedat/makedatprog \
426 $(DESTDIR)$(pkglibexecdir)/makedatprog ; \
427 $(INSTALL_SCRIPT) userdb/vchkpw2userdb \
428 $(DESTDIR)$(sbindir)/vchkpw2userdb ; \
429 $(INSTALL_SCRIPT) userdb/pw2userdb \
430 $(DESTDIR)$(sbindir)/pw2userdb ; \
431 $(INSTALL_SCRIPT) userdb/makeuserdb \
432 $(DESTDIR)$(sbindir)/makeuserdb ; \
433 $(INSTALL_SCRIPT) userdb/userdb.pl \
434 $(DESTDIR)$(sbindir)/userdb ; \
435 $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) userdb/userdbpw \
436 $(DESTDIR)$(sbindir)/userdbpw ; \
437 $(INSTALL_SCRIPT) userdb-test-cram-md5.pl \
438 $(DESTDIR)$(sbindir)/userdb-test-cram-md5
439
440uninstall-hook: uninstall-authldaprc uninstall-authdaemonrc uninstall-authmysqlrc uninstall-authpgsqlrc
441 rm -f $(DESTDIR)$(pkglibexecdir)/authdaemond
442 test "@AUTHUSERDB@" = "" && exit 0 ;\
443 rm -f $(DESTDIR)$(pkglibexecdir)/makedatprog \
444 $(DESTDIR)$(sbindir)/vchkpw2userdb \
445 $(DESTDIR)$(sbindir)/pw2userdb \
446 $(DESTDIR)$(sbindir)/makeuserdb \
447 $(DESTDIR)$(sbindir)/userdb \
448 $(DESTDIR)$(sbindir)/userdbpw \
449 $(DESTDIR)$(sbindir)/userdb-test-cram-md5
450
451authlib.html: authlib.html.in
452 CONFIG_FILES=authlib.html CONFIG_HEADERS= $(SHELL) ./config.status
453
454authlib.3: authlib.3.in
455 CONFIG_FILES=authlib.3 CONFIG_HEADERS= $(SHELL) ./config.status
456
457if HAVE_SGML
458authpasswd.html: authpasswd.sgml docbook/sgml2html
459 docbook/sgml2html authpasswd.sgml authpasswd.html
460
461authpasswd.1: authpasswd.sgml docbook/sgml2man
462 docbook/sgml2man authpasswd.sgml authpasswd.1
463
464authtest.html: authtest.sgml docbook/sgml2html
465 docbook/sgml2html authtest.sgml authtest.html
466
467authtest.1: authtest.sgml docbook/sgml2man
468 docbook/sgml2man authtest.sgml authtest.1
469
470authlib.html.in: authlib.sgml docbook/sgml2html
471 docbook/sgml2html authlib.sgml authlib.html.in
472
473authlib.3.in: authlib.sgml docbook/sgml2man
474 docbook/sgml2man authlib.sgml authlib.3.in
475
476README_authlib.html.in: README_authlib.sgml docbook/sgml2html
477 docbook/sgml2html README_authlib.sgml README_authlib.html.in
478
479auth_generic.html: auth_generic.sgml authcallback.sgml docbook/sgml2html
480 docbook/sgml2html auth_generic.sgml auth_generic.html
481
482auth_generic.3: auth_generic.sgml authcallback.sgml docbook/sgml2man
483 docbook/sgml2man auth_generic.sgml auth_generic.3
484
485auth_login.html: auth_login.sgml authcallback.sgml docbook/sgml2html
486 docbook/sgml2html auth_login.sgml auth_login.html
487
488auth_login.3: auth_login.sgml authcallback.sgml docbook/sgml2man
489 docbook/sgml2man auth_login.sgml auth_login.3
490
491auth_getuserinfo.html: auth_getuserinfo.sgml authcallback.sgml docbook/sgml2html
492 docbook/sgml2html auth_getuserinfo.sgml auth_getuserinfo.html
493
494auth_getuserinfo.3: auth_getuserinfo.sgml authcallback.sgml docbook/sgml2man
495 docbook/sgml2man auth_getuserinfo.sgml auth_getuserinfo.3
496
497auth_enumerate.html: auth_enumerate.sgml docbook/sgml2html
498 docbook/sgml2html auth_enumerate.sgml auth_enumerate.html
499
500auth_enumerate.3: auth_enumerate.sgml docbook/sgml2man
501 docbook/sgml2man auth_enumerate.sgml auth_enumerate.3
502
503auth_passwd.html: auth_passwd.sgml docbook/sgml2html
504 docbook/sgml2html auth_passwd.sgml auth_passwd.html
505
506auth_passwd.3: auth_passwd.sgml docbook/sgml2man
507 docbook/sgml2man auth_passwd.sgml auth_passwd.3
508
509auth_getoption.html: auth_getoption.sgml docbook/sgml2html
510 docbook/sgml2html auth_getoption.sgml auth_getoption.html
511
512auth_getoption.3: auth_getoption.sgml docbook/sgml2man
513 docbook/sgml2man auth_getoption.sgml auth_getoption.3
514
515auth_sasl.html: auth_sasl.sgml docbook/sgml2html
516 docbook/sgml2html auth_sasl.sgml auth_sasl.html
517
518auth_sasl.3: auth_sasl.sgml docbook/sgml2man
519 docbook/sgml2man auth_sasl.sgml auth_sasl.3
520
521
522endif
523
524README_authlib.html: README_authlib.html.in config.status
525 CONFIG_FILES=README_authlib.html CONFIG_HEADERS= $(SHELL) ./config.status
526
527authdaemond.o: authdaemonrc.h authdaemond.c
528
529
530install-migrate: authmigrate
531 @SHELL@ authmigrate
532
533install-configure:
534 test -f $(DESTDIR)@authdaemonrc@.dist && @SYSCONFTOOL@ $(DESTDIR)@authdaemonrc@.dist || true
535 test -f $(DESTDIR)@authmysqlrc@.dist && @SYSCONFTOOL@ $(DESTDIR)@authmysqlrc@.dist || true
536 test -f $(DESTDIR)@authpgsqlrc@.dist && @SYSCONFTOOL@ $(DESTDIR)@authpgsqlrc@.dist || true
537 test -f $(DESTDIR)@authldaprc@.dist && @SYSCONFTOOL@ $(DESTDIR)@authldaprc@.dist || true
538
539# For maintainer's use only
540
541distrelease:
542 umask 022; $(MAKE) -$(MAKEFLAGS) distcheck
543 $(MAKE) -$(MAKEFLAGS) rpm
544 socksify cvs commit
545 socksify cvs tag -F @PACKAGE@-latest
546 $(MAKE) -$(MAKEFLAGS)
547 $(MAKE) -$(MAKEFLAGS)
548 rm -f @PACKAGE@.spec @PACKAGE@.lpspec
549 $(MAKE) -$(MAKEFLAGS) @PACKAGE@.spec @PACKAGE@.lpspec
550 $(MAKE) -$(MAKEFLAGS) dist
551
552tagrelease:
553 socksify cvs tag -F -r @PACKAGE@-latest \
554 `echo @PACKAGE@-@VERSION@ | tr '.' '-'`
555
556rpm: rpm-build
557
558rpm-build:
559 $(MAKE) -$(MAKEFLAGS) bump.rpm.release
560 $(MAKE) -$(MAKEFLAGS) dist
561 $(MAKE) -$(MAKEFLAGS) dorpm
562
563lpm: lpm-build
564
565lpm-build:
566 $(MAKE) -$(MAKEFLAGS) bump.rpm.release
567 $(MAKE) -$(MAKEFLAGS) dist
568 $(MAKE) -$(MAKEFLAGS) dolpm
569
570dolpm:
571 rm -rf lpm
572 mkdir lpm
573 lpbuild `test "@REPOSITORY@" == "" || echo --define "repository=1"` --srcbuild -o lpm @PACKAGE@-@VERSION@.tar.bz2
574
575publish: publish-@REPOSITORY@
576
577publish-dev:
578 $(MAKE) -$(MAKEFLAGS) dopublish SUBDIR=dev
579
580publish-prod:
581 $(MAKE) -$(MAKEFLAGS) dopublish SUBDIR=prod
582
583dopublish:
584 lpbuild --resign lpm/*
585 rm -rf lpmtmp
586 mkdir lpmtmp
587 ln lpm/* lpmtmp
588 rm -f lpmtmp/*debuginfo*
589 mv lpmtmp/*.src.lp repository-$(SUBDIR)/`lpm -q --distribution`/sources
590 mv lpmtmp/*.lp repository-$(SUBDIR)/`lpm -q --distribution`/packages
591 rm -rf lpmtmp
592 ls -t repository-$(SUBDIR)/`lpm -q --distribution`/sources | tail -n +6 | xargs -r -n 1 lpm --erase repository-$(SUBDIR)
593 lpm --sync repository-$(SUBDIR)
594 rsync -a -v --delete-after repository-$(SUBDIR)/`lpm -q --distribution`/. headache:lpmtool.com/www/repositories/$(SUBDIR)/courier-authlib/`lpm -q --distribution`
595
596dorpm:
597 rm -rf rpm/BUILD/*
598 rm -f rpm/RPMS/*/*
599 rm -f rpm/SOURCES/*
600 rm -f rpm/SPECS/*
601 rm -f rpm/SRPMS/*
602 unset MAKEFLAGS ; test ! -f $$HOME/.bashrc || . $$HOME/.bashrc; rpmbuild -ta --clean @PACKAGE@-@VERSION@.tar.bz2
603
604bump.rpm.release: @PACKAGE@.spec @PACKAGE@.lpspec
605 test -f $(srcdir)/rpm.release && . $(srcdir)/rpm.release; \
606 NEXT_RELEASE=0; \
607 test "$$VERSION" = "@VERSION@" && NEXT_RELEASE="$$RELEASE"; \
608 RELEASE=`expr $$NEXT_RELEASE + 1`; \
609 echo "VERSION=@VERSION@" >$(srcdir)/rpm.release; \
610 echo "RELEASE=$$RELEASE" >>$(srcdir)/rpm.release; \
611 sed 's/^Release: .*/Release: '$$RELEASE'%{courier_release}/' \
612 <@PACKAGE@.spec >@PACKAGE@.spec.new; \
613 mv @PACKAGE@.spec.new @PACKAGE@.spec; \
614 sed 's/^Release: .*/Release: '$$RELEASE'/' \
615 <@PACKAGE@.lpspec >@PACKAGE@.lpspec.new; \
616 mv @PACKAGE@.lpspec.new @PACKAGE@.lpspec
617
618upload-beta:
619 rm -f @PACKAGE@-@VERSION@.tar.bz2.sig; gpg --detach-sign --default-key mrsam@courier-mta.com @PACKAGE@-@VERSION@.tar.bz2; test -f @PACKAGE@-@VERSION@.tar.bz2.sig || exit 1
620 socksify ssh courier.sourceforge.net echo @PACKAGE@-@VERSION@.tar.bz2 `ls -l @PACKAGE@-@VERSION@.tar.bz2 | awk ' { print $$5 } '` \>/home/groups/c/co/courier/@PACKAGE@.beta
621 ssh headache 'cd torrents.courier-mta.org/pub/@PACKAGE@-dev && rm -rf @PACKAGE@-@VERSION@ && mkdir @PACKAGE@-@VERSION@ && echo seeder_args=--max_upload_rate 50 >@PACKAGE@-@VERSION@.info && ls -t | sed 1,6d | xargs rm -rf '
622 scp @PACKAGE@-@VERSION@.tar.bz2 @PACKAGE@-@VERSION@.tar.bz2.sig headache:torrents.courier-mta.org/pub/@PACKAGE@-dev/@PACKAGE@-@VERSION@
623
624upload-dist:
625 rm -f @PACKAGE@-@VERSION@.tar.bz2.sig; gpg --detach-sign --default-key mrsam@courier-mta.com @PACKAGE@-@VERSION@.tar.bz2; test -f @PACKAGE@-@VERSION@.tar.bz2.sig || exit 1
626 socksify cvs tag -F -r @PACKAGE@-latest \
627 `echo @PACKAGE@-@VERSION@ | tr '.' '-'`
628 socksify perl -e 'use Net::FTP; $$ftp=Net::FTP->new("upload.sourceforge.net.", Debug => 1, Passive => 1 ) || die; $$ftp->login("anonymous", "anonymous") || die; $$ftp->cwd("/incoming") && $$ftp->binary() && $$ftp->hash(1) && $$ftp->put("@PACKAGE@-@VERSION@.tar.bz2") && $$ftp->put("@PACKAGE@-@VERSION@.tar.bz2.sig") && exit 0; die;'
629 ssh headache 'cd torrents.courier-mta.org/pub/@PACKAGE@ && rm -rf @PACKAGE@-@VERSION@ && mkdir @PACKAGE@-@VERSION@ && echo seeder_args=--max_upload_rate 50 >@PACKAGE@-@VERSION@.info && ls -t | sed 1,6d | xargs rm -rf '
630 scp @PACKAGE@-@VERSION@.tar.bz2 @PACKAGE@-@VERSION@.tar.bz2.sig headache:torrents.courier-mta.org/pub/@PACKAGE@/@PACKAGE@-@VERSION@
631
632
633release-dist:
634 test -z "$(SFPASSWD)" && exit 1; exit 0
635 ./changelog.pl >changelog.txt
636 emacs releasenotes.txt
637 test -f releasenotes.txt || exit 1
638 socksify ../sftools/release.pl mrsam $(SFPASSWD) courier authlib @VERSION@ releasenotes.txt changelog.txt @PACKAGE@-@VERSION@.tar.bz2 @PACKAGE@-@VERSION@.tar.bz2.sig
639 socksify ssh courier.sourceforge.net rm -f /home/groups/c/co/courier/@PACKAGE@.beta
640
641HTMLDOCFILES=$(HTMLFILES) README.authdebug.html README_authlib.html \
642 $(man3:%.3=%.html) $(man1:%.1=%.html)
643
644htmldoc: $(HTMLDOCFILES)
645 for f in $^; do d=`basename $$f`; test "$$d" = "README.html" && d="index2.html"; xsltproc --nonet $(srcdir)/prep.xsl $$f | perl -ne 's~\$(id):.*\$$~\$(id):'"$$h"'\$$~; print' >html/$$d; done