diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-10-18 08:53:40 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-10-18 08:53:40 +0000 |
commit | d6583bb2a13f329cf0332ef2570eb8bb8fc0e39c (patch) | |
tree | ece253b876159b39c620e62b6c9b1174642e070e /distrib/vax |
initial import of NetBSD tree
Diffstat (limited to 'distrib/vax')
-rw-r--r-- | distrib/vax/Makefile | 5 | ||||
-rw-r--r-- | distrib/vax/Makefile.inc | 4 | ||||
-rw-r--r-- | distrib/vax/inst-common/Makefile.inc | 66 | ||||
-rw-r--r-- | distrib/vax/inst-common/dot.commonutils | 113 | ||||
-rw-r--r-- | distrib/vax/inst-common/instbin.conf | 23 | ||||
-rw-r--r-- | distrib/vax/inst-common/list | 75 | ||||
-rw-r--r-- | distrib/vax/inst-common/mtree.conf | 72 | ||||
-rw-r--r-- | distrib/vax/inst-common/termcap.vt | 64 | ||||
-rw-r--r-- | distrib/vax/inst/Makefile | 8 | ||||
-rw-r--r-- | distrib/vax/inst/disktab.preinstall | 29 | ||||
-rw-r--r-- | distrib/vax/inst/dot.profile | 15 | ||||
-rw-r--r-- | distrib/vax/inst/list | 7 | ||||
-rw-r--r-- | distrib/vax/list2sh.awk | 39 | ||||
-rw-r--r-- | distrib/vax/runlist.sh | 13 | ||||
-rw-r--r-- | distrib/vax/rx33/Makefile | 14 | ||||
-rw-r--r-- | distrib/vax/rx50/Makefile | 22 | ||||
-rw-r--r-- | distrib/vax/tk50/Makefile | 40 |
17 files changed, 609 insertions, 0 deletions
diff --git a/distrib/vax/Makefile b/distrib/vax/Makefile new file mode 100644 index 00000000000..078cbf559f1 --- /dev/null +++ b/distrib/vax/Makefile @@ -0,0 +1,5 @@ +# $NetBSD: Makefile,v 1.1 1995/10/01 21:22:13 ragge Exp $ + +SUBDIR= inst tk50 rx50 rx33 + +.include <bsd.subdir.mk> diff --git a/distrib/vax/Makefile.inc b/distrib/vax/Makefile.inc new file mode 100644 index 00000000000..002fe3895cb --- /dev/null +++ b/distrib/vax/Makefile.inc @@ -0,0 +1,4 @@ +# $Id: Makefile.inc,v 1.1 1995/10/18 08:37:54 deraadt Exp $ + +# Revision is 1.0 +REV= 10A diff --git a/distrib/vax/inst-common/Makefile.inc b/distrib/vax/inst-common/Makefile.inc new file mode 100644 index 00000000000..e7dbaa55dde --- /dev/null +++ b/distrib/vax/inst-common/Makefile.inc @@ -0,0 +1,66 @@ +# $Id: Makefile.inc,v 1.1 1995/10/18 08:37:54 deraadt Exp $ + +# TOP is assumed to be defined by Makefile including this one. + +CBIN= instbin +COMMONDIR= ${TOP}/inst-common + +MOUNT_POINT?= /mnt +VND?= vnd0 +VND_DEV= /dev/${VND}c +VND_RDEV= /dev/r${VND}c +IMAGE?= miniroot-${REV}.fs +BOOTSYS= bootroot-${REV}.fs +MDEC= ${DESTDIR}/usr/mdec + +LISTS= ${COMMONDIR}/list ${.CURDIR}/list +CRUNCHCONF= ${COMMONDIR}/${CBIN}.conf +MTREE= ${COMMONDIR}/mtree.conf + +all: ${CBIN} bootroot + dd if=/dev/zero of=${IMAGE} bs=64k count=32 + vnconfig -v -c ${VND_DEV} ${IMAGE} + newfs -O -m 0 -o space -i 8192 ${VND_RDEV} miniroot + mount ${VND_DEV} ${MOUNT_POINT} + mtree -def ${MTREE} -p ${MOUNT_POINT}/ -u + TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \ + TARGDIR=${MOUNT_POINT} sh ${TOP}/runlist.sh ${LISTS} + @echo "" + @df -i ${MOUNT_POINT} + @echo "" + umount -f ${MOUNT_POINT} + vnconfig -u ${VND_DEV} + +bootroot: edlabel copy xxboot boot + dd if=/dev/zero of=${BOOTSYS} bs=64k count=4 + vnconfig -v -c ${VND_DEV} ${BOOTSYS} + newfs -O -m 0 -o space -i 8192 ${VND_RDEV} bootroot + dd if=xxboot of=/dev/rvnd0a count=16 + mount ${VND_DEV} ${MOUNT_POINT} + cp edlabel copy boot ${MOUNT_POINT} + umount -f ${MOUNT_POINT} + vnconfig -u ${VND_DEV} + +edlabel copy xxboot boot: + (cd /sys/arch/vax/boot;make) + cp /sys/arch/vax/boot/edlabel . + cp /sys/arch/vax/boot/copy . + cp /sys/arch/vax/boot/xxboot . + cp /sys/arch/vax/boot/boot . + +unconfig: + -umount -f ${MOUNT_POINT} + -vnconfig -u ${VND_DEV} ${IMAGE} + -/bin/rm -f ${IMAGE} + +${CBIN}.mk ${CBIN}.cache ${CBIN}.c: ${CRUNCHCONF} + crunchgen ${CRUNCHCONF} + +${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c + make -f ${CBIN}.mk + +clean cleandir: + /bin/rm -f core ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}.cache *.o *.lo *.c + +.include <bsd.obj.mk> +.include <bsd.subdir.mk> diff --git a/distrib/vax/inst-common/dot.commonutils b/distrib/vax/inst-common/dot.commonutils new file mode 100644 index 00000000000..53ca17fc97c --- /dev/null +++ b/distrib/vax/inst-common/dot.commonutils @@ -0,0 +1,113 @@ +# +# Copyright (c) 1994 Christopher G. Demetriou +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by Christopher G. Demetriou. +# 4. The name of the author may not be used to endorse or promote products +# derived from this software without specific prior written permission +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR +# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, +# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT +# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +$ +$ $Id: dot.commonutils,v 1.1 1995/10/18 08:37:54 deraadt Exp $ + +# Installation utilites (functions), to get NetBSD installed on +# the hard disk. These are meant to be invoked from the shell prompt, +# by people installing NetBSD. + +Set_tmp_dir() +{ + def_tmp_dir=`pwd` + if [ "$def_tmp_dir" = "/" -o "$def_tmp_dir" = "/mnt" ]; then + def_tmp_dir=/mnt/usr/distrib + fi + + echo -n "What directory should be used to find and/or store " + echo "installtion" + echo -n "files? [$def_tmp_dir] " + read tmp_dir + if [ "$tmp_dir" = "" ]; then + tmp_dir=$def_tmp_dir + fi + if [ ! -d "$tmp_dir" ]; then + /bin/rm -rf $tmp_dir + mkdir -p $tmp_dir + fi +} + +Tmp_dir() +{ + if [ "$tmp_dir" = "" ]; then + Set_tmp_dir + fi + cd $tmp_dir +} + +Load_fd() +{ + Tmp_dir + which= + while [ "$which" != "a" -a "$which" != "b" ]; do + echo -n "Read from which floppy drive ('a' or 'b')? [a] " + read which + if [ "X$which" = "X" ]; then + which=a + fi + done + while echo -n "Insert floppy (hit ^C to terminate, enter to load): " + do + mount -t msdos /dev/fd0$which /mnt2 + cp -rp /mnt2/* . + umount /mnt2 + done +} + +Load_tape() +{ + Tmp_dir + echo -n "Which tape drive will you be using? [rst0] " + read which + if [ "X$which" = "X" ]; then + which=rst0 + fi + echo -n "Insert the tape into the tape drive and hit return to " + echo -n "continue..." + read foo + echo "Extracting files from the tape..." + tar xvfp /dev/$which + echo "Done." +} + +Extract() +{ + Tmp_dir + echo -n "Would you like to list the files as they're extracted? [n] " + read verbose + case $verbose in + y*|Y*) + tarverbose=v + ;; + *) + tarverbose= + ;; + esac + cat "$1".??? | gunzip | (cd / ; tar xfp$tarverbose -) +} diff --git a/distrib/vax/inst-common/instbin.conf b/distrib/vax/inst-common/instbin.conf new file mode 100644 index 00000000000..d8378a91b69 --- /dev/null +++ b/distrib/vax/inst-common/instbin.conf @@ -0,0 +1,23 @@ +# +# kcbin.conf - unified binary for the kc floppy +# $Id: instbin.conf,v 1.1 1995/10/18 08:37:54 deraadt Exp $ +# + +srcdirs /usr/src/bin /usr/src/sbin /usr/src/usr.bin /usr/src/usr.sbin +srcdirs /usr/src/gnu/usr.bin + +progs gawk cat chmod chown chroot cp df disklabel ed expr fsck ftp +progs gzip ifconfig init ln ls mkdir mknod more mount mt dd +progs mount_ffs mount_nfs mv newfs reboot rm route sed sh shutdown +progs slattach strings stty sync tar test umount update + +ln chown chgrp +ln gzip gzcat gunzip +ln mount_ffs ffs +ln mount_nfs nfs +ln gawk awk +ln sh -sh # init invokes the shell this way +ln test [ +ln reboot halt + +libs -ledit -lutil -ltermcap -lcrypt -ll -lm diff --git a/distrib/vax/inst-common/list b/distrib/vax/inst-common/list new file mode 100644 index 00000000000..6f9a778ef5d --- /dev/null +++ b/distrib/vax/inst-common/list @@ -0,0 +1,75 @@ +# $Id: list,v 1.1 1995/10/18 08:37:54 deraadt Exp $ + +# copy the crunched binary, link to it, and kill it +COPY ${OBJDIR}/instbin instbin +LINK instbin bin/cat +LINK instbin bin/chmod +LINK instbin bin/cp +LINK instbin bin/dd +LINK instbin bin/df +LINK instbin bin/ed +LINK instbin bin/expr +LINK instbin bin/ln +LINK instbin bin/ls +LINK instbin bin/mkdir +LINK instbin bin/mv +LINK instbin bin/mt +LINK instbin bin/rm +LINK instbin bin/sh +LINK instbin bin/-sh +LINK instbin bin/stty +LINK instbin bin/sync +LINK instbin bin/test +LINK instbin bin/[ +LINK instbin sbin/disklabel +LINK instbin sbin/fsck +LINK instbin sbin/halt +LINK instbin sbin/ifconfig +LINK instbin sbin/init +LINK instbin sbin/mknod +LINK instbin sbin/mount +LINK instbin sbin/mount_ffs +LINK instbin sbin/mount_nfs +LINK instbin sbin/newfs +LINK instbin sbin/reboot +LINK instbin sbin/route +LINK instbin sbin/shutdown +LINK instbin sbin/slattach +LINK instbin sbin/umount +LINK instbin usr/bin/awk +LINK instbin usr/bin/chgrp +LINK instbin usr/bin/ftp +LINK instbin usr/bin/gunzip +LINK instbin usr/bin/gzcat +LINK instbin usr/bin/gzip +LINK instbin usr/bin/more +LINK instbin usr/bin/sed +LINK instbin usr/bin/strings +LINK instbin usr/bin/tar +# LINK instbin usr/sbin/bad144 +LINK instbin usr/sbin/chown +LINK instbin usr/sbin/chroot +LINK instbin usr/sbin/update +SPECIAL /bin/rm instbin + +# copy the MAKEDEV script and make some devices +COPY ${DESTDIR}/dev/MAKEDEV dev/MAKEDEV +SPECIAL cd dev; sh MAKEDEV std tms0 ra0 ra1 ra2 ra3 ra4 ra5 ra6 ra7 + +# we need the contents of /usr/mdec (XXX) +# COPY ${DESTDIR}/usr/mdec/* usr/mdec + +# various files that we need in /etc for the install +COPY ${DESTDIR}/etc/group etc +COPY ${DESTDIR}/etc/master.passwd etc +COPY ${DESTDIR}/etc/passwd etc +COPY ${DESTDIR}/etc/protocols etc +COPY ${DESTDIR}/etc/pwd.db etc +COPY ${DESTDIR}/etc/services etc +COPY ${DESTDIR}/etc/spwd.db etc + +# and the common installation tools +COPY ${TOPDIR}/inst-common/termcap.vt usr/share/misc/termcap + +COPY /gennetbsd . +COPY /boot . diff --git a/distrib/vax/inst-common/mtree.conf b/distrib/vax/inst-common/mtree.conf new file mode 100644 index 00000000000..f9283142efe --- /dev/null +++ b/distrib/vax/inst-common/mtree.conf @@ -0,0 +1,72 @@ +# $Id: mtree.conf,v 1.1 1995/10/18 08:37:54 deraadt Exp $ + +/set type=dir uname=root gname=wheel mode=0755 +# . +. + +# ./bin +bin +# ./bin +.. + +# ./dev +dev +# ./dev +.. + +# ./etc +etc +# ./etc +.. + +# ./mnt +mnt +# ./mnt +.. + +# ./mnt2 +mnt2 +# ./mnt2 +.. + +# ./sbin +sbin +# ./sbin +.. + +# ./tmp +tmp +# ./tmp +.. + +# ./usr +usr + +# ./usr/bin +bin +# ./usr/bin +.. + +# ./usr/mdec +mdec +# ./usr/mdec +.. + +# ./usr/sbin +sbin +# ./usr/sbin +.. + +# ./usr/share +share + +# ./usr/share/misc +misc +# ./usr/share/misc +.. + +# ./usr/share +.. + +# ./usr +.. diff --git a/distrib/vax/inst-common/termcap.vt b/distrib/vax/inst-common/termcap.vt new file mode 100644 index 00000000000..b885de9d0a6 --- /dev/null +++ b/distrib/vax/inst-common/termcap.vt @@ -0,0 +1,64 @@ +# Copyright (c) 1980, 1985, 1989 The Regents of the University of California. +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the University of +# California, Berkeley and its contributors. +# 4. Neither the name of the University nor the names of its contributors +# may be used to endorse or promote products derived from this software +# without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +# SUCH DAMAGE. +# +# @(#)termcap.src 5.109 (Berkeley) 3/8/93 +# +vt200|vt220|dec-vt220|vt200-js|vt220-js|dec vt200 series with jump scroll:\ + :AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:LE=\E[%dD:\ + :RI=\E[%dC:UP=\E[%dA:ae=^O:al=\E[L:as=^N:ct=\E[3g:dc=\E[P:dl=\E[M:\ + :ei=\E[4l:im=\E[4h:k1=\E[17~:k2=\E[18~:k3=\E[19~:k4=\E[20~:\ + :k5=\E[21~:k6=\E[23~:k7=\E[24~:k8=\E[25~:kD=\E[3~:kH=\E[4~:\ + :kI=\E[2~:kN=\E[6~:kP=\E[5~:kb=\177:kh=\E[1~:km:mi:ms:\ + :if=/usr/share/tabset/vt100:se=\E[27m:st=\EH:ue=\E[24m:\ + :tc=vt100: +vt100|dec-vt100|vt100-am|vt100am|dec vt100:\ + :bl=^G:cr=^M:it#8:\ + :do=^J:co#80:li#24:cl=50\E[;H\E[2J:sf=2*\ED:\ + :le=^H:bs:am:cm=5\E[%i%d;%dH:nd=2\E[C:up=2\E[A:cb=3\E[1K:\ + :ce=3\E[K:cd=50\E[J:so=2\E[7m:se=2\E[m:us=2\E[4m:ue=2\E[m:\ + :md=2\E[1m:mr=2\E[7m:mb=2\E[5m:me=2\E[m:is=\E[1;24r\E[24;1H:\ + :if=/usr/share/tabset/vt100:\ + :rs=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:ks=\E[?1h\E=:ke=\E[?1l\E>:\ + :ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:kb=^H:\ + :ho=\E[H:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:pt:sr=2*\EM:vt#3:xn:\ + :sc=\E7:rc=\E8:cs=\E[%i%d;%dr: +vt300|vt320|vt300-80|VT 300 with 80 columns, on VMS:\ + :AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:\ + :LE=\E[%dD:RI=\E[%dC:SR=1*\E[%dM:UP=\E[%dA:al=\E[L:\ + :am:bl=^G:bs:cd=2*\E[J:ce=2*\E[K:cl=45\E[H\E[2J:\ + :cm=%i\E[%d;%dH:co#80:cr=\r:cs=\E[%i%d;%dr:ct=\E[3g:\ + :dc=\E[P:dl=\E[M:dm=:do=\ED:ec=\E[%dX:ed=:ei=\E[4l:\ + :ho=\E[H:ic:im=\E[4h:it#8:k1=\EOP:k2=\EOQ:k3=\EOR:\ + :k4=\EOS:kd=\E[B:ke=\E[?1l\E>:kl=\E[D:kn#4:kr=\E[C:ks=\E[?1h\E=:\ + :ku=\E[A:le=^H:li#24:mb=\E[5m:md=\E[1m:me=\E[0m:mi:\ + :mr=\E[7m:ms:nd=\E[C:nl=\ED:nw=\EE:pf=\E[?4i:po=\E[?5i:\ + :ps=\E[i:rc=\E8:sc=\E7:se=\E[27m:sf=1*\ED:so=\E[7m:\ + :sr=1*\EM:st=\EH:ue=\E[24m:up=\EM:us=\E[4m:xn: diff --git a/distrib/vax/inst/Makefile b/distrib/vax/inst/Makefile new file mode 100644 index 00000000000..fdf54525970 --- /dev/null +++ b/distrib/vax/inst/Makefile @@ -0,0 +1,8 @@ +# $Id: Makefile,v 1.1 1995/10/18 08:37:54 deraadt Exp $ + +TOP= ${.CURDIR}/.. + +.include "${TOP}/Makefile.inc" +IMAGE= miniroot-${REV}.fs + +.include "${TOP}/inst-common/Makefile.inc" diff --git a/distrib/vax/inst/disktab.preinstall b/distrib/vax/inst/disktab.preinstall new file mode 100644 index 00000000000..5fe26a7d81c --- /dev/null +++ b/distrib/vax/inst/disktab.preinstall @@ -0,0 +1,29 @@ +# Disk geometry and partition layout tables. +# Key: +# dt controller type +# ty type of disk (fixed, removeable, simulated) +# d[0-4] drive-type-dependent parameters +# ns #sectors/track +# nt #tracks/cylinder +# nc #cylinders/disk +# sc #sectors/cylinder, nc*nt default +# su #sectors/unit, sc*nc default +# se sector size, DEV_BSIZE default +# rm rpm, 3600 default +# sf supports bad144-style bad sector forwarding +# sk sector skew per track, default 0 +# cs sector skew per cylinder, default 0 +# hs headswitch time, default 0 +# ts one-cylinder seek time, default 0 +# il sector interleave (n:1), 1 default +# bs boot block size, default BBSIZE +# sb superblock size, default SBSIZE +# o[a-h] partition offsets in sectors +# p[a-h] partition sizes in sectors +# b[a-h] partition block sizes in bytes +# f[a-h] partition fragment sizes in bytes +# t[a-h] partition types (filesystem, swap, etc) +# +# All partition sizes reserve space for bad sector tables. +# (5 cylinders needed for maintenance + replacement sectors) +# diff --git a/distrib/vax/inst/dot.profile b/distrib/vax/inst/dot.profile new file mode 100644 index 00000000000..a4bd1fdfa81 --- /dev/null +++ b/distrib/vax/inst/dot.profile @@ -0,0 +1,15 @@ +PATH=/sbin:/bin:/usr/bin:/usr/sbin:/ export PATH +TERM=vt100 export TERM + +# set up some sane defaults +echo 'erase ^?, werase ^H, kill ^U, intr ^C' +stty newcrt werase ^H intr ^C kill ^U erase ^? +echo +echo "Now when NetBSD is booted you're on your own." +echo "Remember to write bootblocks and to make devices" +echo "in dev in your new root filesystem before booting." +echo "Also remember to copy /gennetbsd and /boot to the" +echo "new root; it's not there by default." +echo +echo "Good luck!" +echo diff --git a/distrib/vax/inst/list b/distrib/vax/inst/list new file mode 100644 index 00000000000..a36d92e3a00 --- /dev/null +++ b/distrib/vax/inst/list @@ -0,0 +1,7 @@ +# $Id: list,v 1.1 1995/10/18 08:37:55 deraadt Exp $ + +# the disktab explanation file +COPY disktab.preinstall etc + +# and the installation tools +COPY dot.profile .profile diff --git a/distrib/vax/list2sh.awk b/distrib/vax/list2sh.awk new file mode 100644 index 00000000000..239c42f5133 --- /dev/null +++ b/distrib/vax/list2sh.awk @@ -0,0 +1,39 @@ +# $Id: list2sh.awk,v 1.1 1995/10/18 08:37:54 deraadt Exp $ + +BEGIN { + printf("cd ${CURDIR}\n"); + printf("\n"); +} +/^$/ || /^#/ { + print $0; + next; +} +$1 == "COPY" { + printf("echo '%s'\n", $0); + printf("cp %s ${TARGDIR}/%s\n", $2, $3); + next; +} +$1 == "LINK" { + printf("echo '%s'\n", $0); + printf("(cd ${TARGDIR}; ln %s %s)\n", $2, $3); + next; +} +$1 == "SPECIAL" { + printf("echo '%s'\n", $0); + printf("(cd ${TARGDIR};"); + for (i = 2; i <= NF; i++) + printf(" %s", $i); + printf(")\n"); + next; +} +{ + printf("echo '%s'\n", $0); + printf("echo 'Unknown keyword \"%s\" at line %d of input.'\n", $1, NR); + printf("exit 1\n"); + exit 1; +} +END { + printf("\n"); + printf("exit 0\n"); + exit 0; +} diff --git a/distrib/vax/runlist.sh b/distrib/vax/runlist.sh new file mode 100644 index 00000000000..d49ed331c55 --- /dev/null +++ b/distrib/vax/runlist.sh @@ -0,0 +1,13 @@ +# $Id: runlist.sh,v 1.1 1995/10/18 08:37:54 deraadt Exp $ + +if [ "X$1" = "X-d" ]; then + SHELLCMD=cat + shift +else + SHELLCMD="sh -e" +fi + +( while [ "X$1" != "X" ]; do + cat $1 + shift +done ) | awk -f ${TOPDIR}/list2sh.awk | ${SHELLCMD} diff --git a/distrib/vax/rx33/Makefile b/distrib/vax/rx33/Makefile new file mode 100644 index 00000000000..11686216ea5 --- /dev/null +++ b/distrib/vax/rx33/Makefile @@ -0,0 +1,14 @@ +# $NetBSD: Makefile,v 1.1 1995/10/01 21:22:40 ragge Exp $ +# +# Create RX33 floppies. + +.include "../Makefile.inc" + +all: + cp ../inst/bootroot-${REV}.fs rx33-bootdisk-${REV} + dd if=../inst/miniroot-${REV}.fs of=rx33-copy1-${REV} bs=512 count=2400 + dd if=../inst/miniroot-${REV}.fs of=rx33-copy2-${REV} \ + bs=512 skip=2400 count=2400 + +.include <bsd.obj.mk> +.include <bsd.subdir.mk> diff --git a/distrib/vax/rx50/Makefile b/distrib/vax/rx50/Makefile new file mode 100644 index 00000000000..bad9e556713 --- /dev/null +++ b/distrib/vax/rx50/Makefile @@ -0,0 +1,22 @@ +# $NetBSD: Makefile,v 1.1 1995/10/01 21:22:42 ragge Exp $ +# +# Create RX50 floppies. + +.include "../Makefile.inc" + +all: + cp ../inst/bootroot-${REV}.fs rx50-bootdisk-${REV} + dd if=../inst/miniroot-${REV}.fs of=rx50-copy1-${REV} bs=512 count=800 + dd if=../inst/miniroot-${REV}.fs of=rx50-copy2-${REV} \ + bs=512 skip=800 count=800 + dd if=../inst/miniroot-${REV}.fs of=rx50-copy3-${REV} \ + bs=512 skip=1600 count=800 + dd if=../inst/miniroot-${REV}.fs of=rx50-copy4-${REV} \ + bs=512 skip=2400 count=800 + dd if=../inst/miniroot-${REV}.fs of=rx50-copy5-${REV} \ + bs=512 skip=3200 count=800 + dd if=../inst/miniroot-${REV}.fs of=rx50-copy6-${REV} \ + bs=512 skip=4000 count=800 + +.include <bsd.obj.mk> +.include <bsd.subdir.mk> diff --git a/distrib/vax/tk50/Makefile b/distrib/vax/tk50/Makefile new file mode 100644 index 00000000000..c56af1ddf52 --- /dev/null +++ b/distrib/vax/tk50/Makefile @@ -0,0 +1,40 @@ +# $NetBSD: Makefile,v 1.1 1995/10/01 21:22:45 ragge Exp $ +# +# Create TK50 files and tapes. + +TAPEDEV=mt8 + +.include "../Makefile.inc" + +all: + cp ../inst/bootroot-${REV}.fs tk50-file1-${REV} + cp ../inst/miniroot-${REV}.fs tk50-file2-${REV} + +tape: +.if !defined(DESTDIR) + @echo 'DESTDIR' must be defined \(will make distribution\). + @false + +.else + mt -f /dev/r${TAPEDEV} rewind + dd if=tk50-file1-${REV} of=/dev/nr${TAPEDEV} bs=512 + dd if=tk50-file2-${REV} of=/dev/nr${TAPEDEV} bs=512 + dd if=${DESTDIR}/snapshot/bin.tar.gz of=/dev/nr${TAPEDEV} bs=64k + dd if=${DESTDIR}/snapshot/dev.tar.gz of=/dev/nr${TAPEDEV} bs=64k + dd if=${DESTDIR}/snapshot/etc.tar.gz of=/dev/nr${TAPEDEV} bs=64k + dd if=${DESTDIR}/snapshot/sbin.tar.gz of=/dev/nr${TAPEDEV} bs=64k + dd if=${DESTDIR}/snapshot/usr.bin.tar.gz of=/dev/nr${TAPEDEV} bs=64k + dd if=${DESTDIR}/snapshot/usr.games.tar.gz of=/dev/nr${TAPEDEV} bs=64k + dd if=${DESTDIR}/snapshot/usr.include.tar.gz of=/dev/nr${TAPEDEV} bs=64k + dd if=${DESTDIR}/snapshot/usr.lib.tar.gz of=/dev/nr${TAPEDEV} bs=64k + dd if=${DESTDIR}/snapshot/usr.libexec.tar.gz of=/dev/nr${TAPEDEV} bs=64k + dd if=${DESTDIR}/snapshot/usr.misc.tar.gz of=/dev/nr${TAPEDEV} bs=64k + dd if=${DESTDIR}/snapshot/usr.sbin.tar.gz of=/dev/nr${TAPEDEV} bs=64k + dd if=${DESTDIR}/snapshot/usr.share.tar.gz of=/dev/nr${TAPEDEV} bs=64k + dd if=${DESTDIR}/snapshot/var.tar.gz of=/dev/nr${TAPEDEV} bs=64k + mt -f /dev/r${TAPEDEV} rewind + @echo Distribution tape is ready. +.endif + +.include <bsd.obj.mk> +.include <bsd.subdir.mk> |