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://verplant.org/collectd/files
17 PKG_MD5SUM:=7a3e47ccaed2eb1d03f91c82a1406e8d
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 \
76 DESTDIR="$(PKG_INSTALL_DIR)" \
79 define Package/collectd/install
80 $(INSTALL_DIR) $(1)/usr/sbin
81 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/collectd $(1)/usr/sbin/
82 $(INSTALL_DIR) $(1)/usr/lib/collectd
83 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/collectd/*.so $(1)/usr/lib/collectd/
84 $(INSTALL_DIR) $(1)/etc
85 $(INSTALL_CONF) ./files/collectd.conf $(1)/etc/
86 $(INSTALL_DIR) $(1)/etc/init.d
87 $(INSTALL_BIN) ./files/collectd.init $(1)/etc/init.d/collectd
90 $(eval $(call BuildPackage,collectd))