# Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved.
# $Id: setup,v 1.26 2012-05-15 08:17:51 ww161634 Exp $
# Messages for install scripts

lf_usage="<options>
 where <options> are:
   --instdir     Installation directory
   --datadir     Data directory
   --version     Current product version
   --oldinstdir  Old installation directory
   --olddatadir  Old data directory
   --oldversion  Old version
   --savefile    File containing shell variables
"

m_noprtinstallscript="Printing configuration failed (prtinstall script not found)"

####
# Install type

q_installtype="Installation type"

a_upgrade="upgrade"
a_downgrade="downgrade"
a_reinstall="reinstall"
a_install="install"

l_dupgrade="
NOTE: a datastore has been detected in the installation directory,
 although the previous installation of $PRODUCT_SHORT_NAME has been removed.
 Setup will preserve it in directories with a "
l_dupgrade1=" suffix.
 If you made any modifications that you want to preserve, you can copy
 these modifications manually after this installation has completed."

l_unsupported_upgrade="
NOTE: you are attempting an unsupported upgrade. You may continue
 at your own risk. Alternatively, quit this installation and uninstall
 your existing version before installing this version."
####
# Install directory 

h_instdir="$PRODUCT_SHORT_NAME installation directory"
p_instdir="\
$PRODUCT_SHORT_NAME uses a single directory for all its code and other
static and dynamic components. Which directory would you like to use?"
p_instdir_insist="

If you really want to use the directory you have chosen, enter its name
followed by a "!" character."
q_instdir="Installation directory"
q_or_q=" (or Q to quit)"
a_base_definstdir="/opt"
a_definstdir="/opt/tarantella"
a_definstdir2="/usr/tarantella"

m_isafile="Sorry, but that's a file, not a directory. Please try again."

e_nospace1="IMPORTANT:  There is not enough space in "
e_nospace2="Please name a directory with at least "
e_nospace3="K free."
e_carryonregardless="... attempting installation anyway, by user request."

e_instdircontents1="
You are attempting to install $PRODUCT_SHORT_NAME in "
e_instdircontents2=",
which contains the following unexpected files:

"

####
# Peer dns name

h_peerdns="Peer (internal) DNS name"
p_peerdns="\
Each computer on the network may have a number of DNS names.  In
$PRODUCT_SHORT_NAME, the peer DNS name is the name by which this host
is known to others within your firewall, if you have one. If you're
using an array of multiple $PRODUCT_SHORT_NAME servers, this is the
name used by other servers in the array to identify this server."
q_peerdns="Peer DNS name"

####
# For setup summary heading
l_summary="Setting up $PRODUCT_FULL_NAME"
l_recommend="$PRODUCT_SHORT_NAME Setup recommends you use the following settings:"

###
# HTTP port for TWS

e_httpport_inuse="
IMPORTANT: The default HTTP port is in use. Either stop the process
that is using this port, or select a different port when prompted."
q_httpport="HTTP port"
p_httpinuse="[already in use]"
p_httpnotinuse="[not currently in use]"
h_httpport="HTTP port"
p_httpport="$PRODUCT_SHORT_NAME includes a web server. You need to choose the TCP port
on which the web server listens for HTTP (unencrypted) connections.
The default port for HTTP is 80/tcp.

You must choose an unused TCP port for installation to complete."
s_port="
Port "
s_inuse=" is currently in use."

####
# Add entry to rc file
h_restart="Start $PRODUCT_SHORT_NAME on reboot"
p_restart="\
Would you like the $PRODUCT_SHORT_NAME server to start automatically
when the UNIX host reboots?"
q_restart="Start $PRODUCT_SHORT_NAME on reboot?"
p_runlevel="\
At which run level should the $PRODUCT_SHORT_NAME server start?
Choose from:
  S - Single-user mode
  1 - Administration mode
  2 - Multi-user mode
  3 - Remote file-sharing mode
  4 - Alternative remote file-sharing mode
"
p_currun="Current run level is: "
p_instrun="Currently installed at run level: "
q_runlevel="Run level"
q_mkrcdir="The correct run-level directory doesn't exist. Do you want to create
it?"
v_runlevel="The valid run levels are S, 1, 2, 3 and 4."

####
# 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="$PRODUCT_FULL_NAME Setup made no changes to your system."

####
# Yes and No

a_case_y="yY"
a_case_yes="yY"
s_yes="yes"

a_case_n="nN"
a_case_no="nN"
s_no="no"

a_case_q="qQ"
a_case_quit="qQ"
s_quit="quit"

a_case_a="aA"

a_y="y"
a_n="n"
a_q="q"
a_a="a"

a_yes="yes"
a_no="no"
a_quit="quit"
a_auto="auto"

####
# Add entry to crontab to archive logs
h_checkpoint="Archive logs every week"
p_checkpoint="\
Would you like the $PRODUCT_SHORT_NAME server to archive its log files
every week?"
q_checkpoint="Archive logs every week?"
p_checktime="
At what time should the archive occur?
Type a number between 0 (midnight) and 23 (11pm).
"
q_checktime="Archive time"
q_hours=":00 hours"
v_badnumber="Please type a number from 0 to 23, inclusive."
p_checkday="
On what day should the archive occur?
Type a number between 0 (Sunday) and 6 (Saturday).
"
q_checkday="Archive day"
v_badday="Please type a number from 0 to 6, inclusive."

l_sun="Sunday"
l_mon="Monday"
l_tue="Tuesday"
l_wed="Wednesday"
l_thu="Thursday"
l_fri="Friday"
l_sat="Saturday"


####
# Licensing
h_licmode="License mode"
h_addlicense2="$PRODUCT_SHORT_NAME has two license modes. Each mode gives you different
rights for using the $PRODUCT_SHORT_NAME software."
q_addlicense="License key"
p_addlicense="If you'd like to add a new license key, type it now.
Press [Return] to continue without adding any license keys."
l_evalmsg="This $PRODUCT_SHORT_NAME server is licensed for a 30-day evaluation only."
l_fullmsg="This $PRODUCT_SHORT_NAME server is licensed for "
l_fullmsg2=" concurrent users."

l_chtoeval="Changing to Evaluation license mode."
l_chtofull="Changing to Fully Licensed mode."
l_alreadyfull="This server is already fully licensed."
l_nochange="No changes have been made."
l_addinglic="Adding "
l_addinglic2="-user license..."
l_unlimited="unlimited"

l_mode_full="Full"
l_mode_full2=" concurrent users)"
l_mode_eval="Evaluation"
l_mode_eval2=" (30-day limit)"

l_currentmode="Current license mode: "
l_nolicenses="No $PRODUCT_SHORT_NAME license keys are currently installed."
l_somelicenses="$PRODUCT_SHORT_NAME license keys:"

l_licnum="License key '"
l_notalic="' is not a $PRODUCT_SHORT_NAME server license key."
l_licinstalled="' has already been installed."


###############
# License upgrade

# When upgrading from pre-3.00
lupg_oldvernotsupported="\
Setup does not support license key upgrades from this version.
To upgrade your license keys you must contact Tarantella.
"

# If you are upgrading from 3.30+ to 3.30+ (e.g. 3.30 to 3.40). The
# user may have already run license info, but they may have forgotten
# to do so. Not shown when upgrading pre-3.30 installation - see
# lupg_pre330needsmessage
lupg_pwantinfo="
To upgrade, you must first supply your current license key information to
the Tarantella Customer Central web site as a signed message.

You can generate this message at any time using \"tarantella license info\".
Do you want Setup to generate this message for you?

  Y - Yes, generate the message now
  N - No, I have already supplied this information to Customer Central
  Q - Quit now
"
# Question to go with the above prompt.
lupg_qwantinfo="Generate the license information message?"

# Printed before the license info equivalent message
lupg_preinfo=""

# Printed after the license info equivalent message.
lupg_postinfo="
Please supply this information to Customer Central.

Go to https://custcentral.tarantella.com, register if necessary,
and paste the above (including BEGIN and END lines) into
the appropriate form.
"

# Explanation about the whole license upgrade thing, shown when upgrading 
# from pre - 3.30
lupg_pre330needsmessage="
The product version you're installing needs new license keys.

To upgrade your existing license keys to the new version, you supply
your current license information, as the following signed message, to
the Tarantella Customer Central web site. If you are eligible for
upgrade, the web site will supply a new signed message containing
the new license keys."

# Prompt for asking for the return message
lupg_pretmessage="\
Paste the signed message containing your new license keys, exactly as
supplied by Customer Central. Include the BEGIN and END lines, but
do not include any information before the BEGIN line or after the END line.

Press Ctrl-D (EOF) when finished, or type quit on a line on its own
to cancel the upgrade.
"


# sh case-match for "quit". Mustn't match a line that is part of a
# return message, so q* is probably too dangerous.
a_lupg_case_quit="[qQ][uU][iI][tT]"

# Return message from web site validated OK (i.e. signature check is fine)
lupg_retmessageok="License message validated OK."

# Return message from web site not OK
lupg_retmessagebad="
Setup couldn't validate the license message. Please check that you're
pasting no information before the BEGIN line or after the END line.
"

# If we support it, we have accepted a message of just license keys
# not wrapped in a message
lupg_acceptingkeys="Recognized and accepted list of license keys"

####
# Misc

###
#ask whether to create Tarantella printer
h_prtsetup="Create $PRODUCT_SHORT_NAME printer"
p_prtsetup="\
Would you like Setup to recreate the $PRODUCT_SHORT_NAME printer,
as if this was a new installation?

Note: This won't have any effect unless the $PRODUCT_SHORT_NAME printer
configuration has been changed since installation.  If any changes
have been made, this option will restore the installation configuration."

q_prtsetup="Create $PRODUCT_SHORT_NAME printer?"

l_serverbeans_start="Setting up server beans..."
l_serverbeans_end="...finished setting up server beans."

l_serverbeans_start_templates="Setting up server beans (templates)..."
l_serverbeans_end_templates="...finished setting up server beans (templates)."

l_running_ug_script="running upgrade script:"
l_ug_script_failed="...failed"
l_ug_script_ok="...success"
l_ug_script_inapplicable="...not applicable to this upgrade"

q_pkguninst="
Setup will uninstall the following packages:"
q_pkguninst2="
You should install newer versions when Setup has finished."

l_missing="Missing file: "
