Remove UXPDS support

This commit is contained in:
chase
2018-05-15 20:11:08 -05:00
committed by Jon Trulson
parent 0f8233dadd
commit 8a4f389634
319 changed files with 317 additions and 8776 deletions

View File

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

View File

@@ -15,9 +15,6 @@ PLATFORM = sun
#ifdef USLArchitecture
PLATFORM = usl
#endif
#ifdef UXPArchitecture
PLATFORM = uxp
#endif
#ifdef AlphaArchitecture
PLATFORM = dec
#endif

View File

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

View File

@@ -15,9 +15,6 @@ PLATFORM = sun
#ifdef USLArchitecture
PLATFORM = usl
#endif
#ifdef UXPArchitecture
PLATFORM = uxp
#endif
all::

View File

@@ -18,9 +18,6 @@ PLATFORM = sun
#ifdef USLArchitecture
PLATFORM = usl
#endif
#ifdef UXPArchitecture
PLATFORM = uxp
#endif
all::

View File

@@ -27,9 +27,6 @@ PLATFORM = sun
#ifdef USLArchitecture
PLATFORM = usl
#endif
#ifdef UXPArchitecture
PLATFORM = uxp
#endif
UDBTOANY = $(KORNSHELL) $(TOOL_DIR)/udbToAny.ksh
BUILD_UDB_LIST = $(SHELL) ../build_udb_list

View File

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

View File

@@ -15,9 +15,6 @@ PLATFORM = sun
#ifdef USLArchitecture
PLATFORM = usl
#endif
#ifdef UXPArchitecture
PLATFORM = uxp
#endif
all::

View File

@@ -15,9 +15,6 @@ PLATFORM = sun
#ifdef USLArchitecture
PLATFORM = usl
#endif
#ifdef UXPArchitecture
PLATFORM = uxp
#endif
all::

View File

@@ -1,55 +0,0 @@
XCOMM $XConsortium: Imakefile /main/3 1996/04/21 19:13:20 drk $
TOOL_DIR = ../../dbTools
DATABASE_DIR = ../../../../databases
#ifdef HPArchitecture
PLATFORM = hp-ux
#endif
#ifdef RsArchitecture
PLATFORM = aix
#endif
#ifdef SunArchitecture
PLATFORM = sun
#endif
#ifdef USLArchitecture
PLATFORM = usl
#endif
#ifdef UXPArchitecture
PLATFORM = uxp
#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 !@
XUXP=/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 $XUXP; 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/4 1996/07/18 15:49:15 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/4 1996/07/18 15:49:38 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/2 1996/04/21 19:13:28 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/5 1996/10/18 16:27:01 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
/bin/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/5 1996/06/13 16:39:07 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,166 +0,0 @@
XCOMM! /bin/ksh
XCOMM #######
XCOMM Product: CDE
XCOMM Fileset: CDE-TT
XCOMM configure
XCOMM @(#) $XConsortium: configTT.src /main/5 1996/09/20 18:22:32 cde-fuj $
XCOMM #######
XCOMM
XCOMM (c) Copyright Hewlett-Packard Company, 1993
XCOMM
XCOMM #######
#define HASH #
PRODUCT=CDE
FILESET=CDE-TT
DO_CONFIGURATION=""
retval=0
FixInetdDotConf()
{
FILE=/etc/inetd.conf
TMPFILE=/tmp/inetd.conf
TTDBSERVERD=CDE_INSTALLATION_TOP/bin/rpc.ttdbserverd
XCOMM
XCOMM see if it already exists
XCOMM
nawk -v ttdb=$TTDBSERVERD \
'{if ($1 == "100083/1" && $6 != ttdb)
print "#cde " $0;
else
print $0
}' $FILE >$TMPFILE
cp $TMPFILE $FILE
rm $TMPFILE
awk '{if ($1 == "100083/1")
print $0 > "/tmp/tt-already-there"
}' $FILE >/dev/null
if [ ! -f /tmp/tt-already-there ]
then
echo "100083/1 tli rpc/tcp wait root $TTDBSERVERD $TTDBSERVERD" \
>>$FILE
else
rm /tmp/tt-already-there
fi
}
UnfixInetdDotConf()
{
FILE=/etc/inetd.conf
TMPFILE=/tmp/inetd.conf
TTDBSERVERD=CDE_INSTALLATION_TOP/bin/rpc.ttdbserverd
nawk -v ttdb=$TTDBSERVERD \
'{if ($1 == "100083/1" && $6 == ttdb)
;
else
print $0
}' $FILE >$TMPFILE
cp $TMPFILE $FILE
rm $TMPFILE
awk '{if ($1 == "#cde" && ($2 == "100083/1" || $2 == "100083")) {
$1 = $2;
$2 = ""
}
print $0
}' $FILE >$TMPFILE
cp $TMPFILE $FILE
rm $TMPFILE
}
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
FixInetdDotConf
elif [ "$OPERATION" = "deconfigure" ]
then
UnfixInetdDotConf
RemoveTTFiles
VerifyInstalledFiles
elif [ "$OPERATION" = "verify" ]
then
VerifyInstalledFiles
fi
if [ "$OPERATION" != "verify" ]
then
HASH issue a SIGHUP to the inetd process
ps -ef | grep inetd | grep -v grep >/tmp/tmppsout
if [ -s /tmp/tmppsout ]
then
awk '{print "kill -1 " $2}' /tmp/tmppsout | /bin/sh
else
/usr/sbin/inetd -s
fi
rm /tmp/tmppsout
fi
return $retval