1998-12-28 13:27:27 +00:00
|
|
|
#!/bin/sh
|
|
|
|
ftp=0
|
|
|
|
here=$(pwd)
|
|
|
|
tmpdir=${here}/tmp
|
|
|
|
rm -rf ${tmpdir}
|
|
|
|
mkdir -p ${tmpdir}
|
|
|
|
if [ "${ftp}" != 0 ]; then
|
|
|
|
cd bindist/ftp
|
|
|
|
/usr/bin/ftp -a 'ftp://ftp.freebsd.org/pub/FreeBSD/3.0-RELEASE/bin/bin.??'
|
|
|
|
/usr/bin/ftp -a 'ftp://ftp.freebsd.org/pub/FreeBSD/3.0-RELEASE/dict/dict.??'
|
1999-01-22 09:37:15 +00:00
|
|
|
/usr/bin/ftp -a 'ftp://ftp.freebsd.org/pub/FreeBSD/3.0-RELEASE/des/des.??'
|
1998-12-28 13:27:27 +00:00
|
|
|
#ssh -n ftp.freebsd.org cat 'w/3.0-RELEASE/bin/bin.??' | tar -xzpf -
|
|
|
|
cd ${here}
|
|
|
|
fi
|
|
|
|
cd ${tmpdir}
|
1999-01-22 09:37:15 +00:00
|
|
|
cat ${here}/bindist/ftp/bin.?? | tar --unlink -xzpf -
|
|
|
|
cat ${here}/bindist/ftp/dict.?? | tar --unlink -xzpf -
|
|
|
|
cat ${here}/bindist/ftp/des.?? | tar --unlink -xzpf -
|
1998-12-28 13:27:27 +00:00
|
|
|
rm -rf $(cat ${here}/bindist/delete)
|
|
|
|
mkdir -p $(cat ${here}/bindist/dirlist)
|
|
|
|
tar -C ${here}/bindist/files -cf - . | tar -xpf -
|
|
|
|
mv kernel.GENERIC kernel
|
|
|
|
rm -f /usr/lib/aout/lib*_p.a
|
|
|
|
chroot $(pwd) /sbin/ldconfig /usr/lib
|
|
|
|
chroot $(pwd) /sbin/ldconfig -aout /usr/lib/aout
|
|
|
|
mkdir -p ${here}/tarballs
|
|
|
|
tar cf ${here}/tarballs/bindist.tar.new .
|
|
|
|
mv -f ${here}/tarballs/bindist.tar.new ${here}/tarballs/bindist.tar
|
|
|
|
cd ${here}
|
|
|
|
rm -rf ${tmpdir}
|