2006-10-30 13:51:50 +00:00
|
|
|
#
|
2006-08-01 11:52:57 +00:00
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=collectd
|
|
|
|
PKG_VERSION:=3.5.1
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2006-10-30 13:51:50 +00:00
|
|
|
PKG_SOURCE_URL:=http://verplant.org/collectd/files
|
|
|
|
PKG_MD5SUM:=46a4b81e46d3bb58faab1d603649d737
|
2006-08-01 11:52:57 +00:00
|
|
|
PKG_CAT:=zcat
|
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/collectd
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
TITLE:=Lightweight system statistics collection daemon
|
|
|
|
URL:=http://verplant.org/collectd/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
2006-10-30 13:51:50 +00:00
|
|
|
$(call Build/Configure/Default, \
|
2006-10-15 21:03:30 +00:00
|
|
|
--disable-debug \
|
|
|
|
--enable-cpu \
|
|
|
|
--enable-load \
|
|
|
|
--enable-memory \
|
|
|
|
--enable-ping \
|
|
|
|
--enable-traffic \
|
|
|
|
--disable-cpufreq \
|
|
|
|
--disable-disk \
|
|
|
|
--disable-hddtemp \
|
|
|
|
--disable-nfs \
|
|
|
|
--disable-processes \
|
|
|
|
--disable-sensors \
|
|
|
|
--disable-serial \
|
|
|
|
--disable-swap \
|
|
|
|
--disable-tape \
|
|
|
|
--disable-users \
|
|
|
|
)
|
2006-08-01 11:52:57 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
2006-10-30 13:51:50 +00:00
|
|
|
all install
|
2006-08-01 11:52:57 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/collectd/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2006-08-01 11:52:57 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/collectd $(1)/usr/sbin/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/collectd
|
2006-08-01 11:52:57 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/collectd/*.so $(1)/usr/lib/collectd/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/collectd.init $(1)/etc/init.d/collectd
|
2006-08-01 11:52:57 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,collectd))
|