X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=utils%2Fcollectd%2FMakefile;h=05ee9fa2efb0678b493b85548b9fd98de27d18de;hb=7709eff75959214fa4a638e582af0af25cd898f8;hp=763a60021342d40a7efa5f8abf1c467f0fa27ef4;hpb=7e2730d7151cf333559af4818ead193f8a7bd093;p=openwrt%2Fsvn-archive%2Farchive.git diff --git a/utils/collectd/Makefile b/utils/collectd/Makefile index 763a600213..05ee9fa2ef 100644 --- a/utils/collectd/Makefile +++ b/utils/collectd/Makefile @@ -8,15 +8,18 @@ include $(TOPDIR)/rules.mk PKG_NAME:=collectd -PKG_VERSION:=4.9.1 +PKG_VERSION:=4.10.2 PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=http://collectd.org/files/ -PKG_MD5SUM:=5753496651c8c84afaea1fe290876bfc +PKG_MD5SUM:=85d9d8d0a1327782661e3c89800aa70e PKG_FIXUP:=libtool +PKG_LIBTOOL_PATHS:=. libltdl + PKG_INSTALL:=1 +PKG_BUILD_PARALLEL:=1 COLLECTD_PLUGINS_DISABLED:= \ apple_sensors \ @@ -126,7 +129,7 @@ endef define Package/collectd $(call Package/collectd/Default) - DEPENDS:= +libpthread +zlib + DEPENDS:= +libpthread +zlib +libltdl MENU:=1 endef @@ -145,7 +148,6 @@ CONFIGURE_ARGS+= \ --enable-daemon \ --enable-getifaddrs \ --with-nan-emulation \ - --with-fp-layout=nothing CONFIGURE_VARS+= \ CFLAGS="$$$$CFLAGS $(FPIC)" \ @@ -167,6 +169,16 @@ ifneq ($(CONFIG_PACKAGE_collectd-mod-ascent),) CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/libxml2" endif +ifneq ($(CONFIG_BIG_ENDIAN),) + CONFIGURE_ARGS+= --with-fp-layout=endianflip +else + CONFIGURE_ARGS+= --with-fp-layout=nothing +endif + +ifneq ($(CONFIG_PACKAGE_collectd-mod-postgresql),) + CONFIGURE_ARGS+= --with-libpq="$(STAGING_DIR)/usr/" +endif + ifneq ($(CONFIG_PACKAGE_collectd-mod-mysql),) CONFIGURE_ARGS+= --with-libmysql="$(STAGING_DIR)/usr/" endif @@ -190,6 +202,13 @@ define Package/collectd/conffiles /etc/collectd.conf endef +#define Build/Configure +# (cd $(PKG_BUILD_DIR); \ +# autoreconf -v --install || exit 1 \ +# ); +# $(call Build/Configure/Default) +#endef + define Package/collectd/install $(INSTALL_DIR) $(1)/usr/sbin $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/collectd $(1)/usr/sbin/ @@ -276,7 +295,7 @@ $(eval $(call BuildPlugin,syslog,syslog output,syslog,)) $(eval $(call BuildPlugin,tail,tail input,tail,)) $(eval $(call BuildPlugin,table,table-like structured file input,table,)) $(eval $(call BuildPlugin,teamspeak2,TeamSpeak2 input,teamspeak2,)) -$(eval $(call BuildPlugin,ted,The Energy Detective input,ted,)) +$(eval $(call BuildPlugin,ted,The Energy Detective input,ted,@((!TARGET_avr32)||BROKEN))) # fails on avr32 because of warnings treated as errors $(eval $(call BuildPlugin,tcpconns,TCP connection tracking input,tcpconns,)) $(eval $(call BuildPlugin,thermal,system temperatures input,thermal,)) $(eval $(call BuildPlugin,unixsock,unix socket output,unixsock,))