Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Feb 2002 20:50:36 -0500
From:      Ken Stailey <kstailey@surfbest.net>
To:        Alan Eldridge <alane@geeksrus.net>
Cc:        klh@panix.com, petef@FreeBSD.ORG, portmgr@FreeBSD.ORG, FreeBSD Ports List <ports@FreeBSD.ORG>
Subject:   Re: complete pkg-descr files for klh-10 and its
Message-ID:  <3C6DBAEC.6070407@surfbest.net>
References:  <3C6D2443.2070201@surfbest.net> <20020215152218.GA53862@wwweasel.geeksrus.net> <3C6D2E51.8090403@surfbest.net> <20020215155946.GA54173@wwweasel.geeksrus.net> <3C6D32A7.50003@surfbest.net> <20020215161655.GA54470@wwweasel.geeksrus.net> <3C6D36FC.6010801@surfbest.net> <20020215163511.GA54621@wwweasel.geeksrus.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Alan Eldridge wrote:

>On Fri, Feb 15, 2002 at 11:27:40AM -0500, Ken Stailey wrote:
>
>>Trouble is without patches to the emulator .ini files the disk image and 
>>emulator must both be in the $KLH_HOME directory.   I suppose I could 
>>write them.  Where to put klh-10 binary if PI disk image is in 
>>local/share?  It should be a private directory because the binary 
>>requires many configuration files to be in place along with it.  Perhaps 
>>a symlink from the $KLH_HOME with the binary to the PI disk image would 
>>be an easy work around instead of patches for the .ini files.
>>
>
>I'd suggest the patches. If it does do prevention of multiple copies,
>it probably locks the disk image. I don't know what happens if you
>lock a symlink. Plus, using a symlink is a cheap hack.
>
>

hermes# cat files/its.sh
#!/bin/sh
#
# $FreeBSD$
#
# Run KLH10 with KS-ITS hardware configuration and ITS OS configuration
# to bring up MIT Incompatible Timesharing System emulation.

cd @KLH10_HOME@
exec lockf -t 0 -k @PI-IMAGE@ ./kn10-ks klh10-kn-freebsd.ini
hermes#




$ cat /usr/local/bin/its
#!/bin/sh
#
# $FreeBSD$
#
# Run KLH10 with KS-ITS hardware configuration and ITS OS configuration
# to bring up MIT Incompatible Timesharing System emulation.

cd /usr/local/games/klh10-ks-its
exec lockf -t 0 -k /usr/local/share/pi-img/PI-ITS-RP06.0-dbd9 ./kn10-ks 
klh10-kn-freebsd.ini


on the second attempt:

$ its
lockf: /usr/local/share/pi-img/PI-ITS-RP06.0-dbd9: already locked

------------------------------ klh10 ------------------------------------

hermes# cat pkg-descr
This is a port of Kenneth L. Harrenstien's KLH10 DEC PDP-10 mainframe
emulator.

For information about PDP-10 see http://www.inwap.com/pdp10/

This port currently only builds klh10 in the ksits configuration for
running MIT Incompatible Timesharing System (ITS.)  Future release
will configure KLH10 for additional systems.

Warning: to make use of KLH10 over a LAN the network driver
subprocesses (currently only dpimp is built and installed
automatically) must run as root in order use the tun(4) network
interface and to insert proxy ARP table entries.  If you do not want
dpimp to be setuid root you must run the emulator from the root
account to use networking.  KLH10 may be run without networking and
only provide console access to a single user without using any root
privileges.  We do not know if KLH10's network driver subprocesses
have been audited for buffer overflows, etc only that they accept
incoming TCP connections and require root privileges.  You take your
chances running this in the default configuration.  Consider using a
firewall to limit access to klh-10.  See the pub-its/adm directory for
firewall documentation.
hermes#

------------------------------ its ------------------------------------

hermes# cat pkg-descr
This is an image of a PI (Public ITS) filesystem that can be booted on
the KLH10 PDP-10 emulator.

The emulator image is about 45MB compressed and 170MB uncompressed.
The installation needs to have a minimum of 45MB in ports/disfiles
plus 45MB in its/work plus 170MB in the installation directory
which defaults to /usr/local/share/pi-img.  That's about 260MB
total but it's possible to split across filesystems.

For more information about ITS see http://www.its.os.org/

ITS Status report (includes architecture info) from 1972
ftp://publications.ai.mit.edu/ai-publications/0-499/AIM-238.ps

ITS reference manual from 1969:
ftp://publications.ai.mit.edu/ai-publications/0-499/AIM-161A.ps

Midas macro assembler documentation from 1965:
ftp://publications.ai.mit.edu/ai-publications/0-499/AIM-090.ps

DDT debugger ("system apex procedure" i.e. "shell") from 1968
ftp://publications.ai.mit.edu/ai-publications/0-499/AIM-147.ps

Emacs text editor (original ITS version)
ftp://publications.ai.mit.edu/ai-publications/500-999/AIM-519A.ps

These files may be converted to PDF or gzipped to save space:
$ ps2pdf13 AIM-238.ps AIM-238.pdf
hermes#

------------------------------ klh10 ------------------------------------

hermes# cat Makefile
# New ports collection makefile for:   klh10
# Date created:        11 January 2002
# Whom:                kstailey
#
# $FreeBSD$
#

PORTNAME=      klh10
PORTVERSION=   2.0a
CATEGORIES=    emulators
MASTER_SITES=  ftp://ftp.its.os.org/its/klh10/
DISTNAME=      ${PORTNAME}-${PORTVERSION}
DISTFILES=     ${DISTNAME}.tgz klh10-2.0a-aux.tgz

MAINTAINER=    kstailey@yahoo.com

ONLY_FOR_ARCHS=    i386

BUILD_WRKSRC=    ${WRKSRC}/bld/fbx86
INSTALL_WRKSRC=    ${BUILD_WRKSRC}

KLH10_DIR=     klh10-ks-its
KLH10_HOME=    ${PREFIX}/games/${KLH10_DIR}
DOCDIR=        ${PREFIX}/share/doc/${KLH10_DIR}
PI_IMG_DIR=    ${PREFIX}/share/pi-img
MAKE_ENV+=     KLH10_HOME=${KLH10_HOME}
ALL_TARGET=    base-ks-its

EM_PROGS= dpimp \
        dprpxx \
        dptm03 \
        kn10-ks \
        tapedd \
        udlconv \
        vdkfmt \
        wfconv \
        wxtest

EM_SPROGS=    dpimp

EMDAT=  @.ddt-u \
        @.its-647kn-u \
        @.its-647md-u \
        @.its-647pi-u \
        @.nsalv-260-u \
        README \
        itsbin.647kn-u \
        itsbin.647md-u \
        itsbin.647pi-u \
        klh10-kn.ini \
        klh10-md.ini \
        klh10-pi.ini

PUBADM= hosts.its \
        its.ipfw \
        rc.firewall-its \
        router.notes

PUBDOC= bootload.files \
        distrib.its \
        dumpsys.help

DOCS=   Intro.txt \
        backgrnd.txt \
        cmdref.txt \
        cmdsum.txt \
        coding.txt \
        dfkfb.txt \
        dvhost.txt \
        history.txt \
        install.txt \
        kldiff.txt \
        klt10.txt \
        klt20.txt \
        ksits.txt \
        kst10.txt \
        kst20.txt \
        news.txt \
        usage.txt \
        utils.txt \
        vtape.txt

pre-install:
    - ${MKDIR} ${KLH10_HOME}

post-install:
.for file in ${EM_PROGS}
    @ ${STRIP_CMD} ${KLH10_HOME}/${file}
.endfor
.for file in ${EM_SPROGS}
    @ ${CHMOD} 4755 ${KLH10_HOME}/${file}
.endfor
.for file in ${EMDAT}
    @ ${INSTALL_DATA} ${WRKSRC}/run/ksits/${file} ${KLH10_HOME}
.endfor
    @ ${MKDIR} ${DOCDIR}
    @ ${MKDIR} ${DOCDIR}/pubits
    @ ${MKDIR} ${DOCDIR}/pubits/adm
    @ ${MKDIR} ${DOCDIR}/pubits/doc
.for file in ${DOCS}
    @ ${INSTALL_MAN} ${WRKSRC}/doc/${file} ${DOCDIR}
.endfor
.for file in ${PUBADM}
    @ ${INSTALL_MAN} ${WRKSRC}/run/ksits/pubits/adm/${file} 
${DOCDIR}/pubits/adm
.endfor
.for file in ${PUBDOC}
    @ ${INSTALL_MAN} ${WRKSRC}/run/ksits/pubits/doc/${file} 
${DOCDIR}/pubits/doc
.endfor
    @ ${SED} -e 's;@SHARE@;${PI_IMG_DIR};' \
        ${FILESDIR}/klh10-kn-freebsd.ini \
        > ${WRKSRC}/klh10-kn-freebsd.ini
    @ ${INSTALL_DATA} ${WRKSRC}/klh10-kn-freebsd.ini ${KLH10_HOME}
    @ ${ECHO} !!!   KLH10 accepts network connections.
    @ ${ECHO} !!!   Consider using a firewall to limit access to KLH10.
    @ ${ECHO} !!!   See the ${DOCDIR}/pubits/adm for firewall documentation.

.include <bsd.port.mk>
hermes#

------------------------------ its ------------------------------------

hermes# cat Makefile
# New ports collection makefile for:   its
# Date created:        11 January 2002
# Whom:                kstailey
#
# $FreeBSD$
#

PORTNAME=        its
PORTVERSION=     a11110
CATEGORIES=      emulators
MASTER_SITES=    ftp://ftp.its.os.org/its/klh10/
DISTNAME=        pi-${PORTNAME}-${PORTVERSION}
EXTRACT_SUFX=    .tar

MAINTAINER=      kstailey@yahoo.com

BUILD_DEPENDS=   ${KLH10_HOME}/kn10-ks:${PORTSDIR}/emulators/klh10

ONLY_FOR_ARCHS=  i386    # really the emulator has this problem.

NO_WRKSUBDIR=    yes
NO_BUILD=        yes
NO_PACKAGE=      PI disk image is too big.
NO_CDROM=        PI disk image is too big.

# KLH10_HOME must be set to the same location that the klh10 port uses
KLH10_HOME=      ${PREFIX}/games/klh10-ks-its
IMAGE_HOME=      ${PREFIX}/share/pi-img
IMAGE_NAME=      PI-ITS-RP06.0-dbd9

do-install:
    - ${MKDIR} ${IMAGE_HOME}
    @ ${GUNZIP_CMD} -c ${WRKDIR}/${IMAGE_NAME}.gz \
        > ${IMAGE_HOME}/${IMAGE_NAME}
    @ ${CHMOD} 666 ${IMAGE_HOME}/${IMAGE_NAME}
    @ ${CHOWN} ${LIBOWN}:${LIBGRP} ${IMAGE_HOME}/${IMAGE_NAME}
    @ ${SED} -e "s;@KLH10_HOME@;${KLH10_HOME};g" \
         -e "s;@PI-IMAGE@;${IMAGE_HOME}/${IMAGE_NAME};g" \
        ${FILESDIR}/its.sh >${WRKSRC}/its
    @ ${INSTALL_SCRIPT} ${WRKSRC}/its ${PREFIX}/bin

.include <bsd.port.mk>
hermes#



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?3C6DBAEC.6070407>