/usr/sbin/rebuildd-init-build-system is in rebuildd 0.4.2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
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 66 | #! /bin/bash
# Exit on errors
set -e
# Use pbuilder by default
PBUILDER_BIN="/usr/sbin/pbuilder"
PBUILDER_CACHE_PATH="/var/cache/pbuilder"
PBUILDER_MIRROR="http://ftp.debian.org/debian"
PBUILDER_OTHER_OPTIONS=()
if [ -f /etc/default/rebuildd ]
then
unset PBUILDER_BIN
. /etc/default/rebuildd
fi
pbuilder_create ()
{
if [ ! -x "$PBUILDER_BIN" ]
then
echo "E: pbuilder not found: $PBUILDER_BIN"
exit 1
fi
for d in $DISTS
do
for a in $ARCHS
do
echo "I: Initializing pbuilder for ${d}-${a}"
$PBUILDER_BIN create --debootstrapopts --arch=$a --basetgz $PBUILDER_CACHE_PATH/${d}-${a}.tgz --distribution $d --mirror $PBUILDER_MIRROR "${PBUILDER_OTHER_OPTIONS[@]}"
done
done
echo "I: Init done, please remember to set rebuildd configuration to the correct value:"
echo "build_cmd = pbuilder build --basetgz $PBUILDER_CACHE_PATH/\${d}-\${a}.tgz \${p}_\${v}.dsc"
}
cowbuilder_create ()
{
if [ ! -x "$COWBUILDER_BIN" ]
then
echo "E: cowbuilder not found: $COWBUILDER_BIN"
exit 1
fi
for d in $DISTS
do
for a in $ARCHS
do
echo "I: Initializing cowbuilder for ${d}-${a}"
$COWBUILDER_BIN --create --debootstrapopts --arch=$a --basepath $PBUILDER_CACHE_PATH/${d}-${a}.cow --distribution $d --mirror $PBUILDER_MIRROR "${PBUILDER_OTHER_OPTIONS[@]}"
done
done
echo "I: Init done, please remember to set rebuildd configuration to the correct value:"
echo "build_cmd = cowbuilder --build --basepath $PBUILDER_CACHE_PATH/\${d}-\${a}.cow \${p}_\${v}.dsc"
}
if [ ! -z "$COWBUILDER_BIN" ]
then
cowbuilder_create
else
pbuilder_create
fi
|