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-05-03 18:51:14 +02:00
|
|
|
command => "/usr/bin/apt-get -y --force-yes build-dep ${name}",
|
2012-05-04 00:44:17 +02:00
|
|
|
notify => 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
|
|
|
}
|