+2005-08-16 Ken Raeburn <raeburn@mit.edu>
+
+ * env-setup.shin: Export $libdir.
+ * init_db: Substitue __MODDIR__ with the fakedest module
+ directory.
+ * start_servers: Likewise.
+
2004-09-30 Ken Raeburn <raeburn@mit.edu>
* start_servers_local: If one of the servers failed to start, log
STOP=@S_TOP@/kadmin
export TOP
export STOP
+# These two may be needed in case $libdir references them.
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@ ; eval "libdir=$libdir"; export libdir
# The shared library run time setup
TOPLIBD=@RBUILD@/lib
exit 1
fi
+if [ "$libdir" = "" ]; then
+ echo "init_db: Environment variable \$libdir must point to library install directory" 1>&2
+ exit 1
+fi
+
IROOT=$TOP/..
ADMIN=$TOP/dbutil
BIN=$IROOT/bin
ETC=$IROOT/etc
+MODDIR=$TOP/../util/fakedest$libdir/db-modules
SBIN=$TOP/keytab:$TOP/server
DUMMY=${REALM=SECURE-TEST.OV.COM}; export REALM
+if [ ! -d $MODDIR ]; then
+ echo "+++" 1>&2
+ echo "+++ Error! $MODDIR does not exist!" 1>&2
+ echo "+++ The MODDIR variable should point to the directory in which" 1>&2
+ echo "+++ database modules have been installed for testing." 1>&2
+ echo "+++" 1>&2
+ exit 1
+fi
+
DUMMY=${TESTDIR=$TOP/testing}; export TESTDIR
DUMMY=${STESTDIR=$STOP/testing}
DUMMY=${SRVTCL=$TESTDIR/util/ovsec_kadm_srv_tcl}; export SRVTCL
sed -e "s/__REALM__/$REALM/g" -e "s#__K5ROOT__#$K5ROOT#g" \
-e "s/__KDCHOST__/$qualname/g" \
-e "s/__LOCALHOST__/$qualname/g" \
+ -e "s#__MODDIR__#$MODDIR#g" \
< $STESTDIR/proto/krb5.conf.proto > $K5ROOT/krb5.conf
sed -e "s/__REALM__/$REALM/g" -e "s#__K5ROOT__#$K5ROOT#g" \
< $STESTDIR/proto/kdc.conf.proto > $K5ROOT/kdc.conf
sed -e "s/__REALM__/$REALM/g" -e "s#__K5ROOT__#$K5ROOT#g" \
-e "s/__KDCHOST__/$hostname/g" \
-e "s/__LOCALHOST__/$localname/g" \
+ -e "s#__MODDIR__#$TOP/../util/fakedest$libdir/db-modules#g"\
< $STESTDIR/proto/krb5.conf.proto > $K5ROOT/krb5.conf
# Using /usr/ucb/rsh and getting rid of "-k $REALM" until we get