1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${ADK_TOPDIR}/rules.mk
9 PKG_HASH
:= 5bae043042c19c31f77eb8464e56a01a5454e0b39fa07cf7ad0f1bfc9c3a09d6
10 PKG_DESCR
:= system statistics collection daemon
11 PKG_SECTION
:= sys
/misc
12 PKG_BUILDDEP
:= libtool
15 PKG_URL
:= http
://collectd.org
/
16 PKG_SITES
:= https
://storage.googleapis.com
/collectd-tarballs
/
18 DISTFILES
:= ${PKG_NAME}-${PKG_VERSION}.
tar.bz2
20 PKG_FLAVOURS_COLLECTD
:= WITH_CPU WITH_LOAD WITH_MEMORY WITH_PING
21 PKG_FLAVOURS_COLLECTD
+= WITH_RRD WITH_NETWORK WITH_UPTIME
22 PKGFD_WITH_RRD
:= enable RRD output
23 PKGFB_WITH_RRD
:= rrdtool
24 PKGFS_WITH_RRD
:= librrd
25 PKGFD_WITH_CPU
:= collect CPU statistics
26 PKGFD_WITH_LOAD
:= collect system load statistics
27 PKGFD_WITH_MEMORY
:= collect memory usage statistics
28 PKGFD_WITH_PING
:= enable ping statistic plugin
29 PKGFD_WITH_NETWORK
:= enable network statistic plugin
30 PKGFD_WITH_UPTIME
:= enable uptime statistic plugin
32 include ${ADK_TOPDIR}/mk
/package.mk
34 $(eval
$(call PKG_template
,COLLECTD
,collectd
,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
36 ifneq (${ADK_PACKAGE_COLLECTD_WITH_CPU},y
)
37 DISABLE_CPU
:= --disable-cpu
39 ifneq (${ADK_PACKAGE_COLLECTD_WITH_LOAD},y
)
40 DISABLE_LOAD
:= --disable-load
42 ifneq (${ADK_PACKAGE_COLLECTD_WITH_MEMORY},y
)
43 DISABLE_MEMORY
:= --disable-memory
45 ifneq (${ADK_PACKAGE_COLLECTD_WITH_PING},y
)
46 DISABLE_PING
:= --disable-ping
48 ifneq (${ADK_PACKAGE_COLLECTD_WITH_NETWORK},y
)
49 DISABLE_NETWORK
:= --disable-network
51 ifneq (${ADK_PACKAGE_COLLECTD_WITH_UPTIME},y
)
52 DISABLE_UPTIME
:= --disable-uptime
55 CONFIGURE_ARGS
+= --disable-aggregation \
58 --disable-apple_sensors \
65 --disable-contextswitch \
87 --disable-multimeter \
98 --disable-postgresql \
102 --disable-processes \
103 --disable-protocols \
111 --disable-target_notification \
112 --disable-target_replace \
113 --disable-target_set \
115 --disable-teamspeak2 \
124 --disable-write_graphite \
125 --disable-write_http \
126 --with-fp-layout
=nothing \
130 --with-nan-emulation \
133 XAKE_FLAGS
+= LIBS
='-lm -lltdl'
136 ${INSTALL_DIR} ${IDIR_COLLECTD}/usr
/lib
/collectd \
137 ${IDIR_COLLECTD}/usr
/sbin
${IDIR_COLLECTD}/etc
138 ${INSTALL_DIR} ${IDIR_COLLECTD}/usr
/share
/collectd
139 ${CP} ${WRKINST}/usr
/share
/collectd
/types.db \
140 ${IDIR_COLLECTD}/usr
/share
/collectd
141 ${INSTALL_BIN} ${WRKINST}/usr
/sbin
/collectd
${IDIR_COLLECTD}/usr
/sbin
142 ${CP} ${WRKINST}/usr
/lib
/collectd
/*.so \
143 ${IDIR_COLLECTD}/usr
/lib
/collectd
144 ${INSTALL_DATA} .
/files
/collectd.conf \
147 include ${ADK_TOPDIR}/mk
/pkg-bottom.mk