Changed arduino to use new Makefile system.
This commit is contained in:
parent
9d069e29fa
commit
62d1e908c6
2 changed files with 40 additions and 17 deletions
|
@ -12,15 +12,28 @@ class arduino {
|
|||
before => File["/usr/local/bin/arduino"],
|
||||
}
|
||||
|
||||
case $architecture {
|
||||
"x86_64": { $bits = "64" }
|
||||
default: { $bits = "32" }
|
||||
if !$arduino_package {
|
||||
case $architecture {
|
||||
"x86_64": {
|
||||
if $arduino64_package_latest {
|
||||
$arduino_package = $arduino64_package_latest
|
||||
} else {
|
||||
fail("Must define \$arduino_package or \$arduino64_package_latest")
|
||||
}
|
||||
}
|
||||
default: {
|
||||
if $arduino32_package_latest {
|
||||
$arduino_package = $arduino32_package_latest
|
||||
} else {
|
||||
fail("Must define \$arduino_package or \$arduino32_package_latest")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
file { "/usr/local/src/arduino.tgz":
|
||||
ensure => present,
|
||||
source => "puppet:///files/packages/arduino${bits}.tgz",
|
||||
links => follow,
|
||||
source => "puppet:///files/packages/${arduino_package}",
|
||||
mode => 0644,
|
||||
owner => "root",
|
||||
group => "root",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue