Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Feb 2002 16:00:04 -0800 (PST)
From:      Ken Stailey <kstailey@surfbest.net>
To:        freebsd-ports@FreeBSD.org
Subject:   Re: ports/33818: Bootable ITS image for KLH-10 PDP-10 emulator
Message-ID:  <200202170000.g1H004e75005@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/33818; it has been noted by GNATS.

From: Ken Stailey <kstailey@surfbest.net>
To: freebsd-gnats-submit@FreeBSD.org, kstailey@yahoo.com
Cc:  
Subject: Re: ports/33818: Bootable ITS image for KLH-10 PDP-10 emulator
Date: Sat, 16 Feb 2002 18:51:12 -0500 (EST)

 So much has changed I'm resubmitting from scratch.
 
 # This is a shell archive.  Save it in a file, remove anything before
 # this line, and then unpack it by entering "sh file".  Note, it may
 # create directories; files and directories will be owned by you and
 # have default permissions.
 #
 # This archive contains:
 #
 #	its
 #	its/pkg-comment
 #	its/Makefile
 #	its/distinfo
 #	its/pkg-plist
 #	its/pkg-descr
 #	its/files
 #	its/files/its.sh
 #	its/files/MIT-ITS-papers
 #	its/files/README.FIRST
 #
 echo c - its
 mkdir -p its > /dev/null 2>&1
 echo x - its/pkg-comment
 sed 's/^X//' >its/pkg-comment << 'END-of-its/pkg-comment'
 XBootable ITS filesystem for KLH-10 PDP-10 emulator
 END-of-its/pkg-comment
 echo x - its/Makefile
 sed 's/^X//' >its/Makefile << 'END-of-its/Makefile'
 X# New ports collection makefile for:   its
 X# Date created:        11 January 2002
 X# Whom:                kstailey
 X#
 X# $FreeBSD$
 X#
 X
 XPORTNAME=	its
 XPORTVERSION=	a11110
 XCATEGORIES=	emulators
 XMASTER_SITES=	ftp://ftp.its.os.org/its/klh10/
 XDISTNAME=	pi-${PORTNAME}-${PORTVERSION}
 XEXTRACT_SUFX=	.tar
 X
 XMAINTAINER=	kstailey@yahoo.com
 X
 XBUILD_DEPENDS=	kn10-ks:${PORTSDIR}/emulators/klh10
 XRUN_DEPENDS=	kn10-ks:${PORTSDIR}/emulators/klh10
 X
 XONLY_FOR_ARCHS=	i386	# really KLH10 has this problem.
 X
 XNO_WRKSUBDIR=	yes
 XNO_BUILD=	yes
 XNO_PACKAGE=	PI ITS RP06 disk image is too big.
 XNO_CDROM=	PI ITS RP06 disk image is too big.
 X
 X# KLH10_HOME must be set to the same location that the klh10 port uses
 XKLH10_DIR=	klh10-ks-its
 XKLH10_HOME=	${PREFIX}/share/${KLH10_DIR}
 XIMAGE_HOME?=	${KLH10_HOME}
 XIMAGE_NAME=	PI-ITS-RP06.0-dbd9
 XIMAGE_OWN?=	${LIBOWN}
 XIMAGE_GRP?=	${LIBGRP}
 XIMAGE_MODE?=	666
 XDOCDIR=		${PREFIX}/share/doc/${KLH10_DIR}
 XPLIST_SUB+=	IMAGE_HOME=${IMAGE_HOME}
 X
 Xdo-install:
 X	@ ${ECHO} Installing PI ITS RP06 disk image in ${IMAGE_HOME}
 X	@ ${ECHO} owned by ${IMAGE_OWN}:${IMAGE_GRP}, mode ${IMAGE_MODE}.
 X.if (${IMAGE_HOME} == ${KLH10_HOME})
 X	@ ${ECHO} Use IMAGE_HOME=/my/directory to relocate.
 X.else
 X	@ ${LN} -s ${IMAGE_HOME}/${IMAGE_NAME} ${KLH10_HOME}/${IMAGE_NAME}
 X.endif
 X.if (${IMAGE_OWN} == ${LIBOWN})
 X	@ ${ECHO} Use IMAGE_OWN=fred IMAGE_GRP=staff to set ownership.
 X.endif
 X.if (${IMAGE_MODE} == 666)
 X	@ ${ECHO} Use IMAGE_MODE=octal-mode to set the permissions.
 X.endif
 X	@ ${MKDIR} ${IMAGE_HOME}
 X	@ ${GUNZIP_CMD} -c ${WRKDIR}/${IMAGE_NAME}.gz \
 X		> ${IMAGE_HOME}/${IMAGE_NAME}
 X	@ ${CHMOD} ${IMAGE_MODE} ${IMAGE_HOME}/${IMAGE_NAME}
 X	@ ${CHOWN} ${IMAGE_OWN}:${IMAGE_GRP} ${IMAGE_HOME}/${IMAGE_NAME}
 X	@ ${SED} -e "s;@KLH10_HOME@;${KLH10_HOME};g" \
 X		 -e "s;@PI-IMAGE@;${IMAGE_HOME}/${IMAGE_NAME};g" \
 X		 -e 's;@BIN@;${PREFIX}/bin;' \
 X		${FILESDIR}/its.sh >${WRKSRC}/its
 X	@ ${INSTALL_SCRIPT} ${WRKSRC}/its ${PREFIX}/bin
 X	@ ${SED} -e "s;@PREFIX@;${PREFIX};g" \
 X		${FILESDIR}/README.FIRST >${WRKSRC}/README.FIRST
 X	@ ${INSTALL_MAN} ${FILESDIR}/MIT-ITS-papers ${DOCDIR}
 X	@ ${INSTALL_MAN} ${WRKSRC}/README.FIRST ${DOCDIR}
 X	@ ${ECHO} "***  Please read ${DOCDIR}/README.FIRST"
 X.include <bsd.port.mk>
 END-of-its/Makefile
 echo x - its/distinfo
 sed 's/^X//' >its/distinfo << 'END-of-its/distinfo'
 XMD5 (pi-its-a11110.tar) = 277494d17643ca2d90ff04122be4e993
 END-of-its/distinfo
 echo x - its/pkg-plist
 sed 's/^X//' >its/pkg-plist << 'END-of-its/pkg-plist'
 Xbin/its
 X%%PORTDOCS%%share/doc/klh10-ks-its/MIT-ITS-papers
 X%%PORTDOCS%%share/doc/klh10-ks-its/README.FIRST
 Xshare/klh10-ks-its/PI-ITS-RP06.0-dbd9
 X@unexec rm -f %%IMAGE_HOME%%/PI-ITS-RP06.0-dbd9
 X
 END-of-its/pkg-plist
 echo x - its/pkg-descr
 sed 's/^X//' >its/pkg-descr << 'END-of-its/pkg-descr'
 XThis is an image of a PI (Public ITS) filesystem that can be booted on
 Xthe KLH10 PDP-10 emulator.
 X
 XThe emulator image is about 45MB compressed and 170MB uncompressed.
 XThe installation needs to have a minimum of 45MB in ports/disfiles
 Xplus 45MB in its/work plus 170MB in the installation directory which
 Xdefaults to /usr/local/share/klh10-ks-its.  That's about 260MB total
 Xbut it's possible to split across filesystems.
 X
 XFor more information about ITS see WWW: http://www.its.os.org/
 END-of-its/pkg-descr
 echo c - its/files
 mkdir -p its/files > /dev/null 2>&1
 echo x - its/files/its.sh
 sed 's/^X//' >its/files/its.sh << 'END-of-its/files/its.sh'
 X#!/bin/sh
 X#
 X# $FreeBSD$
 X#
 X# Run KLH10 with KS-ITS hardware configuration and ITS OS configuration
 X# to bring up MIT Incompatible Timesharing System emulation.
 X
 Xcd @KLH10_HOME@
 Xexec lockf -t 0 -k @PI-IMAGE@ @BIN@/kn10-ks klh10-kn-freebsd.ini
 END-of-its/files/its.sh
 echo x - its/files/MIT-ITS-papers
 sed 's/^X//' >its/files/MIT-ITS-papers << 'END-of-its/files/MIT-ITS-papers'
 XITS Status report (includes architecture info) from 1972
 Xftp://publications.ai.mit.edu/ai-publications/0-499/AIM-238.ps
 X
 XITS reference manual from 1969:
 Xftp://publications.ai.mit.edu/ai-publications/0-499/AIM-161A.ps
 X
 XMidas macro assembler documentation from 1965:
 Xftp://publications.ai.mit.edu/ai-publications/0-499/AIM-090.ps
 X
 XDDT debugger ("system apex procedure" i.e. "shell") from 1968
 Xftp://publications.ai.mit.edu/ai-publications/0-499/AIM-147.ps
 X
 XEmacs text editor (original ITS version)
 Xftp://publications.ai.mit.edu/ai-publications/500-999/AIM-519A.ps
 X
 XThese files may be converted to PDF or gzipped to save space:
 X$ ps2pdf13 AIM-238.ps AIM-238.pdf
 END-of-its/files/MIT-ITS-papers
 echo x - its/files/README.FIRST
 sed 's/^X//' >its/files/README.FIRST << 'END-of-its/files/README.FIRST'
 XTo start ITS run the its(1) command.  It takes no arguments.
 X
 XConsider adding firewall protection for the emulator before ever
 Xrunning it.  See @PREFIX@/share/doc/its/pubits/adm directory for
 Xsamples.  The emulator uses IP address 10.134.198.236 by default.
 XIf this is a problem edit @PREFIX@/games/klh10-ks-its/klh10-kn-freebsd.ini
 Xwhere it says ipaddr=10.134.198.236
 X
 XThe first time the system boots it will not know the time.  To set the
 Xclock you must create a file with root permission so become root and then
 Xrun the its command.  The system will display this message:
 X
 XThe time could not be set because:
 XNo host responded.
 XIt will be necessary for someone to set the time
 Xmanually by logging in and running :PDSET.
 X
 XTell ITS to activate the apex procedure, DDT, by typing a Ctrl-Z.
 XWhen you type that you will see:
 X
 XKN ITS.1647. DDT.1545.
 XTTY 0
 XYou're all alone, Fair share = 0%
 X
 X(ITS does not know the date, so messages cannot be reviewed right now.)
 X
 XThen run PDSET by typing (colon and all)
 X
 X:pdset
 X
 XITS will suggest that you log in but you don't have to.
 X
 X(Please Log In)
 X___002 PDSET  IOTLSR  
 X
 XNow enter the time and save it.  First the century:
 X
 X20C
 X
 XNext the YYMMDD:
 X
 X020215D
 X
 XThen the HHMMSS (try to time it so you have some lead time because it
 Xwill become active when you save it.)
 X
 X205115T
 X
 XNow save the time:
 X
 X!.
 X
 XNow exit PDSET
 X
 XX
 X
 XYou will have no feedback from the exit operation except that new
 Xcommands will be echoed in lower case.  Now bring down ITS so you can
 Xstart it without being root:
 X
 X:lock
 X(Please Log In)
 X LOCK.154  
 X_
 X
 Xthe _ is a prompt, do not type it.  Type
 X
 X_5down
 X
 XLOCK is very picky about typos so be careful.  It does not need the
 XEnter key--don't use it.
 X
 XDO YOU REALLY WANT THE SYSTEM TO GO DOWN?
 X
 XType "y"
 X
 Xy
 X___004 
 X       PLEASE ENTER A BRIEF MESSAGE TO USERS, ENDED BY ^C
 XLOCK   SYS    DOWN   MAIL   WRITE  21:13:17
 X
 XJust type Ctrl-C
 X
 XKN ITS going down in 5:00
 XCULPRIT =  ___004 LOCK   21:13:38
 X
 X
 X_
 XKN ITS 1647 NOT IN OPERATION 21:13:38
 XPFTHMG DRAGON CHANNA _DRGN_ TIMES  WRITE  21:13:38
 XPFTHMG DRAGON CHANNA LOGOUT TIMES  DELRNM 21:13:38
 X
 XBe patient and it will finish with:
 X
 XSHUTDOWN COMPLETE  
 XPI LEVEL 7 BUGDDT.  TYPE <ALTMODE>P TO CONTINUE.
 XYOU ARE NOW IN DDT.
 XBUGPC/   CAIA COFFI4+1   $Q-2/   JRST COFFI7   
 X
 XIf ITS gets stuck shutting down for more than five minutes just
 Xcontinue from here:
 X
 XAt this point type Ctrl-\ to abort KLH10 back to the monitor.
 X
 X[HALTED: FE interrupt]
 XKLH10> 
 X
 Xand quit KLH10
 X
 XKLH10> quit
 XAre you sure you want to quit? [Confirm]y
 XShutting down...Bye!
 X$ 
 X
 XITS uses DEL for erasing characters.  ITS defaults to dumb hardcopy
 Xterminal settings.  This is a pain so you want to configure ITS to
 Xuse something nicer.  ITS knows about VT52.  If you are using xterm
 Xfrom XFree86 you can get into VT52 mode by running a script like this:
 X
 X#! /bin/sh
 X
 Xawk 'END {printf "%c[?2l", 27}' </dev/null
 X
 XFrom ITS run
 X:tctyp vt52 scroll
 X
 XOn your VT52 mode terminal emulator.
 X
 XAn alternative is that you can use vt100 mode via the CRTSTY program
 Xwhich is a bit like window(1) in that you end up on something like a
 Xpty but only one full screen window is available and it does terminal
 Xemulation on it.  You will be automatically logged in a second time on
 Xthe same terminal as a crufty side-effect.
 X
 X:crtsty vt100 speed 9600
 END-of-its/files/README.FIRST
 exit
 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200202170000.g1H004e75005>