1
0
mirror of synced 2026-01-26 11:42:00 +00:00
Files
xen-tools.xen-tools/roles/builder
steve 7107b31e69 2006-08-24 20:33:07 by steve
Updated such that role scripts all live in one directory, regardless of
 the distribution to which they are meant to be applied.

  This role directory can be specified with "--roledir", or via the configuration file setting "roledir=/path/to/dir".

  See the following bug for rationale:
    http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=383822
2006-08-24 20:33:10 +00:00

45 lines
698 B
Bash
Executable File

#!/bin/sh
#
# Configure the new image to be suitable for compiling Debian packages within
#
# Steve
# --
# http://www.steve.org.uk/
#
prefix=$1
#
# This function installs a single package into the chroot, forcing
# the installation to be non-interactive.
#
function install_package
{
package=$1
DEBIAN_FRONTEND=noninteractive chroot ${prefix} /usr/bin/apt-get --yes --force-yes install $package
}
#
# Update APT lists.
#
chroot ${prefix} /usr/bin/apt-get update
#
# Install the packages
#
install_package dpkg-dev
install_package devscripts
install_package fakeroot
install_package debhelper
install_package build-essential
install_package lintian
install_package linda