eabi fix for uclibc++
[openwrt/svn-archive/archive.git] / utils / collectd / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=collectd
12 PKG_VERSION:=4.2.0
13 PKG_RELEASE:=2
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=http://collectd.org/files/
17 PKG_MD5SUM:=ed1f41f86ad61bd7096ee5386ab33fd0
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/collectd
25 SECTION:=utils
26 CATEGORY:=Utilities
27 DEPENDS=+libgcc
28 TITLE:=Lightweight system statistics collection daemon
29 URL:=http://verplant.org/collectd/
30 endef
31
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.
35 endef
36
37 define Package/collectd/conffiles
38 /etc/collectd.conf
39 endef
40
41 CONFIGURE_ARGS += \
42 --disable-debug \
43 --enable-daemon \
44 --enable-getifaddrs \
45 --disable-apache \
46 --disable-apcups \
47 --disable-apple_sensors \
48 --disable-battery \
49 --enable-cpu \
50 --disable-cpufreq \
51 --enable-disk \
52 --enable-df \
53 --disable-dns \
54 --disable-email \
55 --disable-quota \
56 --disable-hddtemp \
57 --enable-load \
58 --disable-mbmon \
59 --enable-memory \
60 --disable-multimeter \
61 --disable-mysql \
62 --disable-nfs \
63 --disable-ntpd \
64 --enable-ping \
65 --enable-processes \
66 --disable-sensors \
67 --enable-serial \
68 --disable-swap \
69 --disable-tape \
70 --enable-traffic \
71 --disable-users \
72 --disable-vserver \
73 --enable-wireless \
74 --with-nan-emulation
75
76 MAKE_FLAGS += \
77 DESTDIR="$(PKG_INSTALL_DIR)" \
78 all install
79
80 define Package/collectd/install
81 $(INSTALL_DIR) $(1)/usr/sbin
82 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/collectd $(1)/usr/sbin/
83 $(INSTALL_DIR) $(1)/usr/lib/collectd
84 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/collectd/*.so $(1)/usr/lib/collectd/
85 $(INSTALL_DIR) $(1)/etc
86 $(INSTALL_CONF) ./files/collectd.conf $(1)/etc/
87 $(INSTALL_DIR) $(1)/etc/init.d
88 $(INSTALL_BIN) ./files/collectd.init $(1)/etc/init.d/collectd
89 endef
90
91 $(eval $(call BuildPackage,collectd))