From c5c52dffd36ccd09963802ed30fa3ecf9801aee7 Mon Sep 17 00:00:00 2001 From: kris Date: Sun, 23 Mar 2003 01:26:42 +0000 Subject: - Define __MAKE_CONF to allow per-arch make.conf files in buildworld - Set the UNAME_* variables to make use of the override support in uname(1) This allows us to get rid of the uname shell script in the build chroots - Collect some variables that are probably old and mouldy, for later GCing - If FETCH_ORIGINAL is set in the environment, don't fetch from ftp-master --- Tools/portbuild/scripts/buildenv | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) (limited to 'Tools/portbuild') diff --git a/Tools/portbuild/scripts/buildenv b/Tools/portbuild/scripts/buildenv index e3c53822f1ce..2276ab575073 100644 --- a/Tools/portbuild/scripts/buildenv +++ b/Tools/portbuild/scripts/buildenv @@ -45,19 +45,33 @@ buildenv () { export OSREL=$(awk 'BEGIN {FS="\""}; /^REVISION/ {print $2}' < ${SRCBASE}/sys/conf/newvers.sh) export BRANCH=$(awk 'BEGIN {FS="\""}; /^BRANCH/ {print $2}' < ${SRCBASE}/sys/conf/newvers.sh) + export __MAKE_CONF=${pb}/${arch}/make.conf + + export UNAME_m=${ARCH} + export UNAME_n=freebsd.org + export UNAME_p=${ARCH} + export UNAME_r=${OSREL}-${BRANCH} + export UNAME_s=FreeBSD + export UNAME_v="FreeBSD ${OSREL}-${BRANCH} #0: $(date) kris@freebsd.org:/usr/src/sys/magic/kernel/path" + export BATCH=1 - export HAVE_MOTIF=1 export PACKAGE_BUILDING=1 - export PARALLEL_PACKAGE_BUILD=1 - export PORTOBJFORMAT=elf + export USA_RESIDENT=yes - export FTP_PASSIVE_MODE=yes + # Old and mouldy? + export PORTOBJFORMAT=elf + export PARALLEL_PACKAGE_BUILD=1 + export HAVE_MOTIF=1 + + export FTP_PASSIVE_MODE=yes #export FETCH_BEFORE_ARGS=-vvv # Need to make it fetch a full set say once a week to catch distfiles # which change md5 sum but not name - export MASTER_SITE_OVERRIDE='ftp://ftp-master.freebsd.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/' + if [ "X${FETCH_ORIGINAL}" = "X" ]; then + export MASTER_SITE_OVERRIDE='ftp://ftp-master.freebsd.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/' + fi export MASTER_SITE_OVERRIDE="${MASTER_SITE_OVERRIDE} ftp://bento.freebsd.org/pub/FreeBSD/distfiles/" } -- cgit