Makefile 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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.10.0
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= c473cf8e9f22f5a9f7ef4c5be1b0c436
  8. PKG_DESCR:= System statistics collection daemon
  9. PKG_SECTION:= misc
  10. PKG_DEPENDS:= libpthread
  11. PKG_URL:= http://collectd.org/
  12. PKG_SITES:= http://collectd.org/files/
  13. PKG_FLAVOURS_COLLECD:= WITH_CPU WITH_LOAD WITH_MEMORY WITH_PING
  14. PKGFD_WITH_CPU:= collect CPU statistics
  15. PKGFD_WITH_LOAD:= collect system load statistics
  16. PKGFD_WITH_MEMORY:= collect memory usage statistics
  17. PKGFD_WITH_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_WITH_CPU},y)
  21. DISABLE_CPU:=--disable-cpu
  22. endif
  23. ifneq (${ADK_PACKAGE_COLLECTD_WITH_LOAD},y)
  24. DISABLE_LOAD:=--disable-load
  25. endif
  26. ifneq (${ADK_PACKAGE_COLLECTD_WITH_MEMORY},y)
  27. DISABLE_MEMORY:=--disable-memory
  28. endif
  29. ifneq (${ADK_PACKAGE_COLLECTD_WITH_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-python \
  63. --disable-postgresql \
  64. --disable-powerdns \
  65. --disable-network \
  66. --disable-nginx \
  67. --disable-nfs \
  68. --disable-ntpd \
  69. --disable-nut \
  70. --disable-perl \
  71. ${DISABLE_PING} \
  72. --disable-processes \
  73. --disable-sensors \
  74. --disable-serial \
  75. --disable-logfile \
  76. --disable-swap \
  77. --disable-syslog \
  78. --disable-tape \
  79. --disable-target_notification \
  80. --disable-target_replace \
  81. --disable-target_set \
  82. --disable-teamspeak2 \
  83. --disable-ted \
  84. --disable-thermal \
  85. --disable-unixsock \
  86. --disable-users \
  87. --disable-vserver \
  88. --disable-wireless \
  89. --disable-write_http \
  90. --with-fp-layout=nothing \
  91. --without-java \
  92. --without-python \
  93. --without-libiptc \
  94. --with-nan-emulation
  95. XAKE_FLAGS+= LIBS='-lm'
  96. post-install:
  97. ${INSTALL_DIR} ${IDIR_COLLECTD}/usr/lib/collectd \
  98. ${IDIR_COLLECTD}/usr/sbin/ ${IDIR_COLLECTD}/etc
  99. ${INSTALL_BIN} ${WRKINST}/usr/sbin/collectd ${IDIR_COLLECTD}/usr/sbin/
  100. ${CP} ${WRKINST}/usr/lib/collectd/*.so \
  101. ${IDIR_COLLECTD}/usr/lib/collectd/
  102. ${INSTALL_DATA} ./files/collectd.conf \
  103. ${IDIR_COLLECTD}/etc
  104. include ${TOPDIR}/mk/pkg-bottom.mk