2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://kent.dl.sourceforge.net
/sourceforge
/zabbix
/
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
20 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
22 PKG_BUILD_DEPENDS
:=libsqlite3
24 include $(INCLUDE_DIR
)/package.mk
26 define Package
/zabbix
/Default
28 CATEGORY
:=Administration
31 ZABBIX is an enterprise-class distributed monitoring solution for networks
\\\
32 and applications. Native high-performance ZABBIX agents allow monitoring of
\\\
33 performance and availability data of
all operating systems.
34 URL
:=http
://www.zabbix.com
/
38 define Package
/zabbix-agent
39 $(call Package
/zabbix
/Default
)
43 define Package
/zabbix-sender
44 $(call Package
/zabbix
/Default
)
48 define Package
/zabbix-server
49 $(call Package
/zabbix
/Default
)
54 PKG_CONFIGURE_OPTIONS
:= \
55 --bindir="/usr/sbin" \
58 ifneq ($(CONFIG_PACKAGE_zabbix-server
),)
59 PKG_CONFIGURE_OPTIONS
+= \
61 --with-sqlite3
="$(STAGING_DIR)/usr"
64 define Build
/Configure
65 $(call Build
/Configure
/Default
, \
66 $(PKG_CONFIGURE_OPTIONS
) \
71 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
72 DESTDIR
="$(PKG_INSTALL_DIR)" \
76 define Package
/zabbix-agent
/conffiles
77 /etc
/zabbix
/zabbix_agentd.conf
80 define Package
/zabbix-agent
/install
81 $(INSTALL_DIR
) $(1)/usr
/sbin
82 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/zabbix_agentd
$(1)/usr
/sbin
/
83 $(INSTALL_DIR
) $(1)/etc
/zabbix
84 $(INSTALL_CONF
) $(PKG_BUILD_DIR
)/misc
/conf
/zabbix_agentd.conf
$(1)/etc
/zabbix
/
87 define Package
/zabbix-sender
/install
88 $(INSTALL_DIR
) $(1)/usr
/sbin
89 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/zabbix_sender
$(1)/usr
/sbin
/
90 $(INSTALL_DIR
) $(1)/etc
/zabbix
93 define Package
/zabbix-server
/conffiles
94 /etc
/zabbix
/zabbix_server.conf
97 define Package
/zabbix-server
/install
98 $(INSTALL_DIR
) $(1)/usr
/sbin
99 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/zabbix_server
$(1)/usr
/sbin
/
100 $(INSTALL_DIR
) $(1)/etc
/zabbix
101 $(INSTALL_CONF
) $(PKG_BUILD_DIR
)/misc
/conf
/zabbix_server.conf
$(1)/etc
/zabbix
/
104 $(eval
$(call BuildPackage
,zabbix-agent
))
105 $(eval
$(call BuildPackage
,zabbix-sender
))
106 $(eval
$(call BuildPackage
,zabbix-server
))