summaryrefslogtreecommitdiff
path: root/social/puppet/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-09-07 15:26:04 +0000
committerroot <root@rshg054.dnsready.net>2011-09-07 15:26:04 +0000
commit9a1a8d77ee00e49dfeef44d74b1e40a831332383 (patch)
tree8b80a03609eba8a12cbb0c48b1a31266c6bdc540 /social/puppet/PKGBUILD
parentfe769389426a6aa5a2878bf7dcfc6144717e1e93 (diff)
Wed Sep 7 15:26:04 UTC 2011
Diffstat (limited to 'social/puppet/PKGBUILD')
-rw-r--r--social/puppet/PKGBUILD52
1 files changed, 52 insertions, 0 deletions
diff --git a/social/puppet/PKGBUILD b/social/puppet/PKGBUILD
new file mode 100644
index 000000000..10338bea0
--- /dev/null
+++ b/social/puppet/PKGBUILD
@@ -0,0 +1,52 @@
+# 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.1
+pkgrel=1
+pkgdesc="A system for automating system administration tasks."
+arch=("any")
+url="http://puppetlabs.com/projects/puppet/"
+license=("Apache")
+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")
+md5sums=('7a0346758af0222dc5e2b2b1a99c44ec'
+ '59dbf39e251bc4877e7604a5876c642d'
+ '4c507c580cb28d7a5adc9ea6b3626657'
+ 'a6c0ce2eb12d62fdd3421aa9dff3477d')
+
+package() {
+ cd $srcdir/puppet-$pkgver
+
+ # 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
+}