check_logfiles: 3.7.5.1
[omd.git] / packages / jmx4perl / Makefile
blob37db0ae9e5f74b4a85291b62864b6e7254b5a8ab
1 include ../../Makefile.omd
3 NAME = jmx4perl
4 VERSION = 1.11
5 JOLOKIA_VERSION = 1.2.3
6 DIR = $(NAME)-$(VERSION)
8 .PHONY: skel
10 build:
11 tar xzf $(DIR).tar.gz
12 # for p in patches/*.patch ; do \
13 # echo "applying $$p..." ; \
14 # ( cd $(DIR) ; patch -p1 -b ) < $$p ; \
15 # done
16 export PERL5LIB=$(P5TMPDIST)/dest/lib/perl5; \
17 cd $(DIR) && $(PERL) Build.PL < /dev/null >build.log 2>&1
18 cd $(DIR) && ./Build
20 install:
21 rm -rf $(DESTDIR)$(OMD_ROOT)/skel/etc/jmx4perl
22 mkdir -p $(DESTDIR)$(OMD_ROOT)/skel/etc/jmx4perl
23 rsync -a $(DIR)/config $(DESTDIR)$(OMD_ROOT)/skel/etc/jmx4perl/
24 chmod 644 $(DESTDIR)$(OMD_ROOT)/skel/etc/jmx4perl/config/*.cfg
25 cp -p $(DIR)/blib/script/jmx4perl $(DESTDIR)$(OMD_ROOT)/bin/
26 cp -p $(DIR)/blib/script/j4psh $(DESTDIR)$(OMD_ROOT)/bin/
27 cp -p $(DIR)/blib/script/jolokia $(DESTDIR)$(OMD_ROOT)/bin/
28 [ -d $(DESTDIR)$(OMD_ROOT)/lib/nagios/plugins ] || mkdir -p $(DESTDIR)$(OMD_ROOT)/lib/nagios/plugins
29 cp -p $(DIR)/blib/script/check_jmx4perl $(DESTDIR)$(OMD_ROOT)/lib/nagios/plugins/
30 [ -d $(DESTDIR)$(OMD_ROOT)/lib/perl5/lib/perl5 ] || mkdir -p $(DESTDIR)$(OMD_ROOT)/lib/perl5/lib/perl5
31 rsync -a $(DIR)/blib/lib/ $(DESTDIR)$(OMD_ROOT)/lib/perl5/lib/perl5
32 mkdir -p $(DESTDIR)$(OMD_ROOT)/share/man/man1
33 rsync -a $(DIR)/blib/bindoc/ $(DESTDIR)$(OMD_ROOT)/share/man/man1
34 test -d $(DESTDIR)$(OMD_ROOT)/share/doc/jmx4perl || \
35 mkdir -p $(DESTDIR)$(OMD_ROOT)/share/doc/jmx4perl
36 install -m 644 README $(DESTDIR)$(OMD_ROOT)/share/doc/jmx4perl
37 # Jolokia Agents
38 rm -rf $(DESTDIR)$(OMD_ROOT)/share/jmx4perl
39 mkdir -p $(DESTDIR)$(OMD_ROOT)/share/jmx4perl/jolokia-$(JOLOKIA_VERSION)
40 rsync -a jolokia-agents/$(JOLOKIA_VERSION)/ $(DESTDIR)$(OMD_ROOT)/share/jmx4perl/jolokia-$(JOLOKIA_VERSION)/
41 chmod 644 $(DESTDIR)$(OMD_ROOT)/share/jmx4perl/jolokia-$(JOLOKIA_VERSION)/*
43 skel:
45 clean:
46 rm -rf $(DIR)