diff options
author | Kris Kennaway <kris@FreeBSD.org> | 2006-01-15 02:35:47 +0000 |
---|---|---|
committer | Kris Kennaway <kris@FreeBSD.org> | 2006-01-15 02:35:47 +0000 |
commit | f83ac9920cc01ff98a0cd521b1803523f96a93b1 (patch) | |
tree | e4666feadf2ca13d6fa850dd71601c636cd3d729 | |
parent | b5cbe1f29855c4e197ae9567af6fb6fd699947ad (diff) | |
download | ports-f83ac9920cc01ff98a0cd521b1803523f96a93b1.tar.gz ports-f83ac9920cc01ff98a0cd521b1803523f96a93b1.zip |
Notes
-rwxr-xr-x | Tools/portbuild/scripts/portbuild | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/Tools/portbuild/scripts/portbuild b/Tools/portbuild/scripts/portbuild index 72fa76618691..1e0203856881 100755 --- a/Tools/portbuild/scripts/portbuild +++ b/Tools/portbuild/scripts/portbuild @@ -11,7 +11,8 @@ mount_fs() if [ ${disconnected} = 1 ]; then mount -t nullfs -r ${fs} ${mntpt} else - mount -o nfsv3,intr -r ${master}:${fs} ${mntpt} + #mount -o nfsv3,intr -r ${master}:${fs} ${mntpt} + mount_nfs -3 -r 8192 -w 8192 -i ${master}:${fs} ${mntpt} fi } @@ -84,7 +85,9 @@ cleanup() cleanup_mount ${chroot} /a/ports cleanup_mount ${chroot} /usr/opt/doc cleanup_mount ${chroot} /usr/src - cleanup_mount ${chroot} /dev + if [ "${arch}" != "i386" || "${branch}" != "4" ]; then + cleanup_mount ${chroot} /dev + fi test -d ${chroot}/root/.ccache && cleanup_mount ${chroot} /root/.ccache if [ $noclean = 0 -o $error = 0 ]; then @@ -224,22 +227,19 @@ if [ -f ${chroot}/.notready ]; then if [ "${branch}" = "4" -o "${branch}" = "4-exp" ]; then mkdir -p ${chroot}/libexec mkdir -p ${chroot}/lib - if [ "${arch}" = "i386" ]; then - cp -p /sbin/mount_linprocfs /sbin/mount /sbin/umount ${chroot}/sbin - cp -p /lib/libufs.so.2 ${chroot}/lib - fi + fi + if [ "${branch}" != "4foo" ]; then + cp -p /sbin/mount_linprocfs /sbin/mount /sbin/umount ${chroot}/sbin + cp -p /lib/libufs.so.3 ${chroot}/lib + cp -p /rescue/ps ${chroot}/bin + #cp -p /bin/ps ${chroot}/bin + cp -p /usr/bin/killall ${chroot}/usr/bin cp -p /libexec/ld-elf.so.1 ${chroot}/libexec - cp -p /lib/libkvm.so.2 /lib/libm.so.3 ${chroot}/lib - if [ -f /lib/libc.so.6 ]; then + cp -p /lib/libkvm.so.3 /lib/libm.so.4 ${chroot}/lib + if [ "${branch}" != "6" -a "${branch}" != "7" ]; then cp -p /lib/libc.so.6 ${chroot}/lib - else - cp -p /lib/libc.so.5 ${chroot}/lib fi - elif [ "${branch}" = "6" ]; then - cp -p /lib/libc.so.5 ${chroot}/lib fi - cp -p /rescue/ps ${chroot}/bin - cp -p /usr/bin/killall ${chroot}/usr/bin rm ${chroot}/.notready touch ${chroot}/.ready fi @@ -286,7 +286,9 @@ mkdir -p ${chroot}/usr/src ${chroot}/usr/opt/doc mount_fs ${pb}/${arch}/${branch}/src ${chroot}/usr/src ${master} mount_fs ${pb}/${arch}/${branch}/doc ${chroot}/usr/opt/doc ${master} -mount -t devfs foo ${chroot}/dev +if [ "${arch}" != "i386" -o "${branch}" != "4foo" ]; then + mount -t devfs foo ${chroot}/dev +fi umount -f ${chroot}/compat/linux/proc > /dev/null 2>&1 |