Advertisement
Guest User

Untitled

a guest
May 23rd, 2015
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. #
  2. # Depends on: puppetlabs/stdlib
  3. #
  4. define buildsource(
  5. $dir = $title,
  6. $user = 'root',
  7. $path = '/usr/bin:/bin',
  8. $timeout = '0',
  9. $options = ''
  10. ) {
  11.  
  12. $options_real = join([$options], ' ')
  13.  
  14. Exec {
  15. user => $user,
  16. cwd => $dir,
  17. timeout => $timeout,
  18. path => $path,
  19. }
  20.  
  21. exec { "./configure in ${dir}":
  22. command => "./configure ${options_real}",
  23. } ->
  24.  
  25. exec { "make in ${dir}":
  26. command => 'make',
  27. } ->
  28.  
  29. exec { "make install in ${dir}":
  30. command => 'make install',
  31. }
  32.  
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement