if exists.
packit installs a package.
/usr/bin/binsizes \
/usr/bin/rotate \
/usr/bin/floppysetup \
+ /usr/bin/packit \
/usr/bin/packme \
/usr/bin/spell \
/usr/bin/srccrc \
/usr/bin/binsizes: binsizes.sh
install -m 755 -c -o bin $? $@
+/usr/bin/packit: packit.sh
+ install -m 755 -c -o bin $? $@
+
/usr/bin/packme: packme.sh
install -m 755 -c -o bin $? $@
#!/bin/sh
+PI=.postinstall
+
set -e
# No trailing slashes in the directory, because we want to base the
fi
sh -e build
-cd /
echo " * Building package"
-find / -cnewer $packagestart | grep -v "^$srcdir" | grep -v "^/dev" | grep -v "^/tmp" | grep -v "^/usr/tmp" | grep -v "^/usr/log" | grep -v "^/usr/adm" | grep -v "^/etc/utmp" | grep -v "^/usr/src" | pax -w -d | bzip2 >$tarbz
+( if [ -f $PI ]; then echo $PI; fi; find / -cnewer $packagestart | grep -v "^$srcdir" | grep -v "^/dev" | grep -v "^/tmp" | grep -v "^/usr/tmp" | grep -v "^/usr/log" | grep -v "^/usr/adm" | grep -v "^/etc/utmp" | grep -v "^/usr/src" ) | pax -w -d | bzip2 >$tarbz
rm -f $packagestart $findlist $tarcmd
binsizes normal
mv $tarbz $here/$pdir
--- /dev/null
+#!/bin/sh
+
+PI=.postinstall
+TMP=/usr/tmp
+
+if [ "$#" -ne 1 ]
+then
+ echo "Usage: $0 <package file>"
+ exit 1
+fi
+
+dir=`pwd`
+if [ "$1" = "-" ]
+then f=""
+else f=$dir/$1
+fi
+
+set -e
+cd $TMP
+rm -f $PI
+
+if [ -f $PI ]
+then echo "$PI is in $TMP, please remove it first."
+ exit 1
+fi
+
+if [ ! -f $f ]
+then echo "Couldn't find package $f."
+ exit 1
+fi
+
+cat $f | smallbunzip2 | pax -r -p e
+if [ -f $PI ]
+then
+ sh -e $PI
+ rm -f $PI
+fi
+
read y
if [ "$y" = y ]
then echo "Extracting $CDDIR/$package .."
- isoread "$cddrive" $CDDIR/$package | smallbunzip2 | pax -r -p e || echo "Extract failed."
+ isoread "$cddrive" $CDDIR/$package | packit -
fi
done
fi