summaryrefslogtreecommitdiff
path: root/Tools/portbuild
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2003-03-23 01:26:42 +0000
committerKris Kennaway <kris@FreeBSD.org>2003-03-23 01:26:42 +0000
commite006d25643f8c515d25917c8051e73786d2e1210 (patch)
tree776fda6191e3ee154bd6069b9251f113abb388e5 /Tools/portbuild
parentPorter Man (diff)
- 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
Notes
Notes: svn path=/head/; revision=77180
Diffstat (limited to 'Tools/portbuild')
-rw-r--r--Tools/portbuild/scripts/buildenv24
1 files changed, 19 insertions, 5 deletions
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/"
}