mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
- If ${ftp} = 0 in mkbindist.conf, then use the makeworld script to build
a world instead.
This commit is contained in:
parent
afda0ec7a9
commit
efc1842637
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=75494
@ -20,6 +20,12 @@ pb=/var/portbuild
|
||||
here=${pb}/${arch}/${branch}
|
||||
. ${here}/mkbindist.conf
|
||||
|
||||
if [ ${ftp} = "0" ]; then
|
||||
if ! ${pb}/scripts/makeworld ${arch} ${branch}; then
|
||||
exit 1
|
||||
fi
|
||||
tmpdir=/var/chroot/
|
||||
else
|
||||
tmpdir=${here}/tmp
|
||||
|
||||
# just in case
|
||||
@ -65,6 +71,9 @@ else
|
||||
cat ${here}/bindist/ftp/$(basename $i).?? | tar --unlink -xzpf -
|
||||
done
|
||||
fi
|
||||
fi
|
||||
|
||||
cd ${tmpdir}
|
||||
|
||||
# Customize the tmpdir
|
||||
rm -rf $(cat ${here}/bindist/delete)
|
||||
@ -84,36 +93,6 @@ if [ "${arch}" = "i386" ]; then
|
||||
chroot ${tmpdir} /sbin/ldconfig -aout /usr/lib/aout
|
||||
rm -f /usr/lib/aout/lib*_p.a
|
||||
fi
|
||||
#sed -e "s/%%KERNEL%%/${kernel}/g" ${here}/dokernel > ${tmpdir}/dokernel
|
||||
|
||||
# XXX Rebuild kernel for some reason. No idea why, and
|
||||
# note that it's using the source tree which is cvs
|
||||
# updated during the port build process, which is
|
||||
# usually newer than the host environment and the chroot.
|
||||
|
||||
mount ${master}:${here}/src ${tmpdir}/usr/src
|
||||
sleep 5 # XXX !!!
|
||||
|
||||
# Cater to different build locations of 4.x and 5.x
|
||||
#if [ -d ${here}/src/sys/i386/compile ]; then
|
||||
# chroot ${tmpdir} sh -c "cd /usr/src/sys/i386/conf && config ${kernel} && cd /sys/i386/compile/${kernel} && make depend -DNO_MODULES && make all install -DNO_MODULES"
|
||||
#else
|
||||
# chroot ${tmpdir} sh -c "cd /usr/src/sys/i386/conf && config ${kernel} && cd /sys/compile/${kernel} && make depend -DNO_MODULES && make all install -DNO_MODULES"
|
||||
#fi
|
||||
|
||||
#chroot ${tmpdir} sh -c "cd /usr/src/sys/boot && make obj && make depend && make all install"
|
||||
umount -f ${tmpdir}/usr/src
|
||||
ln -sf ${tmpdir}/kernel.GENERIC ${tmpdir}/kernel
|
||||
rm -rf ${tmpdir}/kernel.old ${tmpdir}/modules.old ${tmpdir}/boot/kernel.old
|
||||
|
||||
# Rebuild device nodes. Again, this was probably intended
|
||||
# to make sure they're correct for the host kernel, not
|
||||
# the chroot kernel, but it's using the wrong source tree.
|
||||
if [ -f ${here}/src/etc/MAKEDEV ]; then
|
||||
cp ${here}/src/etc/MAKEDEV ${tmpdir}/dev
|
||||
else
|
||||
cp ${here}/src/etc/etc.$(uname -m)/MAKEDEV ${tmpdir}/dev
|
||||
fi
|
||||
|
||||
# Create the tarballs
|
||||
mkdir -p ${here}/tarballs
|
||||
|
Loading…
Reference in New Issue
Block a user