#! /bin/bash
# Generated by MANIFEST
# See INSTALL for details of format

#! /bin/bash
#
# The System Manager
# An Administration Tool For UNIX
#
# Copyright (c) 1994 Stuart Herbert
# Released under the GNU GPL v2
#
# Bugs/comments/contributions to S.Herbert@Sheffield.ac.uk

if [ -n "$1" ]; then
  case "$1" in
    --SysmanInstall)
      echo ""
      exit
      ;;
    --SysmanAuthor)
      source /var/adm/sysman/bin/ParseMod
      ;;
  esac
fi

title  "The System Manager"
author "Stuart Herbert" "S.Herbert@Sheffield.ac.uk"
comment
comment "The System Manager"
comment "An Administration Tool For UNIX"
comment
comment "This is version 0.1.1 of The System Manager.  It was developed on"
comment "Linux 1.0.8 using the Slackware distribution.  It is released under"
comment "the GNU General Public License v2."
comment
comment "This module contains all the documentation for The System Manager"
comment "plus the base scripts required by all other modules."
endinfo
comment
comment "PLEASE NOTE :"
comment "       This software is of ALPHA quality.  If you do not know what"
comment "       that means, stop right here!"
comment
comment "       YOU USE THIS SOFTWARE ENTIRELY AT YOUR OWN RISK.  If you"
comment "       do not like this, stop right here!"
comment
pause

require dialog

if [ $? -eq 254 ]; then
  log "Dialog, by Savio Lam, is not installed on your machine."
  log
  log "You need to download dialog.  There is a copy on sunsite.unc.edu"
  log "in /pub/Linux/utils/shell.  Look for version 0.4, which has some"
  log "extra features required by The System Manager."
  log
else
  log "You have dialog installed on your machine."
  log
  log "However, please check to ensure that this is dialog version 0.4"
  log "or later.  If your copy of dialog does not support the --radiolist"
  log "and --backtitle options, you will find that sysman does not work."
  log "I uploaded dialog-0.4 to sunsite.unc.edu - it should have ended up"
  log "in /pub/Linux/utils/shell."
  log
fi

target "/var/adm" "sysman"

log "Now you have installed sysman, use INSTALL to install any other"
log "modules, and then type the following :"
log
log "cd $TARGETDIR ; sysman modules/Sysman ./UpdateMenus"
log
log "which will build the System Manager's menus.  In future, you can"
log "rebuild the menus from inside the System Manager."
log
log "Simply type 'sysman' to get started."
log

comment
comment "Creating base directories"
comment
  
dir $TARGETDIR            755  y
dir $TARGETDIR/bin        755  y
dir $TARGETDIR/doc        755  y
dir $TARGETDIR/src        755  y
dir $TARGETDIR/.MANIFEST  755  y

comment
comment "Installing base files"
comment
  
file sysman            $TARGETDIR/sysman 755
link $TARGETDIR/sysman $TARGETBIN/sysman
  
file TEMPLATE                   $TARGETDIR/TEMPLATE                755
file bin/AuthorInfo             $TARGETDIR/bin/AuthorInfo          755
file bin/ParseMod               $TARGETDIR/bin/ParseMod            755
dir $TARGETDIR/modules 755 y
file modules/README.module /var/adm/sysman/modules/README.module 755
#! /bin/bash
# Generated by MANIFEST
# See INSTALL for details of format

depend -d /var/adm/sysman/modules
if [ $? -eq 254 ]; then
  log "You must install the 'base' module of the System Manager" y 
  log "before installing this module." y 
  log "" y 
  exit
fi
#! /bin/bash
#
# The System Manager
# An Administration Tool For UNIX
#
# Copyright (c) 1994 Stuart Herbert
# Released under the GNU GPL v2
#
# Bugs/comments/contributions to S.Herbert@Sheffield.ac.uk

if [ -n "$1" ]; then
  case "$1" in
    --SysmanInstall)
      echo "Y : Y : SYSMAN : Configure The System Manager :$0"
      exit
      ;;
    --SysmanAuthor)
      source /var/adm/sysman/bin/ParseMod
      ;;
  esac
fi

title   "Configuring The System Manager"
author  "Stuart Herbert" "S.Herbert@sheffield.ac.uk"
comment
comment "This module provides functions for maintaining the System Manager"
comment "itself."
endinfo

target /var/adm sysman
dir $TARGETDIR/modules/Sysman 755 y
file modules/Sysman/Manifest /var/adm/sysman/modules/Sysman/Manifest 755
file modules/Sysman/README.module /var/adm/sysman/modules/Sysman/README.module 755
file modules/Sysman/RemoveModule /var/adm/sysman/modules/Sysman/RemoveModule 755
file modules/Sysman/UpdateMenus /var/adm/sysman/modules/Sysman/UpdateMenus 755
