# $Id: common,v 1.9 2005/09/13 14:54:49 billwe Exp $
# Message strings common to all packages. A common string may be overridden by 
# using the packages own setup message file.

###
# Setup progress messages

p_74="--------------------------------------------------------------------------"

p_errttaver="ERROR: $PRODUCT_FULL_NAME $PRODUCT_VERSION_MAJOR.$PRODUCT_VERSION_FEATURE is not installed.
This package cannot be installed without it.
Please install $PRODUCT_FULL_NAME.
"

l_recordingsettings="$PRODUCT_SHORT_NAME Setup is recording settings..."

p_stopping="Stopping $PRODUCT_SHORT_NAME server, please wait..."

p_stoppingfrom1="Stopping $PRODUCT_SHORT_NAME server from "
p_stoppingfrom2=" , please wait..."

p_stopok="$PRODUCT_SHORT_NAME server stopped."

p_nostop="Unable to stop $PRODUCT_SHORT_NAME processes: Setup will continue
but may encounter problems. It may be necessary to remove the existing
$PRODUCT_SHORT_NAME installation."

p_nostopfrom1="Unable to stop $PRODUCT_SHORT_NAME processes: Setup will continue
but may encounter problems. It may be necessary to remove the existing
$PRODUCT_SHORT_NAME installation in"

p_nostopfrom2=""

lf_servernotstopped="The $PRODUCT_SHORT_NAME processes were not stopped: Setup will not continue."

p_nostart="Unable to start the $PRODUCT_SHORT_NAME server: Setup will continue
but may encounter problems. It may be necessary to configure the
$PRODUCT_SHORT_NAME X Protocol Engine font path by hand."

p_installing="$PRODUCT_SHORT_NAME Setup is installing files..."

# Removing old files from previous "<package>" installations...
p_removingoldpkg1="Removing old files from previous \""
p_removingoldpkg2="\" installations..."

p_stdconnsdisabled1="The "
p_stdconnsdisabled2=" has been uninstalled.

However, this server has been configured to accept only SSL connections.
This means you will not be able to connect to this server until either you
install the "
p_stdconnsdisabled3=" and start $PRODUCT_SHORT_NAME security services
or you run the tarantella config edit --security-connectiontypes std command."

p_oldwebserverconfig1="\
${p_74}
Webserver configuration
${p_74}"
p_oldwebserverconfig2="\
Your previous webserver configuration has been saved in:"
p_oldwebserverconfig3="\
One or more configuration files from your previous webserver installation
have been saved in:"
p_oldwebserverconfig4="\
If you made any local configuration changes that you want to preserve,
you will have to copy your changes to the appropriate place(s) in the new
webserver installation:"

p_configuring="Configuring your installation..."

# Config failed. See log file <filename> for more information.
p_configfailed1="$PRODUCT_SHORT_NAME configuration failed.

Please see "
p_configfailed2=" for more information."

p_instsuccess1="Successfully installed "
p_instsuccess2=""

m_runningscript1="${p_74}
Running "
m_runningscript2=" Setup script..."
m_scriptok="...OK"
m_scriptfail="...Failed. Exit code: "

m_configscript="${p_74}
Configuring and starting "

###
# messages for compat
l_cantinstall="
IMPORTANT: This package can't be installed. 
The new package is too old to work with some installed packages.
"

l_wontinstall="
IMPORTANT: This package can't be installed.
Some installed packages are too old to work with the new package."

l_package="Installed package: "
l_installed="Installed version: "
l_required="Required version: "
l_requires="Required version of new package: "
l_thisversion="Version of new package: "

l_cant_donext="To fix: Obtain a more recent version of this package."

l_wont_donext="To fix: Either upgrade each incompatible package named above to the 
required version, or install an earlier version of the new package."


# the following are required for some %%ask macros
a_yes="y"
a_Y="Y"
a_case_yes="yY"
s_yes="yes"

a_no="n"
a_case_no="nN"
a_N="N"
s_no="no"

a_quit="q"
a_Q="Q"
a_case_quit="qQ"
s_quit="quit"

# messages for ttasys/ttaserv user check
lf_no_ttaserv_user1="\
IMPORTANT: ttaserv/ttasys users not correctly defined. Setup will now exit.

You must define users before you can install $PRODUCT_SHORT_NAME. 

 - The user names must be \"ttaserv\" and \"ttasys\".
 - Both must have their primary group set to \"ttaserv\".
 - You can use any UIDs and GID you want.
 - The ttaserv/ttasys users must have a valid shell, for example /bin/sh.
 - We recommend that you lock the ttaserv/ttasys user accounts (passwd -l).

One way to create users and groups is with the useradd and groupadd
commands, but your organization may use other methods. Please contact
your network administrator if you're unsure of your organization's
policies or need help creating users and groups.

Setup runs the following commands as root to check that the user and group
are correctly configured:

su ttaserv -c \"/usr/bin/id -a\"
su ttasys -c \"/usr/bin/id -a\"

On your system this currently returns:
"
lf_no_ttaserv_user2="
Setup checks for output like this:

uid=nnn(ttaserv) gid=nnn(ttaserv) groups=nnn(ttaserv)
uid=nnn(ttasys) gid=nnn(ttaserv) groups=nnn(ttaserv)

Once the user and group have been created, run Setup again to install
the software.
"

l_waitforservertostart_upg="
The $PRODUCT_SHORT_NAME server will be started after old (upgraded)
packages have been removed.  This may take several minutes.  To find out
when the server has been started, run the command:

    $INSTDIR/bin/tarantella status
"

l_waitforservertostart="
The $PRODUCT_SHORT_NAME server is being started.  This may take some
time.  To find out when the server has been started, run the command:

    $INSTDIR/bin/tarantella status
"
#!/bin/sh
#
#  Copyright 2005 Sun Microsystems, Inc. All rights reserved.
# $Id: setup,v 1.5 2005/08/26 15:47:43 billwe Exp $
# $Author: billwe $

# String constants
_check_dir_error="That directory does not start at the base dir \"/\""
_check_port_error="Not a valid port number"
_check_mem_error="Not a valid memory value"
_aborted="Installation aborted!"

# Prerequest messages
stopping_message="Stopping Tier3 LoadProbe"
running_message="The Tier3 LoadProbe is now running"

# request messages
p_T3install="Installing files for $T3COMPONENT_NAME"

# Strings specific to Tier3TEM Setup
m_oldver1="You have the same or a newer version of this package installed:
  Old Version "
m_oldver2="
  New version "
m_oldver3="
To remove the old version, do
  pkgrm "
m_already="
WARNING: An existing version of this package is installed and will be removed.
The old version is "
m_summary="Setting up $T3COMPONENT_NAME"
m_recommend="$T3COMPONENT_NAME setup recommends you use the following settings:"
m_instdir="Installation directory = "
p_port="Which port do you want the Tier3 Load Probe to listen on?"
q_port="Port number"
p_pmem="How much physical memory (Mb) does this server have?"
q_pmem="Physical memory (Mb)"
p_vmem="How much virtual memory (Mb) does this server have?"
q_vmem="Virtual memory (Mb)"
m_cantfindvmstat="
WARNING: Can't find prerequisite system program vmstat. You may continue
installation if you wish, but the $T3COMPONENT_NAME
will not work correctly until its prerequisites are installed."

# postinstall messages
config_message="Finished configuration of $T3COMPONENT_NAME"
starting_message="Starting Tier3 LoadProbe"

# preremove String constants
backup_message="Backing up current config file(s) to directory "

# Is it OK type stuff
p_damage="\
Are these settings OK?
  Y - Yes, install using these settings
  N - No, tell me more about the options and let me change the settings
  Q - Quit now"
q_damage="OK to use these settings?"
h_nochange="$T3COMPONENT_NAME setup made no changes to your system."
a_n="n"

h_instdir="$T3COMPONENT_NAME installation directory"
p_instdir="\
$T3COMPONENT_NAME uses a single directory for all its code and other
static and dynamic components. Which directory would you like to use?"
q_instdir="Installation directory"
m_isafile="Sorry, but that's a file, not a directory. Please try again."

###
# Arch check
l_warnprefix="WARNING: "
l_archmismatch="Operating systems don't match.
The packages you're about to install are intended for a different operating
system. We recommend you exit Setup without installing the packages.
Continue installation only if you are sure the operating systems are
compatible."
l_versionmismatch="Operating system version lower than expected.
The packages you're about to install are intended for a later revision
of your operating system. We recommend you exit Setup without installing
the packages. Continue installation only if you are sure the operating
systems are compatible."
l_continue="Would you like Setup to continue?"
