| Summary: | KLH-10 PDP-10 emulator port. | ||
|---|---|---|---|
| Product: | Ports & Packages | Reporter: | kstailey <kstailey> |
| Component: | Individual Port(s) | Assignee: | Alan Eldridge <alane> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | CC: | alane |
| Priority: | Normal | ||
| Version: | Latest | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
kstailey
2002-01-12 19:00:01 UTC
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: # # 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/klh10-kn-freebsd.ini # 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 must be set to the same location 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} XVARDIR= /var/local/db # don't break diskless(8) XIMAGE_HOME= ${KLH10_HOME} # location of PI-ITS filesystem image XEM_IP_ADDR= 10.134.198.236 XEM_GW_IP_ADDR= 10.0.0.1 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 is 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# Temp symlink until KLH10 patch to control location of drivers. X# Host system native binary executables should not be in a share directory. X @ ${LN} -s ${DRIVER_DIR}/${file} ${KLH10_HOME}/${file} 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 @ ${SED} -e 's;@SHARE@;${IMAGE_HOME};' \ X -e 's;@IPADDR@;${EM_IP_ADDR};' \ X -e 's;@GWADDR@;${EM_GW_IP_ADDR};' \ X ${FILESDIR}/klh10-kn-freebsd.ini \ X > ${WRKSRC}/klh10-kn-freebsd.ini X @ ${INSTALL_DATA} ${WRKSRC}/klh10-kn-freebsd.ini ${KLH10_HOME} X @ ${MKDIR} ${VARDIR} X# Temp symlink until KLH10 patch to control location of APR.TIMEBASE. X# Files that the emulator writes to should not be under usr. X @ ${LN} -s ${VARDIR}/APR.TIMEBASE ${KLH10_HOME}/APR.TIMEBASE X @ ${INSTALL_MAN} ${FILESDIR}/PDPs ${DOCDIR} X @ ${ECHO} !!! KLH10 is 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/APR.TIMEBASE Xshare/klh10-ks-its/dprpxx Xshare/klh10-ks-its/dptm03 Xshare/klh10-ks-its/dpimp 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 Xshare/klh10-ks-its/klh10-kn-freebsd.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/klh10-kn-freebsd.ini sed 's/^X//' >klh10/files/klh10-kn-freebsd.ini << 'END-of-klh10/files/klh10-kn-freebsd.ini' X; KLH10 emulator configuration for KN ITS system from FreeBSD ports collection.. X X; Define basic KS10 device config - two RH11s each on its own Unibus X Xdevdef rh0 ub1 rh11 addr=776700 br=6 vec=254 Xdevdef rh1 ub3 rh11 addr=772440 br=6 vec=224 X X; Provide one disk, one tape in config ITS expects X Xdevdef dsk0 rh0.0 rp type=rp06 format=dbd9 path=@SHARE@/PI-ITS-RP06.0-dbd9 iodly=0 Xdevdef mta0 rh1.0 tm02 fmtr=tm03 type=tu45 X X; ITS wants a 60Hz clock, allow it. Need this until defaults OK. Xset clk_ithzfix=60 X X; Define IMP for KN Xdevdef imp ub3 lhdh addr=767600 br=6 vec=250 ipaddr=@IPADDR@ gwaddr=@GWADDR@ X X; Dummy definitions. Only one DZ is still (apparently) needed. Xdevdef dz0 ub3 dz11 addr=760010 br=5 vec=340 X;devdef dz1 ub3 dz11 addr=760020 br=5 vec=350 X;devdef chaos ub3 ch11 addr=764140 br=5 vec=270 X X; Define new HOST device hackery Xdevdef idler ub3 host addr=777000 X X; Preload ITS for convenience Xload @.its-647kn-u X X; Use "GO 774000" to start DDT, else just "GO" to start ITS X END-of-klh10/files/klh10-kn-freebsd.ini echo x - klh10/pkg-message sed 's/^X//' >klh10/pkg-message << 'END-of-klh10/pkg-message' XKLH10 is 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 Patches already, sigh. I forgot to parameterize the IP addresses and
to clean up after APR.TIMEBASE
diff -ur klh10/Makefile /usr/ports/emulators/klh10/Makefile
--- klh10/Makefile Sun Feb 17 10:32:00 2002
+++ /usr/ports/emulators/klh10/Makefile Sun Feb 17 10:49:05 2002
@@ -26,8 +26,8 @@
DOCDIR= ${PREFIX}/share/doc/${KLH10_DIR}
VARDIR= /var/local/db # don't break diskless(8)
IMAGE_HOME= ${KLH10_HOME} # location of PI-ITS filesystem image
-EM_IP_ADDR= 10.134.198.236
-EM_GW_IP_ADDR= 10.0.0.1
+EM_IP_ADDR?= 10.134.198.236
+EM_GW_IP_ADDR?= 10.0.0.1
MAKE_ENV+= KLH10_HOME=${KLH10_HOME}
ALL_TARGET= base-ks-its
@@ -82,7 +82,15 @@
@ ${MKDIR} ${KLH10_HOME}
@ ${MKDIR} ${DRIVER_DIR}
@ ${MKDIR} ${DOCDIR}
- @ ${ECHO} KLH10 is a setuid that accepts network connections. \
+ @ ${ECHO} Using emulator IP address ${EM_IP_ADDR}
+ @ ${ECHO} and gateway IP address ${EM_GW_IP_ADDR}
+.if (${EM_IP_ADDR} == 10.134.198.236)
+ @ ${ECHO} Use EM_IP_ADDR= to set the IP address used by KLH10.
+.endif
+.if (${EM_GW_IP_ADDR} == 10.0.0.1)
+ @ ${ECHO} Use EM_GW_IP_ADDR= to set the gateway IP address.
+.endif
+ @ ${ECHO} KLH10 contains a setuid that accepts network connections. \
> ${PKGDIR}/pkg-message
@ ${ECHO} Consider using a firewall to limit access to KLH10. \
>> ${PKGDIR}/pkg-message
@@ -133,9 +141,9 @@
# Files that the emulator writes to should not be under usr.
@ ${LN} -s ${VARDIR}/APR.TIMEBASE ${KLH10_HOME}/APR.TIMEBASE
@ ${INSTALL_MAN} ${FILESDIR}/PDPs ${DOCDIR}
- @ ${ECHO} !!! KLH10 is a setuid that accepts network connections.
- @ ${ECHO} !!! Consider using a firewall to limit access to KLH10.
- @ ${ECHO} !!! See the ${DOCDIR}/pubits/adm
- @ ${ECHO} !!! for firewall documentation.
+ @ ${ECHO} !!! KLH10 contains a setuid that accepts network connections.
+ @ ${ECHO} !!! Consider using a firewall to limit access to KLH10.
+ @ ${ECHO} !!! See the ${DOCDIR}/pubits/adm
+ @ ${ECHO} !!! for firewall documentation.
.include <bsd.port.mk>
diff -ur klh10/pkg-message /usr/ports/emulators/klh10/pkg-message
--- klh10/pkg-message Sun Feb 17 10:32:00 2002
+++ /usr/ports/emulators/klh10/pkg-message Sun Feb 17 10:49:26 2002
@@ -1,4 +1,4 @@
-KLH10 is a setuid that accepts network connections.
+KLH10 contains a setuid that accepts network connections.
Consider using a firewall to limit access to KLH10.
See the /usr/local/share/doc/klh10-ks-its/pubits/adm
for firewall documentation.
diff -ur klh10/pkg-plist /usr/ports/emulators/klh10/pkg-plist
--- klh10/pkg-plist Sun Feb 17 10:32:00 2002
+++ /usr/ports/emulators/klh10/pkg-plist Sun Feb 17 10:43:28 2002
@@ -52,3 +52,4 @@
%%PORTDOCS%%@dirrm share/doc/klh10-ks-its/pubits/doc
%%PORTDOCS%%@dirrm share/doc/klh10-ks-its/pubits
%%PORTDOCS%%@dirrm share/doc/klh10-ks-its
+@unexec rm -f /var/local/db/APR.TIMEBASE
Only in /usr/ports/emulators/klh10: work
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 Patched to prevent unprivleged users from running dpimp. Users must
now be in group network in order to use a networked KLH-10 and ITS.
Non-networked versions may still be used.
diff -ur klh10/Makefile /usr/ports/emulators/klh10/Makefile
--- klh10/Makefile Tue Feb 19 09:32:20 2002
+++ /usr/ports/emulators/klh10/Makefile Tue Feb 19 09:31:37 2002
@@ -97,7 +97,8 @@
@ ${MV} ${KLH10_HOME}/${file} ${DRIVER_DIR}
.endfor
.for file in ${EM_SDRIVERS}
- @ ${CHMOD} 4755 ${DRIVER_DIR}/${file}
+ @ ${CHGRP} network ${DRIVER_DIR}/${file}
+ @ ${CHMOD} 4754 ${DRIVER_DIR}/${file}
.endfor
.for file in ${EM_DAT}
@ ${INSTALL_DATA} ${WRKSRC}/run/ksits/${file} ${KLH10_HOME}
On Tue, Feb 19, 2002 at 07:00:10AM -0800, Ken Stailey wrote: >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:58:33 -0500 (EST) > > Patched to prevent unprivleged users from running dpimp. Users must > now be in group network in order to use a networked KLH-10 and ITS. > Non-networked versions may still be used. > Change group network to group wheel in previous patch: diff -ur klh10/Makefile /usr/ports/emulators/klh10/Makefile --- klh10/Makefile Tue Feb 19 09:32:20 2002 +++ /usr/ports/emulators/klh10/Makefile Tue Feb 19 09:31:37 2002 @@ -97,7 +97,8 @@ @ ${MV} ${KLH10_HOME}/${file} ${DRIVER_DIR} .endfor .for file in ${EM_SDRIVERS} - @ ${CHMOD} 4755 ${DRIVER_DIR}/${file} + @ ${CHGRP} wheel ${DRIVER_DIR}/${file} + @ ${CHMOD} 4754 ${DRIVER_DIR}/${file} .endfor .for file in ${EM_DAT} @ ${INSTALL_DATA} ${WRKSRC}/run/ksits/${file} ${KLH10_HOME} -- Alan Eldridge "Dave's not here, man." Responsible Changed From-To: freebsd-ports->alane You submitted the last patch on this; are you interested in looking it over again for commit? Ken, it's been a long time since I've looked at this, and I know you had some additional issues over disk image space and hosting since then. Would you consider submitting a new PR with a new shar file (or files) for the port and its disk image(s) if you've come to a final conclusion on where to store things, etc? I'll be glad to look it over for commit, but this PR has gotten so long that it hurts to deal with it. A new one with a final version would be appreciated, marked as superceding this one. Thanks much. -- AlanE State Changed From-To: open->closed Superceded by 39955 at my request. |