summaryrefslogtreecommitdiff
path: root/sysutils/sysbuild-user/files/default.conf
blob: 5795f29e2f17364dfdfa648217437a6aecd9c163 (plain)
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
# $NetBSD: default.conf,v 1.2 2013/03/08 17:49:30 jmmv Exp $

# Configuration file for the unprivileged sysbuild user.
#
# Because the unprivileged user's purpose is solely to peform NetBSD
# system builds, we can assume that its home directory is dedicated to
# us and thus can keep a simpler directory layout.

# Place all files in the user's home directory.
BUILD_ROOT="${HOME}"
RELEASEDIR="${HOME}/release"
SRCDIR="${HOME}/src"
[ ! -f /etc/mtree/set.xbase ] || XSRCDIR="${HOME}/xsrc"

# Build for the current machine only.
MACHINES="$(uname -m)"

# What to build for every machine.
BUILD_TARGETS="release"

# Take advantage of update builds.
INCREMENTAL_BUILD="yes"

# Set CVS-related settings.
CVSROOT=":ext:anoncvs@anoncvs.NetBSD.org:/cvsroot"
if ! head -n 1 /etc/release | grep 99 >/dev/null; then
    CVSTAG="$(head -n 1 /etc/release | cut -d . -f 1 \
              | tr '[A-Z] ' '[a-z]-')"
fi

# Use as many CPUs as are available.
NJOBS="$(/sbin/sysctl -n hw.ncpuonline)"

# Push the build results to a file server.
#post_build_hook() {
#    rsync -acv --delete-after "${RELEASEDIR}/" \
#        "ssh://server.example.com/pub/NetBSD/release"
#}