check_logfiles: 3.7.5.1
[omd.git] / packages / nsca / Makefile
blob2ce2671aff782f1f9a0ee5d53a48c0e116d9f39d
1 include ../../Makefile.omd
3 NAME = nsca
4 VERSION = 2.9.1
5 DIR = $(NAME)-$(VERSION)
7 .PHONY: skel
9 # Configure options for Nagios. Since we want to compile
10 # as non-root, we use our own user and group for compiling.
11 # All files will be packaged as user 'root' later anyway.
12 CONFIGUREOPTS = ""
14 build:
15 tar xzf $(DIR).tar.gz
16 for p in patches/*.diff ; do \
17 echo "applying $$p..." ; \
18 ( cd $(DIR) ; patch -p1 -b ) < $$p ; \
19 done
20 cd $(DIR) ; ./configure $(CONFIGUREOPTS)
21 $(MAKE) -C $(DIR) all
23 install:
24 install -m 755 $(DIR)/src/nsca $(DESTDIR)$(OMD_ROOT)/bin
25 install -m 755 $(DIR)/src/send_nsca $(DESTDIR)$(OMD_ROOT)/bin
27 mkdir $(DESTDIR)$(OMD_ROOT)/share/doc/nsca
28 install -m 644 $(DIR)/README $(DESTDIR)$(OMD_ROOT)/share/doc/nsca
29 install -m 644 $(DIR)/LEGAL $(DESTDIR)$(OMD_ROOT)/share/doc/nsca
30 install -m 644 $(DIR)/SECURITY $(DESTDIR)$(OMD_ROOT)/share/doc/nsca
32 skel:
34 clean:
35 rm -rf $(DIR)