Updated mcollective.init according to OSCI-658
[packages/precise/mcollective.git] / ext / solaris11 / Makefile
diff --git a/ext/solaris11/Makefile b/ext/solaris11/Makefile
new file mode 100644 (file)
index 0000000..a1e6f0e
--- /dev/null
@@ -0,0 +1,46 @@
+#!/usr/bin/make -f
+
+DESTDIR=
+
+build:
+
+clean:
+
+install: install-bin install-lib install-conf install-plugins # install-doc
+
+install-bin:
+       install -d $(DESTDIR)/usr/sbin
+       install -d $(DESTDIR)/usr/bin
+       cp bin/mc-* $(DESTDIR)/usr/sbin
+       cp bin/mco $(DESTDIR)/usr/bin
+       cp bin/mcollectived $(DESTDIR)/usr/sbin/mcollectived
+       cp COPYING $(DESTDIR)/
+
+install-lib:
+       install -d $(DESTDIR)/usr/ruby/1.8/lib/ruby/site_ruby/1.8/
+       cp -rp lib/* $(DESTDIR)/usr/ruby/1.8/lib/ruby/site_ruby/1.8/
+
+install-conf:
+       install -d $(DESTDIR)/etc/mcollective/
+       install -d $(DESTDIR)/etc/init.d
+       cp -r etc/* $(DESTDIR)/etc/mcollective/
+       cp mcollective.init $(DESTDIR)/etc/init.d/mcollective
+       rm $(DESTDIR)/etc/mcollective/ssl/PLACEHOLDER
+       rm $(DESTDIR)/etc/mcollective/ssl/clients/PLACEHOLDER
+
+install-plugins:
+       install -d $(DESTDIR)/usr/share/mcollective/
+       cp -rp plugins $(DESTDIR)/usr/share/mcollective/
+
+install-doc:
+       install -d $(DESTDIR)/usr/share/doc/
+       cp -rp doc  $(DESTDIR)/usr/share/doc/mcollective
+
+uninstall:
+       rm -f $(DESTDIR)/usr/sbin/mcollectived
+       rm -rf $(DESTDIR)/usr/ruby/1.8/lib/ruby/site_ruby/1.8/mcollective*
+       rm -rf $(DESTDIR)/usr/share/mcollective
+       rm -rf $(DESTDIR)/etc/mcollective
+
+.PHONY: build clean install uninstall
+