# This is a types file for the developer install tool for the
# messaging server product.  This file is installed into the destination
# directory and is part of the process necessary to generate the server
# configuration.
#
# Each line specifies a file type which may be used in "install.ins"
# files.
#
# The first field is "file" or "dir"
# The second field is a file type label (must be unique)
# The third field is the unix mode in octal
# The fourth field is the file owner
# The fifth field is the file group
#  :any:    means that any owner/group is permissible and defaults to "bin"
#  :custom: means that a custom owner/group is needed and defaults to "nobody"
# The sixth field is a set of flags or "-".  This can make
#  the type platform specific.
# The next two fields are only present on file entries:
# The seventh field is a "-" or a platform-specific suffix list.
# The last field is the default install directory for that file type.

#
# The following lines set various options for this product
#
defdestdir  <msg.RootPath>
runuser     <local.serveruid>
binuser     bin,root
rungroup    <local.servergid>
bingroup    sunone,iplanet,mail,bin,daemon,nobody

#
# Keys used for substitution on developer install
#
set msg.RootPath=$destdir
set msg.RootPathUNIX=$destdir
set local.serveruid=$runuser
set local.servergid=$rungroup
set msg.ServerName=config
set msg.product.Name=Sun ONE Messaging Suite
set msg.product.Vendor=Sun Microsystems, Inc.
set msg.product.Description=Applications and Server Components of Sun ONE Messaging Server
set msg.product.Nickname=msg
set msg.product.Version=$version
set msg.product.Revision=$revision
set msg.product.Ver=$ver
set msg.product.BuildNumber=$buildnum
set msg.product.InstallationTimestamp=$datetime
set msg.adminserver.Port=55555
set msg.ldap.service.http.SMTPPort=25
set msg.ServerHostName=$hostname
set msg.ipv4address=$ipv4address
set msg.AdminDomain=$domain
set local.defdomain=$domain
set msg.GroupName=Server Group (2)
set admin.password=password
set msg.ConfigLdapSiePassword=password
set msg.enduser.AdminPassword=password
set admin.sha.password={SHA}W6ph5Mm5Pz8GgiULbPgzG37mj9g=
set msg.jobc.SecretCode=password
set msg.OS.version=$uname
set msg.hardware=$hardware
set msg.hostprefix=$hostprefix
set msg.domainprefix=$domainprefix
set msg.dctree.Suffix.1=o=internet
set msg.dctree.Path=$dcpath
set msg.postmaster.username=testuser
set local.ldapbasedn=o=NetscapeRoot
set local.ugldapbasedn=o=usergroup
set local.service.pab.ldapbasedn=o=pab
set local.ldaphost=$hostname
set local.ugldaphost=$hostname
set AdminServer_ServerRoot=/var/mps/serverroot
set ssl.password=password
readconfig <msg.RootPath>/lib/config-templates/Devsetup.properties

#
# Platform conditional extensions
#
{solaris}set ext.shlib=.so
{linux}set   ext.shlib=.so
{macosx}set  ext.shlib=.so
{win32}set   ext.shlib=.dll
{hpux}set    ext.shlib=.sl
{unix}set    ext.exe=
{win32}set   ext.exe=.exe

#
# Directory types for install
#
#{unix}dir   750  $run  $run  -  -  <msg.DataPath>
{unix}dir   750  $run  $run  -  -  <msg.DataPath>/config
{unix}symlink existing=<msg.DataPath>         new=data
{unix}symlink existing=<msg.DataPath>/config  new=config
{!unix}dir  750  $run  $run  -  -  data
{!unix}dir  750  $run  $run  -  -  config

#
# These are for creating links in Admin Server serverroot
#
#{solaris}dir   755  root  sys   -  -  <AdminServer_ServerRoot>
dir   755  root  sys   unchange  -  <AdminServer_ServerRoot>/bin
dir   755  root  sys   -  -  <AdminServer_ServerRoot>/bin/msg
dir   755  root  sys   -  -  <AdminServer_ServerRoot>/bin/msg/admin
dir   755  root  sys   -  -  <AdminServer_ServerRoot>/bin/msg/admin/bin
dir   755  root  sys   -  -  <AdminServer_ServerRoot>/bin/msg/admin/lib

dir   755  root  sys   unchange  -  <AdminServer_ServerRoot>/bin/user
dir   755  root  sys   unchange  -  <AdminServer_ServerRoot>/bin/user/admin
dir   755  root  sys   unchange  -  <AdminServer_ServerRoot>/bin/user/admin/html
dir   755  root  sys   unchange  -  <AdminServer_ServerRoot>/bin/user/admin/html/en
dir   755  root  sys   unchange  -  <AdminServer_ServerRoot>/bin/user/admin/html/en/help
dir   755  root  sys   unchange  -  <AdminServer_ServerRoot>/bin/user/admin/html/en/help/images

dir   755  root  sys   -  -  <AdminServer_ServerRoot>/java
dir   755  root  sys   -  -  <AdminServer_ServerRoot>/java/jars
dir   755  root  sys   -  -  <AdminServer_ServerRoot>/manual
dir   755  root  sys   -  -  <AdminServer_ServerRoot>/manual/en
dir   755  root  sys   -  -  <AdminServer_ServerRoot>/manual/en/msg
dir   755  root  sys   -  -  <AdminServer_ServerRoot>/manual/en/msg/ag
dir   755  root  sys   -  -  <AdminServer_ServerRoot>/manual/de
dir   755  root  sys   -  -  <AdminServer_ServerRoot>/manual/de/msg
dir   755  root  sys   -  -  <AdminServer_ServerRoot>/manual/de/msg/ag
dir   755  root  sys   -  -  <AdminServer_ServerRoot>/manual/es
dir   755  root  sys   -  -  <AdminServer_ServerRoot>/manual/es/msg
dir   755  root  sys   -  -  <AdminServer_ServerRoot>/manual/es/msg/ag
dir   755  root  sys   -  -  <AdminServer_ServerRoot>/manual/fr
dir   755  root  sys   -  -  <AdminServer_ServerRoot>/manual/fr/msg
dir   755  root  sys   -  -  <AdminServer_ServerRoot>/manual/fr/msg/ag
dir   755  root  sys   -  -  <AdminServer_ServerRoot>/manual/ja
dir   755  root  sys   -  -  <AdminServer_ServerRoot>/manual/ja/msg
dir   755  root  sys   -  -  <AdminServer_ServerRoot>/manual/ja/msg/ag
dir   755  root  sys   -  -  <AdminServer_ServerRoot>/manual/ko
dir   755  root  sys   -  -  <AdminServer_ServerRoot>/manual/ko/msg
dir   755  root  sys   -  -  <AdminServer_ServerRoot>/manual/ko/msg/ag
dir   755  root  sys   -  -  <AdminServer_ServerRoot>/manual/zh
dir   755  root  sys   -  -  <AdminServer_ServerRoot>/manual/zh/msg
dir   755  root  sys   -  -  <AdminServer_ServerRoot>/manual/zh/msg/ag
dir   755  root  sys   -  -  <AdminServer_ServerRoot>/manual/zh_TW
dir   755  root  sys   -  -  <AdminServer_ServerRoot>/manual/zh_TW/msg
dir   755  root  sys   -  -  <AdminServer_ServerRoot>/manual/zh_TW/msg/ag
{!solaris}dir   755  root  sys   -  -  bin
{!solaris}dir   755  root  sys   -  -  bin/msg
{!solaris}dir   755  root  sys   -  -  bin/msg/admin
{!solaris}dir   755  root  sys   -  -  bin/msg/admin/bin
{!solaris}dir   755  root  sys   -  -  bin/msg/admin/lib
dir  755  $bin  $bin  -         -  shared
dir  755  $bin  $bin  -         -  shared/config
dir  755  $bin  $bin  -         -  admin-serv
dir  755  $bin  $bin  -         -  admin-serv/config

#
#
dir  750  $run  $run  -         -  data/db
dir  750  $run  $run  -         -  data/log
dir  750  $run  $run  -         -  data/lock
dir  750  $run  $run  -         -  data/queue
dir  750  $run  $run  -         -  data/store
dir  750  $run  $run  -         -  data/counter
dir  750  $run  $run  -         -  data/http
dir  750  $run  $run  -         -  data/telemetry
dir  750  $run  $run  -         -  data/telemetry/imap
dir  750  $run  $run  -         -  data/telemetry/pop
dir  750  $run  $run  -         -  data/telemetry/http
dir  755  $run  $run  -         -  data/site-programs
dir  750  $run  $run  -         -  data/vacation
dir  750  $run  $run  -         -  data/tmp
dir  770  $run  $run  -         -  config/advanced
dir  770  $run  $run  -         -  config/locale
dir  770  $run  $run  -         -  config/locale/C
dir  770  $run  $run  -         -  config/locale/de
dir  770  $run  $run  -         -  config/locale/es
dir  770  $run  $run  -         -  config/locale/fr
dir  770  $run  $run  -         -  config/locale/ja
dir  770  $run  $run  -         -  config/locale/zh
dir  770  $run  $run  -         -  config/locale/zh_TW
dir  770  $run  $run  -         -  config/locale/pl
dir  770  $run  $run  -         -  config/locale/ko
# directories under config/html must match the same
# entries in mstypes.txt for lib/config-templates/html
dir  770  $run  $run  -         -  config/html
dir  755  $bin  $bin  -         -  sbin
dir  755  $bin  $bin  -         -  lib
dir  755  $bin  $bin  -         -  lib/patch
dir  755  $bin  $bin  -         -  lib/locale
dir  755  $bin  $bin  -         -  lib/msg
dir  755  $bin  $bin  -		-  lib/sasl
{solaris_sparc}dir  755  $bin  $bin  -  -  lib/cpu
{solaris_sparc}dir  755  $bin  $bin  -  -  lib/cpu/sparcv8plus
{unix}dir  755  root  sys   unchange         -  /etc
{unix}dir  755  root  sys   unchange         -  /etc/init.d

# for customer convenience only, all code should use data/log not log
symlink existing=data/log  new=log

#
# File types for install
#
file subconfig   640  $run  $run  substitute  -                config
file adminshsub  750  $bin  $run  substitute  win32=bat        sbin
file privbin     755  $bin  $bin  -           win32=exe        lib
file privshmsg   750  $bin  $run  substitute  -                lib/msg
file regconfig   644  $run  $run  -           -                config
file advconfig   644  $run  $run  -           -                config/advanced
file adminjar    644  $bin  $bin  -           -                <AdminServer_ServerRoot>/java/jars
file subpatch   640  $run  $run  substitute  -                lib/patch
