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
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=http://collectd.org/files/
17 PKG_MD5SUM:=ed1f41f86ad61bd7096ee5386ab33fd0
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22 include $(INCLUDE_DIR)/package.mk
24 define Package/collectd
28 TITLE:=Lightweight system statistics collection daemon
29 URL:=http://verplant.org/collectd/
32 define Package/collectd/description
33 collectd is a small daemon which collects system information periodically
34 and provides mechanismns to store the values in a variety of ways.
37 define Package/collectd/conffiles
47 --disable-apple_sensors \
60 --disable-multimeter \
77 DESTDIR="$(PKG_INSTALL_DIR)" \
80 define Package/collectd/install
81 $(INSTALL_DIR) $(1)/usr/sbin
82 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/collectd $(1)/usr/sbin/
83 $(INSTALL_DIR) $(1)/usr/lib/collectd
84 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/collectd/*.so $(1)/usr/lib/collectd/
85 $(INSTALL_DIR) $(1)/etc
86 $(INSTALL_CONF) ./files/collectd.conf $(1)/etc/
87 $(INSTALL_DIR) $(1)/etc/init.d
88 $(INSTALL_BIN) ./files/collectd.init $(1)/etc/init.d/collectd
91 $(eval $(call BuildPackage,collectd))