2010-01-02 12:14:14 +00:00
|
|
|
#
|
2012-06-24 19:03:42 +00:00
|
|
|
# Copyright (C) 2006-2012 OpenWrt.org
|
2007-01-27 17:05:02 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=zabbix
|
2012-06-24 19:03:42 +00:00
|
|
|
PKG_VERSION:=2.0.0
|
|
|
|
PKG_RELEASE:=1
|
2007-01-27 17:05:02 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2007-03-24 19:12:31 +00:00
|
|
|
PKG_SOURCE_URL:=@SF/zabbix
|
2012-06-24 19:03:42 +00:00
|
|
|
PKG_MD5SUM:=d34d398beddee0eaa999789100cf74e3
|
2007-01-27 17:05:02 +00:00
|
|
|
|
2010-02-18 13:10:21 +00:00
|
|
|
PKG_INSTALL:=1
|
2007-01-27 17:05:02 +00:00
|
|
|
|
2012-06-24 19:03:42 +00:00
|
|
|
PKG_FIXUP:=autoreconf
|
|
|
|
|
2007-01-27 17:05:02 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2012-06-24 19:03:42 +00:00
|
|
|
include $(INCLUDE_DIR)/nls.mk
|
2007-01-27 17:05:02 +00:00
|
|
|
|
|
|
|
define Package/zabbix/Default
|
|
|
|
SECTION:=admin
|
|
|
|
CATEGORY:=Administration
|
|
|
|
TITLE:=Zabbix
|
|
|
|
URL:=http://www.zabbix.com/
|
|
|
|
SUBMENU:=zabbix
|
2012-06-24 19:03:42 +00:00
|
|
|
MAINTAINER:=Mirko Vogt <mirko@openwrt.org>
|
2007-01-27 17:05:02 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/zabbix-agent
|
|
|
|
$(call Package/zabbix/Default)
|
|
|
|
TITLE+= agent
|
|
|
|
endef
|
|
|
|
|
2012-06-24 19:03:42 +00:00
|
|
|
define Package/zabbix-agentd
|
|
|
|
$(call Package/zabbix/Default)
|
|
|
|
TITLE+= agentd
|
|
|
|
endef
|
|
|
|
|
2007-01-27 17:05:02 +00:00
|
|
|
define Package/zabbix-sender
|
|
|
|
$(call Package/zabbix/Default)
|
|
|
|
TITLE+= sender
|
|
|
|
endef
|
|
|
|
|
2012-06-24 19:03:42 +00:00
|
|
|
define Package/zabbix-get
|
|
|
|
$(call Package/zabbix/Default)
|
|
|
|
TITLE+= get
|
|
|
|
endef
|
|
|
|
|
2007-01-27 17:05:02 +00:00
|
|
|
define Package/zabbix-server
|
|
|
|
$(call Package/zabbix/Default)
|
|
|
|
TITLE+= server
|
2010-01-02 12:14:14 +00:00
|
|
|
DEPENDS += +libsqlite3
|
2007-01-27 17:05:02 +00:00
|
|
|
endef
|
|
|
|
|
2012-06-24 19:03:42 +00:00
|
|
|
define Package/zabbix-proxy
|
|
|
|
$(call Package/zabbix/Default)
|
|
|
|
TITLE+= proxy
|
|
|
|
DEPENDS += +libsqlite3
|
|
|
|
endef
|
2007-02-13 13:36:13 +00:00
|
|
|
|
2010-10-14 12:41:29 +00:00
|
|
|
CONFIGURE_ARGS+= \
|
2012-06-24 19:03:42 +00:00
|
|
|
--enable-agent \
|
2007-01-27 17:05:02 +00:00
|
|
|
--enable-server \
|
2012-06-24 19:03:42 +00:00
|
|
|
--enable-proxy \
|
|
|
|
--disable-java \
|
2007-01-27 17:05:02 +00:00
|
|
|
--with-sqlite3="$(STAGING_DIR)/usr"
|
|
|
|
|
2010-02-26 10:55:00 +00:00
|
|
|
MAKE_FLAGS += ARCH="linux"
|
|
|
|
|
2012-06-24 19:03:42 +00:00
|
|
|
define Package/zabbix/install/sbin
|
|
|
|
$(INSTALL_DIR) \
|
|
|
|
$(1)/usr/sbin
|
|
|
|
|
|
|
|
$(INSTALL_BIN) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/sbin/zabbix_$(2) \
|
|
|
|
$(1)/usr/sbin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/zabbix/install/bin
|
|
|
|
$(INSTALL_DIR) \
|
|
|
|
$(1)/usr/bin
|
|
|
|
|
|
|
|
$(INSTALL_BIN) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/bin/zabbix_$(2) \
|
|
|
|
$(1)/usr/bin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/zabbix/install/etc
|
|
|
|
$(INSTALL_DIR) \
|
|
|
|
$(1)/etc
|
|
|
|
|
|
|
|
$(INSTALL_CONF) \
|
|
|
|
$(PKG_INSTALL_DIR)/etc/zabbix_$(2).conf \
|
|
|
|
$(1)/etc/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/zabbix/install/init.d
|
|
|
|
$(INSTALL_DIR) \
|
|
|
|
$(1)/etc/init.d
|
|
|
|
|
|
|
|
$(INSTALL_BIN) \
|
|
|
|
./files/zabbix_$(2).init \
|
|
|
|
$(1)/etc/init.d/zabbix_$(2)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/zabbix-$(1)/conffiles
|
|
|
|
/etc/zabbix/zabbix_$(1).conf
|
2007-01-27 17:05:02 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/zabbix-agent/install
|
2012-06-24 19:03:42 +00:00
|
|
|
$(call Package/zabbix/install/sbin,$(1),agent)
|
|
|
|
$(call Package/zabbix/install/etc,$(1),agent)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/zabbix-agentd/install
|
|
|
|
$(call Package/zabbix/install/sbin,$(1),agentd)
|
|
|
|
$(call Package/zabbix/install/etc,$(1),agentd)
|
|
|
|
$(call Package/zabbix/install/init.d,$(1),agentd)
|
2008-09-28 06:43:14 +00:00
|
|
|
endef
|
|
|
|
|
2007-01-27 17:05:02 +00:00
|
|
|
define Package/zabbix-sender/install
|
2012-06-24 19:03:42 +00:00
|
|
|
$(call Package/zabbix/install/bin,$(1),sender)
|
2007-01-27 17:05:02 +00:00
|
|
|
endef
|
|
|
|
|
2012-06-24 19:03:42 +00:00
|
|
|
define Package/zabbix-get/install
|
|
|
|
$(call Package/zabbix/install/bin,$(1),get)
|
2007-01-27 17:05:02 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/zabbix-server/install
|
2012-06-24 19:03:42 +00:00
|
|
|
$(call Package/zabbix/install/sbin,$(1),server)
|
|
|
|
$(call Package/zabbix/install/etc,$(1),server)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/zabbix-proxy/install
|
|
|
|
$(call Package/zabbix/install/sbin,$(1),proxy)
|
|
|
|
$(call Package/zabbix/install/etc,$(1),proxy)
|
2007-01-27 17:05:02 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,zabbix-agent))
|
2012-06-24 19:03:42 +00:00
|
|
|
$(eval $(call BuildPackage,zabbix-agentd))
|
2007-01-27 17:05:02 +00:00
|
|
|
$(eval $(call BuildPackage,zabbix-sender))
|
|
|
|
$(eval $(call BuildPackage,zabbix-server))
|
2012-06-24 19:03:42 +00:00
|
|
|
$(eval $(call BuildPackage,zabbix-proxy))
|
|
|
|
$(eval $(call BuildPackage,zabbix-get))
|