Makefile 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${TOPDIR}/rules.mk
  4. PKG_NAME:= collectd
  5. PKG_VERSION:= 4.9.1
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 31a63d8e3a796dee247024f70426ed1c
  8. PKG_DESCR:= System statistics collection daemon
  9. PKG_SECTION:= console
  10. PKG_DEPENDS:= libpthread
  11. PKG_URL:= http://collectd.org
  12. PKG_SITES:= http://collectd.org/files/
  13. PKG_FLAVOURS:= CPU LOAD MEMORY PING
  14. PKGFD_CPU:= collect CPU statistics
  15. PKGFD_LOAD:= collect system load statistics
  16. PKGFD_MEMORY:= collect memory usage statistics
  17. PKGFD_PING:= enable ping statistic plugin
  18. include ${TOPDIR}/mk/package.mk
  19. $(eval $(call PKG_template,COLLECTD,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  20. ifneq (${ADK_PACKAGE_COLLECTD_CPU},y)
  21. DISABLE_CPU:=--disable-cpu
  22. endif
  23. ifneq (${ADK_PACKAGE_COLLECTD_LOAD},y)
  24. DISABLE_LOAD:=--disable-load
  25. endif
  26. ifneq (${ADK_PACKAGE_COLLECTD_MEMORY},y)
  27. DISABLE_MEMORY:=--disable-memory
  28. endif
  29. ifneq (${ADK_PACKAGE_COLLECTD_PING},y)
  30. DISABLE_PING:=--disable-ping
  31. endif
  32. CONFIGURE_ARGS+= --disable-apache \
  33. --disable-apcups \
  34. --disable-apple_sensors \
  35. --disable-ascent \
  36. --disable-battery \
  37. ${DISABLE_CPU} \
  38. --disable-cpufreq \
  39. --disable-contextswitch \
  40. --disable-disk \
  41. --enable-csv \
  42. --disable-df \
  43. --disable-dns \
  44. --disable-email \
  45. --disable-entropy \
  46. --disable-exec \
  47. --disable-filecount \
  48. --disable-fscache \
  49. --disable-hddtemp \
  50. --disable-interface \
  51. --disable-iptables \
  52. --disable-ipvs \
  53. --disable-irq \
  54. ${DISABLE_LOAD} \
  55. --disable-madwifi \
  56. --disable-mbmon \
  57. --disable-memcached \
  58. ${DISABLE_MEMORY} \
  59. --disable-multimeter \
  60. --disable-mysql \
  61. --disable-openvpn \
  62. --disable-postgresql \
  63. --disable-powerdns \
  64. --disable-network \
  65. --disable-nginx \
  66. --disable-nfs \
  67. --disable-ntpd \
  68. --disable-nut \
  69. --disable-perl \
  70. ${DISABLE_PING} \
  71. --disable-processes \
  72. --disable-sensors \
  73. --disable-serial \
  74. --disable-logfile \
  75. --disable-swap \
  76. --disable-syslog \
  77. --disable-tape \
  78. --disable-target_notification \
  79. --disable-target_replace \
  80. --disable-target_set \
  81. --disable-teamspeak2 \
  82. --disable-ted \
  83. --disable-thermal \
  84. --disable-unixsock \
  85. --disable-users \
  86. --disable-vserver \
  87. --disable-wireless \
  88. --disable-write_http \
  89. --with-fp-layout=nothing \
  90. --without-java \
  91. --without-libiptc \
  92. --with-nan-emulation
  93. XAKE_FLAGS+= LIBS='-lm'
  94. post-install:
  95. ${INSTALL_DIR} ${IDIR_COLLECTD}/usr/lib/collectd \
  96. ${IDIR_COLLECTD}/usr/sbin/ ${IDIR_COLLECTD}/etc
  97. ${INSTALL_BIN} ${WRKINST}/usr/sbin/collectd ${IDIR_COLLECTD}/usr/sbin/
  98. ${CP} ${WRKINST}/usr/lib/collectd/*.so \
  99. ${IDIR_COLLECTD}/usr/lib/collectd/
  100. ${INSTALL_DATA} ./files/collectd.conf \
  101. ${IDIR_COLLECTD}/etc
  102. include ${TOPDIR}/mk/pkg-bottom.mk