X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=ext%2Fopenbsd%2Fport-files%2Fmcollective%2Fpatches%2Fpatch-ext_Makefile;fp=ext%2Fopenbsd%2Fport-files%2Fmcollective%2Fpatches%2Fpatch-ext_Makefile;h=26e2616ae7c2ac4a7203ea47e33b35b133e47273;hb=b87d2f4e68281062df1913440ca5753ae63314a9;hp=0000000000000000000000000000000000000000;hpb=ab0ea530b8ac956091f17b104ab2311336cfc250;p=packages%2Fprecise%2Fmcollective.git diff --git a/ext/openbsd/port-files/mcollective/patches/patch-ext_Makefile b/ext/openbsd/port-files/mcollective/patches/patch-ext_Makefile new file mode 100644 index 0000000..26e2616 --- /dev/null +++ b/ext/openbsd/port-files/mcollective/patches/patch-ext_Makefile @@ -0,0 +1,67 @@ +diff --git ext/Makefile ext/Makefile +index 029fda4..638d7a5 100644 +--- ext/Makefile ++++ ext/Makefile +@@ -1,6 +1,5 @@ + #!/usr/bin/make -f + +-DESTDIR= + + build: + +@@ -9,36 +8,34 @@ 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 ++ install -d $(PREFIX)/sbin ++ install -d $(PREFIX)/bin ++ cp bin/mc-* $(PREFIX)/sbin ++ cp bin/mco $(PREFIX)/bin ++ cp bin/mcollectived $(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/ ++ cp -R etc/* $(PREFIX)/share/examples/mcollective/ ++ rm $(PREFIX)/share/examples/mcollective/ssl/PLACEHOLDER ++ rm $(PREFIX)/share/examples/mcollective/ssl/clients/PLACEHOLDER + + 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)/share/examples/mcollective + + .PHONY: build clean install uninstall