diff options
author | kris <kris@FreeBSD.org> | 2002-03-16 13:50:24 +0800 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2002-03-16 13:50:24 +0800 |
commit | c0ed24a5a76cdd6e0fc85c77d6ead738eea5c776 (patch) | |
tree | b1f63badf6fa6c6d836416f3d4c587b0637dc603 /Tools | |
parent | f0054a600c8fe75f1eba44aa3ca4ff5c716d9758 (diff) | |
download | freebsd-ports-gnome-c0ed24a5a76cdd6e0fc85c77d6ead738eea5c776.tar.gz freebsd-ports-gnome-c0ed24a5a76cdd6e0fc85c77d6ead738eea5c776.tar.zst freebsd-ports-gnome-c0ed24a5a76cdd6e0fc85c77d6ead738eea5c776.zip |
Use buildenv for setting environment variables, and tidy up a bit. Fix
typo s/UNAME_VERSION/UNAME_TARGET/
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/portbuild/scripts/portbuild | 97 |
1 files changed, 32 insertions, 65 deletions
diff --git a/Tools/portbuild/scripts/portbuild b/Tools/portbuild/scripts/portbuild index 5ffe56014575..2860518d22b1 100755 --- a/Tools/portbuild/scripts/portbuild +++ b/Tools/portbuild/scripts/portbuild @@ -6,43 +6,10 @@ pb=/var/portbuild . ${pb}/portbuild.conf +. ${pb}/scripts/buildenv buildroot=${scratchdir} -export BATCH=t -export USA_RESIDENT=YES -export PARALLEL_PACKAGE_BUILD=t -export PACKAGE_BUILDING=t -export WRKDIRPREFIX=${scratchdir} -#export NO_RESTRICTED=t -#export FOR_CDROM=t -#export FORCE_PKG_REGISTER=t -#export FORCE_PACKAGE=t -#export PKG_NOCOMPRESS=t -# to catch missing dependencies -#export DEPENDS_TARGET=/usr/bin/true -# don't pass -j, -k etc. to sub-makes -unset MAKEFLAGS -unset PORTSDIR -# wait 1 hour before killing build with no output -export TIMEOUT=3600 -# to prevent runaway processes -- 256 meg file size limit, one hour CPU limit -ulimit -f 524288 -ulimit -t 3600 - -# directories to clean -cleandirs="/usr/local /usr/X11R6 /compat" - -# 15 minutes -export FTP_TIMEOUT=900 -export HTTP_TIMEOUT=900 - -# ssh -x doesn't work on some machines -unset DISPLAY - -export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/X11R6/bin:. -#export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/X11R6/bin:/usr/pkg/bin:. - branch=$1 shift @@ -54,55 +21,55 @@ fi norestr=0 if [ "x$1" = "x-norestr" ]; then norestr=1 - export NO_RESTRICTED=t + export NO_RESTRICTED=1 shift fi plistcheck=0 if [ "x$1" = "x-plistcheck" ]; then plistcheck=1 - export PLISTCHECK=t + export PLISTCHECK=1 shift fi nodummy=0 if [ "x$1" = "x-nodummy" ]; then nodummy=1 - export NODUMMY=t - export MOTIF_OPEN=t - export XFREE86_VERSION=4 + export NODUMMY=1 shift fi -# these should not be necessary because OSREL is -# set in bsd.port.mk from uname's output -case ${branch} in - 5*) -# export OSREL=5.0 - export OSVERSION=500027 - # export PORTOBJFORMAT=elf - ;; - 4*) - export OSREL=4.5 - export OSVERSION=450000 - # export PORTOBJFORMAT=elf - ;; - 3*) -# export OSREL=3.5 - export OSVERSION=350001 - # export PORTOBJFORMAT=elf - ;; - *) -# export OSREL=2.2.8 - export OSVERSION=228001 - export PORTOBJFORMAT=aout - ;; -esac - args="$*" pkgname=$(basename $1 .tgz) dirname=$2 shift 2 +buildenv ${branch} + +export WRKDIRPREFIX=${scratchdir} + +# to catch missing dependencies +#export DEPENDS_TARGET=/usr/bin/true + +# don't pass -j, -k etc. to sub-makes +unset MAKEFLAGS +unset PORTSDIR + +# wait 1 hour before killing build with no output +export TIMEOUT=3600 + +# to prevent runaway processes -- 256 meg file size limit, one hour CPU limit +ulimit -f 524288 +ulimit -t 3600 + +# directories to clean +cleandirs="/usr/local /usr/X11R6 /compat" + +# 15 minutes +export FTP_TIMEOUT=900 +export HTTP_TIMEOUT=900 + +export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/X11R6/bin:. + echo "building $pkgname" chrootdir=${buildroot}/${branch}/chroot @@ -142,7 +109,7 @@ if [ ${found} != 1 ]; then cp -p /usr/bin/killall ${chroot}/usr/bin # Set up desired uname version - cp ${bakdir}/UNAME_VERSION ${chroot}/usr/bin + cp ${bakdir}/UNAME_TARGET ${chroot}/usr/bin fi |