f9ba185828
* Remove the bundled json and systemu gems * Also patch the client.cfg.dist file in the same way as server.cfg.dist * Remove the cleanup of the subst_cmd bits due to... * Altering the example files to be installed sans .dist suffix * Adjust the PLIST to not include the now-removed gems, install the renamed example files with @sample amd also install the rc.d script merged by Matt Dainty from his mcollective port
71 lines
2.3 KiB
Plaintext
71 lines
2.3 KiB
Plaintext
$OpenBSD: patch-ext_Makefile,v 1.2 2011/12/21 19:34:28 jasper Exp $
|
|
--- ext/Makefile.orig Wed Jun 8 19:57:44 2011
|
|
+++ ext/Makefile Fri Dec 16 09:32:27 2011
|
|
@@ -1,7 +1,5 @@
|
|
#!/usr/bin/make -f
|
|
|
|
-DESTDIR=
|
|
-
|
|
build:
|
|
|
|
clean:
|
|
@@ -9,36 +7,37 @@ 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 mc-* $(DESTDIR)/usr/sbin
|
|
- cp mco $(DESTDIR)/usr/bin
|
|
- cp mcollectived.rb $(DESTDIR)/usr/sbin/mcollectived
|
|
+ install -d $(PREFIX)/sbin
|
|
+ install -d $(PREFIX)/bin
|
|
+ cp mc-* $(PREFIX)/sbin
|
|
+ cp mco $(PREFIX)/bin
|
|
+ cp mcollectived.rb $(PREFIX)/sbin/mcollectived
|
|
|
|
install-lib:
|
|
- install -d $(DESTDIR)/usr/lib/ruby/1.8/
|
|
- cp -a lib/* $(DESTDIR)/usr/lib/ruby/1.8/
|
|
+ install -d $(PREFIX)/lib/ruby/1.8/
|
|
+ cp -R lib/* $(PREFIX)/lib/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 -d $(PREFIX)/share/examples/mcollective/
|
|
+ install -d $(PREFIX)/share/examples/mcollective/plugin.d
|
|
+ install -d $(PREFIX)/share/examples/mcollective/ssl/clients
|
|
+ cp etc/client.cfg.dist $(PREFIX)/share/examples/mcollective/client.cfg
|
|
+ cp etc/server.cfg.dist $(PREFIX)/share/examples/mcollective/server.cfg
|
|
+ cp etc/facts.yaml.dist $(PREFIX)/share/examples/mcollective/facts.yaml
|
|
+ cp etc/rpc-help.erb $(PREFIX)/share/examples/mcollective
|
|
|
|
install-plugins:
|
|
- install -d $(DESTDIR)/usr/share/mcollective/
|
|
- cp -a plugins $(DESTDIR)/usr/share/mcollective/
|
|
+ install -d $(PREFIX)/share/mcollective/
|
|
+ cp -R plugins $(PREFIX)/share/mcollective/
|
|
|
|
install-doc:
|
|
- install -d $(DESTDIR)/usr/share/doc/
|
|
- cp -a doc $(DESTDIR)/usr/share/doc/mcollective
|
|
+ install -d $(PREFIX)/share/doc/
|
|
+ cp -R doc $(PREFIX)/share/doc/mcollective
|
|
|
|
uninstall:
|
|
- rm -f $(DESTDIR)/usr/sbin/mcollectived
|
|
- rm -rf $(DESTDIR)/usr/lib/ruby/1.8/mcollective*
|
|
- rm -rf $(DESTDIR)/usr/share/mcollective
|
|
- rm -rf $(DESTDIR)/etc/mcollective
|
|
+ rm -f $(PREFIX)/sbin/mcollectived
|
|
+ rm -rf $(PREFIX)/lib/ruby/1.8/mcollective*
|
|
+ rm -rf $(PREFIX)/share/mcollective
|
|
+ rm -rf $(PREFIX)/etc/mcollective
|
|
|
|
.PHONY: build clean install uninstall
|