updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / puppet / PKGBUILD
bloba6de7fefe069f4f9215f6abbecf73e0f65bb9d9d
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>
8 pkgname=puppet
9 pkgver=2.7.9
10 pkgrel=1
11 pkgdesc="A system for automating system administration tasks."
12 arch=("any")
13 url="http://puppetlabs.com/projects/puppet/"
14 license=("APACHE")
15 depends=("ruby" "ruby-shadow" "facter")
16 backup=("etc/puppet/puppet.conf")
17 options=(emptydirs)
18 install="puppet.install"
19 source=("http://puppetlabs.com/downloads/puppet/puppet-$pkgver.tar.gz"
20         "puppet"
21         "puppetmaster"
22         "puppet.conf")
23 md5sums=('474c11eeb3c6fc6dabe83b2f4510d038'
24          '59dbf39e251bc4877e7604a5876c642d'
25          '4c507c580cb28d7a5adc9ea6b3626657'
26          'a6c0ce2eb12d62fdd3421aa9dff3477d')
28 package() {
29   cd $srcdir/puppet-$pkgver
31   # Install
32   ruby ./install.rb \
33     --destdir=$pkgdir \
34     --bindir=/usr/bin \
35     --sbindir=/usr/sbin \
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
43   
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"