summaryrefslogtreecommitdiff
path: root/home/.pbuilderrc
blob: b61d0b1132e963220d25d03b0abb3dda553929ea (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
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
64
65
#!/bin/bash

set -x

BASEDIRECTORY="/srv/pbuilder/cache"

DIST=${DIST:-debian}
CODENAME=${CODENAME:-sid}
ARCH=${ARCH:-amd64}
COMPONENT="${COMPONENT:-nightly}"

# pbuilder options
BASETGZ="$BASEDIRECTORY/base-$DIST-$CODENAME-$ARCH.tgz"
DISTRIBUTION="$CODENAME"
BUILDRESULT="$BASEDIRECTORY/$DIST-$CODENAME-$ARCH/result/"
APTCACHE="$BASEDIRECTORY/$DIST-$CODENAME-$ARCH/aptcache/"

BUILDRESULTUID=$(id -u)
BUILDRESULTGID=$(id -g)

# this needs to be disabled
CCACHEDIR=
APTCACHEHARDLINK="yes"
USE_DEBUILD_INTERNAL="yes"
PRESERVE_BUILDPLACE="yes"

ARCHITECTURE="$ARCH"

# pbuilder-uml option
UML_DISTRIBUTION="$CODENAME"

# qemubuilder options
BASEPATH="$BASEDIRECTORY/base-$DIST-$CODENAME-$ARCH.qemu"
if [ -e "/srv/pbuilder/qemu-kernels/$ARCH/vmlinuz.$CODENAME" ]; then
	KERNEL_IMAGE=/srv/pbuilder/qemu-kernels/$ARCH/vmlinuz.$CODENAME
	INITRD=/srv/pbuilder/qemu-kernels/$ARCH/initrd.img.$CODENAME
else
	KERNEL_IMAGE=/srv/pbuilder/qemu-kernels/$ARCH/vmlinuz
	INITRD=/srv/pbuilder/qemu-kernels/$ARCH/initrd.img
fi

ARCH_DISKDEVICE=sd
if [ "x$ARCH" = "xarmel" ]; then
	MEMORY_MEGS=256
	INITRD=
else
	SMP="2"
	MEMORY_MEGS=512
fi

if [ "x${DIST}" = "xubuntu" ]; then 
	if [ "x$ARCH" = "xarmel" ] || [ "x$ARCH" = "xpowerpc" ]; then
		MIRRORSITE="http://localhost:3142/ports.ubuntu.com/"
	else
	        MIRRORSITE="http://localhost:3142/ubuntu"
	fi
elif [ "x${DIST}" = "xdebian" ]; then
	if [ "x${CODENAME}" = "xlenny" ]; then
		MIRRORSITE="http://localhost:3142/archive.debian.org/debian"
	else
	        MIRRORSITE="http://localhost:3142/debian"
	fi
fi

EXTRA_ARCHS=armel