1 # Copyright (C) 2006 OpenWrt.org
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
13 PKG_MD5SUM:=46a4b81e46d3bb58faab1d603649d737
15 PKG_SOURCE_URL:=http://verplant.org/collectd/files
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
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
27 TITLE:=Lightweight system statistics collection daemon
28 DESCRIPTION:=Lightweight system statistics collection daemon
29 URL:=http://verplant.org/collectd/
33 $(call Build/Configure/Default,--enable-shared \
55 $(MAKE) -C $(PKG_BUILD_DIR)
56 mkdir -p $(PKG_INSTALL_DIR)
57 $(MAKE) -C $(PKG_BUILD_DIR) \
58 DESTDIR="$(PKG_INSTALL_DIR)" \
62 define Package/collectd/install
63 install -d -m0755 $(1)/etc/init.d
64 install -d -m0755 $(1)/usr/sbin
65 install -d -m0755 $(1)/usr/lib/collectd
66 install -d -m0755 $(1)/var/lib/collectd
67 install -d -m0755 $(1)/var/run
68 install -m0755 ./files/S80collectd $(1)/etc/init.d/
69 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/collectd $(1)/usr/sbin/
70 $(CP) $(PKG_INSTALL_DIR)/usr/lib/collectd/*.so $(1)/usr/lib/collectd/
73 $(eval $(call BuildPackage,collectd))