diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-04-25 22:10:29 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-04-25 22:10:29 +0000 |
commit | 0f3a67b6008df6643ef6787e386175c4bfb6d6d6 (patch) | |
tree | 985267ce0a21ca63665ec40d439302609367a834 /distrib/vax/common | |
parent | 050fd36bed43544d1f47ed357e82eecdaea517c3 (diff) |
runlist.sh & list2sh.awk unification
Diffstat (limited to 'distrib/vax/common')
-rw-r--r-- | distrib/vax/common/Makefile.inc | 69 | ||||
-rw-r--r-- | distrib/vax/common/instbin.conf | 23 | ||||
-rw-r--r-- | distrib/vax/common/list | 70 | ||||
-rw-r--r-- | distrib/vax/common/mtree.conf | 72 | ||||
-rw-r--r-- | distrib/vax/common/termcap.vt | 66 |
5 files changed, 300 insertions, 0 deletions
diff --git a/distrib/vax/common/Makefile.inc b/distrib/vax/common/Makefile.inc new file mode 100644 index 00000000000..11f6c6ecdb9 --- /dev/null +++ b/distrib/vax/common/Makefile.inc @@ -0,0 +1,69 @@ +# $OpenBSD: Makefile.inc,v 1.1 2002/04/25 22:10:28 deraadt Exp $ + +# TOP is assumed to be defined by Makefile including this one. + +CBIN= instbin +COMMONDIR= ${TOP}/common +UTILS= ${TOP}/../miniroot + +MOUNT_POINT?= /mnt +VND?= svnd0 +VND_DEV= /dev/${VND}a +VND_RDEV= /dev/r${VND}a +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} ${IMAGE} + disklabel -w ${VND} miniroot + newfs -O -m 0 -o space -i 8192 ${VND_RDEV} + mount ${VND_DEV} ${MOUNT_POINT} + mtree -def ${MTREE} -p ${MOUNT_POINT}/ -u + TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \ + TARGDIR=${MOUNT_POINT} UTILS=${UTILS} \ + sh ${UTILS}/runlist.sh ${LISTS} + @echo "" + @df -i ${MOUNT_POINT} + @echo "" + umount -f ${MOUNT_POINT} + vnconfig -u ${VND} + +bootroot: xxboot boot + dd if=/dev/zero of=${BOOTSYS} bs=512 count=8192 + vnconfig -v -c ${VND} ${BOOTSYS} + disklabel -w ${VND} bootroot + newfs -O -m 0 -o space -i 8192 ${VND_RDEV} + dd if=xxboot of=${VND_RDEV} count=16 + mount ${VND_DEV} ${MOUNT_POINT} + cp boot ${MOUNT_POINT} + umount -f ${MOUNT_POINT} + vnconfig -u ${VND} + +xxboot boot: + (cd /usr/src/sys/arch/vax/boot;make) + cp /usr/src/sys/arch/vax/boot/xxboot/xxboot . + cp /usr/src/sys/arch/vax/boot/boot/boot . + + +unconfig: + -umount -f ${MOUNT_POINT} + -vnconfig -u ${VND} ${IMAGE} + -/bin/rm -f ${IMAGE} + +${CBIN}.mk ${CBIN}.cache ${CBIN}.c: ${CRUNCHCONF} + crunchgen -D ${TOP}/../../ -L ${DESTDIR}/usr/lib ${.ALLSRC} + +${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/common/instbin.conf b/distrib/vax/common/instbin.conf new file mode 100644 index 00000000000..4da3b2007a4 --- /dev/null +++ b/distrib/vax/common/instbin.conf @@ -0,0 +1,23 @@ +# $OpenBSD: instbin.conf,v 1.1 2002/04/25 22:10:28 deraadt Exp $ +# +# instbin.conf - unified binary for the kc floppy +# + +srcdirs bin sbin usr.bin gnu/usr.bin usr.sbin + +progs gawk cat chmod cp df disklabel ed expr fsck ftp +progs ifconfig init ln ls mkdir mknod more mount mt dd +progs mount_ffs mount_nfs mv newfs reboot rm route sed ksh shutdown +progs slattach strings stty sync test umount pax + +ln chmod chgrp +ln chmod chown +ln mount_ffs ffs +ln mount_nfs nfs +ln ksh -sh # init invokes the shell this way +ln ksh sh +ln pax tar +ln test [ +ln reboot halt + +libs -ledit -lutil -ltermcap -ll -lz -lm -lcompat diff --git a/distrib/vax/common/list b/distrib/vax/common/list new file mode 100644 index 00000000000..3a450d53e10 --- /dev/null +++ b/distrib/vax/common/list @@ -0,0 +1,70 @@ +# $OpenBSD: list,v 1.1 2002/04/25 22:10:28 deraadt Exp $ + +# copy the crunched binary, link to it, and kill it +COPY ${OBJDIR}/instbin instbin +LINK instbin bin/cat +LINK instbin bin/chmod bin/chgrp sbin/chown +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/dmesg +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/ftp +LINK instbin usr/bin/more +LINK instbin usr/bin/sed +LINK instbin usr/bin/tar +LINK instbin usr/sbin/chown +# LINK instbin usr/sbin/bad144 +SPECIAL /bin/rm instbin + +# copy the MAKEDEV script and make some devices +COPY ${DESTDIR}/dev/MAKEDEV dev/MAKEDEV +SPECIAL cd dev; sh MAKEDEV ramdisk + +# 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}/common/termcap.vt usr/share/misc/termcap + +COPY ${DESTDIR}/bsd . +COPY ${DESTDIR}/boot . + diff --git a/distrib/vax/common/mtree.conf b/distrib/vax/common/mtree.conf new file mode 100644 index 00000000000..1fa6be687c2 --- /dev/null +++ b/distrib/vax/common/mtree.conf @@ -0,0 +1,72 @@ +# $OpenBSD: mtree.conf,v 1.1 2002/04/25 22:10:28 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/common/termcap.vt b/distrib/vax/common/termcap.vt new file mode 100644 index 00000000000..4954731814c --- /dev/null +++ b/distrib/vax/common/termcap.vt @@ -0,0 +1,66 @@ +# $OpenBSD: termcap.vt,v 1.1 2002/04/25 22:10:28 deraadt Exp $ + +# 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: |