Update version according to OSCI-856
[packages/precise/mcollective.git] / ext / debian / patches / makefile.dpatch
1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## makefile.dpatch by  <giskard@debian.org
3 ##
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: Add Makefile for install task
6
7 @DPATCH@
8 diff -urNad mcollective-0.4.1~/Makefile mcollective-0.4.1/Makefile
9 --- mcollective-0.4.1~/Makefile 1970-01-01 00:00:00.000000000 +0000
10 +++ mcollective-0.4.1/Makefile  2010-01-06 13:43:56.000000000 +0000
11 @@ -0,0 +1,38 @@
12 +#!/usr/bin/make -f
13 +
14 +DESTDIR=
15 +
16 +clean:
17 +
18 +install: install-bin install-lib install-conf install-plugins install-doc
19 +       
20 +install-bin:
21 +       install -d $(DESTDIR)/usr/sbin
22 +       cp mc-* $(DESTDIR)/usr/sbin
23 +       cp mcollectived.rb $(DESTDIR)/usr/sbin/mcollectived
24 +
25 +install-lib:
26 +       install -d $(DESTDIR)/usr/lib/ruby/vendor_ruby/
27 +       cp -a lib/* $(DESTDIR)/usr/lib/ruby/vendor_ruby/
28 +
29 +install-conf:
30 +       install -d $(DESTDIR)/etc/mcollective/
31 +       install -d $(DESTDIR)/etc/init.d
32 +       cp etc/* $(DESTDIR)/etc/mcollective/
33 +       cp mcollective.init $(DESTDIR)/etc/init.d/mcollective
34 +
35 +install-plugins:
36 +       install -d $(DESTDIR)/usr/share/mcollective/
37 +       cp -a plugins $(DESTDIR)/usr/share/mcollective/
38 +
39 +install-doc:
40 +       install -d $(DESTDIR)/usr/share/doc/
41 +       cp -a doc  $(DESTDIR)/usr/share/doc/mcollective
42 +
43 +uninstall:
44 +       rm -f $(DESTDIR)/usr/sbin/mcollectived
45 +       rm -rf $(DESTDIR)/usr/lib/ruby/vendor_ruby/mcollective*
46 +       rm -rf $(DESTDIR)/usr/share/mcollective
47 +       rm -rf $(DESTDIR)/etc/mcollective
48 +
49 +.PHONY: clean install uninstall