glib2 now needs the dev package from glib 2.0 installed on the host,
[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:=3.11.5
13 PKG_RELEASE:=2
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=http://verplant.org/collectd/files
17 PKG_MD5SUM:=7a3e47ccaed2eb1d03f91c82a1406e8d
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 DESCRIPTION:=\
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/
33 endef
34
35 define Package/collectd/conffiles
36 /etc/collectd.conf
37 endef
38
39 CONFIGURE_ARGS += \
40 --disable-debug \
41 --enable-daemon \
42 --enable-getifaddrs \
43 --disable-apache \
44 --disable-apcups \
45 --disable-apple_sensors \
46 --disable-battery \
47 --enable-cpu \
48 --disable-cpufreq \
49 --enable-disk \
50 --enable-df \
51 --disable-dns \
52 --disable-email \
53 --disable-quota \
54 --disable-hddtemp \
55 --enable-load \
56 --disable-mbmon \
57 --enable-memory \
58 --disable-multimeter \
59 --disable-mysql \
60 --disable-nfs \
61 --disable-ntpd \
62 --enable-ping \
63 --enable-processes \
64 --disable-sensors \
65 --enable-serial \
66 --disable-swap \
67 --disable-tape \
68 --enable-traffic \
69 --disable-users \
70 --disable-vserver \
71 --enable-wireless
72
73 MAKE_FLAGS += \
74 DESTDIR="$(PKG_INSTALL_DIR)" \
75 all install
76
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
86 endef
87
88 $(eval $(call BuildPackage,collectd))