1 include ..
/..
/Makefile.omd
5 JOLOKIA_VERSION
= 1.2.3
6 DIR
= $(NAME
)-$(VERSION
)
12 # for p in patches/*.patch ; do \
13 # echo "applying $$p..." ; \
14 # ( cd $(DIR) ; patch -p1 -b ) < $$p ; \
16 export PERL5LIB
=$(P5TMPDIST
)/dest
/lib
/perl5
; \
17 cd
$(DIR
) && $(PERL
) Build.PL
< /dev
/null
>build.log
2>&1
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
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
)/*