2011-07-25 00:12:25 +02:00
|
|
|
# builddep.pp
|
|
|
|
|
|
|
|
define apt::builddep() {
|
2012-05-04 22:35:13 +02:00
|
|
|
include apt::update
|
2011-07-25 00:12:25 +02:00
|
|
|
|
|
|
|
exec { "apt-builddep-${name}":
|
2012-06-07 23:53:41 +02:00
|
|
|
command => "/usr/bin/apt-get -y --force-yes build-dep ${name}",
|
|
|
|
logoutput => 'on_failure',
|
2014-07-06 05:09:06 +02:00
|
|
|
require => Exec['apt_update'],
|
2011-07-25 00:12:25 +02:00
|
|
|
}
|
2012-05-08 00:27:53 +02:00
|
|
|
|
|
|
|
# Need anchor to provide containment for dependencies.
|
|
|
|
anchor { "apt::builddep::${name}":
|
|
|
|
require => Class['apt::update'],
|
|
|
|
}
|
2011-07-25 00:12:25 +02:00
|
|
|
}
|