blob: e3c53822f1ce2bf686eda135438d169089dcb9bb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Set up the build variables which are used by a given build
#
# Code fragment used by other scripts for commonality
buildenv () {
pb=$1
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"
exit 1
;;
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}/${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)
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 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
#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}/'
export MASTER_SITE_OVERRIDE="${MASTER_SITE_OVERRIDE} ftp://bento.freebsd.org/pub/FreeBSD/distfiles/"
}
|