1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-01 22:05:08 +00:00
freebsd-ports/Tools/portbuild/2.2/mkbindist
1999-01-22 09:37:15 +00:00

31 lines
1.0 KiB
Bash

#!/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/2.2.8-RELEASE/bin/bin.??'
/usr/bin/ftp -a 'ftp://ftp.freebsd.org/pub/FreeBSD/2.2.8-RELEASE/dict/dict.??'
/usr/bin/ftp -a 'ftp://ftp.freebsd.org/pub/FreeBSD/2.2.8-RELEASE/des/des.??'
#ssh -n ftp.freebsd.org cat 'w/2.2.8-RELEASE/bin/bin.??' | tar -xzpf -
cd ${here}
fi
cd ${tmpdir}
cat ${here}/bindist/ftp/bin.?? | tar --unlink -xzpf -
cat ${here}/bindist/ftp/dict.?? | tar --unlink -xzpf -
cat ${here}/bindist/ftp/des.?? | tar --unlink -xzpf -
rm -rf $(cat ${here}/bindist/delete)
mkdir -p $(cat ${here}/bindist/dirlist)
tar -C ${here}/bindist/files -cf - . | tar -xpf -
echo "HAVE_MOTIF=t" >> etc/make.conf
echo "MOTIF_STATIC=t" >> etc/make.conf
mv kernel.GENERIC kernel
chroot $(pwd) /sbin/ldconfig /usr/lib
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}