Subject: Comments on Sparc Install procedure
To: None <deraadt@fsa.ca>
From: John Messenger <John.Messenger@proteon.com>
List: port-sparc
Date: 10/25/1994 12:08:50
Here are some comments on the Sparc install procedure which doesn't
seem to work anymore, and a replacement install.sh.

1.  In the README, in step 4, second paragraph, first sentence, please
    add "create /mnt/usr".  As paragraph 3 already quotes examples
    based on sd1, I'd suggest:
        # mount /dev/sd1a /mnt
        # mkdir /mnt/usr
        # mount /dev/sd1g /mnt/usr

2.  install.sh uses files such as ./usr.libexec.tar.gz and
    ./usr.bin.tar.gz, but such files aren't in the arch/sparc tree
    now.  Instead, there are files suc as base.tar.gz.  Unless I've
    got the wrong end of the stick, install.sh wants updating.  Also,
    the binary files and the install.sh are now in different
    directories, arch/sparc/binary, and arch/sparc/install.  This
    change needs to be reflected in install.sh.
3.  SunOS tar can't read the gzipped base.tar.gz (for example)
    correctly anymore.  This seems to be an incompatibility with GNU
    tar.  Directories come out as plain files of length 0, so the
    install fails.  I guess that's why arch/sparc/install now contains
    gzip and gtar.  Obviously install.sh needs to use these.
4.  Add a note explaining that some files in /etc/ need setting up,
    such as hostname.le0, myname, defaultdomain, maybe mygate, need
    setting up, or refer to a source of this generic information.

How about this for a replacement install.sh:

  #!/bin/sh
  # rcs id here
  umask 0
  ./gtar zxvpf ../binary/base.tar.gz -C /mnt
  ./gtar zxvpf ../binary/comp.tar.gz -C /mnt
  ./gtar zxvpf ../binary/etc.tar.gz -C /mnt
  ./gtar zxvpf ../binary/games.tar.gz -C /mnt
  ./gtar zxvpf ../binary/man.tar.gz -C /mnt
  ./gtar zxvpf ../binary/misc.tar.gz -C /mnt
  ./gtar zxvpf ../binary/secr.tar.gz -C /mnt
  ./gtar zxvpf ../binary/text.tar.gz -C /mnt
  cp ./netbsd.scsi3 /mnt/netbsd
  chmod 640 /mnt/netbsd; chown root.kmem /mnt/netbsd
  cd /mnt/dev; ./MAKEDEV all
  mv /mnt/etc/fstab.sd /mnt/etc/fstab

Regards,
        -- John Messenger