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