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.gz
16 PKG_SOURCE_URL:=http://verplant.org/collectd/files
17 PKG_MD5SUM:=46a4b81e46d3bb58faab1d603649d737
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
23 include $(INCLUDE_DIR)/package.mk
25 define Package/collectd
28 TITLE:=Lightweight system statistics collection daemon
29 URL:=http://verplant.org/collectd/
33 $(call Build/Configure/Default, \
54 $(MAKE) -C $(PKG_BUILD_DIR) \
55 DESTDIR="$(PKG_INSTALL_DIR)" \
59 define Package/collectd/install
60 $(INSTALL_DIR) $(1)/usr/sbin
61 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/collectd $(1)/usr/sbin/
62 $(INSTALL_DIR) $(1)/usr/lib/collectd
63 $(CP) $(PKG_INSTALL_DIR)/usr/lib/collectd/*.so $(1)/usr/lib/collectd/
64 $(INSTALL_DIR) $(1)/etc/init.d
65 $(INSTALL_BIN) ./files/collectd.init $(1)/etc/init.d/collectd
68 $(eval $(call BuildPackage,collectd))