version of mcollective. Force ruby 1.8; version 1.9 is not functionnal yet. Simplify patching the config files by using a regex. Use BSD_INSTALL_* Use $RUBY in the rc script. Take maintainer. More work to come, so still not hooked to the build.
60 lines
2.2 KiB
Plaintext
60 lines
2.2 KiB
Plaintext
$OpenBSD: patch-ext_Makefile,v 1.4 2013/03/13 22:54:26 ajacoutot Exp $
|
|
--- ext/Makefile.orig Thu Jan 10 18:43:11 2013
|
|
+++ ext/Makefile Wed Mar 13 14:46:36 2013
|
|
@@ -1,7 +1,5 @@
|
|
#!/usr/bin/make -f
|
|
|
|
-DESTDIR=
|
|
-
|
|
build:
|
|
|
|
clean:
|
|
@@ -9,31 +7,30 @@ 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
|
|
+ ${BSD_INSTALL_SCRIPT} bin/mc-* $(PREFIX)/sbin
|
|
+ ${BSD_INSTALL_SCRIPT} bin/mco $(PREFIX)/bin
|
|
+ ${BSD_INSTALL_SCRIPT} bin/mcollectived $(PREFIX)/sbin/mcollectived
|
|
|
|
install-lib:
|
|
- install -d $(DESTDIR)/usr/lib/ruby/1.8/
|
|
- cp -a lib/* $(DESTDIR)/usr/lib/ruby/1.8/
|
|
+ ${BSD_INSTALL_DATA_DIR} $(PREFIX)/${MODRUBY_SITEDIR}/
|
|
+ cp -Rp lib/* $(PREFIX)/${MODRUBY_SITEDIR}/
|
|
|
|
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
|
|
+ ${BSD_INSTALL_DATA_DIR} $(PREFIX)/share/examples/mcollective/
|
|
+ ${BSD_INSTALL_DATA_DIR} $(PREFIX)/share/examples/mcollective/plugin.d
|
|
+ ${BSD_INSTALL_DATA_DIR} $(PREFIX)/share/examples/mcollective/ssl/clients
|
|
+ ${BSD_INSTALL_DATA} etc/client.cfg.dist $(PREFIX)/share/examples/mcollective/client.cfg
|
|
+ ${BSD_INSTALL_DATA} etc/server.cfg.dist $(PREFIX)/share/examples/mcollective/server.cfg
|
|
+ ${BSD_INSTALL_DATA} etc/facts.yaml.dist $(PREFIX)/share/examples/mcollective/facts.yaml
|
|
+ ${BSD_INSTALL_DATA} etc/rpc-help.erb $(PREFIX)/share/examples/mcollective
|
|
|
|
install-plugins:
|
|
- install -d $(DESTDIR)/usr/share/mcollective/
|
|
- cp -a plugins $(DESTDIR)/usr/share/mcollective/
|
|
+ ${BSD_INSTALL_DATA_DIR} $(PREFIX)/libexec/mcollective/
|
|
+ cp -Rp plugins/* $(PREFIX)/libexec/mcollective/
|
|
|
|
install-doc:
|
|
- install -d $(DESTDIR)/usr/share/doc/
|
|
- cp -a doc $(DESTDIR)/usr/share/doc/mcollective
|
|
+ ${BSD_INSTALL_DATA_DIR} $(PREFIX)/share/doc/
|
|
+ cp -Rp doc $(PREFIX)/share/doc/mcollective
|
|
|
|
uninstall:
|
|
rm -f $(DESTDIR)/usr/sbin/mcollectived
|