44c1043ce2
while doing a sysupgrade the conffile was lost because: - the path in the Makefile is incorrect - the parametrized /conffiles define doesn't seem to work for me So I added a /conffiles define for every zabbix component and corrected the path. I think the path changed while upgrading to 2.0.0. I also had an issue with "hostname" and "uname" not being present on my system, so I added selects onto these busybox-applets if the native tool is not installed. Zabbix could also call lsusb and lspci, but I think it's okay if these calls don't work on an embedded device. Additionally I deleted an old conffile "files/zabbix_agentd.conf" which is unused since changeset 32497 (level up zabbix to version 2.0.0) Signed-off-by: Stefan Hellermann <stefan@the2masters.de> Signed-off-by: Florian Fainelli <florian@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/packages@34491 3c298f89-4303-0410-b956-a3cf2f4a3e73
164 lines
3.4 KiB
Makefile
164 lines
3.4 KiB
Makefile
#
|
|
# Copyright (C) 2006-2012 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=zabbix
|
|
PKG_VERSION:=2.0.0
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=@SF/zabbix
|
|
PKG_MD5SUM:=d34d398beddee0eaa999789100cf74e3
|
|
|
|
PKG_INSTALL:=1
|
|
|
|
PKG_FIXUP:=autoreconf
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/nls.mk
|
|
|
|
define Package/zabbix/Default
|
|
SECTION:=admin
|
|
CATEGORY:=Administration
|
|
TITLE:=Zabbix
|
|
URL:=http://www.zabbix.com/
|
|
SUBMENU:=zabbix
|
|
MAINTAINER:=Mirko Vogt <mirko@openwrt.org>
|
|
endef
|
|
|
|
define Package/zabbix-agent
|
|
$(call Package/zabbix/Default)
|
|
TITLE+= agent
|
|
endef
|
|
|
|
define Package/zabbix-agentd
|
|
$(call Package/zabbix/Default)
|
|
TITLE+= agentd
|
|
endef
|
|
|
|
define Package/zabbix-sender
|
|
$(call Package/zabbix/Default)
|
|
TITLE+= sender
|
|
endef
|
|
|
|
define Package/zabbix-get
|
|
$(call Package/zabbix/Default)
|
|
TITLE+= get
|
|
endef
|
|
|
|
define Package/zabbix-server
|
|
$(call Package/zabbix/Default)
|
|
TITLE+= server
|
|
DEPENDS += +libsqlite3
|
|
endef
|
|
|
|
define Package/zabbix-proxy
|
|
$(call Package/zabbix/Default)
|
|
TITLE+= proxy
|
|
DEPENDS += +libsqlite3
|
|
endef
|
|
|
|
define Package/zabbix-agentd/config
|
|
select BUSYBOX_CONFIG_HOSTNAME if !PACKAGE_net-tools-hostname
|
|
select BUSYBOX_CONFIG_UNAME if !PACKAGE_coreutils-uname
|
|
endef
|
|
|
|
CONFIGURE_ARGS+= \
|
|
--enable-agent \
|
|
--enable-server \
|
|
--enable-proxy \
|
|
--disable-java \
|
|
--with-sqlite3="$(STAGING_DIR)/usr"
|
|
|
|
MAKE_FLAGS += ARCH="linux"
|
|
|
|
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-agent/conffiles
|
|
/etc/zabbix_agent.conf
|
|
endef
|
|
define Package/zabbix-agentd/conffiles
|
|
/etc/zabbix_agentd.conf
|
|
endef
|
|
define Package/zabbix-server/conffiles
|
|
/etc/zabbix_server.conf
|
|
endef
|
|
define Package/zabbix-proxy/conffiles
|
|
/etc/zabbix_proxy.conf
|
|
endef
|
|
|
|
define Package/zabbix-agent/install
|
|
$(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)
|
|
endef
|
|
|
|
define Package/zabbix-sender/install
|
|
$(call Package/zabbix/install/bin,$(1),sender)
|
|
endef
|
|
|
|
define Package/zabbix-get/install
|
|
$(call Package/zabbix/install/bin,$(1),get)
|
|
endef
|
|
|
|
define Package/zabbix-server/install
|
|
$(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)
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,zabbix-agent))
|
|
$(eval $(call BuildPackage,zabbix-agentd))
|
|
$(eval $(call BuildPackage,zabbix-sender))
|
|
$(eval $(call BuildPackage,zabbix-server))
|
|
$(eval $(call BuildPackage,zabbix-proxy))
|
|
$(eval $(call BuildPackage,zabbix-get))
|