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