Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Feb 2002 06:20:02 -0800 (PST)
From:      Ken Stailey <kstailey@surfbest.net>
To:        freebsd-ports@FreeBSD.org
Subject:   Re: ports/33816: KLH-10 PDP-10 emulator port.
Message-ID:  <200202191420.g1JEK2A94995@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/33816; 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/33816: KLH-10 PDP-10 emulator port.
Date: Tue, 19 Feb 2002 09:10:23 -0500 (EST)

 Changed to support its-user-install(1) command which is in the its
 port.  Obviates APR.TIMEBASE issues and the need to ever run all of
 KLH10 as root.  dpimp and other network driver subprocesses still need
 to be setuid root.  Resubmitted whole because patches can't delete
 files *sigh*
 
 # 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/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# KLH10_HOME and DRIVER_DIR must be set to the same locations
 X# that the its port uses.
 XKLH10_DIR=	klh10-ks-its
 XKLH10_HOME=	${PREFIX}/share/${KLH10_DIR}
 XDRIVER_DIR=	${PREFIX}/libexec/${KLH10_DIR}
 XDOCDIR=		${PREFIX}/share/doc/${KLH10_DIR}
 XMAKE_ENV+=	KLH10_HOME=${KLH10_HOME}
 XALL_TARGET=	base-ks-its
 X
 XNATIVE_PROGS=	kn10-ks \
 X		tapedd \
 X		udlconv \
 X		vdkfmt \
 X		wfconv \
 X		wxtest
 X
 XEM_DRIVERS=	dprpxx \
 X		dptm03
 X
 XEM_SDRIVERS=	dpimp
 X
 XEM_DAT=		@.ddt-u \
 X		@.its-647kn-u \
 X		@.nsalv-260-u \
 X		itsbin.647kn-u \
 X		klh10-kn.ini
 X
 XPUBADM=		hosts.its \
 X		its.ipfw \
 X		rc.firewall-its \
 X		router.notes
 X
 XPUBDOC=		bootload.files \
 X		distrib.its \
 X		dumpsys.help
 X
 XDOCS=		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} ${KLH10_HOME}
 X	@ ${MKDIR} ${DRIVER_DIR}
 X	@ ${MKDIR} ${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 ${DOCDIR}/pubits/adm 	>> ${PKGDIR}/pkg-message
 X	@ ${ECHO} for firewall documentation. 	>> ${PKGDIR}/pkg-message
 X
 Xpost-install:
 X.for file in ${NATIVE_PROGS} ${EM_DRIVERS} ${EM_SDRIVERS}
 X	@ ${STRIP_CMD} ${KLH10_HOME}/${file}
 X.endfor
 X.for file in ${NATIVE_PROGS}
 X	@ ${MV} ${KLH10_HOME}/${file} ${PREFIX}/bin
 X.endfor
 X.for file in ${EM_DRIVERS} ${EM_SDRIVERS}
 X	@ ${MV} ${KLH10_HOME}/${file} ${DRIVER_DIR}
 X.endfor
 X.for file in ${EM_SDRIVERS}
 X	@ ${CHMOD} 4755 ${DRIVER_DIR}/${file}
 X.endfor
 X.for file in ${EM_DAT}
 X	@ ${INSTALL_DATA} ${WRKSRC}/run/ksits/${file} ${KLH10_HOME}
 X.endfor
 X	@ ${INSTALL_MAN} ${WRKSRC}/run/ksits/README ${DOCDIR}
 X	@ ${MKDIR} ${DOCDIR}/pubits/adm
 X	@ ${MKDIR} ${DOCDIR}/pubits/doc
 X.for file in ${DOCS}
 X	@ ${INSTALL_MAN} ${WRKSRC}/doc/${file} ${DOCDIR}
 X.endfor
 X.for file in ${PUBADM}
 X	@ ${INSTALL_MAN} ${WRKSRC}/run/ksits/pubits/adm/${file} \
 X		${DOCDIR}/pubits/adm
 X.endfor
 X.for file in ${PUBDOC}
 X	@ ${INSTALL_MAN} ${WRKSRC}/run/ksits/pubits/doc/${file} \
 X		${DOCDIR}/pubits/doc
 X.endfor
 X	@ ${INSTALL_MAN} ${FILESDIR}/PDPs ${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 ${DOCDIR}/pubits/adm
 X	@ ${ECHO} !!! for firewall documentation.
 X
 X.include <bsd.port.mk>
 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/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
 

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?200202191420.g1JEK2A94995>