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)
56 CONFIG_PACKAGE_zabbix-server:=m
59 PKG_CONFIGURE_OPTIONS:= \
60 --bindir="/usr/sbin" \
63 ifneq ($(CONFIG_PACKAGE_zabbix-server),)
64 PKG_CONFIGURE_OPTIONS+= \
66 --with-sqlite3="$(STAGING_DIR)/usr"
69 define Build/Configure
70 $(call Build/Configure/Default, \
71 $(PKG_CONFIGURE_OPTIONS) \
76 $(MAKE) -C $(PKG_BUILD_DIR) \
77 DESTDIR="$(PKG_INSTALL_DIR)" \
81 define Package/zabbix-agent/conffiles
82 /etc/zabbix/zabbix_agentd.conf
85 define Package/zabbix-agent/install
86 $(INSTALL_DIR) $(1)/usr/sbin
87 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/zabbix_agentd $(1)/usr/sbin/
88 $(INSTALL_DIR) $(1)/etc/zabbix
89 $(INSTALL_CONF) $(PKG_BUILD_DIR)/misc/conf/zabbix_agentd.conf $(1)/etc/zabbix/
92 define Package/zabbix-sender/install
93 $(INSTALL_DIR) $(1)/usr/sbin
94 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/zabbix_sender $(1)/usr/sbin/
95 $(INSTALL_DIR) $(1)/etc/zabbix
98 define Package/zabbix-server/conffiles
99 /etc/zabbix/zabbix_server.conf
102 define Package/zabbix-server/install
103 $(INSTALL_DIR) $(1)/usr/sbin
104 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/zabbix_server $(1)/usr/sbin/
105 $(INSTALL_DIR) $(1)/etc/zabbix
106 $(INSTALL_CONF) $(PKG_BUILD_DIR)/misc/conf/zabbix_server.conf $(1)/etc/zabbix/
109 $(eval $(call BuildPackage,zabbix-agent))
110 $(eval $(call BuildPackage,zabbix-sender))
111 $(eval $(call BuildPackage,zabbix-server))