Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/distrib/atari/floppies prepare and installation floppies



details:   https://anonhg.NetBSD.org/src/rev/3aca7e24cb38
branches:  trunk
changeset: 525541:3aca7e24cb38
user:      leo <leo%NetBSD.org@localhost>
date:      Fri Apr 12 21:11:46 2002 +0000

description:
prepare and installation floppies

diffstat:

 distrib/atari/floppies/Makefile               |    8 +
 distrib/atari/floppies/Makefile.inc           |    3 +
 distrib/atari/floppies/common/Makefile.images |   56 +++++++
 distrib/atari/floppies/common/dot.profile     |  137 ++++++++++++++++++
 distrib/atari/floppies/common/list.images     |   20 ++
 distrib/atari/floppies/common/mtree.conf      |    3 +
 distrib/atari/floppies/common/termcap.mini    |   67 ++++++++
 distrib/atari/floppies/install/Makefile       |   14 +
 distrib/atari/floppies/install/list           |   67 ++++++++
 distrib/atari/floppies/prepare/Makefile       |   14 +
 distrib/atari/floppies/prepare/install.md     |  195 ++++++++++++++++++++++++++
 distrib/atari/floppies/prepare/install.sh     |  170 ++++++++++++++++++++++
 12 files changed, 754 insertions(+), 0 deletions(-)

diffs (truncated from 802 to 300 lines):

diff -r af4b2dd44574 -r 3aca7e24cb38 distrib/atari/floppies/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/atari/floppies/Makefile   Fri Apr 12 21:11:46 2002 +0000
@@ -0,0 +1,8 @@
+#      $NetBSD: Makefile,v 1.1.1.1 2002/04/12 21:11:46 leo Exp $
+
+SUBDIR=                install
+SUBDIR+=       prepare
+
+TARGETS+=release
+
+.include <bsd.subdir.mk>
diff -r af4b2dd44574 -r 3aca7e24cb38 distrib/atari/floppies/Makefile.inc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/atari/floppies/Makefile.inc       Fri Apr 12 21:11:46 2002 +0000
@@ -0,0 +1,3 @@
+#      $NetBSD: Makefile.inc,v 1.1.1.1 2002/04/12 21:11:46 leo Exp $
+
+.include "${.CURDIR}/../../../Makefile.inc"
diff -r af4b2dd44574 -r 3aca7e24cb38 distrib/atari/floppies/common/Makefile.images
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/atari/floppies/common/Makefile.images     Fri Apr 12 21:11:46 2002 +0000
@@ -0,0 +1,56 @@
+#      $NetBSD: Makefile.images,v 1.1.1.1 2002/04/12 21:11:47 leo Exp $
+
+.include <bsd.own.mk>
+.include "${_SRC_TOP_}/distrib/Makefile.inc"
+
+.include <bsd.kernobj.mk>
+
+CRUNCHBIN=     instbin
+LISTS=         ${.CURDIR}/list ${.CURDIR}/../common/list.images
+MTREECONF=     ${DISTRIBDIR}/common/mtree.common
+IMAGEDEPENDS+= ${CRUNCHBIN} ${KERNSRCDIR}/conf/osrelease.sh \
+               ${_SRC_TOP_}/etc/group ${_SRC_TOP_}/etc/master.passwd 
+PARSELISTENV=  ARCHDIR=${ARCHDIR:Q} \
+               DISTRIBREV=${DISTRIBREV:Q} \
+               DISTRIBVER=${DISTRIBVER:Q} \
+               KERNOBJDIR=${KERNOBJDIR:Q}
+MAKESUMS=      CKSUM=${CKSUM:Q} sh ${DISTRIBDIR}/sets/makesums
+
+.if defined(USE_SYSINST)
+LISTS+=                ${DISTRIBDIR}/common/list.sysinst
+.endif
+
+realall: check_DESTDIR .WAIT image
+       @true
+
+release: check_RELEASEDIR .WAIT image
+       mkdir -p ${RELEASEDIR}/installation/miniroot
+       gzip -c -9 < ${.OBJDIR}/${IMAGE} \
+               > ${RELEASEDIR}/installation/miniroot/${IMAGE}.gz
+        ${MAKESUMS} -t ${RELEASEDIR}/installation/miniroot ${IMAGE}.gz
+
+image: ${IMAGE} image_md_post
+
+image_md_post:
+# nothing here; refer to machine-dependant ${ARCHDIR}/Makefile.inc
+
+#
+# Using libhack:opendir() causes linking errors
+#
+NOLIBHACKOPENDIR=1
+
+# Use stubs to eliminate some large stuff from libc
+HACKSRC=${_SRC_TOP_}/distrib/utils/libhack
+.include "${HACKSRC}/Makefile.inc"
+
+# This is listed in instbin.conf but is built here.
+${CRUNCHBIN}: libhack.o
+
+
+.include "${DISTRIBDIR}/common/Makefile.crunch"
+.if defined(MAKEDEVTARGETS)
+.include "${DISTRIBDIR}/common/Makefile.makedev"
+.endif
+.include "${DISTRIBDIR}/common/Makefile.image"
+
+.include <bsd.prog.mk>
diff -r af4b2dd44574 -r 3aca7e24cb38 distrib/atari/floppies/common/dot.profile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/atari/floppies/common/dot.profile Fri Apr 12 21:11:46 2002 +0000
@@ -0,0 +1,137 @@
+# $NetBSD: dot.profile,v 1.1.1.1 2002/04/12 21:11:47 leo Exp $
+#
+# Copyright (c) 1995 Jason R. Thorpe
+# 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 for the
+#          NetBSD Project.  See http://www.netbsd.org/ for
+#          information about NetBSD.
+# 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: LICENSE,v 1.2 2000/06/14 15:57:33 cgd Exp>>
+
+PATH=/sbin:/bin:/usr/bin:/usr/sbin:/
+export PATH
+TERM=vt220
+export TERM
+HOME=/
+export HOME
+OBLOCKSIZE=1k
+export BLOCKSIZE
+EDITOR=ed
+export EDITOR
+
+umask 022
+
+makerootwritable() {
+       if [ ! -e /tmp/.root_writable ]; then
+               if [ ! -e /kern/msgbuf ]; then
+                       mount -t kernfs /kern /kern
+               fi
+               mount -t ffs -u /kern/rootdev /
+               cp /dev/null /tmp/.root_writable
+       fi
+}
+
+if [ "X${DONEPROFILE}" = "X" ]; then
+       DONEPROFILE=YES
+       export DONEPROFILE
+
+       # set up some sane defaults
+       echo 'erase ^H, werase ^W, kill ^U, intr ^C'
+       stty newcrt werase ^W intr ^C kill ^U erase ^H 9600
+
+       # mount root read write
+       makerootwritable
+
+       # If supported: Select a keyboard map
+       /usr/sbin/loadkmap > /dev/null 2>&1
+       if [ $? -eq 0 ]; then
+               _maps=`ls /usr/share/keymaps/atari | sed 's/\.map//g'`
+       fi
+       while [ ! -z "$_maps" ]; do
+               echo "The available keyboard maps are:"
+               _num=0
+               for i in $_maps; do
+                       echo "  $_num  $i"
+                       _num=`expr $_num + 1`
+               done
+               echo
+               echo -n "Select the number of the map you want to activate: "
+               read _ans
+
+               # Delete all non-nummeric characters from the users answer
+               if [ ! -z "$_ans" ]; then
+                       _ans=`echo $_ans | sed 's/[^0-9]//g`
+               fi
+
+               # Check if the answer is valid (in range). Note that an answer
+               # < 0 cannot happen because the sed(1) above also removes the
+               # sign.
+               if [ -z "$_ans" -o "$_ans" -ge $_num ]; then
+                   echo "You entered an invalid response, please try again."
+                   continue
+               fi
+
+               # Got a valid answer, activate the map...
+               set -- $_maps
+               shift $_ans
+               /usr/sbin/loadkmap -f /usr/share/keymaps/atari/$1.map
+               break
+       done
+
+       if [ -x /sysinst ]; then
+               sysinst
+       else
+          if [ -x /upgrade ]; then
+               #
+               # Original installation script.
+               # Installing or upgrading?
+               _forceloop=""
+               while [ "X${_forceloop}" = X"" ]; do
+                       echo -n '(I)nstall or (U)pgrade? '
+                       read _forceloop
+                       case "$_forceloop" in
+                               i*|I*)
+                                       /install
+                                       ;;
+
+                               u*|U*)
+                                       /upgrade
+                                       ;;
+
+                               *)
+                                       _forceloop=""
+                                       ;;
+                       esac
+               done
+           else
+               #
+               # Stripped down preparation version
+               /install
+           fi
+       fi
+fi
diff -r af4b2dd44574 -r 3aca7e24cb38 distrib/atari/floppies/common/list.images
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/atari/floppies/common/list.images Fri Apr 12 21:11:46 2002 +0000
@@ -0,0 +1,20 @@
+#      $NetBSD: list.images,v 1.1.1.1 2002/04/12 21:11:47 leo Exp $
+
+SRCDIRS        bin sbin usr.bin usr.sbin gnu/usr.bin sys/arch/atari/stand
+LIBS   libhack.o -lrmt -ledit -lbz2 -lutil -lcurses -ltermcap -lcrypt -lkvm -ll -lm
+
+# init invokes the shell as -sh
+ARGVLN sh -sh
+
+# files that we need in /etc for the install
+COPY   ${_SRC_TOP_}/etc/group          etc/group
+COPY   ${_SRC_TOP_}/etc/master.passwd  etc/master.passwd
+
+# the termcap file
+COPY   ${CURDIR}/../common/termcap.mini        usr/share/misc/termcap
+
+COPY   ${CURDIR}/../common/dot.profile .profile
+
+# and the keyboard maps
+MTREE  ./usr/share/keymaps     type=dir uname=root gname=wheel mode=0755
+COPYDIR        ${DESTDIR}/usr/share/keymaps/atari      usr/share/keymaps/atari
diff -r af4b2dd44574 -r 3aca7e24cb38 distrib/atari/floppies/common/mtree.conf
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/atari/floppies/common/mtree.conf  Fri Apr 12 21:11:46 2002 +0000
@@ -0,0 +1,3 @@
+#      $NetBSD: mtree.conf,v 1.1.1.1 2002/04/12 21:11:47 leo Exp $
+
+./.profile             type=file uname=root gname=wheel mode=0644
diff -r af4b2dd44574 -r 3aca7e24cb38 distrib/atari/floppies/common/termcap.mini
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/atari/floppies/common/termcap.mini        Fri Apr 12 21:11:46 2002 +0000
@@ -0,0 +1,67 @@
+#
+#      $NetBSD: termcap.mini,v 1.1.1.1 2002/04/12 21:11:47 leo 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:\



Home | Main Index | Thread Index | Old Index