diff options
author | kris <kris@FreeBSD.org> | 2003-01-24 12:37:29 +0800 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2003-01-24 12:37:29 +0800 |
commit | 2d4c2350875d634d1e0ca28915bc9030f4ba254f (patch) | |
tree | c6bcec423fb188d4785aa52d586b9d2f27f24d58 /Tools | |
parent | f4fc60963dc9c75b984a02726d43ff184ef01c08 (diff) | |
download | freebsd-ports-graphics-2d4c2350875d634d1e0ca28915bc9030f4ba254f.tar.gz freebsd-ports-graphics-2d4c2350875d634d1e0ca28915bc9030f4ba254f.tar.zst freebsd-ports-graphics-2d4c2350875d634d1e0ca28915bc9030f4ba254f.zip |
Sync with bento:
- Switch to using ${arch}/${branch} subdirectory instead of ${branch}
- export INDEXFILE, MACHINE_ARCH and ARCH variables
- Add (commented out) FETCH_BEFORE_ARGS setting
- Add MASTER_SITE_OVERRIDE to fetch from ftp://bento
- Zap some mouldy old unused variables
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/portbuild/scripts/buildenv | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/Tools/portbuild/scripts/buildenv b/Tools/portbuild/scripts/buildenv index 33df04b78be..e3c53822f1c 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/" } |