1 # Puppet: Installer: Arch
2 # Maintainer : Hyacinthe Cartiaux <hyacinthe (dot) cartiaux (at) free (dot) fr>
3 # Contributor: Thomas S Hatch <thatch45 (at) Gmail (dot) com>
4 # Contributor: Xavion <Xavion (dot) 0 (at) Gmail (dot) com>
5 # Contributor: Miah Johnson <miah (at) chia-pet dot org>
6 # Contributor: Dave Simons <miouhpi (at) Gmail (dot) com>
11 pkgdesc="A system for automating system administration tasks."
13 url="http://puppetlabs.com/projects/puppet/"
15 depends=("ruby" "ruby-shadow" "facter")
16 backup=("etc/puppet/puppet.conf")
18 install="puppet.install"
19 source=("http://puppetlabs.com/downloads/puppet/puppet-$pkgver.tar.gz"
23 md5sums=('474c11eeb3c6fc6dabe83b2f4510d038'
24 '59dbf39e251bc4877e7604a5876c642d'
25 '4c507c580cb28d7a5adc9ea6b3626657'
26 'a6c0ce2eb12d62fdd3421aa9dff3477d')
29 cd $srcdir/puppet-$pkgver
36 --mandir=/usr/share/man
38 # Set up vim and emacs
39 install -Dp -m0644 ext/vim/ftdetect/puppet.vim $pkgdir/usr/share/vim/vimfiles/ftdetect/puppet.vim
40 install -Dp -m0644 ext/vim/syntax/puppet.vim $pkgdir/usr/share/vim/vimfiles/syntax/puppet.vim
41 install -Dp -m0644 ext/emacs/puppet-mode.el $pkgdir/usr/share/emacs/site-lisp/puppet-mode.el
42 install -Dp -m0644 ext/emacs/puppet-mode-init.el $pkgdir/usr/share/emacs/site-lisp/site-start.d/puppet-mode-init.el
44 # Configuration and rc scripts
45 install -d $pkgdir/etc/{puppet,rc.d}
46 install -m 644 $srcdir/puppet.conf $pkgdir/etc/puppet/puppet.conf
48 install -D $srcdir/puppet $pkgdir/etc/rc.d/puppet
49 install -D $srcdir/puppetmaster $pkgdir/etc/rc.d/puppetmaster
51 # Move pi to prevent file conflict
52 mv $pkgdir/usr/bin/pi $pkgdir/usr/bin/puppet-pi
54 # Copy the LICENSE file in the usual directory
55 install -d -m755 "${pkgdir}/usr/share/licenses/${pkgname}"
56 install -m 644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"