2 # Copyright (C) 2006-2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/zabbix
16 PKG_MD5SUM:=39d4c871439b1b4f0429964b4abbfc45
18 PKG_BUILD_DEPENDS:=libsqlite3
21 include $(INCLUDE_DIR)/package.mk
23 define Package/zabbix/Default
25 CATEGORY:=Administration
27 URL:=http://www.zabbix.com/
32 define Package/zabbix-agent
33 $(call Package/zabbix/Default)
37 define Package/zabbix-sender
38 $(call Package/zabbix/Default)
42 define Package/zabbix-server
43 $(call Package/zabbix/Default)
45 DEPENDS += +libsqlite3
50 CONFIG_PACKAGE_zabbix-server:=m
54 --bindir="/usr/sbin" \
57 ifneq ($(CONFIG_PACKAGE_zabbix-server),)
60 --with-sqlite3="$(STAGING_DIR)/usr"
63 MAKE_FLAGS += ARCH="linux"
65 define Package/zabbix-agent/conffiles
66 /etc/zabbix/zabbix_agentd.conf
69 define Package/zabbix-agent/install
70 $(INSTALL_DIR) $(1)/usr/sbin
71 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/zabbix_agentd $(1)/usr/sbin/
72 $(INSTALL_DIR) $(1)/etc/zabbix
73 $(INSTALL_CONF) ./files/zabbix_agentd.conf $(1)/etc/zabbix/
74 $(INSTALL_DIR) $(1)/etc/init.d
75 $(INSTALL_BIN) ./files/zabbix_agentd.init $(1)/etc/init.d/zabbix_agentd
78 define Package/zabbix-sender/install
79 $(INSTALL_DIR) $(1)/usr/sbin
80 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/zabbix_sender $(1)/usr/sbin/
81 $(INSTALL_DIR) $(1)/etc/zabbix
84 define Package/zabbix-server/conffiles
85 /etc/zabbix/zabbix_server.conf
88 define Package/zabbix-server/install
89 $(INSTALL_DIR) $(1)/usr/sbin
90 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/zabbix_server $(1)/usr/sbin/
91 $(INSTALL_DIR) $(1)/etc/zabbix
92 $(INSTALL_CONF) $(PKG_BUILD_DIR)/misc/conf/zabbix_server.conf $(1)/etc/zabbix/
95 $(eval $(call BuildPackage,zabbix-agent))
96 $(eval $(call BuildPackage,zabbix-sender))
97 $(eval $(call BuildPackage,zabbix-server))