aboutsummaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2003-01-24 04:37:29 +0000
committerKris Kennaway <kris@FreeBSD.org>2003-01-24 04:37:29 +0000
commit47e798381c66d51c7ac26de113be7ec4369fe108 (patch)
treedc7839f2a82ca84e113fb04a5c77cf11b73bf78c /Tools
parent81c88c4d64630eb17e4cadb5b3680dea404bc68e (diff)
downloadports-47e798381c66d51c7ac26de113be7ec4369fe108.tar.gz
ports-47e798381c66d51c7ac26de113be7ec4369fe108.zip
Notes
Diffstat (limited to 'Tools')
-rw-r--r--Tools/portbuild/scripts/buildenv26
1 files changed, 13 insertions, 13 deletions
diff --git a/Tools/portbuild/scripts/buildenv b/Tools/portbuild/scripts/buildenv
index 33df04b78bea..e3c53822f1ce 100644
--- a/Tools/portbuild/scripts/buildenv
+++ b/Tools/portbuild/scripts/buildenv
@@ -4,21 +4,25 @@
buildenv () {
pb=$1
- branch=$2
+ arch=$2
+ branch=$3
case "x$branch" in
x4)
export PKGSUFFIX=.tgz
export PKGZIPCMD=gzip
+ export INDEXFILE=INDEX
;;
x4-exp)
export PKGSUFFIX=.tgz
export PKGZIPCMD=gzip
export PORTS_AUDIT=1
+ export INDEXFILE=INDEX
;;
x5)
export PKGSUFFIX=.tbz
export PKGZIPCMD=bzip2
+ export INDEXFILE=INDEX-5
;;
*)
echo "buildenv: invalid branch"
@@ -26,12 +30,15 @@ buildenv () {
;;
esac
+ export ARCH=${arch}
+ export MACHINE_ARCH=${arch}
+
export XFREE86_VERSION=4
# Have to use realpath because 'make index' doesn't deal with symlinks in PORTSDIR
# - kk 020311
- export PORTSDIR=$(realpath ${pb}/${branch}/ports)
- export SRCBASE=$(realpath ${pb}/${branch}/src)
+ export PORTSDIR=$(realpath ${pb}/${arch}/${branch}/ports)
+ export SRCBASE=$(realpath ${pb}/${arch}/${branch}/src)
export SRCPREFIX=${SRCBASE} #XXX Which one is canonical?
export OSVERSION=$(awk '/^#define __FreeBSD_version/ {print $3}' < ${SRCBASE}/sys/sys/param.h)
@@ -46,18 +53,11 @@ buildenv () {
export USA_RESIDENT=yes
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}/'
-
- # XXX Are these supposed to be used for release CD builds?
- #export NO_RESTRICTED=1
- #export FOR_CDROM=1
-
- # XXX Probably old and mouldy
- #export INDEX_NOSORT=1
- #export FORCE_PKG_REGISTER=1
- #export FORCE_PACKAGE=1
- #export PKG_NOCOMPRESS=1
+ export MASTER_SITE_OVERRIDE="${MASTER_SITE_OVERRIDE} ftp://bento.freebsd.org/pub/FreeBSD/distfiles/"
}