package/utils/collectd:

- fix compilation (detection of libxml2 fails because it's not linked against zlib during configure stage)
	- prepare support for sensors and nut plugin, needs work and is marked as broken atm
	- add build dependencies
	- bump package revision


git-svn-id: svn://svn.openwrt.org/openwrt/packages@13304 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
jow 2008-11-20 23:20:35 +00:00
parent 4ed3e0407c
commit 7fec657b5c

View File

@ -10,13 +10,14 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=collectd PKG_NAME:=collectd
PKG_VERSION:=4.4.4 PKG_VERSION:=4.4.4
PKG_RELEASE:=1 PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=http://collectd.org/files/ PKG_SOURCE_URL:=http://collectd.org/files/
PKG_MD5SUM:=9e0e89150b1ff28fc0fdd8a198c9ac5e PKG_MD5SUM:=9e0e89150b1ff28fc0fdd8a198c9ac5e
PKG_FIXUP=libtool PKG_FIXUP=libtool
PKG_BUILD_DEPENDS:=+libxml2 +libnetsnmp +libcurl +librrd1
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
@ -172,6 +173,12 @@ define Package/collectd-mod-ntpd
DEPENDS:=collectd DEPENDS:=collectd
endef endef
define Package/collectd-mod-nut
$(call Package/collectd/common_info)
TITLE:=collectd - UPS monitoring input plugin
DEPENDS:=collectd @BROKEN
endef
define Package/collectd-mod-ping define Package/collectd-mod-ping
$(call Package/collectd/common_info) $(call Package/collectd/common_info)
TITLE:=collectd - ping status input plugin TITLE:=collectd - ping status input plugin
@ -197,6 +204,12 @@ define Package/collectd-mod-rrdtool1
DEPENDS:=collectd +librrd1 DEPENDS:=collectd +librrd1
endef endef
define Package/collectd-mod-sensors
$(call Package/collectd/common_info)
TITLE:=collectd - lm_sensors input plugin
DEPENDS:=collectd +libsensors @BROKEN
endef
define Package/collectd-mod-snmp define Package/collectd-mod-snmp
$(call Package/collectd/common_info) $(call Package/collectd/common_info)
TITLE:=collectd - snmp input plugin TITLE:=collectd - snmp input plugin
@ -271,12 +284,12 @@ CONFIGURE_VARS+= \
# list of permanently disabled plugins # list of permanently disabled plugins
disabled_plugins := apple_sensors battery cpufreq entropy hddtemp ipmi ipvs libvirt mbmon memcached \ disabled_plugins := apple_sensors battery cpufreq entropy hddtemp ipmi ipvs libvirt mbmon memcached \
multimeter mysql nfs nut perl sensors serial swap tape uuid vserver xmms multimeter mysql nfs perl serial swap tape uuid vserver xmms
# list of selectable plugins # list of selectable plugins
selectable_plugins := apache apcups ascent cpu csv df disk dns email exec interface iptables irq load \ selectable_plugins := apache apcups ascent cpu csv df disk dns email exec interface iptables irq load \
logfile memory netlink network nginx ntpd ping powerdns processes snmp \ logfile memory netlink network nginx ntpd nut ping powerdns processes sensors \
syslog tail tcpconns teamspeak2 unixsock users vmem wireless snmp syslog tail tcpconns teamspeak2 unixsock users vmem wireless
# makro to enable / disable plugin # makro to enable / disable plugin
define enable_plugin define enable_plugin
@ -301,7 +314,7 @@ endif
# exception: mod-rrdtool(1) needs rrdtool # exception: mod-rrdtool(1) needs rrdtool
ifneq ($(CONFIG_PACKAGE_collectd-mod-rrdtool1),) ifneq ($(CONFIG_PACKAGE_collectd-mod-rrdtool1),)
PKG_CONFIGURE_OPTS += --with-rrdtool=$(wildcard $(BUILD_DIR)/rrdtool-1.0.*) PKG_CONFIGURE_OPTS += --with-rrdtool=$(wildcard $(BUILD_DIR)/rrdtool-1.0.*)
TARGET_LDFLAGS := -L$(wildcard $(BUILD_DIR)/rrdtool-1.0.*)/src/.libs $(TARGET_LDFLAGS) TARGET_LDFLAGS := -L$(wildcard $(BUILD_DIR)/rrdtool-1.0.*)/src/.libs -lz $(TARGET_LDFLAGS)
endif endif
@ -415,6 +428,11 @@ define Package/collectd-mod-ntpd/install
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/collectd/ntpd.so $(1)/usr/lib/collectd/ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/collectd/ntpd.so $(1)/usr/lib/collectd/
endef endef
define Package/collectd-mod-nut/install
$(INSTALL_DIR) $(1)/usr/lib/collectd
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/collectd/nut.so $(1)/usr/lib/collectd/
endef
define Package/collectd-mod-ping/install define Package/collectd-mod-ping/install
$(INSTALL_DIR) $(1)/usr/lib/collectd $(INSTALL_DIR) $(1)/usr/lib/collectd
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/collectd/ping.so $(1)/usr/lib/collectd/ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/collectd/ping.so $(1)/usr/lib/collectd/
@ -435,6 +453,11 @@ define Package/collectd-mod-rrdtool1/install
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/collectd/rrdtool.so $(1)/usr/lib/collectd/ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/collectd/rrdtool.so $(1)/usr/lib/collectd/
endef endef
define Package/collectd-mod-sensors/install
$(INSTALL_DIR) $(1)/usr/lib/collectd
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/collectd/sensors.so $(1)/usr/lib/collectd/
endef
define Package/collectd-mod-snmp/install define Package/collectd-mod-snmp/install
$(INSTALL_DIR) $(1)/usr/lib/collectd $(INSTALL_DIR) $(1)/usr/lib/collectd
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/collectd/snmp.so $(1)/usr/lib/collectd/ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/collectd/snmp.so $(1)/usr/lib/collectd/
@ -501,10 +524,12 @@ $(eval $(call BuildPackage,collectd-mod-netlink))
$(eval $(call BuildPackage,collectd-mod-network)) $(eval $(call BuildPackage,collectd-mod-network))
$(eval $(call BuildPackage,collectd-mod-nginx)) $(eval $(call BuildPackage,collectd-mod-nginx))
$(eval $(call BuildPackage,collectd-mod-ntpd)) $(eval $(call BuildPackage,collectd-mod-ntpd))
$(eval $(call BuildPackage,collectd-mod-nut))
$(eval $(call BuildPackage,collectd-mod-ping)) $(eval $(call BuildPackage,collectd-mod-ping))
$(eval $(call BuildPackage,collectd-mod-powerdns)) $(eval $(call BuildPackage,collectd-mod-powerdns))
$(eval $(call BuildPackage,collectd-mod-processes)) $(eval $(call BuildPackage,collectd-mod-processes))
$(eval $(call BuildPackage,collectd-mod-rrdtool1)) $(eval $(call BuildPackage,collectd-mod-rrdtool1))
$(eval $(call BuildPackage,collectd-mod-sensors))
$(eval $(call BuildPackage,collectd-mod-snmp)) $(eval $(call BuildPackage,collectd-mod-snmp))
$(eval $(call BuildPackage,collectd-mod-syslog)) $(eval $(call BuildPackage,collectd-mod-syslog))
$(eval $(call BuildPackage,collectd-mod-tail)) $(eval $(call BuildPackage,collectd-mod-tail))