2016-04-06 14:25:10 +02:00
|
|
|
# Zabbix agent framework makefile
|
|
|
|
|
2016-06-17 11:58:43 +02:00
|
|
|
all: help
|
|
|
|
|
|
|
|
help:
|
|
|
|
@echo make '{deb|arch|ipk|rpm}' '[PLUGINS="/dir/plg1 [/dir2]...] [IPLUGINS="plg1 [plg2]..."] [ZAF_OPTIONS="ZAF_cfg=val ..."] [AGENT_OPTIONS="Z_Server=host ..."]'
|
|
|
|
@echo PLUGINS are embedded into package. Has to be local directories accessible during build.
|
|
|
|
@echo IPLUGINS will be downloaded and installed after package is installed. Can be name or url accessible after package installation.
|
|
|
|
@echo
|
|
|
|
|
|
|
|
include deb.mk
|
|
|
|
include arch.mk
|
|
|
|
include ipk.mk
|
|
|
|
include rpm.mk
|
|
|
|
|
2016-04-06 14:25:10 +02:00
|
|
|
CONTROLFILES=$(foreach p,$(PLUGINS),$(p)/control.zaf)
|
|
|
|
ZAF_EXPORT_OPTS=$(foreach o,$(ZAF_OPTIONS),$(shell echo $(o)|cut -d '=' -f 1))
|
2016-06-17 11:58:43 +02:00
|
|
|
|
2016-04-12 15:28:29 +02:00
|
|
|
ifeq ($(ZAF_DEBUG),)
|
|
|
|
ZAF_DEBUG=0
|
|
|
|
endif
|
2016-04-12 10:36:17 +02:00
|
|
|
|
|
|
|
ifeq ($(ZAF_OPTIONS),)
|
|
|
|
ZAF_OPTIONS = ZAF_GIT=0
|
|
|
|
endif
|
|
|
|
ifeq ($(IPLUGINS),)
|
|
|
|
IPLUGINS = zaf
|
|
|
|
endif
|
2016-04-06 14:25:10 +02:00
|
|
|
|
2016-06-17 11:58:43 +02:00
|
|
|
deb: $(DEBIAN_PKG)
|
2016-04-12 10:36:17 +02:00
|
|
|
|
2016-06-17 11:58:43 +02:00
|
|
|
arch: $(ARCH_PKG)
|
2016-04-06 14:25:10 +02:00
|
|
|
|
2016-06-17 11:58:43 +02:00
|
|
|
rpm: $(RPM_PKG)
|
2016-06-16 08:03:39 +02:00
|
|
|
|
2016-06-17 11:58:43 +02:00
|
|
|
ipk: $(IPK_PKG)
|
2016-04-12 10:36:17 +02:00
|
|
|
|
|
|
|
clean:
|
|
|
|
@rm -rf tmp/* out/*
|
2016-04-06 14:25:10 +02:00
|
|
|
|
2016-06-16 08:03:39 +02:00
|
|
|
|