~cprov/uci-engine/1335753-glance-creds

« back to all changes in this revision

Viewing changes to cupstream2distro/chroot-tools/.pbuilderrc

  • Committer: Francis Ginther
  • Date: 2014-06-10 20:42:46 UTC
  • mto: This revision was merged to the branch mainline in revision 571.
  • Revision ID: francis.ginther@canonical.com-20140610204246-b1bsrik7nlcolqy7
Import lp:cupstream2distro rev 605.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# The file is automatically picked up by the internal pbuilder call
 
2
# Just use it to create the cowbuilder with: sudo HOME=. DIST=<wanted_dist> cowbuilder --create --debootstrapopts --variant=buildd
 
3
# If you need to tweak the base.cow, use: sudo HOME=. DIST=<wanted_dist> cowbuilder --login --save
 
4
 
 
5
# Optionally set the series to the host series and
 
6
# architecture to the host architecture if none set.
 
7
: ${DIST:="$(lsb_release -sc)"}
 
8
: ${ARCH:="$(dpkg --print-architecture)"}
 
9
NAME="$DIST-$ARCH"
 
10
 
 
11
BASETGZ="/var/cache/pbuilder/$NAME-base.tgz"
 
12
BASEPATH="/var/cache/pbuilder/$NAME/base.cow" # for cowbuilder
 
13
DISTRIBUTION="$DIST"
 
14
BUILDRESULT="/var/cache/pbuilder/$NAME/result/"
 
15
APTCACHE="/var/cache/pbuilder/$NAME/aptcache/"
 
16
BUILDPLACE="/var/cache/pbuilder/build/"
 
17
 
 
18
# create the directories if doesn't exist
 
19
mkdir -p $BUILDRESULT
 
20
mkdir -p $APTCACHE
 
21
mkdir -p $BUILDPLACE
 
22
 
 
23
# use ubuntu main mirror only
 
24
# Ubuntu configuration
 
25
MIRRORSITE="http://archive.ubuntu.com/ubuntu/"
 
26
COMPONENTS="main restricted universe multiverse"
 
27
OTHERMIRROR=""
 
28
 
 
29
# Enable eatmydata
 
30
# EXTRAPACKAGES is not obeyed by 'cowbuilder --create' but running
 
31
# 'cowbuilder--update' will happily fix that.
 
32
EXTRAPACKAGES="eatmydata pbuilder bzr bzr-builddeb"
 
33
export LD_PRELOAD="${LD_PRELOAD:+$LD_PRELOAD:}/usr/lib/libeatmydata/libeatmydata.so"