mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
- 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
This commit is contained in:
parent
81d63328b9
commit
e006d25643
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=77180
1 changed files with 22 additions and 8 deletions
|
@ -45,19 +45,33 @@ buildenv () {
|
||||||
export OSREL=$(awk 'BEGIN {FS="\""}; /^REVISION/ {print $2}' < ${SRCBASE}/sys/conf/newvers.sh)
|
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 BRANCH=$(awk 'BEGIN {FS="\""}; /^BRANCH/ {print $2}' < ${SRCBASE}/sys/conf/newvers.sh)
|
||||||
|
|
||||||
export BATCH=1
|
export __MAKE_CONF=${pb}/${arch}/make.conf
|
||||||
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
|
|
||||||
|
|
||||||
|
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 PACKAGE_BUILDING=1
|
||||||
|
|
||||||
|
export USA_RESIDENT=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
|
#export FETCH_BEFORE_ARGS=-vvv
|
||||||
|
|
||||||
# Need to make it fetch a full set say once a week to catch distfiles
|
# Need to make it fetch a full set say once a week to catch distfiles
|
||||||
# which change md5 sum but not name
|
# 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/"
|
export MASTER_SITE_OVERRIDE="${MASTER_SITE_OVERRIDE} ftp://bento.freebsd.org/pub/FreeBSD/distfiles/"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue