/usr/bin/binsizes \
/usr/bin/rotate \
/usr/bin/floppysetup \
+ /usr/bin/packme \
/usr/bin/spell \
/usr/bin/srccrc \
/usr/bin/svclog \
/usr/bin/binsizes: binsizes.sh
install -m 755 -c -o bin $? $@
+/usr/bin/packme: packme.sh
+ install -m 755 -c -o bin $? $@
+
/usr/bin/spell: spell.sh
install -m 755 -c -o bin $? $@
--- /dev/null
+#!/bin/sh
+
+set -e
+
+RC=/usr/etc/rc.package
+CDDIR=PACKAGES
+
+if [ -f "$RC" ]
+then . "$RC"
+fi
+
+cd /
+
+if [ -n "$cddrive" ]
+then isodir "$cddrive" $CDDIR | grep -i tbz | while read package
+ do echo -n "Install $package (y/n) ? "
+ read y
+ if [ "$y" = y ]
+ then isoread "$cddrive" $CDDIR/$package | bzip2 -d | pax -r -p e '*' / || echo "Extract failed."
+ fi
+ done
+fi
pfile="/mnt/src/tools/fdbootparams"
echo "rootdev=$root; ramimagedev=$root; $disable; save" >$pfile
# Save name of CD drive
-echo "cddrive=`mount | grep usr | awk '{ print $1 }'`" >>/mnt/etc/rc.package
+echo "cddrive=`mount | grep usr | awk '{ print $1 }' | sed 's/p.*//'`" >>/mnt/etc/rc.package
sync
755 bin operator /usr/local/man/man7
755 bin operator /usr/local/man/man8
755 bin operator /usr/local/man/man9
+775 bin operator /usr/local/packages
775 bin operator /usr/local/src
755 bin operator /usr/man
755 bin operator /usr/man/man1
cp $IMAGE $CDFILES/bootflop.img
cp release/cd/* $CDFILES
-DESTPACKAGES=`pwd`/release/cd/Packages
+DESTPACKAGES=`pwd`/release/cd/PACKAGES
rm -rf $DESTPACKAGES
mkdir $DESTPACKAGES