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
|
#!/bin/sh
#
# Copyright 2009 Canonical Ltd. This software is licensed under the
# GNU Affero General Public License version 3 (see the file LICENSE).
# Buildd Slave initial preparation script
export PATH=/usr/bin:/bin:/usr/sbin:/sbin:${PATH}
NTPDATE=ntpdate
SUDO=sudo
PACKAGES="launchpad-buildd python-lpbuildd sbuild bzr-builder bzr git-build-recipe git dpkg-dev python-debian qemu-user-static"
KERNEL=$(uname -snrvm)
echo "Forking launchpad-buildd slave process..."
echo "Kernel version: $KERNEL"
echo -n "Buildd toolchain package versions:"
for package in $PACKAGES; do
version=$(dpkg-query -W $package 2>/dev/null | awk '{print $2}')
[ -z "$version" ] || echo -n " ${package}_${version}"
done
echo "."
if [ -f /etc/launchpad-buildd/default ]; then
eval `grep ntphost /etc/launchpad-buildd/default | sed 's/ //g'`
fi
if [ -n "$ntphost" ]; then
echo "Syncing the system clock with the buildd NTP service..."
$SUDO $NTPDATE -u $ntphost
fi
|