2014-08-24 20:14:08 +00:00
|
|
|
PLUGIN := check_nwc_health
|
|
|
|
CLEANFILES := check_nwc_health
|
|
|
|
|
|
|
|
include ../common.mk
|
|
|
|
|
|
|
|
check_nwc_health:
|
|
|
|
set -e; for i in guess sub; do if [ ! -e src/config.$$i.bak ]; then cp src/config.$$i src/config.$$i.bak; fi; done
|
|
|
|
cp /usr/share/misc/config.* src
|
2014-10-11 18:42:58 +00:00
|
|
|
cd src && ./configure --disable-maintainer-mode --prefix=/usr --with-nagios-user=nagios --with-nagios-group=nagios
|
2014-08-24 20:14:08 +00:00
|
|
|
make -C src
|
2014-09-22 17:43:19 +00:00
|
|
|
sed 's,^# nagios: +epn,# nagios: -epn\n,' src/plugins-scripts/check_nwc_health > $@
|
2014-08-24 20:14:08 +00:00
|
|
|
#cp src/plugins-scripts/check_nwc_health $@
|
|
|
|
|
|
|
|
clean::
|
|
|
|
[ ! -f src/Makefile ] || make -C src distclean
|
|
|
|
set -e; for i in guess sub; do if [ -e src/config.$$i.bak ]; then mv src/config.$$i.bak src/config.$$i; fi; done
|