1 # vim:set ts=2 sw=2 et:
3 # Maintainer: Alexander Baldeck <kth5@smeet.com>
7 pkgdesc="Framework to build server orchestration or parallel job execution systems"
9 url="http://www.puppetlabs.com/mcollective/"
11 depends=('ruby>=1.9' 'ruby-stomp')
12 source=(http://puppetlabs.com/downloads/mcollective/${pkgname}-${pkgver}.tgz
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
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')