1995-02-02 15:18:04 +01:00
|
|
|
#!/stand/sh
|
|
|
|
#
|
|
|
|
# xf86311 - extract XFree86 3.1.1 onto a FreeBSD 2.1 system.
|
|
|
|
#
|
|
|
|
# Written: February 2nd, 1995
|
|
|
|
# Copyright (C) 1995 by Jordan K. Hubbard
|
|
|
|
#
|
|
|
|
# Permission to copy or use this software for any purpose is granted
|
|
|
|
# under the terms and conditions stated by the XFree86 Project, Inc.
|
|
|
|
# copyright, which should also be in the file COPYRIGHT in this distribution.
|
|
|
|
#
|
1995-02-10 07:52:16 +01:00
|
|
|
# $Id: extract_xf86311.sh,v 1.6 1995/02/10 05:05:41 jkh Exp $
|
1995-02-10 06:02:33 +01:00
|
|
|
|
|
|
|
PATH=/usr/X11R6/bin:/usr/X386/bin:.:$PATH
|
|
|
|
|
1995-02-10 06:05:41 +01:00
|
|
|
X11PREFIX=/usr/X11R6
|
|
|
|
XRELEASE="XFree86 3.1.1"
|
1995-02-02 15:18:04 +01:00
|
|
|
|
|
|
|
# Handle the return value from a dialog, doing some pre-processing
|
|
|
|
# so that each client doesn't have to.
|
|
|
|
handle_rval()
|
|
|
|
{
|
|
|
|
case $1 in
|
|
|
|
0)
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
255)
|
|
|
|
PS1="subshell# " /stand/sh
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
return 1
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|
|
|
|
|
|
|
|
do_selected_install()
|
|
|
|
{
|
|
|
|
for xx in ${SELECTIONS}; do
|
|
|
|
DIST=`eval echo \`echo $xx\``
|
1995-02-10 06:02:33 +01:00
|
|
|
dialog --infobox "Installing ${XRELEASE} component: ${DIST}" -1 -1
|
1995-02-02 15:21:46 +01:00
|
|
|
tar --unlink -zxpf ${DIST}.tgz -C /usr
|
1995-02-02 15:18:04 +01:00
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
do_configure()
|
|
|
|
{
|
1995-02-10 06:02:33 +01:00
|
|
|
if [ -f ${X11PREFIX}/bin/xf86config ]; then
|
1995-02-02 15:18:04 +01:00
|
|
|
dialog --clear
|
1995-02-10 06:02:33 +01:00
|
|
|
${X11PREFIX}/bin/xf86config
|
1995-02-02 15:18:04 +01:00
|
|
|
dialog --clear
|
|
|
|
else
|
|
|
|
dialog --msgbox "You must first install the X311bin component" -1 -1
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
do_select_menu()
|
|
|
|
{
|
1995-02-10 06:02:33 +01:00
|
|
|
dialog --title "Please select components from ${XRELEASE}" --checklist \
|
|
|
|
"Please check off each desired component of ${XRELEASE} for subsequent\n\
|
|
|
|
unpacking on your system. Most people will typically need only one\n\
|
|
|
|
server, and the most reasonable choices have already been set for you by\n\
|
1995-02-02 15:18:04 +01:00
|
|
|
default. When everything looks good, select OK to continue.\n\n\
|
|
|
|
Server notation: 4 bit = 16 color, 8 bit = 256 color,\n\
|
|
|
|
16 bit = 16k colors, 24 bit = true color." \
|
|
|
|
-1 -1 8 \
|
|
|
|
"X311bin" "client applications and shared libs" ON \
|
|
|
|
"X311fnts" "the misc and 75 dpi fonts" ON \
|
|
|
|
"X311lib" "data files needed at runtime" ON \
|
|
|
|
"X311xicf" "xinit runtime configuration file" ON \
|
|
|
|
"X311xdcf" "xdm runtime configuration file" ON \
|
|
|
|
"X3118514" "IBM 8514 and true compatibles - 8 bit" OFF \
|
|
|
|
"X311AGX" "AGX boards - 8 bit" OFF \
|
|
|
|
"X311Ma64" "ATI Mach64 boards - 8/16 bit" OFF \
|
|
|
|
"X311Ma32" "ATI Mach32 boards - 8/16 bit" OFF \
|
|
|
|
"X311Ma8" "ATI Mach8 boards - 8bit" OFF \
|
|
|
|
"X311Mono" "VGA, Super-VGA, Hercules, and others - mono" OFF \
|
|
|
|
"X311P9K" "Weitek P9000 boards (Diamond Viper) - 8/16/24 bit" OFF \
|
|
|
|
"X311S3" "S3 boards: #9GXE, ActixGE32, SPEA Mercury - 8/16/24 bit" OFF \
|
|
|
|
"X311SVGA" "Super-VGA cards - 8 bit" ON \
|
|
|
|
"X311VG16" "VGA and Super-VGA cards - 4 bit" ON \
|
|
|
|
"X311W32" "ET4000/W32, /W32i and /W32p cards - 8 bit" OFF \
|
|
|
|
"X311nest" "A nested server running as a client." OFF \
|
1995-02-10 06:02:33 +01:00
|
|
|
"X311doc" "READMEs and ${XRELEASE} specific man pages" ON \
|
|
|
|
"X311man" "man pages except ${XRELEASE} specific ones in docs" OFF \
|
1995-02-02 15:18:04 +01:00
|
|
|
"X311f100" "100dpi fonts" OFF \
|
|
|
|
"X311fscl" "Speedo and Type1 fonts" OFF \
|
|
|
|
"X311fnon" "Japanese, Chinese and other non-english fonts" OFF \
|
1995-02-10 07:52:16 +01:00
|
|
|
"X311fsrv" "the font server and its man page" OFF \
|
1995-02-02 15:18:04 +01:00
|
|
|
"X311prog" "config, lib*.a and *.h files needed only for compiling" OFF \
|
|
|
|
"X311link" "X server reconfiguration kit" OFF \
|
|
|
|
"X311pex" "PEX fonts and shared libs needed by PEX apps" OFF \
|
|
|
|
"X311lbx" "low bandwidth X proxy server and libraries." OFF \
|
|
|
|
2> ${TMP}/X-selections.$$
|
|
|
|
RETVAL=$?
|
|
|
|
SELECTIONS=`cat ${TMP}/X-selections.$$`
|
1995-02-10 06:05:41 +01:00
|
|
|
return ${RETVAL}
|
1995-02-02 15:18:04 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
INSTALLING=yes
|
|
|
|
while [ "${INSTALLING}" = "yes" ]; do
|
1995-02-10 06:02:33 +01:00
|
|
|
dialog --title "${XRELEASE} Installation" --menu \
|
|
|
|
"Welcome to the ${XRELEASE} installation menu for FreeBSD 2.x\n\n \
|
|
|
|
Please chose one of the following options. It is also\n\
|
|
|
|
recommended that choices be followed in order on this menu," \
|
1995-02-10 05:53:01 +01:00
|
|
|
-1 -1 7 \
|
1995-02-02 15:18:04 +01:00
|
|
|
"COPYRIGHT" "Read the XFree86 Project, Inc.'s copyright notice" \
|
1995-02-10 06:02:33 +01:00
|
|
|
"README" "General README file on ${XRELEASE} - recommended" \
|
|
|
|
"FreeBSD" "General information specific to FreeBSD" \
|
|
|
|
"Install" "Install selected components of ${XRELEASE}" \
|
|
|
|
"Configure" "Configure XFree86 server for your card/monitor" \
|
|
|
|
"startx" "Try to run startx and bring things up all the way" \
|
|
|
|
"Exit" "Exit the installation." \
|
1995-02-02 15:18:04 +01:00
|
|
|
2> ${TMP}/menu.tmp.$$
|
|
|
|
RETVAL=$?
|
|
|
|
ANSWER=`cat ${TMP}/menu.tmp.$$`
|
|
|
|
rm -f ${TMP}/menu.tmp.$$
|
|
|
|
if ! handle_rval ${RETVAL}; then continue; fi
|
|
|
|
case ${ANSWER} in
|
|
|
|
COPYRIGHT) dialog --title "COPYRIGHT NOTICE" --textbox COPYRIGHT 20 78 ;;
|
1995-02-10 06:02:33 +01:00
|
|
|
README) dialog --title "${XRELEASE} README" --textbox README 20 78 ;;
|
1995-02-02 15:18:04 +01:00
|
|
|
FreeBSD) dialog --title "XFree86 and FreeBSD" --textbox README.FreeBSD 20 78 ;;
|
1995-02-10 06:05:41 +01:00
|
|
|
Install) if do_select_menu; then do_selected_install; fi ;;
|
1995-02-02 15:18:04 +01:00
|
|
|
Configure) do_configure ;;
|
1995-02-02 15:30:36 +01:00
|
|
|
startx)
|
1995-02-10 06:02:33 +01:00
|
|
|
if [ -x ${X11PREFIX}/bin/startx ]; then
|
|
|
|
${X11PREFIX}/bin/startx
|
1995-02-02 15:30:36 +01:00
|
|
|
else
|
1995-02-10 06:02:33 +01:00
|
|
|
dialog --title "Error" --msgbox "You must first install ${XRELEASE}." -1 -1
|
1995-02-02 15:30:36 +01:00
|
|
|
fi
|
|
|
|
;;
|
1995-02-02 15:18:04 +01:00
|
|
|
Exit) INSTALLING=no ;;
|
|
|
|
esac
|
|
|
|
done
|