check_oracle_health: update to 1.9.3.5
[omd.git] / packages / nagios-plugins / Makefile
blob1888d7f8d468078fee02fc89364ba21fa167ea72
1 include ../../Makefile.omd
3 NAME = nagios-plugins
4 VERSION = 1.5
5 DIR = $(NAME)-$(VERSION)
7 CONFIGUREOPTS = \
8 --prefix=$(OMD_ROOT) \
9 --libexecdir=$(OMD_ROOT)/lib/nagios/plugins
11 build:
12 tar xzf $(DIR).tar.gz
13 #set -e ; for p in patches/*.dif ; do \
14 # echo "applying $$p..." ; \
15 # ( cd $(DIR) ; patch -p1 -b ) < $$p ; \
16 #done
17 cd $(DIR) ; ./configure $(CONFIGUREOPTS)
18 $(MAKE) -C $(DIR) all
20 install:
21 $(MAKE) DESTDIR=$(DESTDIR) -C $(DIR) install
22 # FIXME: pack these with SUID root
23 install -m 755 $(DIR)/plugins-root/check_icmp $(DESTDIR)$(OMD_ROOT)/lib/nagios/plugins
24 install -m 755 $(DIR)/plugins-root/check_dhcp $(DESTDIR)$(OMD_ROOT)/lib/nagios/plugins
25 ln -s check_icmp $(DESTDIR)$(OMD_ROOT)/lib/nagios/plugins/check_host
27 # Copy package documentations to have these information in the binary packages
28 mkdir -p $(DESTDIR)$(OMD_ROOT)/share/doc/$(NAME)
29 for file in ACKNOWLEDGEMENTS AUTHORS BUGS CODING COPYING FAQ LEGAL NEWS README REQUIREMENTS SUPPORT THANKS ; do \
30 install -m 644 $(DIR)/$$file $(DESTDIR)$(OMD_ROOT)/share/doc/$(NAME); \
31 done
33 # link lib/nagios/plugins to lib/icinga/plugins
34 if [ -d "$(DESTDIR)$(OMD_ROOT)/lib/icinga" ] ; then \
35 cd $(DESTDIR)$(OMD_ROOT)/lib/icinga && ln -s ../nagios/plugins plugins ; \
38 skel:
40 clean:
41 rm -rf $(DIR)