1# pbuilder defaults; edit /etc/pbuilderrc to override these and see
2# pbuilderrc.5 for documentation
3
4## set e.g. ARCH=i386 to make the i386 packges on an amd64 system
5: ${ARCH:="$(dpkg --print-architecture)"}
6##
7. /etc/lsb-release
8if [ -z "$DIST" ]; then
9   DIST="$DISTRIB_CODENAME"
10fi
11NAME="$DIST"
12if [ -n "${ARCH}" ]; then
13    NAME="$NAME-$ARCH"
14    DEBOOTSTRAPOPTS=("--arch" "$ARCH" "${DEBOOTSTRAPOPTS[@]}")
15fi
16#BASETGZ=/var/cache/pbuilder/base.tgz
17BASEPATH=/var/cache/pbuilder/$NAME.cow/
18#EXTRAPACKAGES=""
19BUILDPLACE=/var/cache/pbuilder/build/
20if [ -z "$OS" ]; then
21   OS="${DISTRIB_ID,,}"
22fi
23## set OS=debian to e.g. build for debian from an ubuntu system.
24if [ "${OS,,}" = "debian" ]; then
25    MIRRORSITE=http://ftp.us.debian.org/debian
26elif [ "${OS,,}" = "ubuntu" ]; then
27    MIRRORSITE=http://archive.ubuntu.com/ubuntu
28else
29    echo "Unknown Debian OS, modify pbuilderrc to set MIRRORSITE"
30    exit 1
31fi
32
33## Disable use of local mirror
34#OTHERMIRROR="deb http://www.home.com/updates/ ./"
35#export http_proxy=http://your-proxy:8080/
36USEPROC=yes
37USEDEVPTS=yes
38USERUNSHM=yes
39USEDEVFS=no
40## All built packages are moved here
41BUILDRESULT=/var/cache/pbuilder/result/
42
43# specifying the distribution forces the distribution on "pbuilder update"
44DISTRIBUTION=$DIST
45# specifying the components of the distribution, for instance to enable all
46# components on Debian use "main contrib non-free" and on Ubuntu "main
47# restricted universe multiverse"
48COMPONENTS="main"
49#specify the cache for APT
50APTCACHE="/var/cache/pbuilder/aptcache/"
51APTCACHEHARDLINK="yes"
52REMOVEPACKAGES=""
53#HOOKDIR="/usr/lib/pbuilder/hooks"
54HOOKDIR=""
55# NB: this var is private to pbuilder; ccache uses "CCACHE_DIR" instead
56# CCACHEDIR="/var/cache/pbuilder/ccache"
57# Disable ccache since we make packages infrequently
58CCACHEDIR=""
59
60# make debconf not interact with user
61export DEBIAN_FRONTEND="noninteractive"
62
63if [ -z "$DEBFULLNAME" ]; then
64   # Replace will quoted dev name you use for commits
65   DEBFULLNAME=
66fi
67if [ -z "$DEBEMAIL" ]; then
68   # Replace will quoted dev email address
69   DEBEMAIL=
70fi
71if [ -z "$DEBFULLNAME" ] || [ -z "$DEBEMAIL" ]; then
72    echo "Both DEBFULLNAME and DEBEMAIL must be set"
73    exit 1
74fi
75#for pbuilder debuild
76BUILDSOURCEROOTCMD="fakeroot"
77PBUILDERROOTCMD="sudo -E"
78# use cowbuilder for pdebuild
79PDEBUILD_PBUILDER="cowbuilder"
80
81# additional build results to copy out of the package build area
82#ADDITIONAL_BUILDRESULTS=(xunit.xml .coverage)
83
84# command to satisfy build-dependencies; the default is an internal shell
85# implementation which is relatively slow; there are two alternate
86# implementations, the "experimental" implementation,
87# "pbuilder-satisfydepends-experimental", which might be useful to pull
88# packages from experimental or from repositories with a low APT Pin Priority,
89# and the "aptitude" implementation, which will resolve build-dependencies and
90# build-conflicts with aptitude which helps dealing with complex cases but does
91# not support unsigned APT repositories
92PBUILDERSATISFYDEPENDSCMD="/usr/lib/pbuilder/pbuilder-satisfydepends"
93
94# Arguments for $PBUILDERSATISFYDEPENDSCMD.
95# PBUILDERSATISFYDEPENDSOPT=()
96
97# You can optionally make pbuilder accept untrusted repositories by setting
98# this option to yes, but this may allow remote attackers to compromise the
99# system. Better set a valid key for the signed (local) repository with
100# $APTKEYRINGS (see below).
101ALLOWUNTRUSTED=no
102
103# Option to pass to apt-get always.
104export APTGETOPT=()
105# Option to pass to aptitude always.
106export APTITUDEOPT=()
107
108#Command-line option passed on to dpkg-buildpackage.
109#DEBBUILDOPTS="-IXXX -iXXX"
110DEBBUILDOPTS=""
111
112#APT configuration files directory
113APTCONFDIR=""
114
115# the username and ID used by pbuilder, inside chroot. Needs fakeroot, really
116BUILDUSERID=1234
117BUILDUSERNAME=pbuilder
118
119# BINDMOUNTS is a space separated list of things to mount
120# inside the chroot.
121BINDMOUNTS=""
122
123# Set the debootstrap variant to 'buildd' type.
124DEBOOTSTRAPOPTS=(
125    '--variant=buildd'
126    )
127# or unset it to make it not a buildd type.
128# unset DEBOOTSTRAPOPTS
129
130# Keyrings to use for package verification with apt, not used for debootstrap
131# (use DEBOOTSTRAPOPTS). By default the debian-archive-keyring package inside
132# the chroot is used.
133APTKEYRINGS=()
134
135# Set the PATH I am going to use inside pbuilder: default is "/usr/sbin:/usr/bin:/sbin:/bin"
136export PATH="/usr/sbin:/usr/bin:/sbin:/bin"
137
138# SHELL variable is used inside pbuilder by commands like 'su'; and they need sane values
139export SHELL=/bin/bash
140
141# The name of debootstrap command, you might want "cdebootstrap".
142DEBOOTSTRAP="debootstrap"
143
144# default file extension for pkgname-logfile
145PKGNAME_LOGFILE_EXTENTION="_$(dpkg --print-architecture).build"
146
147# default PKGNAME_LOGFILE
148PKGNAME_LOGFILE=""
149
150# default AUTOCLEANAPTCACHE
151AUTOCLEANAPTCACHE=""
152
153#default COMPRESSPROG
154COMPRESSPROG="gzip"
155