1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

Remove Unixware and openserver support

This commit is contained in:
chase 2018-05-19 19:50:35 -05:00 committed by Jon Trulson
parent beea573d17
commit 07900bd93b
375 changed files with 725 additions and 9112 deletions

View file

@ -17,11 +17,6 @@ LOCAL_CPP_DEFINES=-Usun
OVERRIDE=install.dt.sun
#endif
#ifdef USLArchitecture
LOCAL_CPP_DEFINES=-Uusl
OVERRIDE=install.dt.usl
#endif
#ifdef AlphaArchitecture
OVERRIDE=install.dt.dec
#endif

View file

@ -1,79 +0,0 @@
####################################
### Instructions for SCO Systems ###
####################################
System Requirements
===================
* SCO Open Desktop or SCO Open Server Version 3.0
* 386-33, 486, or Pentium based processor
* 16MB memory
* 1024x768, 256 color graphics system
* 70MB free disk space
* 30MB Swap Space
Before You Start the Desktop
============================
If your system has one of these special configurations, you may need to
edit certain Login Manager files before starting the desktop. See
chapter 2 of the Getting Started Guide:
* If the system console is a non-bitmap device.
* If the system is an X terminal or a host for X terminals.
* If the system has more than one display.
To Start and Stop the Desktop
============================
1. Log in as the user who will use the desktop and be running the Korn or
Bourne shells (ksh or sh).
2. First, add the following two lines to your .profile:
PATH=$PATH:/opt/dt/bin
. /opt/dt/bin/dtsearchpath
These lines add the desktop search path to your PATH variable.
3. If you have a .startxrc file in your home directory, move it to a
backup location or name by entering:
mv .startxrc old.startxrc
4. Copy /etc/opt/dt/dt.startxrc to your home directory and rename it
to .startxrc by entering:
cp /etc/opt/dt/dt.startxrc .startxrc
5. Do one of the following:
* Log out of your ODT session and log in via Scologin.
* Or, at a shell prompt on a multiscreen not running the X
server, run startx by entering:
startx
Be sure to log out to reinvoke your .profile correctly.

View file

@ -1,207 +0,0 @@
#########################################################################
# Configuration Instructions for the UnixWare 1.1 or later Environments #
#########################################################################
The following instructions assume you have already installed the Common Desktop
Environment according to the Installation Instructions on the CD jacket.
There are two ways to start the desktop:
* You can manually start the desktop Login Manager. This method can be used to
avoid rebooting the system. See the section To Start and Stop the Desktop
Manually .
* You can configure the system to start the desktop automatically upon reboot.
See the section To Enable and Disable Desktop Auto-Start..
Before You Start the Desktop
============================
******************************************************************************
If you have a previous Common Desktop Environment (CDE) version on the system:
******************************************************************************
*Advise all CDE users on the system to remove or rename their $HOME/.dt directory
and their $HOME/.dtprofile. The new files are not compatible with the old
ones. If users have customized the $HOME/.dt/dtwmrc file and want to keep
it, they will need to cut and paste the appropriate pieces into the new dtwmrc
file provided.
*Become the root user on the system. Make sure all other users on the system
are logged out of CDE. Kill the Login Manager if running.
kill -15 `cat /etc/opt/dt/Xpid`
Killing the Login Manager process works no matter how the process was started.
An alternate method is to stop the system resource control for the desktop.
This method should only be used if CDE was configured on the system by
replacing the /etc/rc2.d/S69xdm script. You can tell if CDE was configured
this way by checking the existence of /etc/S69xdm.old. If this file
exists, then do the following:
mv /etc/S69xdm.old /etc/rc2.d/S69xdm
Special Configurations
----------------------
If your system has one of these special configurations, you may need to
edit certain Login Manager files before starting the desktop. See the
Advanced User's and System Administrator's Guide:
* If the system console is not a UnixWare supported bitmap device.
* If the system is an X terminal or a host for X terminals.
* If the system has more than one display.
To Start and Stop the Desktop Manually
======================================
There are two ways to start the desktop manually:
* You can manually start the CDE Login Manager, which will
display the desktop Login screen. To use this method, you
must have permission to log in as root.
This method is preferable, since Login Manager sets certain
environment variables that are needed during desktop sessions.
* You can log in using conventional methods, and then manually
run the CDE Session Manager, which starts a desktop session.
See the section Manually Starting and Stopping the Session
Manager.
Manually Starting and Stopping Login Manager
--------------------------------------------
When you use this method, you log in using the CDE Login screen.
When you log in, a desktop session starts.
To manually start Login Manager:
1. Log in as root.
2. Type:
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/dt/lib:/usr/X/lib export LD_LIBRARY_PATH
3. With no window system running, from the command line enter:
/usr/dt/bin/dtlogin -daemon
The CDE Graphical Login screen will appear.
4. For security reasons, you need to exit the shell that invoked dtlogin.
Type <Alt><SysRq> p
(i.e. Press the <Alt> and <SysRq> keys at the same time,
release both and then hit 'p'. )
You should return to an ASCII terminal session.
5. Type:
<return>
exit
6. You will be asked if you want your virtual terminals closed at once.
Type: n
The CDE Graphical Login screen will reappear.
To manually stop Login Manager:
1. Log out of the CDE Desktop.
2. From the options menu of the CDE Graphical Login choose Command Line.
This will give you the ASCII login screen.
3. Log in as root.
4. Type:
kill -15 `cat /usr/dt/config/Xpid`
Manually Starting and Stopping Session Manager
----------------------------------------------
If you use this method, you are responsible for setting certain
environment variables to values required by the desktop if suitable
values are not already set in your environment. Refer to the Getting
Started Guide for setting the necessary environment variables.
1. Log in. (You do not need to log in as root).
2. With no window system running, from the command line enter:
LD_LIBRARY_PATH=/usr/dt/lib:/usr/X/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
PATH=$PATH:/usr/X/bin
export PATH
/usr/X/bin/olinit /usr/dt/bin/Xsession
The Session Manager stops when you log out.
When auto-start is enabled, the CDE Login Manager runs
automatically each time the system is booted. You then log
in using the CDE Login Screen.
To Enable and Disable Desktop Auto-Start
========================================
UnixWare can be configured to start the CDE Desktop automatically when the system
is booted. This method starts CDE as the Session Manager for all users on
the system.
To Enable Desktop Auto-Start
----------------------------
1. Log in as root.
2. From the command line, enter:
NOTE: Step 'a' is necessay only if the /etc/rc2.d/S69xdm
script has been modified after UnixWare was
installed on your system and if the graphical login
is enabled. A copy of the S69xdm script that
came with the UnixWare installation is located
in /usr/X/adm.
a. cp /etc/rc2.d/S69xdm /etc/S69xdm.preCDE
b. cp /usr/dt/config/S69xdm /etc/rc2.d/S69xdm
A CDE Login screen will appear the next time the system is booted.
To Disable Desktop Auto-Start
-----------------------------
1. Log in as root.
2. From a command line, enter:
rm /etc/rc2.d/S69xdm
If you would like the original UnixWare Desktop Manager Login
to appear upon reboot:
/usr/X/bin/enable_glogin
- OR -
If a copy of S69xdm was saved as outlined in the section
"To Enable Desktop Auto-Start":
mv /etc/S69xdm.preCDE /etc/rc2.d/S69xdm
The UnixWare Desktop Manager Login will appear
the next time the system is rebooted.

View file

@ -4,7 +4,7 @@ LOCAL_CPP_DEFINES = -DCDE_INSTALLATION_TOP=$(CDE_INSTALLATION_TOP) \
-DCDE_CONFIGURATION_TOP=$(CDE_CONFIGURATION_TOP) \
-DCDE_LOGFILES_TOP=$(CDE_LOGFILES_TOP) \
-DKORNSHELL=$(KORNSHELL) \
-Usun -Uusl -Uaix -Udec -UAIX -Uibm -Uhp
-Usun -Uaix -Udec -UAIX -Uibm -Uhp
AllTarget(installCDE dinstallCDE)

View file

@ -174,7 +174,7 @@ Pseudo-BNF:
release_def = "{" release_id ":" "defaults" record_defs "}"
release_id = "hp-ux" | "aix" | "sun" | "usl" | "default"
release_id = "hp-ux" | "aix" | "sun" | "default"
record_defs = keyword_def "=" special_token |
keyword_def "=" keyword_value

View file

@ -154,10 +154,6 @@ XCOMM
then
PLATFORM=sun
PLATFORM_SCRIPT_DIR=sun
elif [ $BUILDSYSTEM = "UNIX_SV" ];
then
PLATFORM=usl
PLATFORM_SCRIPT_DIR=usl
elif [ $BUILDSYSTEM = "OSF1" ];
then
PLATFORM=dec
@ -170,7 +166,7 @@ XCOMM
if [ "$PLATFORM" = "aix" ];
then
USER=`/bin/whoami`
elif [ "$PLATFORM" = "sun" -o "$PLATFORM" = "usl" ];
elif [ "$PLATFORM" = "sun" ];
then
USER=`/usr/ucb/whoami`
else

View file

@ -62,11 +62,6 @@ MakeTarball()
HASH
Log "Creating tarball..."
if [ $PLATFORM = "usl" ]
then
ulimit -f unlimited
fi
DIRNAME=build.$DATE
mkdir -p $TARBALL_LOCATION/$DIRNAME
cd /
@ -257,10 +252,7 @@ RestartInetd()
OLDPWD=`pwd`
cd /
if [ "$PLATFORM" = "usl" ]
then
/usr/sbin/inetd -s
elif [ "$PLATFORM" = "sun" ]
if [ "$PLATFORM" = "sun" ]
then
/usr/sbin/svcadm refresh svc:/network/inetd:default
/usr/sbin/svcadm restart svc:/network/inetd:default
@ -569,10 +561,6 @@ XCOMM
then
PLATFORM=sun
PLATFORM_SCRIPT_DIR=sun
elif [ $BUILDSYSTEM = "UNIX_SV" ];
then
PLATFORM=usl
PLATFORM_SCRIPT_DIR=usl
elif [ $BUILDSYSTEM = "OSF1" ];
then
PLATFORM=dec
@ -601,9 +589,6 @@ XCOMM
if [ "$PLATFORM" = "aix" ];
then
USER=`/bin/whoami`
elif [ "$PLATFORM" = "usl" ];
then
USER=`/usr/ucb/whoami`
else
USER=`/usr/bin/whoami`
fi
@ -615,11 +600,6 @@ XCOMM
echo ""
fi
if [ "$PLATFORM" = "usl" ]
then
umask 000
fi
unset TMPDIR
CLEANING="no"

View file

@ -92,9 +92,6 @@ then
elif [ $BUILDSYSTEM = "SunOS" ];
then
PLATFORM=sun
elif [ $BUILDSYSTEM = "UNIX_SV" ];
then
PLATFORM=usl
elif [ $BUILDSYSTEM = "OSF1" ];
then
PLATFORM=dec
@ -105,9 +102,6 @@ fi
if [ $PLATFORM = "aix" ];
then
USER=`/bin/whoami`
elif [ $PLATFORM = "usl" ];
then
USER=`/usr/ucb/whoami`
else
USER=`/usr/bin/whoami`
fi

View file

@ -143,7 +143,6 @@ XCOMM Return
XCOMM "hpux"
XCOMM "aix"
XCOMM "sun"
XCOMM "usl"
XCOMM "dec"
XCOMM ==========================================================================
@ -155,7 +154,6 @@ GetPlatform()
*HP-UX*) getPlatform=hp;;
*AIX*) getPlatform=ibm;;
*SunOS*) getPlatform=sun;;
*UNIX_SV*) getPlatform=usl;;
*OSF1*) getPlatform=dec;;
esac
fi
@ -174,7 +172,6 @@ XCOMM Return
XCOMM "hpux"
XCOMM "aix"
XCOMM "sun"
XCOMM "usl"
XCOMM "dec"
XCOMM ==========================================================================
@ -182,7 +179,7 @@ ValidOS()
{
platform=$(GetPlatform)
case "$platform" in
hp|ibm|sun|usl|dec)
hp|ibm|sun|dec)
DtiReturn $platform
;;
*) Exit $INVALID_OS_MSG 1
@ -675,8 +672,6 @@ XCOMM set up the path for whoami command
;;
sun) WHOAMI_PATH=/usr/ucb
;;
usl) WHOAMI_PATH=/usr/ucb
;;
dec) WHOAMI_PATH=/usr/bin
;;
esac

View file

@ -6,7 +6,7 @@ XCOMM ==========================================================================
XCOMM install.dt
XCOMM
XCOMM Script to install the April 1994 Snapshot Desktop on
XCOMM HP, IBM, Sun, USL, or DEC Unix systems from a CDROM
XCOMM HP, IBM, Sun, or DEC Unix systems from a CDROM
XCOMM
XCOMM ==========================================================================
XCOMM ==========================================================================
@ -167,7 +167,6 @@ XCOMM Return
XCOMM "hpux"
XCOMM "aix"
XCOMM "sun"
XCOMM "usl"
XCOMM "dec"
XCOMM ==========================================================================
@ -179,7 +178,6 @@ GetPlatform()
*HP-UX*) getPlatform=hp;;
*AIX*) getPlatform=ibm;;
*SunOS*) getPlatform=sun;;
*UNIX_SV*) getPlatform=usl;;
*OSF1*) getPlatform=dec;;
esac
fi
@ -406,7 +404,7 @@ Main()
HASH 3) verify platform is supported
HASH
case "$dtiPlatform" in
hp|ibm|sun|usl|dec)
hp|ibm|sun|dec)
NewState 4.1
;;
*)

View file

@ -1,174 +0,0 @@
XCOMM $XConsortium: install.dt.usl.src /main/4 1996/04/23 11:19:27 drk $
XCOMM ==========================================================================
XCOMM ==========================================================================
XCOMM install.dt.usl
XCOMM
XCOMM Platform specific function overrides for the April 1994 Snapshot
XCOMM install script, install.dt.
XCOMM
XCOMM This file is sourced by the install.dt script to allow platform
XCOMM specific behavior for certain functionality. These functions are:
XCOMM
XCOMM DtiClearScreen() - clear the screen
XCOMM DtiFreeSpace() - return available bytes in a directory
XCOMM DtiVerifyConfiguration() - verify system configuration
XCOMM DtiWhoami() - return user name
XCOMM
XCOMM ==========================================================================
#define HASH #
XCOMM ==========================================================================
XCOMM
XCOMM DtiClearScreen() - clears the screen
XCOMM
XCOMM The default DtiClearScreen() uses the 'clear' command to clear the
XCOMM screen. If this platform does not have the 'clear' command,
XCOMM declare DtiClearScreen() here with the appropriate functionality.
XCOMM
XCOMM Note: The default DtiClearScreen() writes to stderr, rather than stdout,
XCOMM so be sure to do the same here. DtiPrint() does this automatically, so
XCOMM use it if possible.
XCOMM
XCOMM Example:
XCOMM
XCOMM DtiClearScreen()
XCOMM {
XCOMM DtiPrint "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"
XCOMM DtiPrint "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"
XCOMM }
XCOMM
XCOMM Input - none
XCOMM Output - none
XCOMM Return -none
XCOMM
XCOMM USL uses the default (clear). We'll define it here to ensure usage.
XCOMM ==========================================================================
DtiClearScreen() {
clear 1>&2
}
XCOMM ==========================================================================
XCOMM
XCOMM DtiFreeSpace
XCOMM
XCOMM The default DtiFreeSpace() does not check for free space, rather it
XCOMM simply returns a BigNumber that install.dt will assume is large
XCOMM enough in which to install the desktop.
XCOMM
XCOMM Declare DtiFreeSpace() here to return the actual available space for
XCOMM a particular directory.
XCOMM
XCOMM The $1 parameter will contain the directory name to test. The directory
XCOMM specified will exist. DtiFreeSpace() should return the number of bytes
XCOMM available via the DtiReturn() function.
XCOMM
XCOMM Input
XCOMM $1 - directory name
XCOMM Output - none
XCOMM Return
XCOMM number of bytes available
XCOMM
XCOMM ==========================================================================
DtiFreeSpace()
{
blocks="$(df "$1" | sed 's/^.*://' | awk '{print $1}')"
case "$blocks" in
[0-9]*) let blocks=blocks*512
DtiReturn "$blocks" ;;
*) DtiReturn "0" ;; # install.dt warn and confirm
esac
}
XCOMM ==========================================================================
XCOMM
XCOMM DtiVerifyConfiguration
XCOMM
XCOMM The default DtiVerifyConfiguration() does no system configuration
XCOMM testing. For a particular platform, one might want to test for
XCOMM the presence of X11R5 or the OS version, for example, before allowing
XCOMM the desktop to be installed.
XCOMM
XCOMM Declare this function to make such platform specific tests. Return
XCOMM "yes" if the system passed, or "<message text>" if the system failed
XCOMM in which case install.dt will display the <message text> as the reason.
XCOMM
XCOMM Input - none
XCOMM Output - none
XCOMM Return
XCOMM "yes" - system configuration verified
XCOMM "<message text>" - verification failed, display message text
XCOMM
XCOMM ==========================================================================
DtiVerifyConfiguration()
{
if [ "$(uname -s)" = UNIX_SV -a "$(uname -r)" = 4.2 ]
then
if [ "$(uname -v)" = 1.0 ]
then
DtiReturn \
"WARNING: THE CDE DESKTOP IS NOT SUPPORTED ON UnixWare 1.0"
else
HASH for all 4.2 releases after 1.0
DtiReturn "yes"
fi
else
DtiReturn "ERROR: THIS IS NOT A \"UNIX_SV 4.2\" SYSTEM"
fi
}
XCOMM ==========================================================================
XCOMM
XCOMM DtiWhoami
XCOMM
XCOMM The default DtiWhoami() uses the 'whoami' command to determine
XCOMM the user name. If this platform does not have the 'whoami' command,
XCOMM declare DtiWhoami() here with the appropriate functionality.
XCOMM
XCOMM Input - none
XCOMM Output - none
XCOMM Return
XCOMM result of system 'whoami' command
XCOMM
XCOMM ==========================================================================
DtiWhoami()
{
/usr/ucb/whoami
}
XCOMM ==========================================================================
XCOMM
XCOMM DtiPrint - echo to stderr and log
XCOMM
XCOMM Input
XCOMM $1 - data to echo to stdout and log
XCOMM Output - none
XCOMM Return -none
XCOMM
XCOMM Override on UnixWare because of printf "%s" integer-const problem
XCOMM This coordinates with the leading blank in the passing of " $meg" in master.
XCOMM ==========================================================================
DtiPrint()
{
if [ "$#" -gt 1 ]
then
if [ "$#" -gt 5 ]
then
printf "$1" "$2" "$3" "$4" "$5" "$6" $7 $8 $9 >&2
else
if [ "$#" -gt 4 ]
then
printf "$1" "$2" "$3" "$4" "$5" $6 $7 $8 $9 >&2
else
printf "$1" "$2" $3 $4 $5 $6 $7 $8 $9 >&2
fi
fi
else
printf "$1" $2 $3 $4 $5 $6 $7 $8 $9 >&2
fi
Log "$1" $2 $3 $4 $5 $6 $7 $8 $9
}

View file

@ -40,10 +40,6 @@ SUBDIRS = ibm
PLATFORM = sun
SUBDIRS = sun
#endif
#ifdef USLArchitecture
PLATFORM = usl
SUBDIRS = usl
#endif
#ifdef AlphaArchitecture
PLATFORM = dec
SUBDIRS = dec

View file

@ -12,9 +12,6 @@ PLATFORM = aix
PLATFORM = sun
.NO_PARALLEL:
#endif
#ifdef USLArchitecture
PLATFORM = usl
#endif
#ifdef AlphaArchitecture
PLATFORM = dec
#endif

View file

@ -18,9 +18,6 @@ PLATFORM = aix
PLATFORM = sun
.NO_PARALLEL:
#endif
#ifdef USLArchitecture
PLATFORM = usl
#endif
UDBTOANY = $(KORNSHELL) $(TOOL_DIR)/udbToAny.ksh
BUILD_UDB_LIST = $(SHELL) ../build_udb_list

View file

@ -12,10 +12,6 @@ PLATFORM = aix
PLATFORM = sun
.NO_PARALLEL:
#endif
#ifdef USLArchitecture
PLATFORM = usl
#endif
all::

View file

@ -15,9 +15,6 @@ PLATFORM = aix
PLATFORM = sun
.NO_PARALLEL:
#endif
#ifdef USLArchitecture
PLATFORM = usl
#endif
all::

View file

@ -24,9 +24,6 @@ PLATFORM = aix
PLATFORM = sun
.NO_PARALLEL:
#endif
#ifdef USLArchitecture
PLATFORM = usl
#endif
UDBTOANY = $(KORNSHELL) $(TOOL_DIR)/udbToAny.ksh
BUILD_UDB_LIST = $(SHELL) ../build_udb_list

View file

@ -21,9 +21,6 @@ PLATFORM = aix
PLATFORM = sun
.NO_PARALLEL:
#endif
#ifdef USLArchitecture
PLATFORM = usl
#endif
UDBTOANY = $(KORNSHELL) $(TOOL_DIR)/udbToAny.ksh
BUILD_UDB_LIST = $(SHELL) ../build_udb_list

View file

@ -12,9 +12,6 @@ PLATFORM = aix
PLATFORM = sun
.NO_PARALLEL:
#endif
#ifdef USLArchitecture
PLATFORM = usl
#endif
all::

View file

@ -1,54 +0,0 @@
XCOMM $XConsortium: Imakefile /main/5 1996/04/21 19:07:43 drk $
TOOL_DIR = ../../dbTools
DATABASE_DIR = ../../../../databases
#ifdef HPArchitecture
PLATFORM = hp-ux
#endif
#ifdef RsArchitecture
PLATFORM = aix
#endif
#ifdef SunArchitecture
PLATFORM = sun
.NO_PARALLEL:
#endif
#ifdef USLArchitecture
PLATFORM = usl
#endif
all::
configMin:: $(DATABASE_DIR)/CDE-MIN.udb
$(TOOL_DIR)/udbToAny.ksh -toLst -ReleaseStream $(PLATFORM) \
$(DATABASE_DIR)/CDE-MIN.udb > CDE-MIN.lst
../build_udb_list CDE-MIN ../../../..
configTT:: $(DATABASE_DIR)/CDE-TT.udb
$(TOOL_DIR)/udbToAny.ksh -toLst -ReleaseStream $(PLATFORM) \
$(DATABASE_DIR)/CDE-TT.udb > CDE-TT.lst
../build_udb_list CDE-TT ../../../..
configRun:: $(DATABASE_DIR)/CDE-RUN.udb
$(TOOL_DIR)/udbToAny.ksh -toLst -ReleaseStream $(PLATFORM) \
$(DATABASE_DIR)/CDE-RUN.udb > CDE-RUN.lst
../build_udb_list CDE-RUN ../../../..
configShlibs:: $(DATABASE_DIR)/CDE-SHLIBS.udb
$(TOOL_DIR)/udbToAny.ksh -toLst -ReleaseStream $(PLATFORM) \
$(DATABASE_DIR)/CDE-SHLIBS.udb > CDE-SHLIBS.lst
../build_udb_list CDE-SHLIBS ../../../..
LOCAL_CPP_DEFINES = -DCDE_INSTALLATION_TOP=$(CDE_INSTALLATION_TOP) \
-DCDE_CONFIGURATION_TOP=$(CDE_CONFIGURATION_TOP) \
-DCDE_LOGFILES_TOP=$(CDE_LOGFILES_TOP)
AllTarget(configShlibs configTT configRun configMin)
CppScriptTarget(configShlibs,configShlibs.src,$(LOCAL_CPP_DEFINES),)
CppScriptTarget(configTT,configTT.src,$(LOCAL_CPP_DEFINES),)
CppScriptTarget(configRun,configRun.src,$(LOCAL_CPP_DEFINES),)
CppScriptTarget(configMin,configMin.src,$(LOCAL_CPP_DEFINES),)
clean::
$(RM) *.lst *.list

View file

@ -1,53 +0,0 @@
#!/bin/sh
#
# Start X Display Manager for CDE
#
XNETACCESS=on #!@ Do not edit this line !@
XWINHOME=/usr/X export XWINHOME #!@ (or your mount point) !@
DTHOME=/usr/dt
PATH=$PATH:$XWINHOME/bin:$DTHOME/bin export PATH #!@ Do not edit this line !@
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$DTHOME/lib:$XWINHOME/lib export LD_LIBRARY_PATH #!@ Do not edit this line !@
XUSL=/usr/X/bin/X
XDMPROG="$DTHOME/bin/dtlogin"
XDM="$XDMPROG -daemon"
# Installed by els.4.2 package instance
XNLSPATH=$XWINHOME/lib/nls/elsXsi # Installed by els.4.2 package instance
XMODIFIERS=@im=Local # Installed by els.4.2 package instance
export XNLSPATH XMODIFIERS # Installed by els.4.2 package instance
KillProgram()
{
if [ "$#" -ne 2 ]
then
echo "usage: KillProgram -signal program-name"
fi
SIGNAL=$1
PROGRAM=$2
/bin/ps -ef | grep "$2" | grep -v grep >/tmp/tmppsout
if test -s /tmp/tmppsout
then
awk "{print \"kill $1 \" \$2}" /tmp/tmppsout | /bin/ksh
fi
rm -f /tmp/tmppsout
}
case "$1" in
start)
if test -x $XDMPROG; then
if test -x $XUSL; then
rm -rf /var/dt/Xpid
exec $XDM
fi
fi
;;
stop)
KillProgram -15 dtlogin
;;
*)
echo "usage: S69xdm {start|stop}"
;;
esac

View file

@ -1,67 +0,0 @@
XCOMM! /bin/ksh
XCOMM #######
XCOMM Product: CDE
XCOMM Fileset: CDE-HELP
XCOMM customize
XCOMM @(#) $XConsortium: configHelp.src /main/5 1996/04/23 19:56:20 drk $
XCOMM #######
XCOMM
XCOMM (c) Copyright Hewlett-Packard Company, 1993
XCOMM
XCOMM #######
#define STAR *
XCOMM ############################################
XCOMM #
XCOMM # HELP_symlinks
XCOMM #
XCOMM # create various symlinks
XCOMM #
XCOMM ############################################
HELP_symlinks()
{
HELP_LOC="appconfig/help"
theLANG="C"
DESTDIR=$CDE_CONF_TOP/$HELP_LOC/$theLANG
SRCDIR=$CDE_TOP/$HELP_LOC/$theLANG
EXT=".sdl"
[ -d $DESTDIR ] || mkdir -p $DESTDIR
for j in $CDE_TOP/$HELP_LOC/$theLANG/STAR
do
thedir=`basename $j`
if [[ -d $j && -f $j/${thedir}$EXT ]]
then
rm -f $DESTDIR/${thedir}$EXT
ln -s $j/${thedir}$EXT $DESTDIR/${thedir}$EXT
fi
done
for j in $CDE_TOP/$HELP_LOC/$theLANG/STAR.hf
do
thefile=`basename $j`
rm -f $DESTDIR/$thefile
ln -s $CDE_TOP/$HELP_LOC/$theLANG/$thefile $DESTDIR/$thefile
done
}
XCOMM ##########################################################################
XCOMM
XCOMM Main Body
XCOMM
XCOMM ##########################################################################
PRODUCT=CDE
FILESET=CDE-HELP
retval=0
CDE_TOP=CDE_INSTALLATION_TOP
CDE_CONF_TOP=CDE_CONFIGURATION_TOP
XCOMM
XCOMM set up symlinks that point into the $CDE_TOP tree
XCOMM
HELP_symlinks
return $retval

View file

@ -1,65 +0,0 @@
XCOMM! /bin/ksh
XCOMM #######
XCOMM Product: CDE
XCOMM Fileset: CDE-HELP
XCOMM customize
XCOMM @(#) $XConsortium: configHelpPrg.src /main/5 1996/04/23 19:56:25 drk $
XCOMM #######
XCOMM
XCOMM (c) Copyright Hewlett-Packard Company, 1993
XCOMM
XCOMM #######
#define STAR *
XCOMM ############################################
XCOMM #
XCOMM # HELP_symlinks
XCOMM #
XCOMM # create various symlinks
XCOMM #
XCOMM ############################################
HELP_symlinks()
{
DEST_HELP_LOC="appconfig/help"
SRC_HELP_LOC="dthelp/help"
theLang="C"
DESTDIR=$CDE_CONF_TOP/$DEST_HELP_LOC/$theLang
SRCDIR=$CDE_TOP/$SRC_HELP_LOC/$theLang
[ -d $DESTDIR ] || mkdir -p $DESTDIR
for j in $SRCDIR/STAR
do
dir=`basename $j`
for k in $j/STAR
do
file=`basename $k`
EXT=${file##*\.}
if [[ "$EXT" = "sdl" || "$EXT" = "hf" ]]
then
rm -f $DESTDIR/$file
ln -s $SRCDIR/$dir/$file $DESTDIR/$file
fi
done
done
}
XCOMM #############################################################################
XCOMM
XCOMM Main Body
XCOMM
XCOMM #############################################################################
PRODUCT=CDE
FILESET=CDE-HELP
retval=0
CDE_TOP=CDE_INSTALLATION_TOP
CDE_CONF_TOP=CDE_CONFIGURATION_TOP
XCOMM
XCOMM set up symlinks that point into the $CDE_TOP tree
XCOMM
HELP_symlinks
return $retval

View file

@ -1,197 +0,0 @@
XCOMM! /bin/ksh
XCOMM #######
XCOMM Product: CDE
XCOMM Fileset: CDE-MIN
XCOMM configure
XCOMM @(#) $XConsortium: configMin.src /main/4 1996/04/21 19:07:50 drk $
XCOMM #######
XCOMM
XCOMM (c) Copyright Hewlett-Packard Company, 1993
XCOMM
XCOMM #######
PRODUCT=CDE
FILESET=CDE-MIN
DO_CONFIGURATION=""
retval=0
CheckForClobberedLinks()
{
XCOMM
XCOMM ensure links not clobbered
XCOMM
for file in services inetd.conf
do
if test ! -L /etc/$file
then if test -f /etc/$file
then
rm /etc/$file
ln -s /etc/inet/$file /etc/$file
fi
fi
done
}
FixEtcInetServices()
{
SERVICES=/etc/inet/services
XCOMM
XCOMM see if it already exists
XCOMM
nawk '{if ($1 == "dtspc") print $0 > "/tmp/dtspc-already-there"}' \
$SERVICES >/dev/null
if [ ! -f /tmp/dtspc-already-there ]
then
if test ! -f ${SERVICES}.preCDE
then mv $SERVICES $SERVICES.preCDE
cp ${SERVICES}.preCDE $SERVICES
chmod 444 $SERVICES
fi
echo "dtspc\t6112/tcp\t#subprocess control" >>$SERVICES
else
rm /tmp/dtspc-already-there
fi
XCOMM
XCOMM remove legacy entries like dtspcd
XCOMM
nawk '{if ($1 == "dtspcd" || $1 == "#dtspcd") ; else print $0}' \
$SERVICES >/tmp/etc-services
mv /tmp/etc-services $SERVICES
chmod 444 $SERVICES
}
UnfixEtcInetServices()
{
SERVICES=/etc/inet/services
TMPFILE=/tmp/etc-services
nawk '{if ($1 == "dtspc" && $2 == "6112/tcp")
;
else
print $0
}' $SERVICES >$TMPFILE
mv $TMPFILE $SERVICES
}
FixInetdDotConf()
{
INETD_CONF=/etc/inet/inetd.conf
XCOMM
XCOMM see if it already exists
XCOMM
nawk '{if ($1 == "dtspc") print $0 > "/tmp/dtspc-already-there"}' \
$INETD_CONF >/dev/null
if [ ! -f /tmp/dtspc-already-there ]
then
if test ! -f ${INETD_CONF}.preCDE
then mv $INETD_CONF $INETD_CONF.preCDE
cp ${INETD_CONF}.preCDE $INETD_CONF
chmod 444 $INETD_CONF
fi
DTSPCD=CDE_INSTALLATION_TOP/bin/dtspcd
echo "dtspc stream tcp nowait root $DTSPCD $DTSPCD" >>$INETD_CONF
else
rm /tmp/dtspc-already-there
fi
XCOMM
XCOMM remove legacy entries like dtspcd
XCOMM
nawk '{if ($1 == "dtspcd" || $1 == "#dtspcd") ; else print $0}' \
$INETD_CONF >/tmp/etc-inetd-conf
mv /tmp/etc-inetd-conf $INETD_CONF
chmod 444 $INETD_CONF
}
UnfixInetdDotConf()
{
INETD_CONF=/etc/inet/inetd.conf
TMPFILE=/tmp/inetd.conf
nawk '{if ($1 == "dtspc")
;
else
print $0
}' $INETD_CONF >$TMPFILE
mv $TMPFILE $INETD_CONF
}
PokeInetd()
{
XCOMM issue a SIGHUP to the inetd process
ps -ef | grep inetd | grep -v grep >/tmp/tmppsout
if [ -s /tmp/tmppsout ]
then
nawk '{print "kill -HUP " $2}' /tmp/tmppsout | /bin/ksh
else
/usr/sbin/inetd -s
fi
rm /tmp/tmppsout
}
VerifyInstalledFiles()
{
echo "Status mode owner group filename"
echo "-----------------------------------------"
XCOMM exists correct correct correct /usr/dt/foo1
XCOMM MISSING WRONG WRONG WRONG /usr/dt/foo2
XCOMM exists the link is correct /usr/dt/link
while read SRC
do
#include "../verify.func"
done <<-EOF
#include "CDE-MIN.lst"
EOF
}
#include "../option.func"
XCOMM ####################################################################
XCOMM
XCOMM Main body
XCOMM
XCOMM ####################################################################
CheckForClobberedLinks
HandleOption $*
if [ "$OPERATION" = "configure" ]
then
FixEtcInetServices
FixInetdDotConf
PokeInetd()
elif [ "$OPERATION" = "deconfigure" ]
then
UnfixEtcInetServices
UnfixInetdDotConf
PokeInetd()
RemoveMinFiles
VerifyInstalledFiles
elif [ "$OPERATION" = "verify" ]
then
VerifyInstalledFiles
fi
return $retval

View file

@ -1,306 +0,0 @@
XCOMM! /bin/ksh
XCOMM #######
XCOMM Product: CDE
XCOMM Fileset: CDE-RUN
XCOMM configure
XCOMM @(#) $XConsortium: configRun.src /main/7 1996/10/18 16:26:43 drk $
XCOMM #######
#define HASH #
#define STAR *
CreateAppConfigDirectory()
{
HASH
HASH Create the APPCONFIG directory inside DT_CONFIG_TOP and create
HASH all of its subdirectories
HASH
cd $DT_CONFIG_TOP
if [ ! -d $APPCONFIG ]
then
mkdir $APPCONFIG
fi
cd $APPCONFIG
for i in $APPCONFIG_DIRS
do
if [ ! -d $i ]
then
mkdir $i
fi
cd $i
HASH
HASH for each locale
HASH
for j in $DT_TOP/$APPCONFIG/$i/STAR
do
if [ ! -d `basename $j` ]
then
mkdir `basename $j`
fi
done
cd ..
done
}
FixInetdDotConf()
{
FILE="/etc/inet/inetd.conf"
TMPFILE="/tmp/inetd.conf"
XCOMM
XCOMM desired inetd.conf entry:
XCOMM 100068/2-4 dgram rpc/udp wait root CDE_INSTALLATION_TOP/bin/rpc.cmsd
XCOMM rpc.cmsd
XCOMM
XCOMM
XCOMM ensure links not clobbered
XCOMM
for file in services inetd.conf
do
if test ! -L /etc/$file
then if test -f /etc/$file
then
rm /etc/$file
ln -s /etc/inet/$file /etc/$file
fi
fi
done
CMSD=CDE_INSTALLATION_TOP/bin/rpc.cmsd
nawk -v cmsd=$CMSD \
'{if ($1 == "100068/2-4" && $6 != cmsd)
print "#cde " $0;
else
print $0
}' $FILE >$TMPFILE
if test ! -f ${FILE}.preCDE
then mv $FILE ${FILE}.preCDE
cp ${FILE}.preCDE $FILE
fi
mv $TMPFILE $FILE
chmod 444 $FILE
XCOMM
XCOMM now see if there is an occurrence of cmsd
XCOMM
rm -f /tmp/cmsd-already-there
nawk '{if ($7 == "rpc.cmsd" && $1 == "100068/2-4") print $0 > \
"/tmp/cmsd-already-there"}' $FILE >/dev/null
XCOMM
XCOMM if it is not there, add it
XCOMM
if [ ! -f /tmp/cmsd-already-there ]
then
echo "100068/2-4 dgram rpc/udp wait root $CMSD rpc.cmsd" >>$FILE
else
rm /tmp/cmsd-already-there
fi
}
UnfixInetdDotConf()
{
FILE=/etc/inet/inetd.conf
TMPFILE=/tmp/inetd.conf
CMSD=CDE_INSTALLATION_TOP/bin/rpc.cmsd
nawk -v cmsd=$CMSD \
'{if ($1 == "100068/2-4" && $6 == cmsd)
;
else
print $0
}' $FILE >$TMPFILE
mv $TMPFILE $FILE
nawk '{if ($1 == "#cde" && $2 == "100068/2-4") {
$1 = $2;
$2 = ""
}
print $0
}' $FILE >$TMPFILE
mv $TMPFILE $FILE
}
PokeInetd()
{
XCOMM
XCOMM Schedule inetd to re-read inetd.conf with SIGHUP.
XCOMM
ps -ef | grep inetd | grep -v grep >/tmp/tmppsout
if test -s /tmp/tmppsout
then
nawk '{print "kill -HUP " $2}' /tmp/tmppsout | /bin/ksh
else
/usr/sbin/inetd -s
fi
rm -f /tmp/tmppsout
}
doDttermTerminfo()
{
if [ -f $DT_TOP/config/dtterm.ti ]
then
tic $DT_TOP/config/dtterm.ti
if [ -f /usr/share/lib/terminfo/d/dtterm ]
then
chown bin /usr/share/lib/terminfo/d/dtterm
chgrp bin /usr/share/lib/terminfo/d/dtterm
chmod 644 /usr/share/lib/terminfo/d/dtterm
else
echo "Unable to compile $DT_TOP/config/dtterm.ti"
fi
else
echo "Unable to find $DT_TOP/config/dtterm.ti"
fi
}
RemoveRunFiles()
{
while read SRC
do
if [ "$SRC" != "" ]
then
rm -f $SRC
dirname=${SRC%/STAR}
if [ -d $dirname ]
then
cd $dirname
while [ "$dirname" != "$CDE_TOP" ]
do
cd ..
rmdir ${dirname##STAR/} >/dev/null 2>/dev/null
dirname=${dirname%/STAR}
done
fi
fi
done <<-EOF
#include "CDE-RUN.list"
EOF
}
VerifyInstalledFiles()
{
echo "Status mode owner group filename"
echo "-----------------------------------------"
XCOMM exists correct correct correct /usr/dt/foo1
XCOMM MISSING WRONG WRONG WRONG /usr/dt/foo2
XCOMM exists the link is correct /usr/dt/link
while read SRC
do
#include "../verify.func"
done <<-EOF
#include "CDE-RUN.lst"
EOF
}
#include "../option.func"
XCOMM ######################################################################
XCOMM
XCOMM Main body
XCOMM
XCOMM ######################################################################
PRODUCT=CDE
FILESET=CDE-RUN
retval=0
DT_TOP=CDE_INSTALLATION_TOP
DT_CONFIG_TOP=CDE_CONFIGURATION_TOP
DT_TEMP_TOP=CDE_LOGFILES_TOP
ROOT=/
retval=0
APPCONFIG=appconfig
APPCONFIG_DIRS="appmanager help icons types"
HandleOption $*
if [ "$OPERATION" = "configure" ]
then
HASH
HASH create the CDE_LOGFILES_TOP directory
HASH
if [ ! -d $DT_TEMP_TOP/$APPCONFIG/appmanager ]
then
mkdir -p $DT_TEMP_TOP/$APPCONFIG/appmanager
fi
cd $DT_TEMP_TOP
mv $APPCONFIG/appmanager .hidden-appmanager
chmod -R 755 *
chmod 755 .hidden-appmanager
chown -R bin *
chgrp -R bin *
mv .hidden-appmanager $APPCONFIG/appmanager
chmod 755 .
chown bin .
chgrp bin .
HASH
HASH create the CDE_CONFIGURATION_TOP and its config directory
HASH
if [ ! -d $DT_CONFIG_TOP ]
then
mkdir -p $DT_CONFIG_TOP
fi
if [ ! -d $DT_CONFIG_TOP/config ]
then
mkdir -p $DT_CONFIG_TOP/config
fi
CreateAppConfigDirectory
HASH
HASH Create default printer actions
HASH
env LANG=C /usr/dt/bin/dtprintinfo -populate
HASH
HASH Configure Xsession.d
HASH
cd $DT_CONFIG_TOP/config
if [ ! -d Xsession.d ]
then
mkdir Xsession.d
fi
cd $DT_CONFIG_TOP
chmod -R 755 *
FixInetdDotConf
PokeInetd
doDttermTerminfo
elif [ "$OPERATION" = "deconfigure" ]
then
UnfixInetdDotConf
PokeInetd
RemoveRunFiles
VerifyInstalledFiles
elif [ "$OPERATION" = "verify" ]
then
VerifyInstalledFiles
fi
return $retval

View file

@ -1,114 +0,0 @@
XCOMM!/bin/ksh
XCOMM $XConsortium: configShlibs.src /main/6 1996/06/13 16:38:59 drk $
XCOMM (c) Copyright 1996 Digital Equipment Corporation.
XCOMM (c) Copyright 1996 Hewlett-Packard Company.
XCOMM (c) Copyright 1996 International Business Machines Corp.
XCOMM (c) Copyright 1996 Sun Microsystems, Inc.
XCOMM (c) Copyright 1996 Novell, Inc.
XCOMM (c) Copyright 1996 FUJITSU LIMITED.
XCOMM (c) Copyright 1996 Hitachi.
#define STAR *
XCOMM ############################################
RemoveShlibFiles()
{
while read SRC
do
if [ "$SRC" != "" ]
then
rm -f $SRC
dirname=${SRC%/STAR}
if [ -d $dirname ]
then
cd $dirname
while [ "$dirname" != "$CDE_TOP" ]
do
cd ..
rmdir ${dirname##STAR/} >/dev/null 2>/dev/null
dirname=${dirname%/STAR}
done
fi
fi
done <<-EOF
#include "CDE-SHLIBS.list"
EOF
}
VerifyInstalledFiles()
{
echo "Status mode owner group filename"
echo "-----------------------------------------"
XCOMM exists correct correct correct /usr/dt/foo1
XCOMM MISSING WRONG WRONG WRONG /usr/dt/foo2
XCOMM exists the link is correct /usr/dt/link
while read SRC
do
#include "../verify.func"
done <<-EOF
#include "CDE-SHLIBS.lst"
EOF
}
#include "../option.func"
MakeTheLink()
{
XCOMM
XCOMM Usage: configShlibs
XCOMM
XCOMM creates links in the install tree libtt.so -> libtt.so.1
XCOMM
cd CDE_INSTALLATION_TOP/lib
for lib in `/bin/ls *.so.*`
do
echo " Creating symlink for $lib"
link=`echo $lib | cut -d. -f1,2`
rm -f $link
ln -s $lib $link
done
}
XCOMM ##########################################################################
XCOMM
XCOMM Main Body
XCOMM
XCOMM ##########################################################################
PRODUCT=CDE
FILESET=CDE-SHLIBS
retval=0
CDE_TOP=CDE_INSTALLATION_TOP
CDE_CONF_TOP=CDE_CONFIGURATION_TOP
HandleOption $*
if [ "$OPERATION" = "deconfigure" ]
then
echo "de-Configuring for CDE-SHLIBS..."
RemoveShlibFiles
VerifyInstalledFiles
elif [ "$OPERATION" = "configure" ]
then
MakeTheLink
elif [ "$OPERATION" = "verify" ]
then
VerifyInstalledFiles
fi
return $retval

View file

@ -1,101 +0,0 @@
XCOMM! /bin/ksh
XCOMM #######
XCOMM Product: CDE
XCOMM Fileset: CDE-TT
XCOMM configure
XCOMM @(#) $XConsortium: configTT.src /main/5 1996/04/21 19:08:00 drk $
XCOMM #######
XCOMM
XCOMM (c) Copyright Hewlett-Packard Company, 1993
XCOMM
XCOMM #######
PRODUCT=CDE
FILESET=CDE-TT
DO_CONFIGURATION=""
retval=0
DeconfigureTtDbserver()
{
/usr/sbin/pmadm -d -p tcp -s ttdbserverd >/dev/null 2>&1
/usr/sbin/pmadm -r -p tcp -s ttdbserverd >/dev/null 2>&1
/usr/sbin/sacadm -x -p tcp
}
ConfigureTtDbserver()
{
/usr/sbin/pmadm -d -p tcp -s ttdbserverd >/dev/null 2>&1
/usr/sbin/pmadm -r -p tcp -s ttdbserverd >/dev/null 2>&1
/usr/sbin/pmadm -a -t listen -s ttdbserverd -i root -m `/usr/sbin/nlsadmin -c /usr/dt/bin/rpc.ttdbserverd -D -R 100083:1` -v `/usr/sbin/nlsadmin -V`
/usr/sbin/sacadm -x -p tcp
}
RemoveTTFiles()
{
while read SRC
do
if [ "$SRC" != "" ]
then
rm -f $SRC
dirname=${SRC%/STAR}
if [ -d $dirname ]
then
cd $dirname
while [ "$dirname" != "$CDE_TOP" ]
do
cd ..
rmdir ${dirname##STAR/} >/dev/null 2>/dev/null
dirname=${dirname%/STAR}
done
fi
fi
done <<-EOF
#include "CDE-TT.list"
EOF
}
VerifyInstalledFiles()
{
echo "Status mode owner group filename"
echo "-----------------------------------------"
XCOMM exists correct correct correct /usr/dt/foo1
XCOMM MISSING WRONG WRONG WRONG /usr/dt/foo2
XCOMM exists the link is correct /usr/dt/link
while read SRC
do
#include "../verify.func"
done <<-EOF
#include "CDE-TT.lst"
EOF
}
#include "../option.func"
XCOMM ################################################################
XCOMM
XCOMM Main Body
XCOMM
XCOMM ################################################################
HandleOption $*
if [ "$OPERATION" = "configure" ]
then
ConfigureTtDbserver
elif [ "$OPERATION" = "deconfigure" ]
then
DeconfigureTtDbserver
RemoveTTFiles
VerifyInstalledFiles
elif [ "$OPERATION" = "verify" ]
then
VerifyInstalledFiles
fi
return $retval

View file

@ -44,9 +44,6 @@ XCOMM Set system
elif [ $BUILDSYSTEM = "SunOS" ]
then
PLATFORM=sun
elif [ $BUILDSYSTEM = "UNIX_SV" ]
then
PLATFORM=usl
elif [ $BUILDSYSTEM = "OSF1" ]
then
PLATFORM=dec