1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-05 22:43:24 +00:00
freebsd-ports/Tools/portbuild/4/mkbindist

51 lines
1.4 KiB
Plaintext
Raw Normal View History

#!/bin/sh
date=19990826
ftpserver=current.freebsd.org
ftpdists="bin dict des games compat22"
ftp=1
useworld=0
1999-03-22 05:44:47 +00:00
chrootdir=/a/asami/chroot
here=$(pwd)
tmpdir=${here}/tmp
rm -rf ${tmpdir}
mkdir -p ${tmpdir}
if [ "${ftp}" != 0 ]; then
rm -rf bindist/ftp
mkdir -p bindist/ftp
cd bindist/ftp
for i in ${ftpdists}; do
/usr/bin/ftp -a "ftp://${ftpserver}/pub/FreeBSD/snapshots/i386/4.0-${date}-CURRENT/$i/$i.??"
done
cd ${here}
fi
cd ${tmpdir}
1999-03-22 05:44:47 +00:00
if [ "${useworld}" = 1 ]; then
(cd ${chrootdir}; find -dx . | \
grep -v -E '^./usr/(X11R6|local|obj|opt|ports|src)' | \
grep -v '^./home' | \
grep -v '^./var/db/pkg' | \
cpio -dump ${tmpdir})
else
for i in ${ftpdists}; do
cat ${here}/bindist/ftp/$i.?? | tar --unlink -xzpf -
done
1999-03-22 05:44:47 +00:00
fi
rm -rf $(cat ${here}/bindist/delete)
mkdir -p $(cat ${here}/bindist/dirlist)
1999-03-22 05:44:47 +00:00
(cd ${here}/bindist/files; find -dx . | cpio -dump ${tmpdir})
echo "HAVE_MOTIF=t" >> etc/make.conf
echo "MOTIF_STATIC=t" >> etc/make.conf
date '+%Y%m%d' > var/db/port.mkversion
1999-03-22 05:44:47 +00:00
if [ -f kernel.GENERIC -a ! -f kernel ]; then
mv kernel.GENERIC kernel
fi
rm -f /usr/lib/aout/lib*_p.a
1999-03-22 05:44:47 +00:00
mkdir ${tmpdir}/var/run
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}