a1e6f0ec132507f20fc9d7d3afe8c4b2fdf5b76e
[packages/precise/mcollective.git] / ext / solaris11 / Makefile
1 #!/usr/bin/make -f
2
3 DESTDIR=
4
5 build:
6
7 clean:
8
9 install: install-bin install-lib install-conf install-plugins # install-doc
10
11 install-bin:
12         install -d $(DESTDIR)/usr/sbin
13         install -d $(DESTDIR)/usr/bin
14         cp bin/mc-* $(DESTDIR)/usr/sbin
15         cp bin/mco $(DESTDIR)/usr/bin
16         cp bin/mcollectived $(DESTDIR)/usr/sbin/mcollectived
17         cp COPYING $(DESTDIR)/
18
19 install-lib:
20         install -d $(DESTDIR)/usr/ruby/1.8/lib/ruby/site_ruby/1.8/
21         cp -rp lib/* $(DESTDIR)/usr/ruby/1.8/lib/ruby/site_ruby/1.8/
22
23 install-conf:
24         install -d $(DESTDIR)/etc/mcollective/
25         install -d $(DESTDIR)/etc/init.d
26         cp -r etc/* $(DESTDIR)/etc/mcollective/
27         cp mcollective.init $(DESTDIR)/etc/init.d/mcollective
28         rm $(DESTDIR)/etc/mcollective/ssl/PLACEHOLDER
29         rm $(DESTDIR)/etc/mcollective/ssl/clients/PLACEHOLDER
30
31 install-plugins:
32         install -d $(DESTDIR)/usr/share/mcollective/
33         cp -rp plugins $(DESTDIR)/usr/share/mcollective/
34
35 install-doc:
36         install -d $(DESTDIR)/usr/share/doc/
37         cp -rp doc  $(DESTDIR)/usr/share/doc/mcollective
38
39 uninstall:
40         rm -f $(DESTDIR)/usr/sbin/mcollectived
41         rm -rf $(DESTDIR)/usr/ruby/1.8/lib/ruby/site_ruby/1.8/mcollective*
42         rm -rf $(DESTDIR)/usr/share/mcollective
43         rm -rf $(DESTDIR)/etc/mcollective
44
45 .PHONY: build clean install uninstall
46