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
14 PKG_MD5SUM
:=698a07f4e53820e44ef4a72c7c191e92
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
17 PKG_SOURCE_URL
:=http
://kent.dl.sourceforge.net
/sourceforge
/zabbix
/
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
21 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
23 PKG_BUILD_DEPENDS
:=libsqlite3
25 include $(INCLUDE_DIR
)/package.mk
27 define Package
/zabbix
/Default
29 CATEGORY
:=Administration
32 ZABBIX is an enterprise-class distributed monitoring solution for networks
\\\
33 and applications. Native high-performance ZABBIX agents allow monitoring of
\\\
34 performance and availability data of
all operating systems.
35 URL
:=http
://www.zabbix.com
/
39 define Package
/zabbix-agent
40 $(call Package
/zabbix
/Default
)
44 define Package
/zabbix-sender
45 $(call Package
/zabbix
/Default
)
49 define Package
/zabbix-server
50 $(call Package
/zabbix
/Default
)
57 CONFIG_PACKAGE_zabbix-server
:=m
60 PKG_CONFIGURE_OPTIONS
:= \
61 --bindir="/usr/sbin" \
64 ifneq ($(CONFIG_PACKAGE_zabbix-server
),)
65 PKG_CONFIGURE_OPTIONS
+= \
67 --with-sqlite3
="$(STAGING_DIR)/usr"
70 define Build
/Configure
71 $(call Build
/Configure
/Default
, \
72 $(PKG_CONFIGURE_OPTIONS
) \
77 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
78 DESTDIR
="$(PKG_INSTALL_DIR)" \
82 define Package
/zabbix-agent
/conffiles
83 /etc
/zabbix
/zabbix_agentd.conf
86 define Package
/zabbix-agent
/install
87 $(INSTALL_DIR
) $(1)/usr
/sbin
88 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/zabbix_agentd
$(1)/usr
/sbin
/
89 $(INSTALL_DIR
) $(1)/etc
/zabbix
90 $(INSTALL_CONF
) $(PKG_BUILD_DIR
)/misc
/conf
/zabbix_agentd.conf
$(1)/etc
/zabbix
/
93 define Package
/zabbix-sender
/install
94 $(INSTALL_DIR
) $(1)/usr
/sbin
95 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/zabbix_sender
$(1)/usr
/sbin
/
96 $(INSTALL_DIR
) $(1)/etc
/zabbix
99 define Package
/zabbix-server
/conffiles
100 /etc
/zabbix
/zabbix_server.conf
103 define Package
/zabbix-server
/install
104 $(INSTALL_DIR
) $(1)/usr
/sbin
105 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/zabbix_server
$(1)/usr
/sbin
/
106 $(INSTALL_DIR
) $(1)/etc
/zabbix
107 $(INSTALL_CONF
) $(PKG_BUILD_DIR
)/misc
/conf
/zabbix_server.conf
$(1)/etc
/zabbix
/
110 $(eval
$(call BuildPackage
,zabbix-agent
))
111 $(eval
$(call BuildPackage
,zabbix-sender
))
112 $(eval
$(call BuildPackage
,zabbix-server
))