diff options
author | kris <kris@FreeBSD.org> | 2002-02-11 03:07:54 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2002-02-11 03:07:54 +0000 |
commit | ab03834fdd911ad8e83944e6db2cd2c78a06f8b1 (patch) | |
tree | f3518ee513f0bea5e5ba8d78ac1b2d7058087552 /Tools | |
parent | 9a02e3cad925c6a09bbf822b4ab87349d5cdd274 (diff) | |
download | FreeBSD-ports-ab03834fdd911ad8e83944e6db2cd2c78a06f8b1.zip FreeBSD-ports-ab03834fdd911ad8e83944e6db2cd2c78a06f8b1.tar.gz |
Catch up to changes on bento:
* Update OSVERSIONs
* Add -x to ssh arguments
* Use per-branch ports collection
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/portbuild/scripts/portbuild | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Tools/portbuild/scripts/portbuild b/Tools/portbuild/scripts/portbuild index 20b305c..49d34f6 100755 --- a/Tools/portbuild/scripts/portbuild +++ b/Tools/portbuild/scripts/portbuild @@ -78,12 +78,12 @@ fi case ${branch} in 5*) # export OSREL=5.0 - export OSVERSION=500017 + export OSVERSION=500027 # export PORTOBJFORMAT=elf ;; 4*) - export OSREL=4.3 - export OSVERSION=430000 + export OSREL=4.5 + export OSVERSION=450000 # export PORTOBJFORMAT=elf ;; 3*) @@ -155,7 +155,7 @@ echo "with arguments: ${args}" | tee -a ${chroot}/tmp/${pkgname}.log # intentionally set up ${PORTSDIR} with symlink to catch broken ports mkdir -p ${chroot}/a/ports rm -rf ${chroot}/usr/ports -mount -o -2 -r ${master}:${buildroot}/usr/ports ${chroot}/a/ports +mount -o -2 -r ${master}:${buildroot}/${branch}/ports ${chroot}/a/ports ln -sf ../a/ports ${chroot}/usr/ports mkdir -p ${chroot}/usr/src ${chroot}/usr/opt/doc @@ -187,7 +187,7 @@ chroot ${chroot} /sbin/ldconfig -aout -m /usr/lib/compat/aout chroot ${chroot} /sbin/ldconfig -aout -R while [ $# -gt 0 ]; do - if ssh -a ${master} [ -f ${packages}/All/$1 ]; then + if ssh -a -x ${master} [ -f ${packages}/All/$1 ]; then if [ ! -f ${chroot}/tmp/depends/$1 ]; then echo "copying package $1 for ${pkgname}" scp -p $master:${packages}/All/$1 ${chroot}/tmp/depends @@ -208,10 +208,10 @@ error=$(cat ${chroot}/tmp/status) if [ "${error}" = 0 ]; then # make checksum succeeded - ssh -a $master mkdir -p ${buildroot}/distfiles/.pbtmp/${pkgname} + ssh -a -x $master mkdir -p ${buildroot}/${branch}/distfiles/.pbtmp/${pkgname} tar -C ${chroot}/tmp/distfiles -cf - . | \ - ssh -a $master tar --unlink -C ${buildroot}/distfiles/.pbtmp/${pkgname} -xvf - - ssh -a $master touch ${buildroot}/distfiles/.pbtmp/${pkgname}/.done + ssh -a -x $master tar --unlink -C ${buildroot}/${branch}/distfiles/.pbtmp/${pkgname} -xvf - + ssh -a -x $master touch ${buildroot}/${branch}/distfiles/.pbtmp/${pkgname}/.done # phase 2, make package ln -sf ${pkgname}.log2 ${chroot}/tmp/make.log @@ -225,8 +225,8 @@ if [ "${error}" = 0 ]; then if [ "${error}" = 0 ]; then tar -C ${chroot}/tmp -cf - packages | \ - ssh -a $master tar --unlink -C ${buildroot}/${branch} -xvf - - ssh -a $master [ -f ${buildroot}/${branch}/packages/All/${pkgname}.tgz ] '&&' touch ${buildroot}/${branch}/packages/All/${pkgname}.tgz + ssh -a -x $master tar --unlink -C ${buildroot}/${branch} -xvf - + ssh -a -x $master [ -f ${buildroot}/${branch}/packages/All/${pkgname}.tgz ] '&&' touch ${buildroot}/${branch}/packages/All/${pkgname}.tgz ssh $master rm -f ${buildroot}/${branch}/errors/${pkgname}.log else scp ${chroot}/tmp/${pkgname}.log ${master}:${buildroot}/${branch}/errors/${pkgname}.log |