Want more features on Pastebin? Sign Up, it's FREE!
Guest

Puppet 2.7.3 patch

By: a guest on Sep 2nd, 2011  |  syntax: None  |  size: 2.48 KB  |  views: 96  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. PKGBUILD
  2. --------
  3. # Puppet: Installer: Arch
  4. # Maintainer: Thomas S Hatch <thatch45 (at) Gmail (dot) com>
  5. # Contributor: Xavion <Xavion (dot) 0 (at) Gmail (dot) com>
  6. # Contributor: Miah Johnson <miah (at) chia-pet dot org>
  7. # Contributor: Dave Simons <miouhpi (at) Gmail (dot) com>
  8.  
  9. pkgname=puppet
  10. pkgver=2.7.3
  11. pkgrel=2
  12. pkgdesc="A system for automating system administration tasks."
  13. arch=("any")
  14. url="http://puppetlabs.com/projects/puppet/"
  15. license=("GPL")
  16. depends=("ruby" "ruby-shadow" "facter")
  17. backup=("etc/puppet/puppet.conf")
  18. options=(emptydirs)
  19. install="puppet.install"
  20. source=("http://puppetlabs.com/downloads/puppet/puppet-$pkgver.tar.gz"
  21.         "puppet"
  22.         "puppetmaster"
  23.         "puppet.conf"
  24.         "puppet.patch")
  25. md5sums=('f60d8118ee1f3d68b2383acf3dd76d38'
  26.          '59dbf39e251bc4877e7604a5876c642d'
  27.          '4c507c580cb28d7a5adc9ea6b3626657'
  28.          'a6c0ce2eb12d62fdd3421aa9dff3477d'
  29.          '882696c5a2191a0fa02f42e7b005a20c')
  30. package() {
  31.   cd $srcdir/puppet-$pkgver
  32.   patch -p1 -i $srcdir/puppet.patch
  33.   # Install
  34.   ruby ./install.rb \
  35.     --destdir=$pkgdir \
  36.     --bindir=/usr/bin \
  37.     --sbindir=/usr/sbin \
  38.     --mandir=/usr/share/man
  39.  
  40.   # Set up vim and emacs
  41.   install -Dp -m0644 ext/vim/ftdetect/puppet.vim $pkgdir/usr/share/vim/vimfiles/ftdetect/puppet.vim
  42.   install -Dp -m0644 ext/vim/syntax/puppet.vim $pkgdir/usr/share/vim/vimfiles/syntax/puppet.vim
  43.   install -Dp -m0644 ext/emacs/puppet-mode.el $pkgdir/usr/share/emacs/site-lisp/puppet-mode.el
  44.   install -Dp -m0644 ext/emacs/puppet-mode-init.el $pkgdir/usr/share/emacs/site-lisp/site-start.d/puppet-mode-init.el
  45.  
  46.   # Configuration and rc scripts
  47.   install -d $pkgdir/etc/{puppet,rc.d}
  48.   install -m 644 $srcdir/puppet.conf $pkgdir/etc/puppet/puppet.conf
  49.  
  50.   install -D $srcdir/puppet $pkgdir/etc/rc.d/puppet
  51.   install -D $srcdir/puppetmaster $pkgdir/etc/rc.d/puppetmaster
  52.  
  53.   # Move pi to prevent file conflict
  54.   mv $pkgdir/usr/bin/pi $pkgdir/usr/bin/puppet-pi
  55. }
  56.  
  57. puppet.patch
  58. ------------
  59.  
  60. *** /lib/puppet/provider/package/pacman.rb      2011-08-06 19:18:42.000000000 +0000
  61. --- /lib/puppet/provider/package/pacman.rb      2011-09-02 05:20:07.496340193 +0000
  62. ***************
  63. *** 20,26 ****
  64.     end
  65.  
  66.     def self.listcmd
  67. !     [command(:pacman), " -Q"]
  68.     end
  69.  
  70.     # Fetch the list of packages currently installed on the system.
  71. --- 20,26 ----
  72.     end
  73.  
  74.     def self.listcmd
  75. !     command(:pacman) + " -Q"
  76.     end
  77.  
  78.     # Fetch the list of packages currently installed on the system.
clone this paste RAW Paste Data