From owner-freebsd-ports Fri Jun 28 11:31:20 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9F0A437B401 for ; Fri, 28 Jun 2002 11:30:04 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 860DF43E09 for ; Fri, 28 Jun 2002 11:30:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g5SIU1JU091794 for ; Fri, 28 Jun 2002 11:30:01 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g5SIU11Q091793; Fri, 28 Jun 2002 11:30:01 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C035B37B400 for ; Fri, 28 Jun 2002 11:25:28 -0700 (PDT) Received: from mail.speakeasy.net (mail15.speakeasy.net [216.254.0.215]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1E9F343E09 for ; Fri, 28 Jun 2002 11:25:28 -0700 (PDT) (envelope-from kstailey@speakeasy.net) Received: (qmail 3919 invoked from network); 27 Jun 2002 13:54:31 -0000 Received: from unknown (HELO hermes.trickster.gods) ([66.92.164.43]) (envelope-sender ) by mail15.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 27 Jun 2002 13:54:31 -0000 Received: from hermes.trickster.gods (localhost.trickster.gods [127.0.0.1]) by hermes.trickster.gods (8.12.3/8.12.3) with ESMTP id g5RDsT6B004908 for ; Thu, 27 Jun 2002 09:54:29 -0400 (EDT) (envelope-from kstailey@hermes.trickster.gods) Received: (from kstailey@localhost) by hermes.trickster.gods (8.12.3/8.12.3/Submit) id g5RDsSaG004907; Thu, 27 Jun 2002 09:54:28 -0400 (EDT) Message-Id: <200206271354.g5RDsSaG004907@hermes.trickster.gods> Date: Thu, 27 Jun 2002 09:54:28 -0400 (EDT) From: Ken Stailey Reply-To: Ken Stailey To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/39955: new port of KLH10 PDP-10 mainframe emulator Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 39955 >Category: ports >Synopsis: new port of KLH10 PDP-10 mainframe emulator >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Jun 28 11:30:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Ken Stailey >Release: FreeBSD 4.6-STABLE i386 >Organization: self >Environment: System: FreeBSD hermes.trickster.gods 4.6-STABLE FreeBSD 4.6-STABLE #26: Wed Jun 26 07:35:47 EDT 2002 kstailey@hermes.trickster.gods:/usr/src/sys/compile/HERMES i386 >Description: New port of KLH10 PDP-10 mainframe emulator. 36 Bits Forever! >How-To-Repeat: N/A >Fix: # 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: # # klh10 # klh10/pkg-comment # klh10/Makefile # klh10/pkg-plist # klh10/distinfo # klh10/pkg-descr # klh10/files # klh10/files/patch-aa # klh10/files/PDPs # klh10/files/patch-ab # klh10/pkg-message # echo c - klh10 mkdir -p klh10 > /dev/null 2>&1 echo x - klh10/pkg-comment sed 's/^X//' >klh10/pkg-comment << 'END-of-klh10/pkg-comment' XEmulator for DEC PDP-10 END-of-klh10/pkg-comment echo x - klh10/Makefile sed 's/^X//' >klh10/Makefile << 'END-of-klh10/Makefile' X# New ports collection makefile for: klh10 X# Date created: 11 January 2002 X# Whom: kstailey X# X# $FreeBSD$ X# X XPORTNAME= klh10 XPORTVERSION= 2.0a XCATEGORIES= emulators XMASTER_SITES= ftp://ftp.its.os.org/its/klh10/ XDISTNAME= ${PORTNAME}-${PORTVERSION} XDISTFILES= ${DISTNAME}.tgz klh10-2.0a-aux.tgz X XMAINTAINER= kstailey@yahoo.com X XONLY_FOR_ARCHS= i386 X XBUILD_WRKSRC= ${WRKSRC}/bld/fbx86 XINSTALL_WRKSRC= ${BUILD_WRKSRC} X X# KSITS_ prefix for Komputer Small Incompatible Timesharing System X# a KLH10 configuration. X X# KSITS_KLH10_HOME and KSITS_DRIVER_DIR must be set to the same X# locations that the its port uses. X XKSITS_KLH10_DIR= klh10-ks-its XKSITS_KLH10_HOME= ${PREFIX}/share/${KSITS_KLH10_DIR} XKSITS_DRIVER_DIR= ${PREFIX}/libexec/${KSITS_KLH10_DIR} XKSITS_DOCDIR= ${PREFIX}/share/doc/${KSITS_KLH10_DIR} X# someday add support for base-kl and base-ks targets XMAKE_ENV+= KLH10_HOME=${KSITS_KLH10_HOME} XALL_TARGET= base-ks-its X XKSITS_NATIVE_PROGS= kn10-ks \ X tapedd \ X udlconv \ X vdkfmt \ X wfconv \ X wxtest X XKSITS_EM_DRIVERS= dprpxx \ X dptm03 X XKSITS_EM_SDRIVERS= dpimp X XKSITS_EM_DAT= @.ddt-u \ X @.its-647kn-u \ X @.nsalv-260-u \ X itsbin.647kn-u \ X klh10-kn.ini X XKSITS_PUBADM= hosts.its \ X its.ipfw \ X rc.firewall-its \ X router.notes X XKSITS_PUBDOC= bootload.files \ X distrib.its \ X dumpsys.help X XKSITS_DOCS= Intro.txt \ X backgrnd.txt \ X cmdref.txt \ X cmdsum.txt \ X coding.txt \ X dfkfb.txt \ X dvhost.txt \ X history.txt \ X install.txt \ X kldiff.txt \ X klt10.txt \ X klt20.txt \ X ksits.txt \ X kst10.txt \ X kst20.txt \ X news.txt \ X usage.txt \ X utils.txt \ X vtape.txt X Xpre-install: X @ ${MKDIR} ${KSITS_KLH10_HOME} X @ ${MKDIR} ${KSITS_DRIVER_DIR} X @ ${MKDIR} ${KSITS_DOCDIR} X @ ${ECHO} KLH10 contains a setuid that accepts network connections. \ X > ${PKGDIR}/pkg-message X @ ${ECHO} Consider using a firewall to limit access to KLH10. \ X >> ${PKGDIR}/pkg-message X @ ${ECHO} See the ${KSITS_DOCDIR}/pubits/adm >> ${PKGDIR}/pkg-message X @ ${ECHO} for firewall documentation. >> ${PKGDIR}/pkg-message X Xpost-install: X.for file in ${KSITS_NATIVE_PROGS} ${KSITS_EM_DRIVERS} ${KSITS_EM_SDRIVERS} X @ ${STRIP_CMD} ${KSITS_KLH10_HOME}/${file} X.endfor X.for file in ${KSITS_NATIVE_PROGS} X @ ${MV} ${KSITS_KLH10_HOME}/${file} ${PREFIX}/bin X.endfor X.for file in ${KSITS_EM_DRIVERS} ${KSITS_EM_SDRIVERS} X @ ${MV} ${KSITS_KLH10_HOME}/${file} ${KSITS_DRIVER_DIR} X.endfor X.for file in ${KSITS_EM_SDRIVERS} X @ ${CHGRP} network ${KSITS_DRIVER_DIR}/${file} X @ ${CHMOD} 4754 ${KSITS_DRIVER_DIR}/${file} X.endfor X.for file in ${KSITS_EM_DAT} X @ ${INSTALL_DATA} ${WRKSRC}/run/ksits/${file} ${KSITS_KLH10_HOME} X.endfor X @ ${INSTALL_MAN} ${WRKSRC}/run/ksits/README ${KSITS_DOCDIR} X @ ${MKDIR} ${KSITS_DOCDIR}/pubits/adm X @ ${MKDIR} ${KSITS_DOCDIR}/pubits/doc X.for file in ${KSITS_DOCS} X @ ${INSTALL_MAN} ${WRKSRC}/doc/${file} ${KSITS_DOCDIR} X.endfor X.for file in ${KSITS_PUBADM} X @ ${INSTALL_MAN} ${WRKSRC}/run/ksits/pubits/adm/${file} \ X ${KSITS_DOCDIR}/pubits/adm X.endfor X.for file in ${KSITS_PUBDOC} X @ ${INSTALL_MAN} ${WRKSRC}/run/ksits/pubits/doc/${file} \ X ${KSITS_DOCDIR}/pubits/doc X.endfor X @ ${INSTALL_MAN} ${FILESDIR}/PDPs ${KSITS_DOCDIR} X @ ${ECHO} !!! KLH10 contains a setuid that accepts network connections. X @ ${ECHO} !!! Consider using a firewall to limit access to KLH10. X @ ${ECHO} !!! See the ${KSITS_DOCDIR}/pubits/adm X @ ${ECHO} !!! for firewall documentation. X X.include END-of-klh10/Makefile echo x - klh10/pkg-plist sed 's/^X//' >klh10/pkg-plist << 'END-of-klh10/pkg-plist' Xbin/kn10-ks Xbin/tapedd Xbin/udlconv Xbin/vdkfmt Xbin/wfconv Xbin/wxtest Xlibexec/klh10-ks-its/dpimp Xlibexec/klh10-ks-its/dprpxx Xlibexec/klh10-ks-its/dptm03 Xshare/klh10-ks-its/@.ddt-u Xshare/klh10-ks-its/@.its-647kn-u Xshare/klh10-ks-its/@.nsalv-260-u Xshare/klh10-ks-its/itsbin.647kn-u Xshare/klh10-ks-its/klh10-kn.ini X%%PORTDOCS%%share/doc/klh10-ks-its/pubits/adm/hosts.its X%%PORTDOCS%%share/doc/klh10-ks-its/pubits/adm/its.ipfw X%%PORTDOCS%%share/doc/klh10-ks-its/pubits/adm/rc.firewall-its X%%PORTDOCS%%share/doc/klh10-ks-its/pubits/adm/router.notes X%%PORTDOCS%%share/doc/klh10-ks-its/pubits/doc/bootload.files X%%PORTDOCS%%share/doc/klh10-ks-its/pubits/doc/distrib.its X%%PORTDOCS%%share/doc/klh10-ks-its/pubits/doc/dumpsys.help X%%PORTDOCS%%share/doc/klh10-ks-its/Intro.txt X%%PORTDOCS%%share/doc/klh10-ks-its/backgrnd.txt X%%PORTDOCS%%share/doc/klh10-ks-its/cmdref.txt X%%PORTDOCS%%share/doc/klh10-ks-its/cmdsum.txt X%%PORTDOCS%%share/doc/klh10-ks-its/coding.txt X%%PORTDOCS%%share/doc/klh10-ks-its/dfkfb.txt X%%PORTDOCS%%share/doc/klh10-ks-its/dvhost.txt X%%PORTDOCS%%share/doc/klh10-ks-its/history.txt X%%PORTDOCS%%share/doc/klh10-ks-its/install.txt X%%PORTDOCS%%share/doc/klh10-ks-its/kldiff.txt X%%PORTDOCS%%share/doc/klh10-ks-its/klt10.txt X%%PORTDOCS%%share/doc/klh10-ks-its/klt20.txt X%%PORTDOCS%%share/doc/klh10-ks-its/ksits.txt X%%PORTDOCS%%share/doc/klh10-ks-its/kst10.txt X%%PORTDOCS%%share/doc/klh10-ks-its/kst20.txt X%%PORTDOCS%%share/doc/klh10-ks-its/news.txt X%%PORTDOCS%%share/doc/klh10-ks-its/PDPs X%%PORTDOCS%%share/doc/klh10-ks-its/README X%%PORTDOCS%%share/doc/klh10-ks-its/usage.txt X%%PORTDOCS%%share/doc/klh10-ks-its/utils.txt X%%PORTDOCS%%share/doc/klh10-ks-its/vtape.txt X@dirrm share/klh10-ks-its/flushed X@dirrm share/klh10-ks-its X@dirrm libexec/klh10-ks-its X%%PORTDOCS%%@dirrm share/doc/klh10-ks-its/pubits/adm X%%PORTDOCS%%@dirrm share/doc/klh10-ks-its/pubits/doc X%%PORTDOCS%%@dirrm share/doc/klh10-ks-its/pubits X%%PORTDOCS%%@dirrm share/doc/klh10-ks-its END-of-klh10/pkg-plist echo x - klh10/distinfo sed 's/^X//' >klh10/distinfo << 'END-of-klh10/distinfo' XMD5 (klh10-2.0a.tgz) = a79f63c3351c23fb5b805220e452cc50 XMD5 (klh10-2.0a-aux.tgz) = b54d8341ded187a79899d202f18d605f END-of-klh10/distinfo echo x - klh10/pkg-descr sed 's/^X//' >klh10/pkg-descr << 'END-of-klh10/pkg-descr' XThis is a port of Kenneth L. Harrenstien's KLH10 DEC PDP-10 mainframe Xemulator. X XFor information about PDP-10 see WWW: http://www.inwap.com/pdp10/ X XThis port currently only builds klh10 in the ksits configuration for Xrunning MIT Incompatible Timesharing System (ITS.) Future release Xwill configure KLH10 for additional systems. X XWarning: to make use of KLH10 over a LAN the network driver Xsubprocesses (currently only dpimp is built and installed Xautomatically) must run as root in order use the tun(4) network Xinterface and to insert proxy ARP table entries. If you do not want Xdpimp to be setuid root you must run the emulator from the root Xaccount to use networking. KLH10 may be run without networking and Xonly provide console access to a single user without using any root Xprivileges. We do not know if KLH10's network driver subprocesses Xhave been audited for buffer overflows, etc only that they accept Xincoming TCP connections and require root privileges. You take your Xchances running this in the default configuration. Consider using a Xfirewall to limit access to klh-10. See the pub-its/adm directory for Xfirewall documentation. END-of-klh10/pkg-descr echo c - klh10/files mkdir -p klh10/files > /dev/null 2>&1 echo x - klh10/files/patch-aa sed 's/^X//' >klh10/files/patch-aa << 'END-of-klh10/files/patch-aa' X--- src/Mk-fbx86.mk.DIST Sat Jan 12 15:40:10 2002 X+++ src/Mk-fbx86.mk Sat Jan 12 15:40:55 2002 X@@ -21,7 +21,7 @@ X X # Build definitions X SRC = ../../src X-CFLAGS = -c -g3 -O -I. -I$(SRC) X+CFLAGS += -c -g3 -O -I. -I$(SRC) X CFLAGS_LINT = -ansi -pedantic -Wall -Wshadow \ X -Wstrict-prototypes -Wmissing-prototypes \ X -Wmissing-declarations -Wredundant-decls X END-of-klh10/files/patch-aa echo x - klh10/files/PDPs sed 's/^X//' >klh10/files/PDPs << 'END-of-klh10/files/PDPs' XYear 18-bitters 12-bitters 16-bitters 36-bitters X X1960 PDP-1 -------------------------------------------------------- X1961 | \ X1962 PDP-4 <--- LINC -------- \ X1963 | PDP-5 \ \ | X1964 PDP-7 | \ \ PDP-6 X1965 | PDP-8 --\ | \ | X1966 | PDP-8/S LINC-8 | | X1967 | | | | KA10 X1968 PDP-9 PDP-8/I,L | | | X1969 | | PDP-12 | | X1970 PDP-15 | PDP-14 PDP-11(/20) | X1971 | PDP-8/E / | \ | X1972 PDP-15/76 PDP-8/M - PDP-11/05 | PDP-11/45 -- KI10 X1973 | / | PDP-11/40 | \ | X1974 | / | | | \ | X1975 PDP-8/A PDP-11/03 PDP-11/04 | | PDP-11/70 KL10 X1976 | PDP-11/34 | PDP-11/55 | | X1977 VT78 | PDP-11/60 | | X1978 PDP-11/34C VAX-11/780 KS10 X XThe first DEC 36-bit system, the PDP-6, came out in 1964. The PDP-10 Xline consisted of the KA which arrived in 1967, the KI in 1972. The XKL came out early in 1974; the KS was a 1978 entry. In 1984 the Xunreleased KC was canceled. X XSource: C.G. Bell, et al's "Computer Engineering" 1978 (mostly) X XMore at X Xhttp://groups.google.com/groups?selm=346s0s%24icv%40tardis.Tymnet.COM END-of-klh10/files/PDPs echo x - klh10/files/patch-ab sed 's/^X//' >klh10/files/patch-ab << 'END-of-klh10/files/patch-ab' X--- src/vmtape.c 2002/01/12 16:47:42 1.1 X+++ src/vmtape.c 2002/01/12 16:48:35 X@@ -696,13 +696,11 @@ X X /* Now verify filenames don't already exist */ X if (cfn && (cf = fopen(cfn, "r"))) { X- fclose(cf); X vmterror(t, "Tape control file \"%.256s\" already exists", cfn); X goto badret; X } X X if (df = fopen(dfn, "rb")) { X- fclose(df); X vmterror(t, "Tape data file \"%.256s\" already exists", dfn); X goto badret; X } X@@ -714,8 +712,6 @@ X goto badret; X } X if (!(df = fopen(dfn, "w+b"))) { X- fclose(df); X- if (cfn) fclose(cf); X vmterror(t, "Cannot create tape data file \"%.256s\": %.80s", X dfn, os_strerror(errno)); X goto badret; END-of-klh10/files/patch-ab echo x - klh10/pkg-message sed 's/^X//' >klh10/pkg-message << 'END-of-klh10/pkg-message' XKLH10 contains a setuid that accepts network connections. XConsider using a firewall to limit access to KLH10. XSee the /usr/local/share/doc/klh10-ks-its/pubits/adm Xfor firewall documentation. END-of-klh10/pkg-message exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message