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 | |
6 | AUTOMAKE = srcdir=${srcdir} @SHELL@ ${srcdir}/automake.fix @AUTOMAKE@ |
7 | AUTOMAKE_OPTIONS=dist-bzip2 |
8 | |
9 | SUBDIRS=@LIBLTDL_SUBDIR@ @DBSUBDIR@ md5 sha1 libhmac numlib makedat userdb rfc822 random128 liblock liblog |
10 | DIST_SUBDIRS=libltdl gdbmobj bdbobj md5 sha1 libhmac numlib makedat userdb rfc822 random128 liblock liblog |
11 | |
12 | INCLUDES = $(LTDLINCL) |
13 | |
14 | modules=@LIBAUTHUSERDB@ \ |
15 | @LIBAUTHPAM@ @LIBAUTHPWD@ @LIBAUTHSHADOW@ \ |
16 | @LIBAUTHPGSQL@ @LIBAUTHLDAP@ @LIBAUTHMYSQL@ \ |
17 | @LIBAUTHCUSTOM@ @LIBAUTHVCHKPW@ @LIBAUTHPIPE@ |
18 | |
19 | pkglibexecdir=$(libexecdir)/courier-authlib |
20 | pkglibexec_SCRIPTS=authsystem.passwd |
21 | |
22 | pkglib_LTLIBRARIES=libcourierauth.la \ |
23 | libcourierauthsasl.la libcourierauthsaslclient.la \ |
24 | libcourierauthcommon.la $(modules) |
25 | sbin_SCRIPTS=authdaemond |
26 | sbin_PROGRAMS=authtest authenumerate authpasswd |
27 | bin_PROGRAMS=courierauthconfig |
28 | |
29 | EXTRA_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 | |
38 | CLEANFILES=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 | |
45 | DISTCLEANFILES=dbobj.config README_authlib.html |
46 | |
47 | commonlibdep=libcourierauthcommon.la |
48 | commonldflags=-module -rpath $(pkglibdir) -export-symbols-regex 'courier_auth.*_init' |
49 | commonlibadd=libcourierauthcommon.la |
50 | |
51 | libcourierauthcommon_t=@CRYPTLIBS@ |
52 | libcourierauthcommon_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 | |
62 | libcourierauthcommon_la_DEPENDENCIES=libcourierauth.la |
63 | libcourierauthcommon_la_LIBADD=libcourierauth.la |
64 | libcourierauthcommon_la_LDFLAGS=$(libcourierauthcommon_t:%=-Wl,%) |
65 | |
66 | libcourierauth_la_SOURCES=authdaemon.c authdaemonlib.c preauthdaemon.c \ |
67 | authmoduser2.c authmoduser3.c debug.c \ |
68 | courierauthdebug.h \ |
69 | authoption.c |
70 | libcourierauth_la_LIBADD=@HMACLIB@ @MD5LIB@ @SHA1LIB@ numlib/libnumlib.la \ |
71 | random128/librandom128.la rfc822/libencode.la |
72 | libcourierauth_la_LDFLAGS=@NETLIBS@ |
73 | |
74 | # The userdb module |
75 | |
76 | libauthuserdb_t=userdb/libuserdb.la @dblibrary@ @LIBGDBM@ @LIBDB@ |
77 | libauthuserdb_la_SOURCES=authuserdb.c preauthuserdb.c preauthuserdbcommon.c \ |
78 | authuserdbpwd.c |
79 | libauthuserdb_la_DEPENDENCIES=libcourierauthcommon.la @dblibrary@ |
80 | libauthuserdb_la_LIBADD=$(commonlibadd) $(libauthuserdb_t) |
81 | libauthuserdb_la_LDFLAGS=$(commonldflags) |
82 | |
83 | # the authpam module |
84 | |
85 | libauthpam_t=-lpam @SHADOWLIBS@ @AUTHPAMCRYPT@ @LIBDL@ |
86 | |
87 | libauthpam_la_SOURCES=authpam.c preauthpam.c authwait.h |
88 | libauthpam_la_DEPENDENCIES=$(commonlibdep) |
89 | libauthpam_la_LIBADD=$(commonlibadd) |
90 | libauthpam_la_LDFLAGS=$(commonldflags) $(libauthpam_t) |
91 | |
92 | # The authpwd module |
93 | |
94 | libauthpwd_la_SOURCES=authpwd.c preauthpwd.c |
95 | libauthpwd_la_DEPENDENCIES=$(commonlibdep) |
96 | libauthpwd_la_LIBADD=$(commonlibadd) |
97 | libauthpwd_la_LDFLAGS=$(commonldflags) |
98 | |
99 | # The authshadow module |
100 | |
101 | libauthshadow_t=@SHADOWLIBS@ |
102 | |
103 | libauthshadow_la_SOURCES=authshadow.c preauthshadow.c |
104 | libauthshadow_la_DEPENDENCIES=$(commonlibdep) |
105 | libauthshadow_la_LIBADD=$(commonlibadd) |
106 | libauthshadow_la_LDFLAGS=$(commonldflags) $(libauthshadow_t) |
107 | |
108 | # The authvchkpw module |
109 | |
110 | libauthvchkpw_t=@VPOPMAILLIBS@ @LIBM@ |
111 | libauthvchkpw_la_SOURCES=authvchkpw.c authvchkpwlib.c preauthvchkpw.c |
112 | libauthvchkpw_la_DEPENDENCIES=$(commonlibdep) |
113 | libauthvchkpw_la_LIBADD=$(commonlibadd) |
114 | libauthvchkpw_la_LDFLAGS=$(commonldflags) $(libauthvchkpw_t) |
115 | |
116 | authvchkpw.lo: authvchkpw.c vpopmail_config.h |
117 | preauthvchkpw.lo: preauthvchkpw.c vpopmail_config.h |
118 | |
119 | vpopmail_config.h: |
120 | echo '#include "@vpopmail_home@/include/config.h"' >vpopmail_config.h |
121 | |
122 | # The authpgsql module |
123 | |
124 | libauthpgsql_t=@PGSQL_LIBS@ @LIBM@ @NETLIBS@ |
125 | |
126 | libauthpgsql_la_SOURCES=authpgsql.c preauthpgsql.c authpgsqllib.c authpgsql.h |
127 | libauthpgsql_la_DEPENDENCIES=$(commonlibdep) |
128 | libauthpgsql_la_LIBADD=$(commonlibadd) |
129 | libauthpgsql_la_LDFLAGS=$(commonldflags) $(libauthpgsql_t) |
130 | |
131 | authpgsqllib.lo: authpgsqllib.c authpgsqlrc.h |
132 | |
133 | |
134 | if HAVE_AUTHPGSQL |
135 | |
136 | install-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 | |
143 | uninstall-authpgsqlrc: |
144 | rm -f $(DESTDIR)@authpgsqlrc@.dist |
145 | |
146 | else |
147 | |
148 | install-authpgsqlrc: |
149 | @: |
150 | |
151 | uninstall-authpgsqlrc: |
152 | @: |
153 | endif |
154 | |
155 | authpgsqlrc.h: |
156 | echo "#define AUTHPGSQLRC \"@authpgsqlrc@\"" >authpgsqlrc.h |
157 | |
158 | |
159 | # The authldap module |
160 | |
161 | libauthldap_t=@LDAPLIBS@ @NETLIBS@ |
162 | libauthldap_la_SOURCES=authldap.c preauthldap.c authldaplib.c authldap.h |
163 | libauthldap_la_DEPENDENCIES=$(commonlibdep) |
164 | libauthldap_la_LIBADD=$(commonlibadd) |
165 | libauthldap_la_LDFLAGS=$(commonldflags) $(libauthldap_t) |
166 | |
167 | authldaplib.lo: authldaplib.c authldaprc.h |
168 | |
169 | if HAVE_LDAP |
170 | |
171 | install-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 | |
178 | uninstall-authldaprc: |
179 | rm -f $(DESTDIR)@authldaprc@.dist |
180 | |
181 | else |
182 | install-authldaprc: |
183 | @: |
184 | |
185 | uninstall-authldaprc: |
186 | @: |
187 | endif |
188 | |
189 | authldaprc.h: |
190 | echo "#define AUTHLDAPRC \"@authldaprc@\"" >authldaprc.h |
191 | |
192 | # The authmysql module |
193 | |
194 | libauthmysql_t=@MYSQL_LIBS@ @LIBM@ @NETLIBS@ |
195 | |
196 | libauthmysql_la_SOURCES=authmysql.c preauthmysql.c authmysqllib.c authmysql.h |
197 | libauthmysql_la_DEPENDENCIES=$(commonlibdep) |
198 | libauthmysql_la_LIBADD=$(commonlibadd) |
199 | libauthmysql_la_LDFLAGS=$(commonldflags) $(libauthmysql_t) |
200 | |
201 | authmysqllib.lo: authmysqllib.c authmysqlrc.h |
202 | |
203 | if HAVE_AUTHMYSQL |
204 | install-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 | |
211 | uninstall-authmysqlrc: |
212 | rm -f $(DESTDIR)@authmysqlrc@.dist |
213 | |
214 | else |
215 | install-authmysqlrc: |
216 | @: |
217 | |
218 | uninstall-authmysqlrc: |
219 | @: |
220 | endif |
221 | |
222 | authmysqlrc.h: |
223 | echo "#define AUTHMYSQLRC \"@authmysqlrc@\"" >authmysqlrc.h |
224 | |
225 | # The authcustom module |
226 | |
227 | libauthcustom_la_SOURCES=authcustom.c preauthcustom.c authcustom.h |
228 | libauthcustom_la_DEPENDENCIES=$(commonlibdep) |
229 | libauthcustom_la_LIBADD=$(commonlibadd) |
230 | libauthcustom_la_LDFLAGS=$(commonldflags) |
231 | |
232 | # The authpipe module |
233 | libauthpipe_la_SOURCES=authpipe.c authpipelib.h authpipelib.c |
234 | libauthpipe_la_DEPENDENCIES=$(commonlibdep) |
235 | libauthpipe_la_LIBADD=$(commonlibadd) |
236 | libauthpipe_la_LDFLAGS=$(commonldflags) |
237 | |
238 | authpipelib.lo: authpipelib.c authpipelib.h authpiperc.h |
239 | |
240 | authpiperc.h: |
241 | echo "#define PIPE_PROGRAM \"@authProg@\"" >authpiperc.h |
242 | |
243 | |
244 | # |
245 | # AUTHMODULES should be listed in the best authentication order |
246 | # |
247 | |
248 | noinst_PROGRAMS= \ |
249 | authdaemontest authmksock \ |
250 | authdaemondprog |
251 | |
252 | |
253 | if HAVE_MD5 |
254 | checkpasswordmd5c=checkpasswordmd5.c |
255 | else |
256 | checkpasswordmd5c= |
257 | endif |
258 | |
259 | if HAVE_SHA1 |
260 | checkpasswordsha1c=checkpasswordsha1.c |
261 | else |
262 | checkpasswordsha1c= |
263 | endif |
264 | |
265 | install-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 | |
273 | uninstall-authdaemonrc: |
274 | rm -f $(DESTDIR)@authdaemonrc@.dist |
275 | |
276 | authdaemonrc.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 | |
283 | HTMLFILES=README.html NEWS.html INSTALL.html \ |
284 | README.authmysql.html README.authpostgres.html |
285 | |
286 | EXTRA_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 | |
307 | README: README.html |
308 | links -dump README.html >README |
309 | |
310 | NEWS: NEWS.html |
311 | links -dump NEWS.html >NEWS |
312 | |
313 | INSTALL: INSTALL.html |
314 | links -dump INSTALL.html >INSTALL |
315 | |
316 | libcourierauthsasl_la_SOURCES=\ |
317 | authsasl.c courierauthsasl.h \ |
318 | authsaslcram.c authsasllogin.c authsaslplain.c \ |
319 | authsaslfrombase64.c authsasltobase64.c |
320 | libcourierauthsasl_la_LIBADD=libcourierauth.la |
321 | libcourierauthsasl_la_LDFLAGS=-export-symbols-regex '^auth_sasl$$' |
322 | |
323 | libcourierauthsaslclient_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 |
328 | libcourierauthsaslclient_la_LIBADD=libcourierauth.la |
329 | libcourierauthsaslclient_la_LDFLAGS=-export-symbols-regex '^auth_sasl_client$$' |
330 | |
331 | include_HEADERS=courier_auth_config.h courierauth.h courierauthsasl.h \ |
332 | courierauthsaslclient.h courierauthdebug.h |
333 | |
334 | courierauthconfig_SOURCES=authinfo.c |
335 | |
336 | authpasswd_SOURCES=authpasswd.c |
337 | authpasswd_LDADD=libcourierauthcommon.la \ |
338 | libhmac/libhmac.la md5/libmd5.la sha1/libsha1.la rfc822/libencode.la |
339 | |
340 | authtest_SOURCES=authtest.c |
341 | authtest_DEPENDENCIES=libcourierauth.la |
342 | authtest_LDADD=libcourierauth.la |
343 | |
344 | authenumerate_SOURCES=authenumerate.c |
345 | authenumerate_DEPENDENCIES = libcourierauth.la \ |
346 | numlib/libnumlib.la |
347 | authenumerate_LDADD = libcourierauth.la \ |
348 | numlib/libnumlib.la |
349 | authenumerate_LDFLAGS= |
350 | |
351 | # |
352 | # The main daemon. |
353 | |
354 | authdaemondprog_SOURCES=authdaemond.c |
355 | authdaemondprog_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 |
359 | authdaemondprog_LDADD=$(LIBLTDL) libcourierauthcommon.la liblock/liblock.la \ |
360 | libhmac/libhmac.la md5/libmd5.la sha1/libsha1.la \ |
361 | rfc822/libencode.la numlib/libnumlib.la |
362 | authdaemondprog_LDFLAGS=-export-dynamic $(modules:%=-dlopen %) @NETLIBS@ |
363 | |
364 | authdaemontest_SOURCES=authdaemontest.c |
365 | authdaemontest_DEPENDENCIES=libcourierauthcommon.la |
366 | authdaemontest_LDADD=libcourierauthcommon.la @NETLIBS@ |
367 | authdaemontest_LDFLAGS=-static |
368 | |
369 | authmksock_SOURCES=authmksock.c |
370 | authmksock_LDADD=@NETLIBS@ |
371 | |
372 | man3=authlib.3 auth_generic.3 auth_login.3 auth_getuserinfo.3 \ |
373 | auth_enumerate.3 auth_passwd.3 auth_getoption.3 auth_sasl.3 |
374 | man1=authpasswd.1 authtest.1 |
375 | |
376 | man_MANS=$(man1) $(man3) |
377 | |
378 | BUILT1=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 |
383 | BUILT_SOURCES=$(BUILT1) $(man3:%.3=%.html) $(man1:%.1=%.html) |
384 | |
385 | authchangepwdir.h: config.status |
386 | echo '#define AUTHCHANGEPWDIR "$(pkglibexecdir)"' >authchangepwdir.h |
387 | |
388 | sbindir.h: config.status |
389 | echo '#define SBINDIR "@sbindir@"' >sbindir.h |
390 | |
391 | pkglibdir.h: config.status |
392 | echo '#define PKGLIBDIR "$(pkglibdir)"' >pkglibdir.h |
393 | |
394 | packageversion.h: config.status |
395 | echo '#define PKGVERSION "@PACKAGE_VERSION@"' >packageversion.h |
396 | |
397 | pkgincludedir.h: config.status |
398 | echo '#define PKGINCLUDEDIR "$(includedir)"' >pkgincludedir.h |
399 | |
400 | mailusergroup.h: config.status |
401 | echo '#define MAILUSER "@mailuser@"' >mailusergroup.h |
402 | echo '#define MAILGROUP "@mailgroup@"' >>mailusergroup.h |
403 | |
404 | noinst_DATA=$(BUILT_SOURCES) |
405 | |
406 | dist-hook: |
407 | for f in $(BUILT1) ; do rm -f $(distdir)/$$f; done |
408 | |
409 | # automake still a bit stupid... |
410 | |
411 | install-data-hook: install-authdaemonrc install-authpgsqlrc \ |
412 | install-authldaprc install-authmysqlrc |
413 | : |
414 | |
415 | install-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 | |
440 | uninstall-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 | |
451 | authlib.html: authlib.html.in |
452 | CONFIG_FILES=authlib.html CONFIG_HEADERS= $(SHELL) ./config.status |
453 | |
454 | authlib.3: authlib.3.in |
455 | CONFIG_FILES=authlib.3 CONFIG_HEADERS= $(SHELL) ./config.status |
456 | |
457 | if HAVE_SGML |
458 | authpasswd.html: authpasswd.sgml docbook/sgml2html |
459 | docbook/sgml2html authpasswd.sgml authpasswd.html |
460 | |
461 | authpasswd.1: authpasswd.sgml docbook/sgml2man |
462 | docbook/sgml2man authpasswd.sgml authpasswd.1 |
463 | |
464 | authtest.html: authtest.sgml docbook/sgml2html |
465 | docbook/sgml2html authtest.sgml authtest.html |
466 | |
467 | authtest.1: authtest.sgml docbook/sgml2man |
468 | docbook/sgml2man authtest.sgml authtest.1 |
469 | |
470 | authlib.html.in: authlib.sgml docbook/sgml2html |
471 | docbook/sgml2html authlib.sgml authlib.html.in |
472 | |
473 | authlib.3.in: authlib.sgml docbook/sgml2man |
474 | docbook/sgml2man authlib.sgml authlib.3.in |
475 | |
476 | README_authlib.html.in: README_authlib.sgml docbook/sgml2html |
477 | docbook/sgml2html README_authlib.sgml README_authlib.html.in |
478 | |
479 | auth_generic.html: auth_generic.sgml authcallback.sgml docbook/sgml2html |
480 | docbook/sgml2html auth_generic.sgml auth_generic.html |
481 | |
482 | auth_generic.3: auth_generic.sgml authcallback.sgml docbook/sgml2man |
483 | docbook/sgml2man auth_generic.sgml auth_generic.3 |
484 | |
485 | auth_login.html: auth_login.sgml authcallback.sgml docbook/sgml2html |
486 | docbook/sgml2html auth_login.sgml auth_login.html |
487 | |
488 | auth_login.3: auth_login.sgml authcallback.sgml docbook/sgml2man |
489 | docbook/sgml2man auth_login.sgml auth_login.3 |
490 | |
491 | auth_getuserinfo.html: auth_getuserinfo.sgml authcallback.sgml docbook/sgml2html |
492 | docbook/sgml2html auth_getuserinfo.sgml auth_getuserinfo.html |
493 | |
494 | auth_getuserinfo.3: auth_getuserinfo.sgml authcallback.sgml docbook/sgml2man |
495 | docbook/sgml2man auth_getuserinfo.sgml auth_getuserinfo.3 |
496 | |
497 | auth_enumerate.html: auth_enumerate.sgml docbook/sgml2html |
498 | docbook/sgml2html auth_enumerate.sgml auth_enumerate.html |
499 | |
500 | auth_enumerate.3: auth_enumerate.sgml docbook/sgml2man |
501 | docbook/sgml2man auth_enumerate.sgml auth_enumerate.3 |
502 | |
503 | auth_passwd.html: auth_passwd.sgml docbook/sgml2html |
504 | docbook/sgml2html auth_passwd.sgml auth_passwd.html |
505 | |
506 | auth_passwd.3: auth_passwd.sgml docbook/sgml2man |
507 | docbook/sgml2man auth_passwd.sgml auth_passwd.3 |
508 | |
509 | auth_getoption.html: auth_getoption.sgml docbook/sgml2html |
510 | docbook/sgml2html auth_getoption.sgml auth_getoption.html |
511 | |
512 | auth_getoption.3: auth_getoption.sgml docbook/sgml2man |
513 | docbook/sgml2man auth_getoption.sgml auth_getoption.3 |
514 | |
515 | auth_sasl.html: auth_sasl.sgml docbook/sgml2html |
516 | docbook/sgml2html auth_sasl.sgml auth_sasl.html |
517 | |
518 | auth_sasl.3: auth_sasl.sgml docbook/sgml2man |
519 | docbook/sgml2man auth_sasl.sgml auth_sasl.3 |
520 | |
521 | |
522 | endif |
523 | |
524 | README_authlib.html: README_authlib.html.in config.status |
525 | CONFIG_FILES=README_authlib.html CONFIG_HEADERS= $(SHELL) ./config.status |
526 | |
527 | authdaemond.o: authdaemonrc.h authdaemond.c |
528 | |
529 | |
530 | install-migrate: authmigrate |
531 | @SHELL@ authmigrate |
532 | |
533 | install-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 | |
541 | distrelease: |
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 | |
552 | tagrelease: |
553 | socksify cvs tag -F -r @PACKAGE@-latest \ |
554 | `echo @PACKAGE@-@VERSION@ | tr '.' '-'` |
555 | |
556 | rpm: rpm-build |
557 | |
558 | rpm-build: |
559 | $(MAKE) -$(MAKEFLAGS) bump.rpm.release |
560 | $(MAKE) -$(MAKEFLAGS) dist |
561 | $(MAKE) -$(MAKEFLAGS) dorpm |
562 | |
563 | lpm: lpm-build |
564 | |
565 | lpm-build: |
566 | $(MAKE) -$(MAKEFLAGS) bump.rpm.release |
567 | $(MAKE) -$(MAKEFLAGS) dist |
568 | $(MAKE) -$(MAKEFLAGS) dolpm |
569 | |
570 | dolpm: |
571 | rm -rf lpm |
572 | mkdir lpm |
573 | lpbuild `test "@REPOSITORY@" == "" || echo --define "repository=1"` --srcbuild -o lpm @PACKAGE@-@VERSION@.tar.bz2 |
574 | |
575 | publish: publish-@REPOSITORY@ |
576 | |
577 | publish-dev: |
578 | $(MAKE) -$(MAKEFLAGS) dopublish SUBDIR=dev |
579 | |
580 | publish-prod: |
581 | $(MAKE) -$(MAKEFLAGS) dopublish SUBDIR=prod |
582 | |
583 | dopublish: |
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 | |
596 | dorpm: |
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 | |
604 | bump.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 | |
618 | upload-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 | |
624 | upload-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 | |
633 | release-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 | |
641 | HTMLDOCFILES=$(HTMLFILES) README.authdebug.html README_authlib.html \ |
642 | $(man3:%.3=%.html) $(man1:%.1=%.html) |
643 | |
644 | htmldoc: $(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 |