* Makefile.in (krb5.conf): New target. Use config-files/krb5.conf, but
authorKen Raeburn <raeburn@mit.edu>
Tue, 14 Mar 2006 01:39:24 +0000 (01:39 +0000)
committerKen Raeburn <raeburn@mit.edu>
Tue, 14 Mar 2006 01:39:24 +0000 (01:39 +0000)
add db_module_dir tag.
(kdb_check): Depend on it.
(RUN_SETUP): Use it for KRB5_CONFIG.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17739 dc483132-0cff-0310-8789-dd5450dbe970

src/tests/ChangeLog
src/tests/Makefile.in

index bc2c3c6ed4bcce44f3574c830385208c0885a6a1..e7426f6721f9a73d691233eabce775211876e3ff 100644 (file)
@@ -1,3 +1,10 @@
+2006-03-13  Ken Raeburn  <raeburn@mit.edu>
+
+       * Makefile.in (krb5.conf): New target.  Use
+       config-files/krb5.conf, but add db_module_dir tag.
+       (kdb_check): Depend on it.
+       (RUN_SETUP): Use it for KRB5_CONFIG.
+
 2005-08-20  Ken Raeburn  <raeburn@mit.edu>
 
        * configure.in: Use K5_AC_INIT instead of AC_INIT.
index c1261adc4461890fc824a2f31e387d7f5f15743d..01502f35aa8fc949314de7de95ebc6e90fb42d28 100644 (file)
@@ -4,7 +4,7 @@ BUILDTOP=$(REL)..
 LOCAL_SUBDIRS = resolve asn.1 create hammer verify gssapi dejagnu shlib \
        gss-threads misc
 
-RUN_SETUP = @KRB5_RUN_ENV@ KRB5_KDC_PROFILE=kdc.conf KRB5_CONFIG=$(SRCTOP)/config-files/krb5.conf
+RUN_SETUP = @KRB5_RUN_ENV@ KRB5_KDC_PROFILE=kdc.conf KRB5_CONFIG=krb5.conf
 KRB5_RUN_ENV= @KRB5_RUN_ENV@
 PROG_LIBPATH=-L$(TOPLIBD)
 PROG_RPATH=$(KRB5_LIBDIR)
@@ -28,8 +28,13 @@ kdc.conf: Makefile
        @echo "  key_stash_file = `pwd`/stash_file" >> kdc.conf
        @echo "}" >> kdc.conf
 
+krb5.conf: Makefile
+       cat $(SRCTOP)/config-files/krb5.conf > krb5.new
+       echo "[db_modules]" >> krb5.new
+       echo " db_module_dir = `pwd`/../util/fakedest$(KRB5_DB_MODULE_DIR)" >> krb5.new
+       mv krb5.new krb5.conf
 
-kdb_check: kdc.conf
+kdb_check: kdc.conf krb5.conf
        $(RM) $(TEST_DB)*
        $(RUN_SETUP) ../kadmin/dbutil/kdb5_util $(KADMIN_OPTS) create
        $(RUN_SETUP) ../tests/create/kdb5_mkdums $(KTEST_OPTS)