diff options
author | kris <kris@FreeBSD.org> | 2006-09-14 13:33:12 +0800 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2006-09-14 13:33:12 +0800 |
commit | 93c150c18256c07657242375666b0c6e54dc0482 (patch) | |
tree | ecf5bfa7a1be1623c2529dfbdcb4dafb8d1314cf /Tools/portbuild | |
parent | c39c017ce73086aa11b770cda1e7d21784a92cff (diff) | |
download | freebsd-ports-gnome-93c150c18256c07657242375666b0c6e54dc0482.tar.gz freebsd-ports-gnome-93c150c18256c07657242375666b0c6e54dc0482.tar.zst freebsd-ports-gnome-93c150c18256c07657242375666b0c6e54dc0482.zip |
* When calculating the IP address to use for the jail, don't use
127.0.0.0 or 127.0.0.1
* Don't use chroot to mount the linprocfs, or it won't be visible
within the jail.
Diffstat (limited to 'Tools/portbuild')
-rwxr-xr-x | Tools/portbuild/scripts/portbuild | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Tools/portbuild/scripts/portbuild b/Tools/portbuild/scripts/portbuild index 176c0b078cf0..32b1f38b4da4 100755 --- a/Tools/portbuild/scripts/portbuild +++ b/Tools/portbuild/scripts/portbuild @@ -185,9 +185,10 @@ fi if [ "${use_jail}" = "1" ]; then # Figure out jail IP addr chrootpid=$(basename ${chroot}) - ip1=$(($chrootpid /(256*256))) - ip2=$((($chrootpid - ($ip1*256*256)) /256)) - ip3=$((($chrootpid - ($ip1*256*256) - ($ip2*256)))) + ipbase=$((${chrootpid}+2)) + ip1=$(($ipbase /(256*256))) + ip2=$((($ipbase - ($ip1*256*256)) /256)) + ip3=$((($ipbase - ($ip1*256*256) - ($ip2*256)))) fi # Set up desired uname version @@ -260,7 +261,7 @@ fi if [ ${arch} = "i386" -o ${arch} = "amd64" ]; then # JDK ports need linprocfs :( mkdir -p ${chroot}/compat/linux/proc - chroot ${chroot} mount_linprocfs linprocfs /compat/linux/proc + mount_linprocfs linprocfs ${chroot}/compat/linux/proc fi _ldconfig_dirs="/lib /usr/lib /usr/lib/compat" |