-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathpbuilderrc.sample
37 lines (33 loc) · 1.37 KB
/
pbuilderrc.sample
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
PDEBUILD_PBUILDER="cowbuilder"
EXTRAPACKAGES="@extrapackages@"
ALLOWUNTRUSTED=yes
# List of suites
DEBIAN_SUITES=("jessie" "wheezy")
UBUNTU_SUITES=("trusty" "saucy" "raring" "quantal" "precise" "oneiric" "natty" "maverick" "lucid" "karmic" "jaunty" "hardy")
NAME="$DIST-$ARCH"
DEBOOTSTRAPOPTS=("--arch" "$ARCH" "${DEBOOTSTRAPOPTS[@]}")
DISTRIBUTION="$DIST"
MIRROR="@mirror@"
AUTOMATE_PATH="@automate_path@"
AUTOMATE_WWW_PATH="@automate_www_path@"
INSTANCE="@instance@"
INSTANCE_PATH="$AUTOMATE_PATH/instances/$INSTANCE/chroot/$NAME"
BASEPATH="$INSTANCE_PATH/base.cow/"
APTCACHE="$INSTANCE_PATH/aptcache/"
BUILDPLACE="$INSTANCE_PATH/build/"
if $(echo ${DEBIAN_SUITES[@]} | grep -q $DIST); then
# Debian configuration
MIRRORSITE="http://$MIRROR/debian/"
COMPONENTS="main contrib non-free"
DEBOOTSTRAPOPTS=("${DEBOOTSTRAPOPTS[@]}" "--keyring=/usr/share/keyrings/debian-archive-keyring.gpg")
OTHERMIRROR="deb $AUTOMATE_WWW_PATH/instances/$INSTANCE/debian/ $DIST main"
elif $(echo ${UBUNTU_SUITES[@]} | grep -q $DIST); then
# Ubuntu configuration
MIRRORSITE="http://$MIRROR/ubuntu/"
COMPONENTS="main restricted universe multiverse"
DEBOOTSTRAPOPTS=("${DEBOOTSTRAPOPTS[@]}" "--keyring=/usr/share/keyrings/ubuntu-archive-keyring.gpg")
OTHERMIRROR="deb $AUTOMATE_WWW_PATH/instances/$INSTANCE/ubuntu/ $DIST main"
else
echo "Unknown distribution: $DIST"
exit 1
fi