1 include ..
/..
/Makefile.omd
5 DIR
= $(NAME
)-$(VERSION
)
9 --libexecdir
=$(OMD_ROOT
)/lib
/nagios
/plugins
13 #set -e ; for p in patches/*.dif ; do \
14 # echo "applying $$p..." ; \
15 # ( cd $(DIR) ; patch -p1 -b ) < $$p ; \
17 cd
$(DIR
) ; .
/configure
$(CONFIGUREOPTS
)
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
); \
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
; \