Makefile 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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.7.0
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= b077e3398bd6fac0e53e9df4794db264
  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_STYLE:= gnu
  33. CONFIGURE_ARGS+= --disable-apache \
  34. --disable-apcups \
  35. --disable-apple_sensors \
  36. --disable-ascent \
  37. --disable-battery \
  38. ${DISABLE_CPU} \
  39. --disable-cpufreq \
  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-mbmon \
  56. --disable-memcached \
  57. ${DISABLE_MEMORY} \
  58. --disable-multimeter \
  59. --disable-mysql \
  60. --disable-openvpn \
  61. --disable-postgresql \
  62. --disable-powerdns \
  63. --disable-network \
  64. --disable-nginx \
  65. --disable-nfs \
  66. --disable-ntpd \
  67. --disable-nut \
  68. --disable-perl \
  69. ${DISABLE_PING} \
  70. --disable-processes \
  71. --disable-sensors \
  72. --disable-serial \
  73. --disable-logfile \
  74. --disable-swap \
  75. --disable-syslog \
  76. --disable-tape \
  77. --disable-target_notification \
  78. --disable-target_replace \
  79. --disable-target_set \
  80. --disable-teamspeak2 \
  81. --disable-ted \
  82. --disable-thermal \
  83. --disable-unixsock \
  84. --disable-users \
  85. --disable-vserver \
  86. --enable-wireless \
  87. --with-fp-layout=nothing \
  88. --without-java \
  89. --without-libiptc \
  90. --with-nan-emulation
  91. XAKE_FLAGS+= LIBS='-lm'
  92. BUILD_STYLE:= auto
  93. INSTALL_STYLE:= auto
  94. post-install:
  95. ${INSTALL_DIR} ${IDIR_COLLECTD}/usr/sbin ${IDIR_COLLECTD}/usr/lib/collectd
  96. ${CP} ${WRKINST}/usr/sbin/collectd ${IDIR_COLLECTD}/usr/sbin/
  97. ${CP} ${WRKINST}/usr/lib/collectd/*.so ${IDIR_COLLECTD}/usr/lib/collectd/
  98. include ${TOPDIR}/mk/pkg-bottom.mk