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}":
|
2012-03-21 14:20:13 +01:00
|
|
|
command => '/usr/bin/apt-get update',
|
2011-07-25 00:12:25 +02:00
|
|
|
refreshonly => true,
|
|
|
|
}
|
|
|
|
|
|
|
|
exec { "apt-builddep-${name}":
|
2012-05-03 18:51:14 +02:00
|
|
|
command => "/usr/bin/apt-get -y --force-yes build-dep ${name}",
|
|
|
|
notify => Exec["apt-update-${name}"],
|
2011-07-25 00:12:25 +02:00
|
|
|
}
|
|
|
|
}
|