123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- # This file is part of the OpenADK project. OpenADK is copyrighted
- # material, please see the LICENCE file in the top-level directory.
- include ${TOPDIR}/rules.mk
- PKG_NAME:= collectd
- PKG_VERSION:= 4.9.1
- PKG_RELEASE:= 1
- PKG_MD5SUM:= 31a63d8e3a796dee247024f70426ed1c
- PKG_DESCR:= System statistics collection daemon
- PKG_SECTION:= console
- PKG_DEPENDS:= libpthread
- PKG_URL:= http://collectd.org
- PKG_SITES:= http://collectd.org/files/
- PKG_FLAVOURS:= CPU LOAD MEMORY PING
- PKGFD_CPU:= collect CPU statistics
- PKGFD_LOAD:= collect system load statistics
- PKGFD_MEMORY:= collect memory usage statistics
- PKGFD_PING:= enable ping statistic plugin
- include ${TOPDIR}/mk/package.mk
- $(eval $(call PKG_template,COLLECTD,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
- ifneq (${ADK_PACKAGE_COLLECTD_CPU},y)
- DISABLE_CPU:=--disable-cpu
- endif
- ifneq (${ADK_PACKAGE_COLLECTD_LOAD},y)
- DISABLE_LOAD:=--disable-load
- endif
- ifneq (${ADK_PACKAGE_COLLECTD_MEMORY},y)
- DISABLE_MEMORY:=--disable-memory
- endif
- ifneq (${ADK_PACKAGE_COLLECTD_PING},y)
- DISABLE_PING:=--disable-ping
- endif
- CONFIGURE_ARGS+= --disable-apache \
- --disable-apcups \
- --disable-apple_sensors \
- --disable-ascent \
- --disable-battery \
- ${DISABLE_CPU} \
- --disable-cpufreq \
- --disable-contextswitch \
- --disable-disk \
- --enable-csv \
- --disable-df \
- --disable-dns \
- --disable-email \
- --disable-entropy \
- --disable-exec \
- --disable-filecount \
- --disable-fscache \
- --disable-hddtemp \
- --disable-interface \
- --disable-iptables \
- --disable-ipvs \
- --disable-irq \
- ${DISABLE_LOAD} \
- --disable-madwifi \
- --disable-mbmon \
- --disable-memcached \
- ${DISABLE_MEMORY} \
- --disable-multimeter \
- --disable-mysql \
- --disable-openvpn \
- --disable-postgresql \
- --disable-powerdns \
- --disable-network \
- --disable-nginx \
- --disable-nfs \
- --disable-ntpd \
- --disable-nut \
- --disable-perl \
- ${DISABLE_PING} \
- --disable-processes \
- --disable-sensors \
- --disable-serial \
- --disable-logfile \
- --disable-swap \
- --disable-syslog \
- --disable-tape \
- --disable-target_notification \
- --disable-target_replace \
- --disable-target_set \
- --disable-teamspeak2 \
- --disable-ted \
- --disable-thermal \
- --disable-unixsock \
- --disable-users \
- --disable-vserver \
- --disable-wireless \
- --disable-write_http \
- --with-fp-layout=nothing \
- --without-java \
- --without-libiptc \
- --with-nan-emulation
- XAKE_FLAGS+= LIBS='-lm'
- post-install:
- ${INSTALL_DIR} ${IDIR_COLLECTD}/usr/lib/collectd \
- ${IDIR_COLLECTD}/usr/sbin/ ${IDIR_COLLECTD}/etc
- ${INSTALL_BIN} ${WRKINST}/usr/sbin/collectd ${IDIR_COLLECTD}/usr/sbin/
- ${CP} ${WRKINST}/usr/lib/collectd/*.so \
- ${IDIR_COLLECTD}/usr/lib/collectd/
- ${INSTALL_DATA} ./files/collectd.conf \
- ${IDIR_COLLECTD}/etc
- include ${TOPDIR}/mk/pkg-bottom.mk
|