2011-07-25 00:12:25 +02:00
|
|
|
# builddep.pp
|
|
|
|
|
|
|
|
define apt::builddep() {
|
|
|
|
|
2011-08-03 00:08:39 +02:00
|
|
|
Class['apt'] -> Apt::Builddep[$name]
|
2011-07-25 00:12:25 +02:00
|
|
|
|
|
|
|
exec { "apt-update-${name}":
|
|
|
|
command => "/usr/bin/apt-get update",
|
|
|
|
refreshonly => true,
|
|
|
|
}
|
|
|
|
|
|
|
|
exec { "apt-builddep-${name}":
|
|
|
|
command => "/usr/bin/apt-get -y --force-yes build-dep $name",
|
2011-08-03 00:08:39 +02:00
|
|
|
notify => Exec["apt-update-${name}"],
|
2011-07-25 00:12:25 +02:00
|
|
|
}
|
|
|
|
}
|