Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PKGBUILD
- --------
- # Puppet: Installer: Arch
- # Maintainer: Thomas S Hatch <thatch45 (at) Gmail (dot) com>
- # Contributor: Xavion <Xavion (dot) 0 (at) Gmail (dot) com>
- # Contributor: Miah Johnson <miah (at) chia-pet dot org>
- # Contributor: Dave Simons <miouhpi (at) Gmail (dot) com>
- pkgname=puppet
- pkgver=2.7.3
- pkgrel=2
- pkgdesc="A system for automating system administration tasks."
- arch=("any")
- url="http://puppetlabs.com/projects/puppet/"
- license=("GPL")
- depends=("ruby" "ruby-shadow" "facter")
- backup=("etc/puppet/puppet.conf")
- options=(emptydirs)
- install="puppet.install"
- source=("http://puppetlabs.com/downloads/puppet/puppet-$pkgver.tar.gz"
- "puppet"
- "puppetmaster"
- "puppet.conf"
- "puppet.patch")
- md5sums=('f60d8118ee1f3d68b2383acf3dd76d38'
- '59dbf39e251bc4877e7604a5876c642d'
- '4c507c580cb28d7a5adc9ea6b3626657'
- 'a6c0ce2eb12d62fdd3421aa9dff3477d'
- '882696c5a2191a0fa02f42e7b005a20c')
- package() {
- cd $srcdir/puppet-$pkgver
- patch -p1 -i $srcdir/puppet.patch
- # Install
- ruby ./install.rb \
- --destdir=$pkgdir \
- --bindir=/usr/bin \
- --sbindir=/usr/sbin \
- --mandir=/usr/share/man
- # Set up vim and emacs
- install -Dp -m0644 ext/vim/ftdetect/puppet.vim $pkgdir/usr/share/vim/vimfiles/ftdetect/puppet.vim
- install -Dp -m0644 ext/vim/syntax/puppet.vim $pkgdir/usr/share/vim/vimfiles/syntax/puppet.vim
- install -Dp -m0644 ext/emacs/puppet-mode.el $pkgdir/usr/share/emacs/site-lisp/puppet-mode.el
- install -Dp -m0644 ext/emacs/puppet-mode-init.el $pkgdir/usr/share/emacs/site-lisp/site-start.d/puppet-mode-init.el
- # Configuration and rc scripts
- install -d $pkgdir/etc/{puppet,rc.d}
- install -m 644 $srcdir/puppet.conf $pkgdir/etc/puppet/puppet.conf
- install -D $srcdir/puppet $pkgdir/etc/rc.d/puppet
- install -D $srcdir/puppetmaster $pkgdir/etc/rc.d/puppetmaster
- # Move pi to prevent file conflict
- mv $pkgdir/usr/bin/pi $pkgdir/usr/bin/puppet-pi
- }
- puppet.patch
- ------------
- *** /lib/puppet/provider/package/pacman.rb 2011-08-06 19:18:42.000000000 +0000
- --- /lib/puppet/provider/package/pacman.rb 2011-09-02 05:20:07.496340193 +0000
- ***************
- *** 20,26 ****
- end
- def self.listcmd
- ! [command(:pacman), " -Q"]
- end
- # Fetch the list of packages currently installed on the system.
- --- 20,26 ----
- end
- def self.listcmd
- ! command(:pacman) + " -Q"
- end
- # Fetch the list of packages currently installed on the system.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement