2 # Copyright 1998 - 2009 Double Precision, Inc. See COPYING for
3 # distribution information.
5 AUTOMAKE_OPTIONS=dist-bzip2
7 SUBDIRS=libs/gdbmobj libs/bdbobj libs/md5 libs/sha1 libs/libhmac libs/numlib libs/makedat userdb libs/rfc822 libs/random128 libs/liblock liblog
9 AM_CPPFLAGS=-I liblock $(LTDLINCL)
11 modules=@LIBAUTHUSERDB@ \
12 @LIBAUTHPAM@ @LIBAUTHPWD@ @LIBAUTHSHADOW@ \
13 @LIBAUTHPGSQL@ @LIBAUTHLDAP@ @LIBAUTHMYSQL@ @LIBAUTHSQLITE@ \
14 @LIBAUTHCUSTOM@ @LIBAUTHPIPE@
16 pkglibexecdir=$(libexecdir)/courier-authlib
17 pkglibexec_SCRIPTS=authsystem.passwd
19 pkglib_LTLIBRARIES=libcourierauth.la \
20 libcourierauthsasl.la libcourierauthsaslclient.la \
21 libcourierauthcommon.la $(modules)
22 sbin_SCRIPTS=authdaemond
23 sbin_PROGRAMS=authtest authenumerate authpasswd
24 bin_PROGRAMS=courierauthconfig
26 EXTRA_LTLIBRARIES=libauthuserdb.la \
27 libauthpam.la libauthpwd.la libauthshadow.la \
35 CLEANFILES=authldaprc.h authmysqlrc.h authsqliterc.h authdaemonrc.h \
36 authpgsqlrc.h authpiperc.h authdaemon \
37 authlib.3 authlib.html packageversion.h \
38 authchangepwdir.h sbindir.h pkglibdir.h pkgincludedir.h \
39 mailusergroup.h authinfodaemondlist.c permissions.dat \
42 DISTCLEANFILES=dbobj.config README_authlib.html
44 commonlibdep=libcourierauthcommon.la
45 commonldflags=-module -rpath $(pkglibdir) -export-symbols-regex 'courier_auth.*_init' -avoid-version
46 commonlibadd=libcourierauthcommon.la
48 libcourierauthcommon_t=@CRYPTLIBS@
49 libcourierauthcommon_la_SOURCES= \
50 auth.h courierauth.h \
53 authsaslfrombase64.c authsasltobase64.c \
54 courierauthstaticlist.h \
55 authsyschangepwd.c authsyscommon.c \
58 checkpassword.c cryptpassword.c \
59 checkpasswordmd5.c checkpasswordsha1.c
61 libcourierauthcommon_la_DEPENDENCIES=libcourierauth.la
62 libcourierauthcommon_la_LIBADD=libcourierauth.la
63 libcourierauthcommon_la_LDFLAGS=$(libcourierauthcommon_t:%=-Wl,%) -avoid-version
65 libcourierauth_la_SOURCES=authdaemon.c authdaemonlib.c preauthdaemon.c \
66 authmoduser2.c authmoduser3.c debug.c \
69 libcourierauth_la_LIBADD=libs/libhmac/libhmac.la libs/md5/libmd5.la libs/sha1/libsha1.la libs/numlib/libnumlib.la \
70 libs/random128/librandom128.la libs/rfc822/libencode.la
71 libcourierauth_la_LDFLAGS=@NETLIBS@ -avoid-version
75 libauthuserdb_t=userdb/libuserdb.la @dblibrary@ @LIBGDBM@ @LIBDB@
76 libauthuserdb_la_SOURCES=authuserdb.c preauthuserdb.c preauthuserdbcommon.c \
78 libauthuserdb_la_DEPENDENCIES=libcourierauthcommon.la @dblibrary@
79 libauthuserdb_la_LIBADD=$(commonlibadd) $(libauthuserdb_t)
80 libauthuserdb_la_LDFLAGS=$(commonldflags)
84 libauthpam_t=-lpam @SHADOWLIBS@ @AUTHPAMCRYPT@ @LIBDL@
86 libauthpam_la_SOURCES=authpam.c preauthpam.c authwait.h
87 libauthpam_la_DEPENDENCIES=$(commonlibdep)
88 libauthpam_la_LIBADD=$(commonlibadd) $(libauthpam_t)
89 libauthpam_la_LDFLAGS=$(commonldflags)
93 libauthpwd_la_SOURCES=authpwd.c preauthpwd.c
94 libauthpwd_la_DEPENDENCIES=$(commonlibdep)
95 libauthpwd_la_LIBADD=$(commonlibadd)
96 libauthpwd_la_LDFLAGS=$(commonldflags)
98 # The authshadow module
100 libauthshadow_t=@SHADOWLIBS@
102 libauthshadow_la_SOURCES=authshadow.c preauthshadow.c
103 libauthshadow_la_DEPENDENCIES=$(commonlibdep)
104 libauthshadow_la_LIBADD=$(commonlibadd) $(libauthshadow_t)
105 libauthshadow_la_LDFLAGS=$(commonldflags)
107 # The authpgsql module
109 libauthpgsql_t=@PGSQL_LIBS@ @LIBM@ @NETLIBS@
111 libauthpgsql_la_SOURCES=authpgsql.c preauthpgsql.c authpgsqllib.c authpgsql.h
112 libauthpgsql_la_DEPENDENCIES=$(commonlibdep)
113 libauthpgsql_la_LIBADD=$(commonlibadd) $(libauthpgsql_t)
114 libauthpgsql_la_LDFLAGS=$(commonldflags)
116 authpgsqllib.lo: authpgsqllib.c authpgsqlrc.h
121 $(mkinstalldirs) $(DESTDIR)`dirname @authpgsqlrc@` || :
122 $(INSTALL_DATA) -m 660 $(srcdir)/authpgsqlrc \
123 $(DESTDIR)@authpgsqlrc@.dist
124 -chown @mailuser@ $(DESTDIR)@authpgsqlrc@.dist
125 -chgrp @mailgroup@ $(DESTDIR)@authpgsqlrc@.dist
127 uninstall-authpgsqlrc:
128 rm -f $(DESTDIR)@authpgsqlrc@.dist
135 uninstall-authpgsqlrc:
140 echo "#define AUTHPGSQLRC \"@authpgsqlrc@\"" >authpgsqlrc.h
143 # The authldap module
145 libauthldap_t=@LDAPLIBS@ @NETLIBS@
146 libauthldap_la_SOURCES=authldap.c preauthldap.c authldaplib.c authldap.h
147 libauthldap_la_DEPENDENCIES=$(commonlibdep)
148 libauthldap_la_LIBADD=$(commonlibadd) $(libauthldap_t)
149 libauthldap_la_LDFLAGS=$(commonldflags)
151 authldaplib.lo: authldaplib.c authldaprc.h
156 $(mkinstalldirs) $(DESTDIR)`dirname @authldaprc@` || :
157 $(INSTALL_DATA) -m 660 $(srcdir)/authldaprc \
158 $(DESTDIR)@authldaprc@.dist
159 -chown @mailuser@ $(DESTDIR)@authldaprc@.dist
160 -chgrp @mailgroup@ $(DESTDIR)@authldaprc@.dist
162 uninstall-authldaprc:
163 rm -f $(DESTDIR)@authldaprc@.dist
169 uninstall-authldaprc:
174 echo "#define AUTHLDAPRC \"@authldaprc@\"" >authldaprc.h
176 # The authmysql module
178 libauthmysql_t=@MYSQL_LIBS@ @LIBM@ @NETLIBS@
180 libauthmysql_la_SOURCES=authmysql.c preauthmysql.c authmysqllib.c authmysql.h
181 libauthmysql_la_DEPENDENCIES=$(commonlibdep)
182 libauthmysql_la_LIBADD=$(commonlibadd) $(libauthmysql_t)
183 libauthmysql_la_LDFLAGS=$(commonldflags)
185 authmysqllib.lo: authmysqllib.c authmysqlrc.h
189 $(mkinstalldirs) $(DESTDIR)`dirname @authmysqlrc@` || :
190 $(INSTALL_DATA) -m 660 $(srcdir)/authmysqlrc \
191 $(DESTDIR)@authmysqlrc@.dist
192 -chown @mailuser@ $(DESTDIR)@authmysqlrc@.dist
193 -chgrp @mailgroup@ $(DESTDIR)@authmysqlrc@.dist
195 uninstall-authmysqlrc:
196 rm -f $(DESTDIR)@authmysqlrc@.dist
202 uninstall-authmysqlrc:
207 echo "#define AUTHMYSQLRC \"@authmysqlrc@\"" >authmysqlrc.h
209 # The authsqlite module
211 libauthsqlite_t=@SQLITE_LIBS@ @NETLIBS@
213 libauthsqlite_la_SOURCES=authsqlite.c preauthsqlite.c authsqlitelib.c authsqlite.h
214 libauthsqlite_la_DEPENDENCIES=$(commonlibdep)
215 libauthsqlite_la_LIBADD=$(commonlibadd) $(libauthsqlite_t)
216 libauthsqlite_la_LDFLAGS=$(commonldflags)
218 authsqlitelib.lo: authsqlitelib.c authsqliterc.h
221 install-authsqliterc:
222 $(mkinstalldirs) $(DESTDIR)`dirname @authsqliterc@` || :
223 $(INSTALL_DATA) -m 660 $(srcdir)/authsqliterc \
224 $(DESTDIR)@authsqliterc@.dist
225 -chown @mailuser@ $(DESTDIR)@authsqliterc@.dist
226 -chgrp @mailgroup@ $(DESTDIR)@authsqliterc@.dist
228 uninstall-authsqliterc:
229 rm -f $(DESTDIR)@authsqliterc@.dist
232 install-authsqliterc:
235 uninstall-authsqliterc:
240 echo "#define AUTHSQLITERC \"@authsqliterc@\"" >authsqliterc.h
242 # The authcustom module
244 libauthcustom_la_SOURCES=authcustom.c preauthcustom.c authcustom.h
245 libauthcustom_la_DEPENDENCIES=$(commonlibdep)
246 libauthcustom_la_LIBADD=$(commonlibadd)
247 libauthcustom_la_LDFLAGS=$(commonldflags)
249 # The authpipe module
250 libauthpipe_la_SOURCES=authpipe.c authpipelib.h authpipelib.c
251 libauthpipe_la_DEPENDENCIES=$(commonlibdep)
252 libauthpipe_la_LIBADD=$(commonlibadd)
253 libauthpipe_la_LDFLAGS=$(commonldflags)
255 authpipelib.lo: authpipelib.c authpipelib.h authpiperc.h
258 echo "#define PIPE_PROGRAM \"@authProg@\"" >authpiperc.h
262 # AUTHMODULES should be listed in the best authentication order
266 authdaemontest authmksock \
269 install-authdaemonrc:
270 $(mkinstalldirs) $(DESTDIR)`dirname @authdaemonrc@` || :
271 sed 's/@ALLMODULES@/$(modules:lib%.la=%)/' <authdaemonrc >authdaemonrc.tmp
272 $(INSTALL_DATA) -m 660 authdaemonrc.tmp $(DESTDIR)@authdaemonrc@.dist
273 rm -f authdaemonrc.tmp
274 -chown @mailuser@ $(DESTDIR)@authdaemonrc@.dist
275 -chgrp @mailgroup@ $(DESTDIR)@authdaemonrc@.dist
277 uninstall-authdaemonrc:
278 rm -f $(DESTDIR)@authdaemonrc@.dist
281 echo "#define AUTHDAEMONRC \"@authdaemonrc@\"" >authdaemonrc.h
282 echo "#define AUTHDAEMONVAR \"@authdaemonvar@\"" >>authdaemonrc.h
283 echo "#define AUTHDAEMONPID AUTHDAEMONVAR \"/pid\"" >>authdaemonrc.h
284 echo "#define AUTHDAEMONSOCK AUTHDAEMONVAR \"/socket\"" >>authdaemonrc.h
285 echo "#define AUTHDAEMONLOCK AUTHDAEMONVAR \"/lock\"" >>authdaemonrc.h
287 HTMLFILES=README.html NEWS.html INSTALL.html \
288 README.authsqlite.html README.authmysql.html README.authpostgres.html
290 EXTRA_DIST=$(HTMLFILES) sysconftool COPYING COPYING.GPL\
293 authldaprc authmysqlrc authpgsqlrc authsqliterc README.ldap \
294 README.authmysql.myownquery \
295 README.authdebug.html.in \
296 courier-authlib.spec \
297 courier-authlib.lpspec pgpkeys.txt \
298 README_authlib.html.in \
299 authlib.html.in authlib.3.in \
300 authpasswd.html authpasswd.1 \
301 authtest.html authtest.1 \
302 auth_sasl.html auth_sasl.3 auth_sasl_ex.3 \
303 auth_generic.html auth_generic.3 \
304 auth_login.html auth_login.3 \
305 auth_passwd.html auth_passwd.3 \
306 auth_getuserinfo.html auth_getuserinfo.3 \
307 auth_mkhomedir.html auth_mkhomedir.3 \
308 auth_enumerate.html auth_enumerate.3 \
309 auth_getoption.html auth_getoption.3 \
313 links -dump -no-references README.html >README
316 links -dump -no-references NEWS.html >NEWS
318 INSTALL: INSTALL.html
319 rm -f INSTALL; links -dump -no-references INSTALL.html >INSTALL
321 libcourierauthsasl_la_SOURCES=\
322 authsasl.c courierauthsasl.h \
323 authsaslcram.c authsasllogin.c authsaslplain.c \
324 authsaslfrombase64.c authsasltobase64.c
325 libcourierauthsasl_la_LIBADD=libcourierauthcommon.la libcourierauth.la
326 libcourierauthsasl_la_LDFLAGS=-export-symbols-regex '^auth_sasl|auth_sasl_ex|auth_sasl_extract_userid$$' -avoid-version
328 libcourierauthsaslclient_la_SOURCES=courierauthsaslclient.h \
329 authsaslclient.c authsaslclient.h authsaslclientcram.c \
330 authsaslclientcrammd5.c authsaslclientcramsha1.c \
331 authsaslclientlogin.c authsaslclientplain.c \
332 authsaslclientexternal.c \
333 authsaslfrombase64.c authsasltobase64.c
334 libcourierauthsaslclient_la_LIBADD=libcourierauth.la
335 libcourierauthsaslclient_la_LDFLAGS=-export-symbols-regex '^auth_sasl_client$$' -avoid-version
337 include_HEADERS=courier_auth_config.h courierauth.h courierauthsasl.h \
338 courierauthsaslclient.h courierauthdebug.h courierauthstaticlist.h
340 courierauthconfig_SOURCES=authinfo.c
342 authpasswd_SOURCES=authpasswd.c
343 authpasswd_LDADD=libcourierauthcommon.la \
344 libs/libhmac/libhmac.la libs/md5/libmd5.la libs/sha1/libsha1.la libs/rfc822/libencode.la
346 authtest_SOURCES=authtest.c
347 authtest_DEPENDENCIES=libcourierauth.la
348 authtest_LDADD=libcourierauth.la
350 authenumerate_SOURCES=authenumerate.c
351 authenumerate_DEPENDENCIES = libcourierauth.la \
352 libs/numlib/libnumlib.la
353 authenumerate_LDADD = libcourierauth.la \
354 libs/numlib/libnumlib.la
355 authenumerate_LDFLAGS=
360 authdaemondprog_SOURCES=authdaemond.c
361 authdaemondprog_DEPENDENCIES=libcourierauthcommon.la \
362 libs/liblock/liblock.la $(modules) \
363 libs/libhmac/libhmac.la libs/md5/libmd5.la libs/sha1/libsha1.la \
364 libs/rfc822/libencode.la libs/numlib/libnumlib.la
365 authdaemondprog_LDADD=$(LIBLTDL) libcourierauthcommon.la libs/liblock/liblock.la \
366 libs/libhmac/libhmac.la libs/md5/libmd5.la libs/sha1/libsha1.la \
367 libs/rfc822/libencode.la libs/numlib/libnumlib.la
368 authdaemondprog_LDFLAGS=-export-dynamic $(modules:%=-dlopen %) @NETLIBS@
370 authdaemontest_SOURCES=authdaemontest.c
371 authdaemontest_DEPENDENCIES=libcourierauthcommon.la
372 authdaemontest_LDADD=libcourierauthcommon.la @NETLIBS@
373 authdaemontest_LDFLAGS=-static
375 authmksock_SOURCES=authmksock.c
376 authmksock_LDADD=@NETLIBS@
378 man3=authlib.3 auth_generic.3 auth_login.3 auth_getuserinfo.3 auth_mkhomedir.3 \
379 auth_enumerate.3 auth_passwd.3 auth_getoption.3 auth_sasl.3
380 man1=authpasswd.1 authtest.1
382 man_MANS=$(man1) $(man3) auth_sasl_ex.3
384 BUILT1=authlib.html authldaprc.h authmysqlrc.h authpgsqlrc.h authpiperc.h \
385 authdaemonrc.h packageversion.h \
386 authchangepwdir.h sbindir.h \
387 pkglibdir.h pkgincludedir.h mailusergroup.h \
389 BUILT_SOURCES=$(BUILT1) $(man3:%.3=%.html) $(man1:%.1=%.html)
391 authchangepwdir.h: config.status
392 echo '#define AUTHCHANGEPWDIR "$(pkglibexecdir)"' >authchangepwdir.h
394 sbindir.h: config.status
395 echo '#define SBINDIR "@sbindir@"' >sbindir.h
397 pkglibdir.h: config.status
398 echo '#define PKGLIBDIR "$(pkglibdir)"' >pkglibdir.h
400 packageversion.h: config.status
401 echo '#define PKGVERSION "@PACKAGE_VERSION@"' >packageversion.h
403 pkgincludedir.h: config.status
404 echo '#define PKGINCLUDEDIR "$(includedir)"' >pkgincludedir.h
406 mailusergroup.h: config.status
407 echo '#define MAILUSER "@mailuser@"' >mailusergroup.h
408 echo '#define MAILGROUP "@mailgroup@"' >>mailusergroup.h
410 noinst_DATA=$(BUILT_SOURCES)
413 for f in $(BUILT1) ; do rm -f $(distdir)/$$f; done
415 # automake still a bit stupid...
417 install-data-hook: install-authdaemonrc install-authpgsqlrc \
418 install-authldaprc install-authmysqlrc install-authsqliterc
422 $(mkinstalldirs) $(DESTDIR)$(bindir) || :
423 $(mkinstalldirs) $(DESTDIR)$(sbindir) || :
424 $(mkinstalldirs) $(DESTDIR)$(pkglibexecdir) || :
425 chmod 755 $(DESTDIR)$(pkglibexecdir)
426 -chown @mailuser@ $(DESTDIR)$(pkglibexecdir)
427 -chgrp @mailgroup@ $(DESTDIR)$(pkglibexecdir)
428 $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) authdaemondprog $(DESTDIR)$(pkglibexecdir)/authdaemond
429 $(mkinstalldirs) $(DESTDIR)@authdaemonvar@ || :
430 chmod 750 $(DESTDIR)@authdaemonvar@
431 -chown @mailuser@ $(DESTDIR)@authdaemonvar@
432 -chgrp @mailgroup@ $(DESTDIR)@authdaemonvar@
433 test "@LIBAUTHUSERDB@" = "" && exit 0 ;\
434 $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) libs/makedat/makedatprog \
435 $(DESTDIR)$(pkglibexecdir)/makedatprog ; \
436 $(INSTALL_SCRIPT) userdb/pw2userdb \
437 $(DESTDIR)$(sbindir)/pw2userdb ; \
438 $(INSTALL_SCRIPT) userdb/makeuserdb \
439 $(DESTDIR)$(sbindir)/makeuserdb ; \
440 $(INSTALL_SCRIPT) userdb/userdb.pl \
441 $(DESTDIR)$(sbindir)/userdb ; \
442 $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) userdb/userdbpw \
443 $(DESTDIR)$(sbindir)/userdbpw ; \
444 $(INSTALL_SCRIPT) userdb-test-cram-md5.pl \
445 $(DESTDIR)$(sbindir)/userdb-test-cram-md5
447 uninstall-hook: uninstall-authldaprc uninstall-authdaemonrc uninstall-authmysqlrc uninstall-authpgsqlrc uninstall-authsqliterc
448 rm -f $(DESTDIR)$(pkglibexecdir)/authdaemond
449 test "@AUTHUSERDB@" = "" && exit 0 ;\
450 rm -f $(DESTDIR)$(pkglibexecdir)/makedatprog \
451 $(DESTDIR)$(sbindir)/pw2userdb \
452 $(DESTDIR)$(sbindir)/makeuserdb \
453 $(DESTDIR)$(sbindir)/userdb \
454 $(DESTDIR)$(sbindir)/userdbpw \
455 $(DESTDIR)$(sbindir)/userdb-test-cram-md5
457 authlib.html: authlib.html.in
458 $(SHELL) ./config.status --file=authlib.html
460 authlib.3: authlib.3.in
461 $(SHELL) ./config.status --file=authlib.3
465 GITFILES=authdaemonrc.in
467 BUILT_SOURCES += $(GITFILES)
469 $(GITFILES): %: %.git
470 perl -p -e 's/\$$Id:[^\$$]*/\$$Id: '"`git log --pretty=format:\"%H\" -n 1 -- $<`-`date +%Y%m%d%H%M%S`/" <$< >$@.tmp
473 authpasswd.html: authpasswd.sgml libs/docbook/sgml2html
474 libs/docbook/sgml2html authpasswd.sgml authpasswd.html
476 authpasswd.1: authpasswd.sgml libs/docbook/sgml2man
477 libs/docbook/sgml2man authpasswd.sgml authpasswd.1
479 authtest.html: authtest.sgml libs/docbook/sgml2html
480 libs/docbook/sgml2html authtest.sgml authtest.html
482 authtest.1: authtest.sgml libs/docbook/sgml2man
483 libs/docbook/sgml2man authtest.sgml authtest.1
485 authlib.html.in: authlib.sgml libs/docbook/sgml2html
486 libs/docbook/sgml2html authlib.sgml authlib.html.in
488 authlib.3.in: authlib.sgml libs/docbook/sgml2man
489 libs/docbook/sgml2man authlib.sgml authlib.3.in
490 mv authlib.3 authlib.3.in
492 README_authlib.html.in: README_authlib.sgml optionlist.sgml libs/docbook/sgml2html
493 libs/docbook/sgml2html README_authlib.sgml README_authlib.html.in "--stringparam man.base.url.for.relative.links http://www.courier-mta.org/authlib/"
495 auth_generic.html: auth_generic.sgml authcallback.sgml optionlist.sgml libs/docbook/sgml2html
496 libs/docbook/sgml2html auth_generic.sgml auth_generic.html "--stringparam man.base.url.for.relative.links http://www.courier-mta.org/authlib/"
498 auth_generic.3: auth_generic.sgml authcallback.sgml optionlist.sgml libs/docbook/sgml2man
499 libs/docbook/sgml2man auth_generic.sgml auth_generic.3 "--stringparam man.base.url.for.relative.links http://www.courier-mta.org/authlib/"
501 auth_login.html: auth_login.sgml authcallback.sgml optionlist.sgml libs/docbook/sgml2html
502 libs/docbook/sgml2html auth_login.sgml auth_login.html "--stringparam man.base.url.for.relative.links http://www.courier-mta.org/authlib/"
504 auth_login.3: auth_login.sgml authcallback.sgml optionlist.sgml libs/docbook/sgml2man
505 libs/docbook/sgml2man auth_login.sgml auth_login.3 "--stringparam man.base.url.for.relative.links http://www.courier-mta.org/authlib/"
507 auth_getuserinfo.html: auth_getuserinfo.sgml authcallback.sgml optionlist.sgml libs/docbook/sgml2html
508 libs/docbook/sgml2html auth_getuserinfo.sgml auth_getuserinfo.html "--stringparam man.base.url.for.relative.links http://www.courier-mta.org/authlib/"
510 auth_getuserinfo.3: auth_getuserinfo.sgml authcallback.sgml optionlist.sgml libs/docbook/sgml2man
511 libs/docbook/sgml2man auth_getuserinfo.sgml auth_getuserinfo.3 "--stringparam man.base.url.for.relative.links http://www.courier-mta.org/authlib/"
513 auth_mkhomedir.html: auth_mkhomedir.sgml authcallback.sgml optionlist.sgml libs/docbook/sgml2html
514 libs/docbook/sgml2html auth_mkhomedir.sgml auth_mkhomedir.html "--stringparam man.base.url.for.relative.links http://www.courier-mta.org/authlib/"
516 auth_mkhomedir.3: auth_mkhomedir.sgml authcallback.sgml optionlist.sgml libs/docbook/sgml2man
517 libs/docbook/sgml2man auth_mkhomedir.sgml auth_mkhomedir.3 "--stringparam man.base.url.for.relative.links http://www.courier-mta.org/authlib/"
519 auth_enumerate.html: auth_enumerate.sgml libs/docbook/sgml2html
520 libs/docbook/sgml2html auth_enumerate.sgml auth_enumerate.html "--stringparam man.base.url.for.relative.links http://www.courier-mta.org/authlib/"
522 auth_enumerate.3: auth_enumerate.sgml libs/docbook/sgml2man
523 libs/docbook/sgml2man auth_enumerate.sgml auth_enumerate.3 "--stringparam man.base.url.for.relative.links http://www.courier-mta.org/authlib/"
525 auth_passwd.html: auth_passwd.sgml libs/docbook/sgml2html
526 libs/docbook/sgml2html auth_passwd.sgml auth_passwd.html "--stringparam man.base.url.for.relative.links http://www.courier-mta.org/authlib/"
528 auth_passwd.3: auth_passwd.sgml libs/docbook/sgml2man
529 libs/docbook/sgml2man auth_passwd.sgml auth_passwd.3 "--stringparam man.base.url.for.relative.links http://www.courier-mta.org/authlib/"
531 auth_getoption.html: auth_getoption.sgml libs/docbook/sgml2html
532 libs/docbook/sgml2html auth_getoption.sgml auth_getoption.html "--stringparam man.base.url.for.relative.links http://www.courier-mta.org/authlib/"
534 auth_getoption.3: auth_getoption.sgml libs/docbook/sgml2man
535 libs/docbook/sgml2man auth_getoption.sgml auth_getoption.3 "--stringparam man.base.url.for.relative.links http://www.courier-mta.org/authlib/"
537 auth_sasl.html: auth_sasl.sgml libs/docbook/sgml2html
538 libs/docbook/sgml2html auth_sasl.sgml auth_sasl.html "--stringparam man.base.url.for.relative.links http://www.courier-mta.org/authlib/"
540 auth_sasl.3: auth_sasl.sgml libs/docbook/sgml2man
541 libs/docbook/sgml2man auth_sasl.sgml auth_sasl.3 "--stringparam man.base.url.for.relative.links http://www.courier-mta.org/authlib/"
543 auth_sasl_ex.3: auth_sasl.3
548 authldap.ldif: authldap.schema
549 echo 'dn: cn=courier,cn=schema,cn=config' >authldap.ldif.tmp
550 echo 'objectClass: olcSchemaConfig' >>authldap.ldif.tmp
551 echo 'cn: courier' >>authldap.ldif.tmp
552 sed '/^#/d;s/^attributetype/olcAttributeTypes:/;s/^objectclass/olcObjectClasses:/;s/^$$/#/' <$(srcdir)/authldap.schema | tr '\011' ' ' >>authldap.ldif.tmp
553 mv -f authldap.ldif.tmp authldap.ldif
555 README_authlib.html: README_authlib.html.in config.status
556 $(SHELL) ./config.status --file=README_authlib.html
558 authdaemond.o: authdaemonrc.h authdaemond.c
561 install-migrate: authmigrate
565 test -f $(DESTDIR)@authdaemonrc@.dist && @SYSCONFTOOL@ $(DESTDIR)@authdaemonrc@.dist || true
566 test -f $(DESTDIR)@authmysqlrc@.dist && @SYSCONFTOOL@ $(DESTDIR)@authmysqlrc@.dist || true
567 test -f $(DESTDIR)@authpgsqlrc@.dist && @SYSCONFTOOL@ $(DESTDIR)@authpgsqlrc@.dist || true
568 test -f $(DESTDIR)@authldaprc@.dist && @SYSCONFTOOL@ $(DESTDIR)@authldaprc@.dist || true
569 test -f $(DESTDIR)@authsqliterc@.dist && @SYSCONFTOOL@ $(DESTDIR)@authsqliterc@.dist || true
571 # For maintainer's use only
574 umask 022; $(MAKE) distcheck
578 rm -f @PACKAGE@.spec @PACKAGE@.lpspec
579 $(MAKE) @PACKAGE@.spec @PACKAGE@.lpspec
585 $(MAKE) bump.rpm.release
592 $(MAKE) bump.rpm.release
599 lpbuild `test "@REPOSITORY@" == "" || echo --define "repository=1"` --srcbuild -o lpm @PACKAGE@-@VERSION@.tar.bz2
601 publish: publish-@REPOSITORY@
604 $(MAKE) dopublish SUBDIR=dev
607 $(MAKE) dopublish SUBDIR=prod
610 lpbuild --resign lpm/*
614 rm -f lpmtmp/*debuginfo*
615 mv lpmtmp/*.src.lp repository-$(SUBDIR)/`lpm -q --distribution`/sources
616 mv lpmtmp/*.lp repository-$(SUBDIR)/`lpm -q --distribution`/packages
618 ls -t repository-$(SUBDIR)/`lpm -q --distribution`/sources | tail -n +6 | xargs -r -n 1 lpm --erase repository-$(SUBDIR)
619 lpm --sync repository-$(SUBDIR)
620 rsync -a -v --delete-after repository-$(SUBDIR)/`lpm -q --distribution`/. headache:lpmtool.com/www/repositories/$(SUBDIR)/courier-authlib/`lpm -q --distribution`
628 rpmbuild -ta --clean \
629 --define "_topdir `pwd`/rpm" \
630 --define '_rpmdir %{_topdir}/RPMS' \
631 --define '_srcrpmdir %{_topdir}/SRPMS' \
632 --define '_sourcedir %{_topdir}/SOURCES' \
633 --define '_specdir %{_topdir}/SPECS' \
634 --define '_builddir %{_topdir}/BUILD' \
635 --define '_build_name_fmt %%{ARCH}/%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm' \
636 --define '_tmppath %{_var}/tmp' \
637 --define '__spec_prep_pre %{___build_pre}' \
638 @PACKAGE@-@VERSION@.tar.bz2
640 bump.rpm.release: @PACKAGE@.spec @PACKAGE@.lpspec
641 test -f $(srcdir)/rpm.release && . $(srcdir)/rpm.release; \
643 test "$$VERSION" = "@VERSION@" && NEXT_RELEASE="$$RELEASE"; \
644 RELEASE=`expr $$NEXT_RELEASE + 1`; \
645 echo "VERSION=@VERSION@" >$(srcdir)/rpm.release; \
646 echo "RELEASE=$$RELEASE" >>$(srcdir)/rpm.release; \
647 sed 's/^Release: .*/Release: '$$RELEASE'%{?dist}%{?courier_release}/' \
648 <@PACKAGE@.spec >@PACKAGE@.spec.new; \
649 mv @PACKAGE@.spec.new @PACKAGE@.spec; \
650 sed 's/^Release: .*/Release: '$$RELEASE'/' \
651 <@PACKAGE@.lpspec >@PACKAGE@.lpspec.new; \
652 mv @PACKAGE@.lpspec.new @PACKAGE@.lpspec
655 test -z "$(SFPASSWD)" && exit 1; exit 0
656 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
657 ~/src/sftools/release.pl mrsam $(SFPASSWD) courier authlib-devel `echo @VERSION@|sed 's/.*\(........\)/\1/'` @PACKAGE@-@VERSION@.tar.bz2 @PACKAGE@-@VERSION@.tar.bz2.sig
660 test -z "$(SFPASSWD)" && exit 1; exit 0
661 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
662 set -e; v="@PACKAGE@/@VERSION@/`date +%Y%m%d%H%M%S`"; git tag -s $$v -m 'Tag version @VERSION@'; cd libs; git tag -s $$v -m 'Tag version @VERSION@'
663 socksify ~/src/sftools/release.pl mrsam $(SFPASSWD) courier authlib @VERSION@ @PACKAGE@-@VERSION@.tar.bz2 @PACKAGE@-@VERSION@.tar.bz2.sig
665 HTMLDOCFILES=$(HTMLFILES) README.authdebug.html README_authlib.html \
666 $(man3:%.3=%.html) $(man1:%.1=%.html) userdb/userdb.html userdb/makeuserdb.html userdb/userdbpw.html
668 htmldoc: $(HTMLDOCFILES)
669 for f in $^; do d=`basename $$f`; test "$$d" = "README.html" && d="index.html"; tidy -i -q --tidy-mark no --doctype transitional --input-encoding utf8 --output-encoding utf8 -asxml <$$f >$$f.tmp ; xsltproc --nonet $$HOME/www/www.courier-mta.org/xsl/authlib.xsl $$f.tmp | perl -ne 's~\$(id):.*\$$~\$(id):'"$$h"'\$$~; print' >$$HOME/www/www.courier-mta.org/authlib/$$d; rm -f $$f.tmp; done