diff options
author | kris <kris@FreeBSD.org> | 2003-03-23 09:26:42 +0800 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2003-03-23 09:26:42 +0800 |
commit | c5c52dffd36ccd09963802ed30fa3ecf9801aee7 (patch) | |
tree | 9009267b8e32d89744beee07885b36fc0461e248 /Tools/portbuild | |
parent | 397534fab86e05e12a95cd094232b4cde64ab58e (diff) | |
download | freebsd-ports-gnome-c5c52dffd36ccd09963802ed30fa3ecf9801aee7.tar.gz freebsd-ports-gnome-c5c52dffd36ccd09963802ed30fa3ecf9801aee7.tar.zst freebsd-ports-gnome-c5c52dffd36ccd09963802ed30fa3ecf9801aee7.zip |
- 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
Diffstat (limited to 'Tools/portbuild')
-rw-r--r-- | Tools/portbuild/scripts/buildenv | 24 |
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/" } |