libunwind: update to 1.8.1
[openadk.git] / package / collectd / Makefile
blob3948ed519b9d29f16db4b11f50c25cf86a1f0c5e
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
6 PKG_NAME:= collectd
7 PKG_VERSION:= 5.12.0
8 PKG_RELEASE:= 1
9 PKG_HASH:= 5bae043042c19c31f77eb8464e56a01a5454e0b39fa07cf7ad0f1bfc9c3a09d6
10 PKG_DESCR:= system statistics collection daemon
11 PKG_SECTION:= sys/misc
12 PKG_BUILDDEP:= libtool
13 PKG_DEPENDS:= libltdl
14 PKG_NEEDS:= threads
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
38 endif
39 ifneq (${ADK_PACKAGE_COLLECTD_WITH_LOAD},y)
40 DISABLE_LOAD:= --disable-load
41 endif
42 ifneq (${ADK_PACKAGE_COLLECTD_WITH_MEMORY},y)
43 DISABLE_MEMORY:= --disable-memory
44 endif
45 ifneq (${ADK_PACKAGE_COLLECTD_WITH_PING},y)
46 DISABLE_PING:= --disable-ping
47 endif
48 ifneq (${ADK_PACKAGE_COLLECTD_WITH_NETWORK},y)
49 DISABLE_NETWORK:= --disable-network
50 endif
51 ifneq (${ADK_PACKAGE_COLLECTD_WITH_UPTIME},y)
52 DISABLE_UPTIME:= --disable-uptime
53 endif
55 CONFIGURE_ARGS+= --disable-aggregation \
56 --disable-apache \
57 --disable-apcups \
58 --disable-apple_sensors \
59 --disable-ascent \
60 --disable-battery \
61 --disable-cgroups \
62 --disable-conntrack \
63 ${DISABLE_CPU} \
64 --disable-cpufreq \
65 --disable-contextswitch \
66 --disable-disk \
67 --enable-csv \
68 --disable-df \
69 --disable-dns \
70 --disable-email \
71 --disable-entropy \
72 --disable-ethstat \
73 --disable-exec \
74 --disable-filecount \
75 --disable-fscache \
76 --disable-hddtemp \
77 --disable-interface \
78 --disable-iptables \
79 --disable-ipvs \
80 --disable-irq \
81 ${DISABLE_LOAD} \
82 --disable-madwifi \
83 --disable-mbmon \
84 --disable-md \
85 --disable-memcached \
86 ${DISABLE_MEMORY} \
87 --disable-multimeter \
88 --disable-mysql \
89 ${DISABLE_NETWORK} \
90 --disable-nginx \
91 --disable-nfs \
92 --disable-ntpd \
93 --disable-numa \
94 --disable-nut \
95 --disable-olsrd \
96 --disable-openvpn \
97 --disable-python \
98 --disable-postgresql \
99 --disable-powerdns \
100 --disable-perl \
101 ${DISABLE_PING} \
102 --disable-processes \
103 --disable-protocols \
104 --disable-sensors \
105 --disable-serial \
106 --disable-logfile \
107 --disable-statsd \
108 --disable-swap \
109 --enable-syslog \
110 --disable-tape \
111 --disable-target_notification \
112 --disable-target_replace \
113 --disable-target_set \
114 --disable-tcpconns \
115 --disable-teamspeak2 \
116 --disable-ted \
117 --disable-thermal \
118 --disable-unixsock \
119 --disable-users \
120 ${DISABLE_UPTIME} \
121 --disable-uuid \
122 --disable-vserver \
123 --disable-wireless \
124 --disable-write_graphite \
125 --disable-write_http \
126 --with-fp-layout=nothing \
127 --without-java \
128 --without-python \
129 --without-libiptc \
130 --with-nan-emulation \
131 --disable-werror
133 XAKE_FLAGS+= LIBS='-lm -lltdl'
135 collectd-install:
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 \
145 ${IDIR_COLLECTD}/etc
147 include ${ADK_TOPDIR}/mk/pkg-bottom.mk