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
30 collectd is a small daemon which collects system information periodically
\\\
31 and provides mechanismns to store the values in a variety of ways.
32 URL
:=http
://verplant.org
/collectd
/
35 define Package
/collectd
/conffiles
45 --disable-apple_sensors \
58 --disable-multimeter \
74 DESTDIR
="$(PKG_INSTALL_DIR)" \
77 define Package
/collectd
/install
78 $(INSTALL_DIR
) $(1)/usr
/sbin
79 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/collectd
$(1)/usr
/sbin
/
80 $(INSTALL_DIR
) $(1)/usr
/lib
/collectd
81 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/lib
/collectd
/*.so
$(1)/usr
/lib
/collectd
/
82 $(INSTALL_DIR
) $(1)/etc
83 $(INSTALL_CONF
) .
/files
/collectd.conf
$(1)/etc
/
84 $(INSTALL_DIR
) $(1)/etc
/init.d
85 $(INSTALL_BIN
) .
/files
/collectd.init
$(1)/etc
/init.d
/collectd
88 $(eval
$(call BuildPackage
,collectd
))