Update version according to OSCI-883
[packages/precise/mcollective.git] / debian / rules
1 #!/usr/bin/make -f
2
3 include /usr/share/cdbs/1/rules/debhelper.mk
4 BUILD_ROOT=$(CURDIR)/debian/tmp
5 RUBY_LIBDIR=$(shell /usr/bin/ruby -rrbconfig -e 'puts RbConfig::CONFIG["vendordir"]')
6 PLUGINDIR=/usr/share/mcollective/plugins
7 DOCDIR=$(BUILD_ROOT)/usr/share/doc/mcollective
8
9 install/mcollective::
10         /usr/bin/ruby install.rb --destdir=$(CURDIR)/debian/tmp --no-rdoc --sitelibdir=$(RUBY_LIBDIR) --ruby=/usr/bin/ruby --plugindir=$(PLUGINDIR)
11         mkdir -p $(DOCDIR)
12         cp -a doc/* $(DOCDIR)
13
14 binary-fixup/mcollective::
15         chmod 640 $(CURDIR)/debian/mcollective/etc/mcollective/server.cfg