#!/bin/sh
#
# $Id: techtime.sh,v 1.1 2004/07/19 16:12:59 jdreed Exp $
#
# A shell script to run TechTime and install MIT preferences if they're
# not there.
#

confpath="$HOME/.OracleCalendar"
OCAL="/usr/local/OracleCalendar/bin/ocal"

if [ ! -d $confpath ]; then
    echo -n "Installing MIT preferences..."
    mkdir -p $confpath/cache
    cat <<EOF > $confpath/profile
[DXSCHED]
HostServer = Off-line
ItemId = 0
UserName =
errlog = FALSE
 
[CONNECTIONS]
enableSingleSignIn = FALSE
LastSigninItemId = 0
LastSigninNodeId = 0
numConnections = 2
Conn_01_Encr = cs-acipher1
Conn_01_NumEncrs = 3
Conn_01_Encr_02_Long = None
Conn_01_Encr_02_Short = none
Conn_01_Encr_01_Long = Light Encryption
Conn_01_Encr_01_Short = cs-light
Conn_01_Encr_00_Long = Affine Cipher
Conn_01_Encr_00_Short = cs-acipher1
Conn_01_Comp = cs-simple
Conn_01_NumComps = 2
Conn_01_Comp_01_Long = None
Conn_01_Comp_01_Short = none
Conn_01_Comp_00_Long = Run Length Encoding Compression
Conn_01_Comp_00_Short = cs-simple
Conn_01_Auth = gssapi:kerberos5
Conn_01_NumAuths = 3
Conn_01_Auth_02_ChangePassword = FALSE
Conn_01_Auth_02_NeedsItem = FALSE
Conn_01_Auth_02_Long = gssapi:kerberos5
Conn_01_Auth_02_Short = gssapi:kerberos5
Conn_01_Auth_01_ChangePassword = TRUE
Conn_01_Auth_01_NeedsItem = TRUE
Conn_01_Auth_01_Long = Standard Authentication
Conn_01_Auth_01_Short = cs-standard
Conn_01_Auth_00_ChangePassword = TRUE
Conn_01_Auth_00_NeedsItem = TRUE
Conn_01_Auth_00_Long = CST Basic Authentication
Conn_01_Auth_00_Short = cs-basic
Conn_01_Node = calendar
Conn_01_Nodes = 13,calendar
Conn_01_ConfiguredForNode = FALSE
Conn_01_MNCapability = FALSE
Conn_01_Serv = techtime.mit.edu
Conn_01_LastLookup = 0
Conn_01_SupportsACE = TRUE
Conn_01_Desc =
Conn_01_Name = MIT TechTime Server
Conn_01_Type = normal
default = 1
Conn_00_LastUser =
Conn_00_Name = Off-line
Conn_00_Type = offline
EOF

    echo "done."
fi

exec "$OCAL"
