monitoring-plugins-cyconet/check_interfaces/Makefile

17 lines
663 B
Makefile

PLUGIN := check_interfaces
CLEANFILES := check_interfaces
include ../common.mk
check_interfaces:
#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
cd src && ./configure --disable-maintainer-mode --prefix=/usr --with-nagios-user=nagios --with-nagios-group=nagios
make -C src
#sed 's,^# nagios: +epn,# nagios: -epn\n,' src/plugins-scripts/check_interfaces > $@
cp src/check_interfaces $@
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