updated on Fri Jan 13 20:02:10 UTC 2012
[aur-mirror.git] / mcollective / PKGBUILD
blob77cbe5e4c73ad446229d68eaaf1b46b86ea1e0ca
1 # vim:set ts=2 sw=2 et:
3 # Maintainer: Alexander Baldeck <kth5@smeet.com>
4 pkgname=mcollective
5 pkgver=1.3.1
6 pkgrel=1
7 pkgdesc="Framework to build server orchestration or parallel job execution systems"
8 arch=(any)
9 url="http://www.puppetlabs.com/mcollective/"
10 license=('APACHE')
11 depends=('ruby>=1.9' 'ruby-stomp')
12 source=(http://puppetlabs.com/downloads/mcollective/${pkgname}-${pkgver}.tgz
13         mcollective.init)
15 build() {
16   cd "$srcdir/$pkgname-$pkgver"
17   install -d -m0755  ${pkgdir}/usr/lib/ruby/site_ruby/mcollective
18   install -d -m0755  ${pkgdir}/usr/bin
19   install -d -m0755  ${pkgdir}/usr/sbin
20   install -d -m0755  ${pkgdir}/etc/init.d
21   install -d -m0755  ${pkgdir}/usr/libexec/mcollective/
22   install -d -m0755  ${pkgdir}/etc/mcollective
23   install -d -m0755  ${pkgdir}/etc/mcollective/plugin.d
24   install -d -m0755  ${pkgdir}/etc/mcollective/ssl
25   install -d -m0755  ${pkgdir}/etc/mcollective/ssl/clients
26   install -m0755 mcollectived.rb ${pkgdir}/usr/sbin/mcollectived
27   install -m0640 etc/server.cfg.dist ${pkgdir}/etc/mcollective/server.cfg
28   install -m0644 etc/client.cfg.dist ${pkgdir}/etc/mcollective/client.cfg
29   install -m0444 etc/facts.yaml.dist ${pkgdir}/etc/mcollective/facts.yaml
30   install -m0444 etc/rpc-help.erb ${pkgdir}/etc/mcollective/rpc-help.erb
31   
32   install -D -m0755 ${srcdir}/mcollective.init ${pkgdir}/etc/rc.d/mcollective
35   cp -R lib/* ${pkgdir}/usr/lib/ruby/site_ruby/
36   cp -R plugins/* ${pkgdir}/usr/libexec/mcollective/
37   cp mc-* ${pkgdir}/usr/sbin/
38   cp mco ${pkgdir}/usr/bin/
39   chmod 0755 ${pkgdir}/usr/sbin/*
42 md5sums=('c63901134ea66973702720861f020d3a'
43          '3e23234d4c6ae3edf6426b432427c10f')